09b6051e0bd42beee7f6adbe06b79515ff0b276b
[gnulib.git] / ChangeLog
1 2012-03-05  Bruno Haible  <bruno@clisp.org>
2
3         hypot* tests: More tests.
4         * tests/test-hypot.h: New file, partially extracted from
5         tests/test-hypotl.c.
6         * tests/test-hypot.c: Include test-hypot.h.
7         (main): Invoke test_function.
8         * tests/test-hypotf.c: Include test-hypot.h.
9         (main): Invoke test_function.
10         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
11         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
12         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
13         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
14         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
15         tests/randomf.c.
16         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
17         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
18         tests/randoml.c.
19         (Depends-on): Add 'fpucw', 'float'.
20         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
21
22 2012-03-05  Bruno Haible  <bruno@clisp.org>
23
24         fpucw: Doc about FreeBSD.
25         * lib/fpucw.h: Mention FreeBSD in comments.
26
27 2012-03-04  Bruno Haible  <bruno@clisp.org>
28
29         sqrt* tests: More tests.
30         * tests/test-sqrt.h: New file.
31         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
32         (main): Invoke test_function.
33         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
34         (main): Invoke test_function.
35         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
36         (main): Invoke test_function.
37         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
38         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
39         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
40         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
41         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
42         (Depends-on): Add 'float'.
43         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
44
45 2012-03-04  Bruno Haible  <bruno@clisp.org>
46
47         remainder* tests: More tests.
48         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
49         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
50         (main): Invoke test_function.
51         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
52         (main): Invoke test_function.
53         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
54         (main): Invoke test_function.
55         * modules/remainder-tests (Files): Add tests/test-remainder.h,
56         tests/randomd.c.
57         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
58         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
59         tests/randomf.c.
60         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
61         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
62         tests/randoml.c.
63         (Depends-on): Add 'float'.
64         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
65
66 2012-03-04  Bruno Haible  <bruno@clisp.org>
67
68         remainder, remainderf, remainderl: Fix computation for large quotients.
69         * lib/remainder.c: Completely rewritten.
70         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
71         USE_FLOAT.
72         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
73         USE_LONG_DOUBLE.
74         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
75         isnand, isinf. Remove round, fma.
76         * modules/remainderf (Files): Add lib/remainder.c.
77         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
78         Remove roundf, fmaf.
79         * modules/remainderl (Files): Add lib/remainder.c.
80         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
81         isinf. Remove roundl, fmal.
82         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
83         REMAINDER_LIBM.
84         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
85         REMAINDERF_LIBM.
86         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
87         REMAINDERL_LIBM.
88
89 2012-03-04  Bruno Haible  <bruno@clisp.org>
90
91         fmod* tests: More tests.
92         * tests/test-fmod.h (my_ldexp): New function.
93         (test_function): Reduce amount of random numbers to test. Add tests
94         of very large quotients x / y.
95         * tests/test-fmod.c (MAX_EXP): New macro.
96         * tests/test-fmodf.c (MAX_EXP): Likewise.
97         * tests/test-fmodl.c (MAX_EXP): Likewise.
98
99 2012-03-04  Bruno Haible  <bruno@clisp.org>
100
101         fmod, fmodl: Fix computation for large quotients x / y.
102         * lib/fmod.c: Completely rewritten.
103         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
104         USE_LONG_DOUBLE.
105         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
106         isnand. Remove fma.
107         * modules/fmodl (Files): Add lib/fmod.c.
108         (Depends-on): Add float, isfinite, signbit, fabsl,
109         frexpl, ldexpl, isnanl. Remove fma.
110         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
111         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
112
113 2012-03-03  Bruno Haible  <bruno@clisp.org>
114
115         fmod* tests: More tests.
116         * tests/test-fmod.h: New file.
117         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
118         (main): Invoke test_function.
119         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
120         (main): Invoke test_function.
121         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
122         (main): Invoke test_function.
123         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
124         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
125         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
126         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
127         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
128         (Depends-on): Add 'float'.
129         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
130
131 2012-03-03  Bruno Haible  <bruno@clisp.org>
132
133         rint* tests: More tests.
134         * tests/test-rint.h: New file, partially extracted from
135         tests/test-rintl.c.
136         * tests/test-rint.c: Include test-rint.h.
137         (main): Invoke test_function.
138         * tests/test-rintf.c: Include test-rint.h.
139         (main): Invoke test_function.
140         * tests/test-rintl.c: Include test-rint.h.
141         (main): Invoke test_function.
142         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
143         (Makefile.am): Add randomd.c to test_rint_SOURCES.
144         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
145         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
146         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
147         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
148
149 2012-03-03  Bruno Haible  <bruno@clisp.org>
150
151         modf* tests: More tests.
152         * tests/test-modf.h: New file.
153         * tests/test-modf.c: Include <float.h> and test-modf.h.
154         (main): Invoke test_function.
155         * tests/test-modff.c: Include <float.h> and test-modf.h.
156         (main): Invoke test_function.
157         * tests/test-modfl.c: Include <float.h> and test-modf.h.
158         (main): Invoke test_function.
159         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
160         (Makefile.am): Add randomd.c to test_modf_SOURCES.
161         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
162         (Makefile.am): Add randomf.c to test_modff_SOURCES.
163         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
164         (Depends-on): Add 'float'.
165         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
166
167 2012-03-03  Bruno Haible  <bruno@clisp.org>
168
169         fabs* tests: More tests.
170         * tests/test-fabs.h: New file, partially extracted from
171         tests/test-fabsl.c.
172         * tests/test-fabs.c (RANDOM): New macro.
173         * tests/test-fabsf.c (RANDOM): New macro.
174         * tests/test-fabsl.c (RANDOM): New macro.
175         * modules/fabs-tests (Files): Add tests/randomd.c.
176         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
177         * modules/fabsf-tests (Files): Add tests/randomf.c.
178         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
179         * modules/fabsl-tests (Files): Add tests/randoml.c.
180         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
181
182 2012-03-03  Bruno Haible  <bruno@clisp.org>
183
184         ldexp* tests: More tests.
185         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
186         * tests/test-ldexp.c (RANDOM): New macro.
187         * tests/test-ldexpf.c (RANDOM): New macro.
188         * tests/test-ldexpl.c (RANDOM): New macro.
189         * modules/ldexp-tests (Files): Add tests/randomd.c.
190         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
191         * modules/ldexpf-tests (Files): Add tests/randomf.c.
192         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
193         * modules/ldexpl-tests (Files): Add tests/randoml.c.
194         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
195
196 2012-03-03  Bruno Haible  <bruno@clisp.org>
197
198         frexp* tests: More tests.
199         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
200         * tests/test-frexp.c (RANDOM): New macro.
201         * tests/test-frexpf.c (RANDOM): New macro.
202         * tests/test-frexpl.c (RANDOM): New macro.
203         * modules/frexp-tests (Files): Add tests/randomd.c.
204         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
205         * modules/frexpf-tests (Files): Add tests/randomf.c.
206         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
207         * modules/frexpl-tests (Files): Add tests/randoml.c.
208         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
209
210 2012-03-03  Bruno Haible  <bruno@clisp.org>
211
212         Support for pseudo-random numbers in tests.
213         * tests/randomf.c: New file.
214         * tests/randomd.c: New file.
215         * tests/randoml.c: New file.
216         * tests/macros.h (randomf, randomd, randoml): New declarations.
217
218 2012-03-03  Bruno Haible  <bruno@clisp.org>
219
220         frexp* tests: Refactor.
221         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
222         * tests/test-frexp.c: Include and use it.
223         * tests/test-frexpf.c: Likewise.
224         * tests/test-frexpl.c: Likewise.
225         * modules/frexp-tests (Files): Add tests/test-frexp.h.
226         * modules/frexpf-tests (Files): Likewise.
227         * modules/frexpl-tests (Files): Likewise.
228
229 2012-03-02  Jim Meyering  <meyering@redhat.com>
230
231         maint: don't specify XZ_OPT=-9ev in dist-related rule
232         Using xz's -9 option is warranted only if you have a very large
233         tarball (see xz's documentation for the sizes vs. presets), and
234         requires 64MiB of memory at decompression time.
235         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
236         Automake's default of just "-e" is fine.  Override on a
237         per-package basis by setting XZ_OPT e.g., in cfg.mk.
238
239 2012-03-01  Eric Blake  <eblake@redhat.com>
240
241         maint.mk: allow announcement for non-gnulib project
242         * maint.mk (announcement): Skip gnulib version if not used.
243
244 2012-03-01  Jim Meyering  <meyering@redhat.com>
245
246         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
247         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
248         envvar settings cannot interfere.  Otherwise, setting envvars like
249         prohibit=foo require=bar, etc. would cause spurious test failures.
250
251 2012-03-01  Eric Blake  <eblake@redhat.com>
252
253         maint.mk: add per-line exclusions to prohibitions
254         * maint.mk (_sc_search_regexp): Add $exclude parameter.
255         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
256         (sc_const_long_option): Use it.
257
258 2012-03-01  Bruno Haible  <bruno@clisp.org>
259
260         Tests for module 'expl-ieee'.
261         * modules/expl-ieee-tests: New file.
262         * tests/test-expl-ieee.c: New file.
263
264         New module 'expl-ieee'.
265         * modules/expl-ieee: New file.
266
267         Tests for module 'exp-ieee'.
268         * modules/exp-ieee-tests: New file.
269         * tests/test-exp-ieee.c: New file.
270
271         New module 'exp-ieee'.
272         * modules/exp-ieee: New file.
273
274         Tests for module 'expf-ieee'.
275         * modules/expf-ieee-tests: New file.
276         * tests/test-expf-ieee.c: New file.
277         * tests/test-exp-ieee.h: New file.
278
279         New module 'expf-ieee'.
280         * modules/expf-ieee: New file.
281
282 2012-02-29  Bruno Haible  <bruno@clisp.org>
283
284         cbrtl-ieee: Work around test failure on IRIX 6.5.
285         * m4/cbrtl-ieee.m4: New file.
286         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
287         test whether cbrtl works with a minus zero argument. Replace it if not.
288         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
290         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
291         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
292         (Depends-on): Update conditions.
293         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
294         m4/signbit.m4.
295         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
296         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
297         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
298
299         Tests for module 'cbrtl-ieee'.
300         * modules/cbrtl-ieee-tests: New file.
301         * tests/test-cbrtl-ieee.c: New file.
302
303         New module 'cbrtl-ieee'.
304         * modules/cbrtl-ieee: New file.
305
306         Tests for module 'cbrt-ieee'.
307         * modules/cbrt-ieee-tests: New file.
308         * tests/test-cbrt-ieee.c: New file.
309
310         New module 'cbrt-ieee'.
311         * modules/cbrt-ieee: New file.
312
313         Tests for module 'cbrtf-ieee'.
314         * modules/cbrtf-ieee-tests: New file.
315         * tests/test-cbrtf-ieee.c: New file.
316         * tests/test-cbrt-ieee.h: New file.
317
318         New module 'cbrtf-ieee'.
319         * modules/cbrtf-ieee: New file.
320
321 2012-02-29  Bruno Haible  <bruno@clisp.org>
322
323         cbrtf: Work around bug in IRIX 6.5 system function.
324         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
325         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
326         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
327         work.
328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
329         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
330         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
331         (Depends-on): Update conditions.
332         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
333
334 2012-02-29  Bruno Haible  <bruno@clisp.org>
335
336         Tests for module 'cbrtl'.
337         * modules/cbrtl-tests: New file.
338         * tests/test-cbrtl.c: New file.
339
340         New module 'cbrtl'.
341         * lib/math.in.h (cbrtl): New declaration.
342         * lib/cbrtl.c: New file.
343         * m4/cbrtl.m4: New file.
344         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
346         HAVE_DECL_CBRTL.
347         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
348         HAVE_DECL_CBRTL.
349         * modules/cbrtl: New file.
350         * tests/test-math-c++.cc: Check the declaration of cbrtl.
351         * doc/posix-functions/cbrtl.texi: Mention the new module.
352
353 2012-02-29  Bruno Haible  <bruno@clisp.org>
354
355         Tests for module 'cbrtf'.
356         * modules/cbrtf-tests: New file.
357         * tests/test-cbrtf.c: New file.
358
359         New module 'cbrtf'.
360         * lib/math.in.h (cbrtf): New declaration.
361         * lib/cbrtf.c: New file.
362         * m4/cbrtf.m4: New file.
363         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
365         HAVE_DECL_CBRTF.
366         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
367         HAVE_DECL_CBRTF.
368         * modules/cbrtf: New file.
369         * tests/test-math-c++.cc: Check the declaration of cbrtf.
370         * doc/posix-functions/cbrtf.texi: Mention the new module.
371
372 2012-02-29  Bruno Haible  <bruno@clisp.org>
373
374         cbrt: Provide replacement on MSVC and Minix.
375         * lib/math.in.h (cbrt): New declaration.
376         * lib/cbrt.c: New file.
377         * m4/cbrt.m4: New file.
378         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
380         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
381         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
382         (Depends-on): Add dependencies.
383         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
384         * tests/test-math-c++.cc: Check the declaration of cbrt.
385         * doc/posix-functions/cbrt.texi: Mention that the module provides a
386         replacement.
387
388 2012-02-29  Bruno Haible  <bruno@clisp.org>
389
390         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
391         * m4/hypotl-ieee.m4: New file.
392         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
393         test whether hypotl works with mixed NaN and Infinity arguments.
394         Replace it if not.
395         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
397         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
398         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
399         (Depends-on): Update conditions.
400         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
401         (Depends-on): Add hypot-ieee.
402         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
403         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
404
405         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
406         * m4/hypotf-ieee.m4: New file.
407         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
408         test whether hypotf works with mixed NaN and Infinity arguments.
409         Replace it if not.
410         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
411         (Depends-on): Add hypot-ieee.
412         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
413         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
414
415         hypot-ieee: Work around test failure on OSF/1 and native Windows.
416         * lib/math.in.h (hypot): New declaration.
417         * lib/hypot.c: New file.
418         * m4/hypot-ieee.m4: New file.
419         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
420         whether hypot works with mixed NaN and Infinity arguments. Replace it
421         if not.
422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
423         REPLACE_HYPOT.
424         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
425         * modules/hypot (Files): Add lib/hypot.c.
426         (Depends-on): Add dependencies.
427         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
428         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
429         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
430         * tests/test-math-c++.cc: Check the declaration of hypot.
431         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
432
433         Tests for module 'hypotl-ieee'.
434         * modules/hypotl-ieee-tests: New file.
435         * tests/test-hypotl-ieee.c: New file.
436
437         New module 'hypotl-ieee'.
438         * modules/hypotl-ieee: New file.
439
440         Tests for module 'hypot-ieee'.
441         * modules/hypot-ieee-tests: New file.
442         * tests/test-hypot-ieee.c: New file.
443
444         New module 'hypot-ieee'.
445         * modules/hypot-ieee: New file.
446
447         Tests for module 'hypotf-ieee'.
448         * modules/hypotf-ieee-tests: New file.
449         * tests/test-hypotf-ieee.c: New file.
450         * tests/test-hypot-ieee.h: New file.
451
452         New module 'hypotf-ieee'.
453         * modules/hypotf-ieee: New file.
454
455 2012-02-29  Bruno Haible  <bruno@clisp.org>
456
457         Remove unused variables.
458         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
459         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
460         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
461         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
462
463 2012-02-29  Eric Blake  <eblake@redhat.com>
464
465         termios: fix pid_t always, not just for tcgetsid
466         * doc/posix-headers/termios.texi (termios.h): Mention problem.
467         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
468         just when building tcgetsid.
469
470 2012-02-29  Bruno Haible  <bruno@clisp.org>
471
472         Tests for module 'hypotl'.
473         * modules/hypotl-tests: New file.
474         * tests/test-hypotl.c: New file.
475
476         New module 'hypotl'.
477         * lib/math.in.h (hypotl): New declaration.
478         * lib/hypotl.c: New file.
479         * m4/hypotl.m4: New file.
480         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
482         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
483         * modules/hypotl: New file.
484         * tests/test-math-c++.cc: Check the hypotl declaration.
485         * doc/posix-functions/hypotl.texi: Mention the new module.
486
487 2012-02-29  Eric Blake  <eblake@redhat.com>
488
489         tcgetsid: fix cygwin header bug
490         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
491
492         docs: update cygwin progress
493         * doc/posix-functions/llround.texi (llround): Added in cygwin
494         1.7.8.
495         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
496         * doc/glibc-functions/program_invocation_name.texi
497         (program_invocation_name): Likewise.
498         * doc/glibc-functions/program_invocation_short_name.texi
499         (program_invocation_short_name): Likewise.
500         * doc/glibc-functions/madvise.texi (madvise): Likewise.
501         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
502         Likewise.
503         * doc/posix-functions/pthread_spin_destroy.texi
504         (pthread_spin_destroy): Added in cygwin 1.7.10.
505         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
506         Likewise.
507         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
508         Likewise.
509         * doc/posix-functions/pthread_spin_trylock.texi
510         (pthread_spin_trylock): Likewise.
511         * doc/posix-functions/pthread_spin_unlock.texi
512         (pthread_spin_unlock): Likewise.
513         * doc/posix-functions/pthread_setschedprio.texi
514         (pthread_setschedprio): Likewise.
515         * doc/posix-functions/pthread_attr_getstack.texi
516         (pthread_attr_getstack): Likewise.
517         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
518         (pthread_attr_getstackaddr): Likewise.
519         * doc/glibc-functions/pthread_getattr_np.texi
520         (pthread_getattr_np): Likewise.
521         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
522         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
523         * doc/posix-functions/clock_settime.texi (clock_settime):
524         Likewise.
525         * doc/posix-functions/pthread_attr_getguardsize.texi
526         (pthread_attr_getguardsize): Likewise.
527         * doc/posix-functions/pthread_attr_setguardsize.texi
528         (pthread_attr_setguardsize): Likewise.
529         * doc/posix-functions/pthread_attr_setstack.texi
530         (pthread_attr_setstack): Likewise.
531         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
532         (pthread_attr_setstackaddr): Likewise.
533         * doc/posix-functions/clock_getcpuclockid.texi
534         (clock_getcpuclockid): Likewise.
535         * doc/posix-functions/pthread_getcpuclockid.texi
536         (pthread_getcpuclockid): Likewise.
537         * doc/glibc-functions/error.texi (error): Likewise.
538         * doc/glibc-functions/error_at_line.texi (error_at_line):
539         Likewise.
540         * doc/glibc-functions/error_message_count.texi
541         (error_message_count): Likewise.
542         * doc/glibc-functions/error_one_per_line.texi
543         (error_one_per_line): Likewise.
544         * doc/glibc-functions/error_print_progname.texi
545         (error_print_progname): Likewise.
546         * doc/posix-functions/pthread_condattr_getclock.texi
547         (pthread_condattr_getclock): Likewise.
548         * doc/posix-functions/pthread_condattr_setclock.texi
549         (pthread_condattr_setclock): Likewise.
550         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
551         Likewise.
552         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
553         * doc/glibc-functions/getpt.texi (getpt): Likewise.
554         * doc/glibc-functions/get_current_dir_name.texi
555         (get_current_dir_name): Likewise.
556         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
557         Likewise.
558         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
559         wrong return type.
560         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
561         1.7.11.
562
563 2012-02-29  Bruno Haible  <bruno@clisp.org>
564
565         Tests for module 'hypotf'.
566         * modules/hypotf-tests: New file.
567         * tests/test-hypotf.c: New file.
568
569         New module 'hypotf'.
570         * lib/math.in.h (hypotf): New declaration.
571         * lib/hypotf.c: New file.
572         * m4/hypotf.m4: New file.
573         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
575         REPLACE_HYPOTF.
576         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
577         REPLACE_HYPOTF.
578         * modules/hypotf: New file.
579         * tests/test-math-c++.cc: Check the hypotf declaration.
580         * doc/posix-functions/hypotf.texi: Mention the new module.
581
582         hypot: Prepare for hypotf module.
583         * m4/hypot.m4: New file.
584         * modules/hypot (Files): Add m4/hypot.m4.
585         (configure.ac): Invoke gl_FUNC_HYPOT.
586
587 2012-02-29  Bruno Haible  <bruno@clisp.org>
588
589         hypot tests: More tests.
590         * tests/test-hypot.c: Include <float.h>.
591         (main): Add tests about overflow and underflow.
592
593 2012-02-29  Bruno Haible  <bruno@clisp.org>
594
595         math code: Add comments.
596         * lib/acosl.c: Add comment about related glibc source files.
597         * lib/asinl.c: Likewise.
598         * lib/atanl.c: Likewise.
599         * lib/expl.c: Likewise.
600         * lib/logl.c: Likewise.
601         * lib/sincosl.c: Likewise.
602         * lib/sinl.c: Likewise.
603         * lib/tanl.c: Likewise.
604         * lib/trigl.c: Likewise.
605         * lib/cosl.c: Likewise. Fix comments.
606
607 2012-02-28  Bruno Haible  <bruno@clisp.org>
608
609         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
610         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
611         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
612         HUGE_VALL are defined.
613         (numeric_equald): Renamed from numeric_equal.
614         (numeric_equalf, numeric_equall): New functions.
615         (main): Check also HUGE_VALF, HUGE_VALL.
616         * modules/math-tests (Files): Add tests/macros.h.
617         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
618         HUGE_VALL.
619
620 2012-02-28  Bruno Haible  <bruno@clisp.org>
621
622         doc: Move ISO C11 feature notes into POSIX chapters.
623         * doc/posix-functions/aligned_alloc.texi: Renamed from
624         doc/glibc-functions/aligned_alloc.texi.
625         * doc/posix-functions/quick_exit.texi: Renamed from
626         doc/glibc-functions/quick_exit.texi.
627         * doc/posix-headers/uchar.texi: Renamed from
628         doc/glibc-headers/uchar.texi.
629         * doc/posix-functions/c16rtomb.texi: Renamed from
630         doc/glibc-functions/c16rtomb.texi.
631         * doc/posix-functions/c32rtomb.texi: Renamed from
632         doc/glibc-functions/c32rtomb.texi.
633         * doc/posix-functions/mbrtoc16.texi: Renamed from
634         doc/glibc-functions/mbrtoc16.texi.
635         * doc/posix-functions/mbrtoc32.texi: Renamed from
636         doc/glibc-functions/mbrtoc32.texi.
637         * doc/gnulib.texi: Update.
638         (Glibc uchar.h): Remove section.
639         Suggested by Eric Blake.
640
641 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
642
643         stdnoreturn: port to MSVC better
644         MSVC standard headers use __declspec(noreturn), so #define noreturn
645         to empty on that platform.  Reported by Bruno Haible in
646         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
647         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
648         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
649
650 2012-02-28  Bruno Haible  <bruno@clisp.org>
651
652         doc: Mention new glibc headers and functions.
653         * doc/glibc-headers/uchar.texi: New file.
654         * doc/glibc-functions/aligned_alloc.texi: New file.
655         * doc/glibc-functions/c16rtomb.texi: New file.
656         * doc/glibc-functions/c32rtomb.texi: New file.
657         * doc/glibc-functions/clock_adjtime.texi: New file.
658         * doc/glibc-functions/fanotify_init.texi: New file.
659         * doc/glibc-functions/fanotify_mark.texi: New file.
660         * doc/glibc-functions/inet6_opt_append.texi: New file.
661         * doc/glibc-functions/inet6_opt_find.texi: New file.
662         * doc/glibc-functions/inet6_opt_finish.texi: New file.
663         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
664         * doc/glibc-functions/inet6_opt_init.texi: New file.
665         * doc/glibc-functions/inet6_opt_next.texi: New file.
666         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
667         * doc/glibc-functions/inet6_rth_add.texi: New file.
668         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
669         * doc/glibc-functions/inet6_rth_init.texi: New file.
670         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
671         * doc/glibc-functions/inet6_rth_segments.texi: New file.
672         * doc/glibc-functions/inet6_rth_space.texi: New file.
673         * doc/glibc-functions/login.texi: New file.
674         * doc/glibc-functions/mbrtoc16.texi: New file.
675         * doc/glibc-functions/mbrtoc32.texi: New file.
676         * doc/glibc-functions/name_to_handle_at.texi: New file.
677         * doc/glibc-functions/ntp_gettimex.texi: New file.
678         * doc/glibc-functions/open_by_handle_at.texi: New file.
679         * doc/glibc-functions/prlimit.texi: New file.
680         * doc/glibc-functions/process_vm_readv.texi: New file.
681         * doc/glibc-functions/process_vm_writev.texi: New file.
682         * doc/glibc-functions/recvmmsg.texi: New file.
683         * doc/glibc-functions/scandirat.texi: New file.
684         * doc/glibc-functions/sendmmsg.texi: New file.
685         * doc/glibc-functions/setns.texi: New file.
686         * doc/glibc-functions/timespec_get.texi: New file.
687         * doc/gnulib.texi: Include them.
688         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
689         sections.
690         Reported by Eric Blake.
691
692 2012-02-28  Bruno Haible  <bruno@clisp.org>
693
694         Avoid compilation errors with MSVC option -fp:strict.
695         * lib/floor.c: Use MSVC specific pragma fenv_access.
696         * lib/ceil.c: Likewise.
697         * lib/trunc.c: Likewise.
698         * lib/round.c: Likewise.
699         * lib/rint.c: Likewise.
700         * lib/fma.c: Likewise.
701         * lib/integer_length.c: Likewise.
702         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
703         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
704         * tests/test-floor2.c: Likewise.
705         * tests/test-floorf2.c: Likewise.
706         * tests/test-ceil2.c: Likewise.
707         * tests/test-ceilf2.c: Likewise.
708         * tests/test-trunc2.c: Likewise.
709         * tests/test-truncf2.c: Likewise.
710         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
711
712 2012-02-27  Bruno Haible  <bruno@clisp.org>
713
714         Tests for module 'sqrtl-ieee'.
715         * modules/sqrtl-ieee-tests: New file.
716         * tests/test-sqrtl-ieee.c: New file.
717
718         New module 'sqrtl-ieee'.
719         * modules/sqrtl-ieee: New file.
720
721         Tests for module 'sqrt-ieee'.
722         * modules/sqrt-ieee-tests: New file.
723         * tests/test-sqrt-ieee.c: New file.
724
725         New module 'sqrt-ieee'.
726         * modules/sqrt-ieee: New file.
727
728         Tests for module 'sqrtf-ieee'.
729         * modules/sqrtf-ieee-tests: New file.
730         * tests/test-sqrtf-ieee.c: New file.
731         * tests/test-sqrt-ieee.h: New file.
732
733         New module 'sqrtf-ieee'.
734         * modules/sqrtf-ieee: New file.
735
736 2012-02-27  Bruno Haible  <bruno@clisp.org>
737
738         remainderl-ieee: Work around test failure on OSF/1.
739         * m4/remainderl-ieee.m4: New file.
740         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
741         present, test whether remainderl works with a zero second argument.
742         Replace it if not.
743         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
745         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
746         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
747         (Depends-on): Update conditions.
748         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
749         (Depends-on): Add remainder-ieee.
750         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
751         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
752         module.
753
754         remainderf-ieee: Work around test failure on OSF/1.
755         * m4/remainderf-ieee.m4: New file.
756         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
757         present, test whether remainderf works with a zero second argument.
758         Replace it if not.
759         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
761         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
762         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
763         (Depends-on): Update conditions.
764         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
765         (Depends-on): Add remainder-ieee.
766         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
767         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
768         module.
769
770         remainder-ieee: Work around test failure on OSF/1.
771         * m4/remainder-ieee.m4: New file.
772         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
773         present, test whether remainder works with a zero second argument.
774         Replace it if not.
775         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
777         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
778         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
779         (Depends-on): Update dependencies.
780         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
781         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
782         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
783
784         Tests for module 'remainderl-ieee'.
785         * modules/remainderl-ieee-tests: New file.
786         * tests/test-remainderl-ieee.c: New file.
787
788         New module 'remainderl-ieee'.
789         * modules/remainderl-ieee: New file.
790
791         Tests for module 'remainder-ieee'.
792         * modules/remainder-ieee-tests: New file.
793         * tests/test-remainder-ieee.c: New file.
794
795         New module 'remainder-ieee'.
796         * modules/remainder-ieee: New file.
797
798         Tests for module 'remainderf-ieee'.
799         * modules/remainderf-ieee-tests: New file.
800         * tests/test-remainderf-ieee.c: New file.
801         * tests/test-remainder-ieee.h: New file.
802
803         New module 'remainderf-ieee'.
804         * modules/remainderf-ieee: New file.
805
806 2012-02-27  Bruno Haible  <bruno@clisp.org>
807
808         modff, modfl: Fix configure syntax error.
809         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
810         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
811
812 2012-02-27  Bruno Haible  <bruno@clisp.org>
813
814         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
815         * m4/fmodl-ieee.m4: New file.
816         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
817         whether fmodl works with zero arguments. Replace it if not.
818         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
819         (Depends-on): Add fmod-ieee.
820         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
821         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
822
823         fmodf-ieee: Work around test failure on OSF/1.
824         * m4/fmodf-ieee.m4: New file.
825         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
826         whether fmodf works with zero arguments. Replace it if not.
827         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
829         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
830         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
831         (Depends-on): Update dependencies.
832         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
833         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
834         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
835
836         fmodf-ieee: Work around test failure on MSVC 9.
837         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
838         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
839
840         fmod-ieee: Work around test failures on OSF/1, mingw.
841         * m4/fmod-ieee.m4: New file.
842         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
843         whether fmod works with zero arguments. Replace it if not.
844         * lib/math.in.h (fmod): New declaration.
845         * lib/fmod.c: New file.
846         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
848         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
849         * modules/fmod (Files): Add lib/fmod.c.
850         (Depends-on): Add math, isinf, trunc, fma.
851         (configure.ac): Arrange to compile lib/fmod.c if needed.
852         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
853         m4/signbit.m4.
854         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
855         * tests/test-math-c++.cc: Check the declaration of fmod.
856         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
857
858         fmodl-ieee: Fix test failures.
859         * lib/fmodl.c (fmodl): Treat Inf specially.
860         * modules/fmodl (Depends-on): Add isinf.
861
862         Tests for module 'fmodl-ieee'.
863         * modules/fmodl-ieee-tests: New file.
864         * tests/test-fmodl-ieee.c: New file.
865
866         New module 'fmodl-ieee'.
867         * modules/fmodl-ieee: New file.
868
869         Tests for module 'fmod-ieee'.
870         * modules/fmod-ieee-tests: New file.
871         * tests/test-fmod-ieee.c: New file.
872
873         New module 'fmod-ieee'.
874         * modules/fmod-ieee: New file.
875
876         Tests for module 'fmodf-ieee'.
877         * modules/fmodf-ieee-tests: New file.
878         * tests/test-fmodf-ieee.c: New file.
879         * tests/test-fmod-ieee.h: New file.
880
881         New module 'fmodf-ieee'.
882         * modules/fmodf-ieee: New file.
883
884 2012-02-27  Bruno Haible  <bruno@clisp.org>
885
886         Tests for module 'rintl-ieee'.
887         * modules/rintl-ieee-tests: New file.
888         * tests/test-rintl-ieee.c: New file.
889
890         New module 'rintl-ieee'.
891         * modules/rintl-ieee: New file.
892
893         Tests for module 'rint-ieee'.
894         * modules/rint-ieee-tests: New file.
895         * tests/test-rint-ieee.c: New file.
896
897         New module 'rint-ieee'.
898         * modules/rint-ieee: New file.
899
900         Tests for module 'rintf-ieee'.
901         * modules/rintf-ieee-tests: New file.
902         * tests/test-rintf-ieee.c: New file.
903         * tests/test-rint-ieee.h: New file.
904
905         New module 'rintf-ieee'.
906         * modules/rintf-ieee: New file.
907
908 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
909
910         regex: re_search etc. should return -2 when memory exhausted
911         This bug was uncovered when testing 'grep'.  Without the fix,
912         re_search and friends return -1 when memory is exhausted, but -1
913         means no match, and this causes grep to falsely report no-match
914         instead of memory-exhaustion.  See
915         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
916         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
917         trouble; this can occur if re_search_internal ran out of memory.
918
919 2012-02-26  Bruno Haible  <bruno@clisp.org>
920
921         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
922         * m4/modfl-ieee.m4: New file.
923         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
924         whether modfl works with Inf. Replace it if not.
925         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
927         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
928         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
929         (Depends-on): Update dependencies.
930         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
931         m4/signbit.m4.
932         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
933         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
934
935         modfl-ieee: Fix dependencies.
936         * modules/modfl-ieee (Depends-on): Add modf-ieee.
937
938         modfl-ieee: Fix test failures.
939         * lib/modfl.c (modfl): Treat NaN and Inf specially.
940         * modules/modfl (Depends-on): Add isfinite, isinf.
941
942         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
943         * m4/modff-ieee.m4: New file.
944         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
945         whether modff works with NaN and Inf. Replace it if not.
946         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
948         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
949         * modules/modff (configure.ac): Consider REPLACE_MODFF.
950         (Depends-on): Update dependencies.
951         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
952         m4/signbit.m4.
953         (Depends-on): Add modf-ieee.
954         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
955         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
956
957         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
958         * m4/modf-ieee.m4: New file.
959         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
960         whether modf works with NaN and Inf. Replace it if not.
961         * lib/math.in.h (modf): New declaration.
962         * lib/modf.c: New file.
963         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
965         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
966         * modules/modf (Files): Add lib/modf.c.
967         (Depends-on): Add math, isfinite, trunc, isinf.
968         (configure.ac): Addrange to compile lib/modf.c if needed.
969         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
970         m4/signbit.m4.
971         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
972         * tests/test-math-c++.cc: Check the declaration of modf.
973         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
974
975         Tests for module 'modfl-ieee'.
976         * modules/modfl-ieee-tests: New file.
977         * tests/test-modfl-ieee.c: New file.
978
979         New module 'modfl-ieee'.
980         * modules/modfl-ieee: New file.
981
982         Tests for module 'modf-ieee'.
983         * modules/modf-ieee-tests: New file.
984         * tests/test-modf-ieee.c: New file.
985
986         New module 'modf-ieee'.
987         * modules/modf-ieee: New file.
988
989         Tests for module 'modff-ieee'.
990         * modules/modff-ieee-tests: New file.
991         * tests/test-modff-ieee.c: New file.
992         * tests/test-modf-ieee.h: New file.
993
994         New module 'modff-ieee'.
995         * modules/modff-ieee: New file.
996
997 2012-02-26  Bruno Haible  <bruno@clisp.org>
998
999         Tests for module 'fabsl-ieee'.
1000         * modules/fabsl-ieee-tests: New file.
1001         * tests/test-fabsl-ieee.c: New file.
1002
1003         New module 'fabsl-ieee'.
1004         * modules/fabsl-ieee: New file.
1005
1006         Tests for module 'fabs-ieee'.
1007         * modules/fabs-ieee-tests: New file.
1008         * tests/test-fabs-ieee.c: New file.
1009
1010         New module 'fabs-ieee'.
1011         * modules/fabs-ieee: New file.
1012
1013         Tests for module 'fabsf-ieee'.
1014         * modules/fabsf-ieee-tests: New file.
1015         * tests/test-fabsf-ieee.c: New file.
1016         * tests/test-fabs-ieee.h: New file.
1017
1018         New module 'fabsf-ieee'.
1019         * modules/fabsf-ieee: New file.
1020
1021 2012-02-26  Bruno Haible  <bruno@clisp.org>
1022
1023         Tests for module 'fmal-ieee'.
1024         * modules/fmal-ieee-tests: New file.
1025         * tests/test-fmal-ieee.c: New file.
1026
1027         New module 'fmal-ieee'.
1028         * modules/fmal-ieee: New file.
1029
1030         Tests for module 'fma-ieee'.
1031         * modules/fma-ieee-tests: New file.
1032         * tests/test-fma-ieee.c: New file.
1033
1034         New module 'fma-ieee'.
1035         * modules/fma-ieee: New file.
1036
1037         Tests for module 'fmaf-ieee'.
1038         * modules/fmaf-ieee-tests: New file.
1039         * tests/test-fmaf-ieee.c: New file.
1040         * tests/test-fma-ieee.h: New file.
1041
1042         New module 'fmaf-ieee'.
1043         * modules/fmaf-ieee: New file.
1044
1045 2012-02-26  Bruno Haible  <bruno@clisp.org>
1046
1047         Tests for module 'ldexpl-ieee'.
1048         * modules/ldexpl-ieee-tests: New file.
1049         * tests/test-ldexpl-ieee.c: New file.
1050
1051         New module 'ldexpl-ieee'.
1052         * modules/ldexpl-ieee: New file.
1053
1054         Tests for module 'ldexp-ieee'.
1055         * modules/ldexp-ieee-tests: New file.
1056         * tests/test-ldexp-ieee.c: New file.
1057
1058         New module 'ldexp-ieee'.
1059         * modules/ldexp-ieee: New file.
1060
1061         Tests for module 'ldexpf-ieee'.
1062         * modules/ldexpf-ieee-tests: New file.
1063         * tests/test-ldexpf-ieee.c: New file.
1064         * tests/test-ldexp-ieee.h: New file.
1065
1066         New module 'ldexpf-ieee'.
1067         * modules/ldexpf-ieee: New file.
1068
1069 2012-02-26  Bruno Haible  <bruno@clisp.org>
1070
1071         Refactor frexp*-ieee tests.
1072         * tests/test-frexp-ieee.h: New file.
1073         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
1074         (main): Just call test_function.
1075         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
1076         (main): Just call test_function.
1077         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
1078         (main): Just call test_function.
1079         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
1080         * modules/frexp-ieee-tests (Files): Likewise.
1081         * modules/frexpl-ieee-tests (Files): Likewise.
1082
1083         Tests for module 'frexpl-ieee'.
1084         * modules/frexpl-ieee-tests: New file.
1085         * tests/test-frexpl-ieee.c: New file.
1086
1087         New module 'frexpl-ieee'.
1088         * modules/frexpl-ieee: New file.
1089
1090         Tests for module 'frexp-ieee'.
1091         * modules/frexp-ieee-tests: New file.
1092         * tests/test-frexp-ieee.c: New file.
1093
1094         New module 'frexp-ieee'.
1095         * modules/frexp-ieee: New file.
1096
1097         Tests for module 'frexpf-ieee'.
1098         * modules/frexpf-ieee-tests: New file.
1099         * tests/test-frexpf-ieee.c: New file.
1100
1101         New module 'frexpf-ieee'.
1102         * modules/frexpf-ieee: New file.
1103
1104 2012-02-26  Bruno Haible  <bruno@clisp.org>
1105
1106         roundl-ieee tests: More tests.
1107         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1108         (main): Add tests for [MX] shaded specification in POSIX.
1109         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1110         (Depends-on): Add isnanl-nolibm.
1111
1112         round-ieee tests: More tests.
1113         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1114         (main): Add tests for [MX] shaded specification in POSIX.
1115         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1116         (Depends-on): Add isnand-nolibm.
1117
1118         roundf-ieee tests: More tests.
1119         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1120         (main): Add tests for [MX] shaded specification in POSIX.
1121         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1122         (Depends-on): Add isnanf-nolibm.
1123
1124         truncl-ieee tests: More tests.
1125         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1126         (main): Add tests for [MX] shaded specification in POSIX.
1127         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1128         (Depends-on): Add isnanl-nolibm.
1129
1130         trunc-ieee tests: More tests.
1131         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1132         (main): Add tests for [MX] shaded specification in POSIX.
1133         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1134         (Depends-on): Add isnand-nolibm.
1135
1136         truncf-ieee tests: More tests.
1137         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1138         (main): Add tests for [MX] shaded specification in POSIX.
1139         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1140         (Depends-on): Add isnanf-nolibm.
1141
1142         ceill-ieee tests: More tests.
1143         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1144         (main): Add tests for [MX] shaded specification in POSIX.
1145         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1146         (Depends-on): Add isnanl-nolibm.
1147
1148         ceil-ieee tests: More tests.
1149         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1150         (main): Add tests for [MX] shaded specification in POSIX.
1151         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1152         (Depends-on): Add isnand-nolibm.
1153
1154         ceilf-ieee tests: More tests.
1155         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1156         (main): Add tests for [MX] shaded specification in POSIX.
1157         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1158         (Depends-on): Add isnanf-nolibm.
1159
1160         floorl-ieee tests: More tests.
1161         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1162         (main): Add tests for [MX] shaded specification in POSIX.
1163         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1164         (Depends-on): Add isnanl-nolibm.
1165
1166         floor-ieee tests: More tests.
1167         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1168         (main): Add tests for [MX] shaded specification in POSIX.
1169         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1170         (Depends-on): Add isnand-nolibm.
1171
1172         floorf-ieee tests: More tests.
1173         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1174         (main): Add tests for [MX] shaded specification in POSIX.
1175         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1176         (Depends-on): Add isnanf-nolibm.
1177
1178 2012-02-26  Bruno Haible  <bruno@clisp.org>
1179
1180         fpieee: More comments.
1181         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
1182
1183 2012-02-25  Bruno Haible  <bruno@clisp.org>
1184
1185         Tests for module 'log10l'.
1186         * modules/log10l-tests: New file.
1187         * tests/test-log10l.c: New file.
1188         * tests/test-math-c++.cc: Check the declaration of log10l.
1189
1190         New module 'log10l'.
1191         * lib/math.in.h (log10l): New declaration.
1192         * lib/log10l.c: New file.
1193         * m4/log10l.m4: New file.
1194         * modules/log10l: New file.
1195         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
1196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
1197         HAVE_DECL_LOG10L.
1198         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
1199         HAVE_DECL_LOG10L.
1200         * doc/posix-functions/log10l.texi: Mention the new module.
1201
1202 2012-02-25  Bruno Haible  <bruno@clisp.org>
1203
1204         fmodl, remainder*: Avoid wrong results due to rounding errors.
1205         * lib/fmodl.c (fmodl): Correct the result if it is not within the
1206         expected bounds.
1207         * lib/remainderf.c (remainderf): Likewise.
1208         * lib/remainder.c (remainder): Likewise.
1209         * lib/remainderl.c (remainderl): Likewise.
1210
1211 2012-02-25  Bruno Haible  <bruno@clisp.org>
1212
1213         Tests for module 'remainderl'.
1214         * modules/remainderl-tests: New file.
1215         * tests/test-remainderl.c: New file.
1216         * tests/test-math-c++.cc: Check the declaration of remainderl.
1217
1218         New module 'remainderl'.
1219         * lib/math.in.h (remainderl): New declaration.
1220         * lib/remainderl.c: New file.
1221         * m4/remainderl.m4: New file.
1222         * modules/remainderl: New file.
1223         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
1224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
1225         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
1226         HAVE_REMAINDERL.
1227         * doc/posix-functions/remainderl.texi: Mention the new module.
1228
1229 2012-02-25  Bruno Haible  <bruno@clisp.org>
1230
1231         Tests for module 'remainderf'.
1232         * modules/remainderf-tests: New file.
1233         * tests/test-remainderf.c: New file.
1234         * tests/test-math-c++.cc: Check the declaration of remainderf.
1235
1236         New module 'remainderf'.
1237         * lib/math.in.h (remainderf): New declaration.
1238         * lib/remainderf.c: New file.
1239         * m4/remainderf.m4: New file.
1240         * modules/remainderf: New file.
1241         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
1242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
1243         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
1244         HAVE_REMAINDERF.
1245         * doc/posix-functions/remainderf.texi: Mention the new module.
1246
1247 2012-02-25  Bruno Haible  <bruno@clisp.org>
1248
1249         remainder: Support for MSVC.
1250         * lib/math.in.h (remainder): New declaration.
1251         * lib/remainder.c: New file.
1252         * m4/remainder.m4: New file.
1253         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
1254         (Depends-on): Add math, round, fma.
1255         (configure.ac): Use results of gl_FUNC_REMAINDER.
1256         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
1257         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
1258         HAVE_DECL_REMAINDER.
1259         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
1260         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
1261         * tests/test-math-c++.cc: Check the declaration of remainder.
1262         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
1263         problems are fixed.
1264
1265 2012-02-25  Bruno Haible  <bruno@clisp.org>
1266
1267         Tests for module 'fmodl'.
1268         * modules/fmodl-tests: New file.
1269         * tests/test-fmodl.c: New file.
1270         * tests/test-math-c++.cc: Check the declaration of fmodl.
1271
1272         New module 'fmodl'.
1273         * lib/math.in.h (fmodl): New declaration.
1274         * lib/fmodl.c: New file.
1275         * m4/fmodl.m4: New file.
1276         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
1277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
1278         REPLACE_FMODL.
1279         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
1280         REPLACE_FMODL.
1281         * modules/fmodl: New file.
1282         * doc/posix-functions/fmodl.texi: Mention the new module.
1283
1284 2012-02-25  Bruno Haible  <bruno@clisp.org>
1285
1286         Tests for module 'modfl'.
1287         * modules/modfl-tests: New file.
1288         * tests/test-modfl.c: New file.
1289         * tests/test-math-c++.cc: Check the declaration of modfl.
1290
1291         New module 'modfl'.
1292         * lib/math.in.h (modfl): New declaration.
1293         * lib/modfl.c: New file.
1294         * m4/modfl.m4: New file.
1295         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
1296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
1297         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
1298         * modules/modfl: New file.
1299         * doc/posix-functions/modfl.texi: Mention the new module.
1300
1301 2012-02-25  Bruno Haible  <bruno@clisp.org>
1302
1303         Tests for module 'fabsl'.
1304         * modules/fabsl-tests: New file.
1305         * tests/test-fabsl.c: New file.
1306         * tests/test-math-c++.cc: Check the declaration of fabsl.
1307
1308         New module 'fabsl'.
1309         * lib/math.in.h (fabsl): New declaration.
1310         * lib/fabsl.c: New file.
1311         * m4/fabsl.m4: New file.
1312         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
1313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
1314         REPLACE_FABSL.
1315         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
1316         REPLACE_FABSL.
1317         * modules/fabsl: New file.
1318         * doc/posix-functions/fabsl.texi: Mention the new module.
1319
1320 2012-02-25  Bruno Haible  <bruno@clisp.org>
1321
1322         fabs tests: More tests.
1323         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
1324         (zero): New variable.
1325         (main): Add tests for signed zero.
1326         * modules/fabs-tests (Files): Add tests/minus-zero.h.
1327
1328         fabsf tests: More tests.
1329         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
1330         (zero): New variable.
1331         (main): Add tests for signed zero.
1332         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
1333
1334 2012-02-24  Bruno Haible  <bruno@clisp.org>
1335
1336         atanl: Provide function definition on MSVC.
1337         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
1338         function pointer.
1339         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
1340
1341 2012-02-24  Bruno Haible  <bruno@clisp.org>
1342
1343         acosl: Provide function definition on MSVC.
1344         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
1345         function pointer.
1346         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
1347
1348 2012-02-24  Bruno Haible  <bruno@clisp.org>
1349
1350         asinl: Provide function definition on MSVC.
1351         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
1352         function pointer.
1353         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
1354
1355 2012-02-24  Bruno Haible  <bruno@clisp.org>
1356
1357         tanl: Provide function definition on MSVC.
1358         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
1359         function pointer.
1360         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
1361
1362 2012-02-24  Bruno Haible  <bruno@clisp.org>
1363
1364         cosl: Provide function definition on MSVC.
1365         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
1366         function pointer.
1367         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
1368
1369 2012-02-24  Bruno Haible  <bruno@clisp.org>
1370
1371         sinl: Provide function definition on MSVC.
1372         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
1373         function pointer.
1374         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
1375
1376 2012-02-24  Bruno Haible  <bruno@clisp.org>
1377
1378         logl: Provide function definition on MSVC.
1379         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
1380         function pointer.
1381         * lib/math.in.h (logl): Undefine if it does not exist as a function.
1382
1383 2012-02-24  Bruno Haible  <bruno@clisp.org>
1384
1385         expl: Provide function definition on MSVC.
1386         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
1387         function pointer.
1388         * lib/math.in.h (expl): Undefine if it does not exist as a function.
1389
1390 2012-02-24  Bruno Haible  <bruno@clisp.org>
1391
1392         sqrtl: Provide function definition on MSVC.
1393         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
1394         a function pointer.
1395         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
1396
1397 2012-02-24  Bruno Haible  <bruno@clisp.org>
1398
1399         ceill: Provide function definition on MSVC.
1400         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
1401         used as a function pointer.
1402         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
1403
1404 2012-02-24  Bruno Haible  <bruno@clisp.org>
1405
1406         floorl: Provide function definition on MSVC.
1407         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
1408         used as a function pointer.
1409         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
1410
1411 2012-02-24  Bruno Haible  <bruno@clisp.org>
1412
1413         ceilf: Provide function definition on MSVC.
1414         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
1415         used as a function pointer.
1416         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
1417
1418 2012-02-24  Bruno Haible  <bruno@clisp.org>
1419
1420         floorf: Provide function definition on MSVC.
1421         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
1422         used as a function pointer.
1423         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
1424
1425 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1426
1427         stdnoreturn: new module
1428         This implements a replacement for C11's <stdnoreturn.h>.
1429         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
1430         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
1431         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1432         * tests/test-stdnoreturn.c: New files.
1433
1434 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
1435
1436         regex: fix false multibyte matches in some regular expressions
1437         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
1438         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
1439         * lib/regex_internal.c (re_string_skip_chars):
1440         Fix miscomputation of remain_len that may cause incomplete
1441         multi-byte character and false match.
1442
1443 2012-02-24  Jim Meyering  <meyering@redhat.com>
1444
1445         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
1446         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
1447         uses with "==" *before* the call, e.g., 0 == strcmp (...)
1448         Remove now-unnecessary str''cmp obfuscation.
1449         Suggested by Akim Demaille.
1450
1451 2012-02-24  Bruno Haible  <bruno@clisp.org>
1452
1453         streq: Rename macro.
1454         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
1455         * NEWS: Mention the change.
1456         * lib/mbrtowc.c (mbrtowc): Update.
1457         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
1458         * lib/wcwidth.c (wcwidth): Update.
1459         Suggested by Akim Demaille and Jim Meyering.
1460
1461 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1462
1463         regex: fix typo in definition of MIN
1464         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
1465         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
1466
1467 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1468             Bruno Haible  <bruno@clisp.org>
1469
1470         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
1471         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
1472         entries into a stack-allocated buffer directly.
1473         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
1474
1475 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1476             Bruno Haible  <bruno@clisp.org>
1477
1478         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
1479
1480          - There were several instances of this pattern:
1481
1482              for (;;) {
1483                n = acl (f, GETACLCNT, 0, NULL);
1484                [ allocate an array A of size N ]
1485                if (acl (f, GETACL, n, a) == n)
1486                  break;
1487              }
1488
1489            This loop might never terminate if some other process is constantly
1490            manipulating the file's ACL.  The loop should be rewritten to
1491            terminate.
1492
1493          - The acl (... GETACLNT ...) call is merely an optimization; its value
1494            is merely a hint as to how big to make the array.  A better
1495            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
1496            and just guess a reasonably-big size, growing the size and trying
1497            again if it's not large enough.  This guarantees termination, and
1498            saves a system call.
1499
1500         * lib/acl-internal.h: Include <limits.h>.
1501         (MIN, SIZE_MAX): New macros.
1502         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
1503         a stack-allocated buffer, and use malloc if it does not fit. Don't
1504         use GETACLCNT.
1505         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
1506
1507 2012-02-19  Bruno Haible  <bruno@clisp.org>
1508
1509         acl: Fix endless loop on Solaris with vxfs.
1510         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
1511         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
1512         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
1513         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
1514         * tests/test-sameacls.c (main)[Solaris]: Likewise.
1515         Reported by Bill Jones in
1516         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
1517
1518 2012-02-19  Bruno Haible  <bruno@clisp.org>
1519
1520         acl: Fix copy-acl test failure on Solaris 11 2011-11.
1521         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
1522         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
1523         that this function returns 0 in some more cases.
1524
1525 2012-02-19  Bruno Haible  <bruno@clisp.org>
1526
1527         acl: Update doc references.
1528         * doc/acl-resources.txt: Update links to Solaris documentation.
1529
1530 2012-02-19  Bruno Haible  <bruno@clisp.org>
1531
1532         Fix test failure in many locales on Solaris 11.
1533         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
1534         'tr' arguments.
1535         * tests/test-pipe-filter-ii1.c (main): Likewise.
1536         * build-aux/bootstrap (check_versions): Run 'tr' command with range
1537         expressions in the C locale.
1538         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1539         * m4/host-os.m4 (gl_HOST_OS): Likewise.
1540
1541 2012-02-19  Bruno Haible  <bruno@clisp.org>
1542
1543         gnulib-tool: Improve usage message.
1544         * gnulib-tool (func_usage): Move doc of --help and --version to the
1545         section "Operation modes".
1546
1547 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
1548
1549         README-release: make it easier to execute commands
1550         * top/README-release: break commands out on to separate lines.
1551
1552 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
1553
1554         GNUmakefile: simplify detection of unconfigured trees
1555         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
1556         whether the tree make is being run from is already configured or
1557         not.  Related simplifications.
1558
1559 2012-02-13  Simon Josefsson  <simon@josefsson.org>
1560
1561         * gnulib-tool (func_usage): Document --help and --version.
1562
1563 2012-02-11  Jim Meyering  <meyering@redhat.com>
1564
1565         bootstrap: don't exit 0 upon gnulib-tool failure
1566         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
1567         its exit status, not 0.
1568
1569 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
1570
1571         README-release: various improvements
1572         * top/README-release: Give a command to push changes for the
1573         release.  Add "distcheck" to list of other pre-release checks.
1574         Fix instance of "make stable" which should be "make TYPE".
1575
1576 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1577
1578         maint: replace FSF snail-mail addresses with URLs
1579         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
1580         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
1581         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
1582         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
1583         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
1584         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
1585         * lib/check-version.c, lib/check-version.h, lib/config.charset:
1586         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
1587         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
1588         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
1589         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
1590         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
1591         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
1592         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
1593         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
1594         * lib/glthread/thread.c, lib/glthread/thread.h:
1595         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
1596         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
1597         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
1598         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
1599         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
1600         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
1601         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
1602         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
1603         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
1604         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
1605         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
1606         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
1607         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
1608         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
1609         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
1610         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
1611         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
1612         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
1613         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
1614         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
1615         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
1616         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
1617         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
1618         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
1619         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
1620         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
1621         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
1622         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
1623         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
1624         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
1625         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
1626         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
1627         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
1628         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
1629         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
1630         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
1631         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
1632         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
1633         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
1634         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
1635         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
1636         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
1637         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
1638         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
1639         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
1640         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
1641         * tests/test-poll.c, tests/test-quotearg-simple.c:
1642         * tests/test-quotearg.c, tests/test-quotearg.h:
1643         * tests/test-round-ieee.c, tests/test-round1.c:
1644         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
1645         * tests/test-roundl-ieee.c, tests/test-roundl.c:
1646         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
1647         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
1648         * tests/test-strerror.c, tests/test-strerror_r.c:
1649         * tests/test-strsignal.c, tests/test-strverscmp.c:
1650         * tests/test-xmemdup0.c:
1651         Replace FSF snail mail addresses with URLs, as per GNU coding
1652         standards.  See glibc bug
1653         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
1654
1655 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1656
1657         README-release: capitalize a word and split a line
1658         * top/README-release: Fix punctuation and spacing.
1659
1660 2012-02-08  Akim Demaille  <demaille@gostai.com>
1661
1662         fatal-signal: use C prototypes (with explicit void).
1663         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1664         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
1665
1666 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1667
1668         regex: spelling fix
1669         * lib/regexec.c: spelling fix
1670
1671         regex: rely on stdint.h for SIZE_MAX
1672         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
1673
1674 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1675
1676         regex: merge glibc changes
1677
1678         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
1679         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
1680         (init_word_char): Work even if bitset words are not exactly 32 or
1681         64 bits wide.  Don't assume there are no padding bits.
1682         * lib/regex.c [_LIBC]: Do not include <config.h>.
1683         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
1684         and -Wtype-limits.
1685         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
1686         needless disagreement with glibc.  All uses changed.  Define it to
1687         1 only if _GNU_SOURCE, to match glibc.
1688         (_REG_RM_NAME): Remove; no longer needed, since the names in
1689         question are now all protected by __USE_GNU.
1690         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
1691         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
1692         * lib/regex_internal.h (MIN): New macro.
1693
1694         2012-01-03 Ulrich Drepper <drepper@gmail.com>
1695         * lib/regcomp.c (init_word_char): Optimize regex a bit.
1696
1697         2011-12-30 Jakub Jelinek <jakub@redhat.com>
1698         * lib/regex_internal.c (re_string_fetch_byte_case):
1699         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
1700         is miscompiled, and it turns out it is because of an incorrect
1701         attribute on re_string_fetch_byte_case.  Unlike
1702         re_string_peek_byte_case, this one is really not pure, it modifies
1703         memory (increments pstr->cur_idx), and with the pure attribute GCC
1704         assumed it doesn't and it cached the presumed value of
1705         regexp->cur_idx in a variable across the
1706          for (;; ++i)
1707            {
1708              if (i >= BRACKET_NAME_BUF_SIZE)
1709                return REG_EBRACK;
1710              if (token->type == OP_OPEN_CHAR_CLASS)
1711                ch = re_string_fetch_byte_case (regexp);
1712              else
1713                ch = re_string_fetch_byte (regexp);
1714              if (re_string_eoi(regexp))
1715                return REG_EBRACK;
1716              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
1717                break;
1718              elem->opr.name[i] = ch;
1719            }
1720
1721         2011-11-29 Andreas Schwab <schwab@redhat.com>
1722         * lib/regcomp.c (build_equiv_class):
1723         Fix access after end of search string in regex matcher.
1724
1725         2011-11-12 Ulrich Drepper <drepper@redhat.com>
1726         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
1727
1728         2011-10-12 Ulrich Drepper <drepper@redhat.com>
1729         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
1730
1731         2011-10-11 Ulrich Drepper <drepper@redhat.com>
1732         * lib/regcomp.c (parse_branch, parse_sub_exp):
1733         More regex memory leak fixes and tests.
1734         (parse_sub_exp, parse_bracket_exp):
1735         Fix memory leak for some invalid regular expressions.
1736
1737         2011-05-28 Ulrich Drepper <drepper@gmail.com>
1738         * lib/regex_internal.c, lib/regexec.c:
1739         Fix unnecessary overallocation due to incomplete character.  When
1740         incomplete characters are found at the end of a string the code
1741         ran amok and allocated lots of memory.  Stricter limits are now in
1742         place.
1743
1744         2011-05-20 Reuben Thomas <rrt@sc3d.org>
1745         * lib/regex.h: Update documentation.
1746
1747         2011-05-16 Aharon Robbins <arnold@skeeve.com>
1748         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
1749
1750         2010-05-05 Andreas Schwab <schwab@redhat.com>
1751         * lib/regexec.c (find_collation_sequence_value):
1752         Fix lookup of collation sequence value during regexp matching.
1753
1754         2010-01-22 Ulrich Drepper <drepper@redhat.com>
1755         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
1756
1757         2008-01-16 Ulrich Drepper <drepper@redhat.com>
1758         * lib/regex.h: Cleanup namespace.
1759
1760         2007-11-26 Ulrich Drepper <drepper@redhat.com>
1761         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
1762
1763         2007-08-26 Ulrich Drepper <drepper@redhat.com>
1764         * lib/regex_internal.h: Prevent some declarations and definitions
1765         to be seen when used in tests.
1766
1767         2005-05-06 Ulrich Drepper <drepper@redhat.com>
1768         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
1769         __libc_lock_* macros if not _LIBC.
1770         (struct re_dfa_t): Add lock.
1771
1772 2012-02-07  Eric Blake  <eblake@redhat.com>
1773
1774         maint.mk: also prohibit lower-case @var@
1775         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
1776         lower case, like @top_srcdir@.
1777
1778 2012-02-04  Eric Blake  <eblake@redhat.com>
1779
1780         canonicalize: avoid uninitialized memory use
1781         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
1782         random '/' left in dest.
1783         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
1784
1785 2012-02-04  Bruno Haible  <bruno@clisp.org>
1786
1787         isatty: Fix test failure of ptsname_r on native Windows.
1788         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
1789         and don't set errno.
1790         (isatty): Test first whether fd is valid. Set errno when returning 0.
1791
1792 2012-02-04  Bruno Haible  <bruno@clisp.org>
1793
1794         spawn-pipe tests: Fix a NULL program name in a diagnostic.
1795         * tests/test-spawn-pipe-main.c: Include progname.h.
1796         (main): Invoke set_program_name.
1797         * modules/spawn-pipe-tests (Depends-on): Add progname.
1798
1799         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
1800         * tests/test-nonblocking-socket-main.c: Include progname.h.
1801         (main): Invoke set_program_name.
1802         * modules/nonblocking-socket-tests (Depends-on): Add progname.
1803
1804         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
1805         * tests/test-nonblocking-pipe-main.c: Include progname.h.
1806         (main): Invoke set_program_name.
1807         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
1808
1809 2012-02-04  Eric Blake  <eblake@redhat.com>
1810
1811         canonicalize-lgpl: fix // handling
1812         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
1813
1814         canonicalize: fix // handling
1815         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
1816         /// to //, since only // is special.
1817
1818 2012-02-04  Bruno Haible  <bruno@clisp.org>
1819
1820         ioctl: Fix test failure on native Windows.
1821         * lib/ioctl.c: Include msvc-nothrow.h.
1822         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
1823
1824 2012-02-04  Bruno Haible  <bruno@clisp.org>
1825
1826         fsync: Avoid test failure on native Windows.
1827         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
1828         read-only.
1829
1830 2012-02-04  Bruno Haible  <bruno@clisp.org>
1831
1832         sys_select: Avoid syntax error on OpenBSD 5.0.
1833         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
1834         currently being included, just include the system's <sys/select.h>.
1835
1836 2012-02-04  Bruno Haible  <bruno@clisp.org>
1837
1838         sys_select: Avoid syntax error on OpenBSD 5.0.
1839         * lib/sys_select.in.h: Include <signal.h> only after the include_next
1840         <sys/select.h>, not before.
1841         Reported by Jiri B <jirib@devio.us>.
1842
1843 2012-02-04  Bruno Haible  <bruno@clisp.org>
1844
1845         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
1846         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
1847         global variables.
1848         * tests/test-get-rusage-data.c (main): Likewise.
1849         Reported by Jim Meyering.
1850
1851 2012-02-04  Bruno Haible  <bruno@clisp.org>
1852
1853         stdioext: Fix last commit.
1854         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
1855
1856 2012-02-03  Bruno Haible  <bruno@clisp.org>
1857
1858         stdioext: Add tentative support for Plan9.
1859         * lib/stdio-impl.h: Include <errno.h>.
1860         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
1861         * lib/freadable.c (freadable): Likewise.
1862         * lib/fwritable.c (fwritable): Likewise.
1863         * lib/fbufmode.c (fbufmode): Likewise.
1864         * lib/freading.c (freading): Likewise.
1865         * lib/fwriting.c (fwriting): Likewise.
1866         * lib/freadptr.c (freadptr): Likewise.
1867         * lib/freadseek.c (freadptrinc): Likewise.
1868         * lib/freadahead.c (freadahead): Likewise.
1869         * lib/fpurge.c (fpurge): Likewise.
1870         * lib/fseeko.c (rpl_fseeko): Likewise.
1871         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
1872         Reported by Jens Staal <staal1978@gmail.com>.
1873
1874 2012-02-02  Jim Meyering  <meyering@redhat.com>
1875
1876         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
1877         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
1878         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
1879         not even to try to add the attribute.  Instead, add a pragma to suppress
1880         the suggestion/warning.
1881
1882 2012-01-31  Karl Berry  <karl@gnu.org>
1883
1884         setstate doc: typo.
1885         * doc/posix-functions/setstate.texi (setstate): { not (.
1886
1887 2012-01-31  Bruno Haible  <bruno@clisp.org>
1888
1889         popen: Make more robust on Windows.
1890         * lib/popen.c: On native Windows, use the _popen based code even if
1891         HAVE_POPEN is set.
1892         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
1893         environment variable on native Windows.
1894
1895 2012-01-30  Bruno Haible  <bruno@clisp.org>
1896
1897         pclose: Fix typo.
1898         * lib/stdio.in.h (pclose): Fix typo in warning message.
1899
1900 2012-01-30  Bruno Haible  <bruno@clisp.org>
1901
1902         doc about getlogin_r, setstate.
1903         * doc/posix-functions/getlogin_r.texi: List the incompatible
1904         declaration problem under "not fixed by gnulib".
1905         * doc/posix-functions/setstate.texi: Mention incompatible declaration
1906         problem on Solaris 11 and other platforms.
1907
1908 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
1909             Bruno Haible  <bruno@clisp.org>
1910
1911         poll tests: Make test more robust.
1912         * tests/test-poll.c: Include macros.h.
1913         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
1914         return value of various I/O operations.
1915         * modules/poll-tests (Files): Add tests/macros.h.
1916
1917 2012-01-30  Bruno Haible  <bruno@clisp.org>
1918
1919         sys_stat: Fix support for mingw64 and MSVC.
1920         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
1921         header files already do it.
1922         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
1923         stat itself.
1924         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1925
1926 2012-01-30  Bruno Haible  <bruno@clisp.org>
1927
1928         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
1929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
1930         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
1931
1932 2012-01-29  Bruno Haible  <bruno@clisp.org>
1933
1934         quotearg: Fix test failure on MacOS X 10.5.
1935         * tests/test-quotearg-simple.c: Include localcharset.h.
1936         (main): If the locale encoding is not ASCII, bypass the tests of
1937         locale_quoting_style and clocale_quoting_style.
1938         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
1939
1940 2012-01-29  Jim Meyering  <meyering@redhat.com>
1941
1942         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
1943         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
1944         detect uses of canonicalize_file_name.
1945
1946 2012-01-28  Bruno Haible  <bruno@clisp.org>
1947
1948         test-framework-sh: Fix test failure with AIX 7.1 diff.
1949         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
1950         in column 1, like 'diff -c' does.
1951         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
1952         whether 'diff -u' is used. Instead, test whether the output contains
1953         some '@' character.
1954
1955 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
1956
1957         strtoimax: eliminate need for stdint.h, inttypes.h checks
1958         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
1959         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
1960         the prerequisites for a recently-introduced strtoimax test.
1961         I guess this might cause strtoimax to be replaced when not
1962         strictly necessary on older hosts, but this shouldn't introduce
1963         any bugs and it should make Emacs 'configure' faster on typical
1964         modern hosts.  Problem discovered when importing the latest gnulib
1965         to an Emacs test version.
1966         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
1967
1968 2012-01-28  Bruno Haible  <bruno@clisp.org>
1969
1970         sys_time: Override 'struct timeval' on some native Windows platforms.
1971         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
1972         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
1973         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
1974         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
1975         needs to be overridden.
1976         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
1977         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
1978         * tests/test-sys_select.c: Check that the tv_sec member has the same
1979         size as a 'time_t'.
1980         * tests/test-sys_time.c: Likewise.
1981         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
1982         is set, set also REPLACE_GETTIMEOFDAY.
1983         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
1984         convert the resulting 'struct timeval' before returning.
1985         * lib/select.c: Include <sys/time.h>.
1986         (select, timeval): Undefine at the right place.
1987         * modules/select (Depends-on): Add sys_time.
1988         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
1989         some Windows platforms.
1990         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
1991
1992 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1993
1994         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
1995         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
1996         an integer.
1997         * lib/fcntl.c (dupfd): Likewise.
1998         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
1999
2000 2012-01-28  Bruno Haible  <bruno@clisp.org>
2001
2002         fcntl: Avoid compilation error on native Windows.
2003         * modules/fcntl (Depends-on): Add 'close'.
2004
2005 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2006
2007         select, poll, isatty: Avoid warnings on x86_64 mingw64.
2008         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
2009         pointer to an integer.
2010         * lib/poll.c (IsConsoleHandle): Likewise.
2011         * lib/isatty.c (IsConsoleHandle): Likewise.
2012
2013 2012-01-28  Jim Meyering  <meyering@redhat.com>
2014
2015         doc: clarify README-release
2016         * top/README-release: Clarify: you should make a point to have
2017         the latest stable versions of build tools in your PATH, and the
2018         reference to buildreq is solely for its list of tool names, not
2019         for its minimal-functional version numbers.
2020         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
2021
2022         maint.mk: use more readable (yet functionally equivalent) quoting
2023         It is common to quote a single quote in a single quoted string like
2024         this:  '...'\''...'.  Unless you know the idiom, that looks like
2025         gibberish, so prefer to double-quote the string when possible.
2026         Then you can use a more readable, lone single quote: "...'..."
2027         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
2028         "don't" is more readable than the equivalent 'don'\''t'.
2029         (sc_cast_of_x_alloc_return_value): Likewise.
2030         (sc_cast_of_alloca_return_value): Likewise.
2031         (sc_makefile_path_separator_check): Similar: use ":" in '...',
2032         rather than '\'':'\''.
2033
2034 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2035
2036         stdalign: relax _Alignof and tighten _Alignas test
2037         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
2038         as it was too strict: alignof must divide offsetof, but it need
2039         not equal offsetof.  Inspired by Joseph S. Myers's comment
2040         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
2041         Conversely, tighten the _Alignas test a bit, as the resulting
2042         alignment must be exactly 8.
2043
2044 2012-01-27  Bruno Haible  <bruno@clisp.org>
2045
2046         stdalign: Document the last change.
2047         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
2048
2049 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2050
2051         stdalign: check that alignof and offsetof are consistent
2052         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
2053         Problem reported for gnulib by Richard W.M. Jones in
2054         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
2055
2056 2012-01-27  Jim Meyering  <meyering@redhat.com>
2057
2058         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
2059         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
2060         convert a sequence with gaps to the minimal containing range.
2061         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
2062         * tests/test-update-copyright.sh: Test for this.
2063         The FSF confirmed it is ok to do this, assuming there is at
2064         least one significant change per year in the affected range:
2065         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
2066
2067 2012-01-26  Bruno Haible  <bruno@clisp.org>
2068
2069         pipe2: refine doc about thread-safety
2070         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
2071         multithread-safety problem.
2072         * doc/glibc-functions/accept4.texi: Likewise.
2073
2074 2012-01-26  Bruno Haible  <bruno@clisp.org>
2075
2076         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
2077         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
2078         In the test program, include <fcntl.h>, for O_RDONLY.
2079
2080 2012-01-26  Eric Blake  <eblake@redhat.com>
2081
2082         pipe2: document lack of thread-safety in replacement
2083         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
2084         issue in replacement.
2085         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2086         Based on a report by Eric Wong.
2087
2088 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2089             Bruno Haible  <bruno@clisp.org>
2090
2091         malloca: Avoid warnings on x86_64 mingw64.
2092         * lib/malloca.c: Include <stdint.h>.
2093         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
2094         * modules/malloca (Depends-on): Add stdint.
2095         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
2096
2097 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2098
2099         obstack: remove __STDC__ conditionals
2100         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
2101         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
2102         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
2103         m4/include_next.m4 as the only gnulib-maintained places that still
2104         refer to __STDC__.
2105
2106 2012-01-24  Bruno Haible  <bruno@clisp.org>
2107
2108         havelib: Modern quoting.
2109         * build-aux/config.rpath: Quote 'like this', not `like this', as per
2110         the recent change to the GNU coding standards.
2111
2112 2012-01-24  Bruno Haible  <bruno@clisp.org>
2113
2114         stdint: Improve support for Android.
2115         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
2116         Reported by Simon Josefsson <simon@josefsson.org>.
2117
2118 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2119
2120         doc: omit trailing empty lines from INSTALL etc.
2121         * doc/Makefile (INSTALL): Omit trailing empty lines.
2122         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
2123         omit trailing empty lines.  This simplifies the build procedure.
2124
2125 2012-01-23  Jim Meyering  <meyering@redhat.com>
2126
2127         tests: avoid spurious warnings about gl_sockets_startup
2128         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
2129         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
2130         reporting a "statement with no effect".
2131         * tests/test-accept.c (main): Mark as "(void)".
2132         * tests/test-accept4.c (main): Likewise.
2133         * tests/test-bind.c (main): Likewise.
2134         * tests/test-connect.c (main): Likewise.
2135         * tests/test-getpeername.c (main): Likewise.
2136         * tests/test-getsockname.c (main): Likewise.
2137         * tests/test-getsockopt.c (main): Likewise.
2138         * tests/test-listen.c (main): Likewise.
2139         * tests/test-recv.c (main): Likewise.
2140         * tests/test-recvfrom.c (main): Likewise.
2141         * tests/test-send.c (main): Likewise.
2142         * tests/test-sendto.c (main): Likewise.
2143         * tests/test-setsockopt.c (main): Likewise.
2144         * tests/test-shutdown.c (main): Likewise.
2145
2146 2012-01-21  Bruno Haible  <bruno@clisp.org>
2147
2148         locale-fr.m4: Fix for Android.
2149         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
2150         failure of the test program on Bionic libc.
2151
2152 2012-01-21  Jim Meyering  <meyering@redhat.com>
2153
2154         bootstrap: fail when bootstrap_post_import_hook fails
2155         Otherwise, it's far too easy to miss diagnostics emitted
2156         between gnulib-tool's output and that of running configure.
2157         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
2158
2159 2012-01-17  Jim Meyering  <meyering@redhat.com>
2160
2161         maint: enable sc_trailing_blank
2162         * build-aux/pmccabe.css: Remove trailing blanks.
2163         * doc/acl-cygwin.txt: Likewise.
2164         * doc/gnu-oids.texi: Likewise
2165         * cfg.mk: Enable sc_trailing_blank.
2166         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
2167
2168 2012-01-17  Jim Meyering  <meyering@redhat.com>
2169
2170         maint: enable sc_prohibit_openat_without_use
2171         * cfg.mk: Enable sc_prohibit_openat_without_use.
2172         Exempt lib/selinux-at.c.
2173
2174 2012-01-17  Jim Meyering  <meyering@redhat.com>
2175
2176         maint: enable sc_prohibit_cloexec_without_use
2177         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
2178         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
2179
2180 2012-01-17  Jim Meyering  <meyering@redhat.com>
2181
2182         maint: enable sc_prohibit_intprops_without_use
2183         * cfg.mk: Enable sc_prohibit_intprops_without_use
2184         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
2185
2186 2012-01-17  Jim Meyering  <meyering@redhat.com>
2187
2188         maint: enable sc_prohibit_hash_pjw_without_use
2189         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
2190         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
2191         to match any use of \<hash_pjw\>, i.e., not necessarily with a
2192         following " (".
2193
2194 2012-01-17  Jim Meyering  <meyering@redhat.com>
2195
2196         maint: enable double-word-prohibiting rule
2197         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
2198         Exempt three files.
2199
2200 2012-01-17  Jim Meyering  <meyering@redhat.com>
2201
2202         maint: remove empty lines at EOF, but excluding modules/*
2203         Apply syntax rules at home as well as abroad.  Most changes
2204         were induced by running this:
2205           make srcdir=. _build-aux=build-aux -f top/maint.mk \
2206             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
2207             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
2208         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
2209         Exempt modules/* and two binary files.
2210         Also exempt doc/INSTALL*, per request from Bruno Haible.
2211         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
2212         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
2213         * doc/Copyright/request-assign.future: Likewise.
2214         * doc/Copyright/request-disclaim.changes: Likewise.
2215         * doc/INSTALL: Likewise.
2216         * doc/INSTALL.ISO: Likewise.
2217         * doc/INSTALL.UTF-8: Likewise.
2218         * doc/acl-cygwin.txt: Likewise.
2219         * doc/acl-resources.txt: Likewise.
2220         * doc/fdl-1.2.texi: Likewise.
2221         * doc/fdl-1.3.texi: Likewise.
2222         * doc/fdl.texi: Likewise.
2223         * lib/argp-pin.c: Likewise.
2224         * lib/round.c: Likewise.
2225         * lib/unicase/u16-totitle.c: Likewise.
2226         * lib/unictype/block_test.c: Likewise.
2227         * lib/uninorm/canonical-decomposition.c: Likewise.
2228         * m4/README: Likewise.
2229         * m4/relocatable-lib.m4: Likewise.
2230         * tests/test-isnand-nolibm.c: Likewise.
2231         * tests/test-isnand.c: Likewise.
2232         * tests/uninorm/NormalizationTest.txt: Likewise.
2233
2234 2012-01-17  Jim Meyering  <meyering@redhat.com>
2235
2236         maint: add framework to run syntax-check rules against gnulib sources
2237         * cfg.mk: New file, to disable all currently-failing tests.
2238         We'll enable them one by one, as they are made to pass.
2239         * Makefile (sc_maint): New rule.
2240
2241 2012-01-21  Bruno Haible  <bruno@clisp.org>
2242
2243         stdint: Add support for Android.
2244         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
2245         include the system's <stdint.h>.
2246         Reported by Simon Josefsson <simon@josefsson.org>.
2247
2248 2012-01-19  Jim Meyering  <meyering@redhat.com>
2249
2250         bootstrap: add bootstrap_post_import_hook
2251         Bison does still need something like the gnulib_mk_hook whose
2252         invocation I had to remove along with slurp in commit 767ccd40.
2253         Technically, we could get along without it, but doing so would
2254         have required living with a warning and a mandatory post-bootstrap
2255         automake rerun.
2256         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
2257         (bootstrap_post_import_hook): New function.
2258         Invoke it after gnulib-tool --import and before autoreconf.
2259
2260 2012-01-18  Jim Meyering  <meyering@redhat.com>
2261
2262         gitlog-to-changelog: don't use "no_"-prefixed variable name
2263         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
2264         to enable both --cluster and --no-cluster.  Change variable name,
2265         s/\$no_cluster/$cluster/, and reverse usage to match.
2266
2267         gitlog-to-changelog: use "||", not "or" in expressions
2268         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
2269         expressions.
2270
2271 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
2272
2273         gitlog-to-changelog: new option --no-cluster
2274         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
2275         clustering of adjacent commit messages.
2276
2277 2012-01-17  Jim Meyering  <meyering@redhat.com>
2278
2279         maint: spell file systems with two words, not one
2280         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
2281         two words, not one.
2282
2283 2012-01-16  Jim Meyering  <meyering@redhat.com>
2284
2285         bootstrap: add a FIXME comment to ensure we eventually remove the hack
2286         * build-aux/bootstrap (gnulib_tool_options): Add comment.
2287
2288 2012-01-16  Eric Blake  <eblake@redhat.com>
2289
2290         bootstrap: cater to autoconf 2.59
2291         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
2292         is not available.
2293
2294         bootstrap: properly check for libtool
2295         * build-aux/bootstrap (libtoolize): Also run libtool when older
2296         usage is detected.
2297
2298 2012-01-15  Bruno Haible  <bruno@clisp.org>
2299
2300         Improve support for MSVC 9.
2301         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
2302         clashes on MSVC.
2303         * lib/fcntl.in.h: Likewise.
2304         * lib/stdlib.in.h: Likewise.
2305         * lib/sys_stat.in.h: Likewise.
2306
2307 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2308
2309         gnupload: we hold the master copy of this script now
2310         For motivation and more information, see:
2311         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
2312         * build-aux/gnupload: Make it clear in the heading comments that the
2313         master copy of this file is maintained by gnulib.  Since we are at
2314         it, bump its copyright year and ...
2315         ($scriptversion): ... the date in its version.
2316         ($usage): Patches and bug reports should be sent to the gnulib list,
2317         not the automake one.
2318         * config/srclist.txt: Don't try to sync 'gnupload' from automake
2319         anymore.
2320
2321 2012-01-15  Bruno Haible  <bruno@clisp.org>
2322
2323         Fix module 'random'.
2324         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
2325         initstate, setstate are declared.
2326
2327 2012-01-14  Bruno Haible  <bruno@clisp.org>
2328
2329         Tests for module 'random'.
2330         * modules/random-tests: New file.
2331         * tests/test-random.c: New file, based on tests/test-random_r.c.
2332
2333         New module 'random'.
2334         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
2335         declarations.
2336         * lib/random.c: New file, based on glibc/stdlib/random.c.
2337         * m4/random.m4: New file.
2338         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
2339         HAVE_RANDOM.
2340         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
2341         * modules/random: New file.
2342         * config/srclist.txt: Add an entry for random.c.
2343         * doc/posix-functions/random.texi: Mention the 'random' module.
2344         * doc/posix-functions/initstate.texi: Likewise.
2345         * doc/posix-functions/setstate.texi: Likewise.
2346         * doc/posix-functions/srandom.texi: Likewise.
2347
2348 2012-01-12  Bruno Haible  <bruno@clisp.org>
2349
2350         random_r: Use common idioms.
2351         * lib/random_r.c: Include <stdlib.h> first.
2352
2353         random_r: Override incompatible API on AIX, OSF/1.
2354         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
2355         Override the system function if REPLACE_RANDOM_R is 1.
2356         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
2357         and OSF/1, set REPLACE_RANDOM_R.
2358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
2359         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
2360         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
2361         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
2362         * doc/glibc-functions/random_r.texi: Likewise.
2363         * doc/glibc-functions/setstate_r.texi: Likewise.
2364
2365         random_r: Support for MSVC 9.
2366         * lib/random_r.c: Include stdint.h, not inttypes.h.
2367
2368 2012-01-12  Eric Blake  <eblake@redhat.com>
2369
2370         inet_ntop: guard extra work by IF_LINT
2371         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
2372         better code generation when not checking for warnings.
2373         Suggested by Paul Eggert and Jim Meyering.
2374
2375         strptime: fix regression on mingw
2376         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
2377         Fix regression.  Reported by Bruno Haible.
2378
2379 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
2380             Bruno Haible  <bruno@clisp.org>
2381
2382         copy-file: add error-code-returning variant.
2383         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
2384         (qcopy_file_preserving): New declaration.
2385         * lib/copy-file.c (qcopy_file_preserving): Renamed from
2386         copy_file_preserving. Change return type to 'int'. Don't emit an error
2387         message here.
2388         (copy_file_preserving): New function.
2389         * tests/test-copy-file.c: Include <stdlib.h>.
2390         (main): Test qcopy_file_preserving if the environment variable
2391         NO_STDERR_OUTPUT is set.
2392         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
2393         with NO_STDERR_OUTPUT
2394         * tests/test-copy-file-2.sh: Likewise.
2395
2396 2012-01-10  Bruno Haible  <bruno@clisp.org>
2397
2398         copy-file: Use 'quote' module consistently.
2399         * lib/copy-file.c (copy_file_preserving): Use quote().
2400
2401         copy-file: Refactor.
2402         * lib/copy-file.c: Include quote.h.
2403         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
2404         message here.
2405         * modules/copy-file (Depends-on): Add quote.
2406
2407         acl: Export qcopy_acl.
2408         * lib/acl.h (qcopy_acl): New declaration.
2409         * lib/copy-acl.c (qcopy_acl): Make non-static.
2410
2411         acl: Rename a local variable.
2412         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
2413
2414         acl: Align return values of copy_acl and qcopy_acl.
2415         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
2416         maybe < -1.
2417
2418 2012-01-11  Eric Blake  <eblake@redhat.com>
2419
2420         strptime: silence gcc warnings
2421         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
2422         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
2423         Reported by Daniel P. Berrange.
2424
2425         inet_ntop: silence gcc warning
2426         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
2427         Reported by Daniel P. Berrange.
2428
2429 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
2430
2431         getloadavg test: skip the test on GNU/Linux without /proc mounted
2432         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
2433         file.  When /proc is not mounted, it always fails with ENOENT.
2434         * tests/test-getloadavg.c (main): Treat ENOENT return code from
2435         getloadavg(3) the same way as ENOSYS and ENOTSUP.
2436
2437 2012-01-10  Bruno Haible  <bruno@clisp.org>
2438
2439         regex: Avoid link error on MSVC 9.
2440         * modules/regex (Depends-on): Add wctype.
2441
2442 2012-01-10  Bruno Haible  <bruno@clisp.org>
2443
2444         doc: Mention --with-tests option.
2445         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
2446         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
2447         --with-tests.
2448         Reported by Reuben Thomas.
2449
2450 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
2451
2452         users.txt: order package names lexicographically.
2453         * users.txt: Order package names lexicographically.
2454
2455 2012-01-10  Jim Meyering  <meyering@redhat.com>
2456
2457         maint.mk: fix description in comment
2458         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
2459
2460         ignore-value: remove deprecated ignore_ptr function
2461         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
2462         * NEWS: Note this.
2463
2464 2012-01-09  Jim Meyering  <meyering@redhat.com>
2465
2466         test-init.sh: avoid a subshell
2467         * tests/test-init.sh: Remove protective subshell.
2468         Suggested by Bernhard Voelker.  While a subshell is normally
2469         required to protect against older shells (Solaris, FreeBSD) that
2470         warn about a missing program before performing redirection, the
2471         shell-selection tests performed by init.sh probably exclude any
2472         offending shell.
2473
2474 2012-01-08  Bruno Haible  <bruno@clisp.org>
2475
2476         setlocale tests: Avoid test failure on Solaris 11 2011-11.
2477         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
2478         variable.
2479
2480 2012-01-08  Bruno Haible  <bruno@clisp.org>
2481
2482         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
2483         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2484         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
2485         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
2486         macro.
2487         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
2488         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
2489         * lib/spawn_faction_addopen.c: Add workaround implementation if
2490         HAVE_WORKING_POSIX_SPAWN.
2491         * modules/spawn (Makefile): Substitute
2492         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
2493         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
2494         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
2495         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
2496         (Depends-on): Update conditions.
2497         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2498         the Solaris 11 bug.
2499
2500 2012-01-08  Bruno Haible  <bruno@clisp.org>
2501
2502         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
2503         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2504         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
2505         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
2506         macro.
2507         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
2508         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
2509         * lib/spawn_faction_adddup2.c: Add workaround implementation if
2510         HAVE_WORKING_POSIX_SPAWN.
2511         * modules/spawn (Makefile): Substitute
2512         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
2513         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
2514         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
2515         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
2516         (Depends-on): Update conditions.
2517         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2518         the Solaris 11 bug.
2519
2520 2012-01-08  Bruno Haible  <bruno@clisp.org>
2521
2522         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
2523         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
2524         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
2525         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
2526         HAVE_WORKING_POSIX_SPAWN.
2527         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
2528         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
2529         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
2530         * lib/spawn_faction_addclose.c: Add workaround implementation if
2531         HAVE_WORKING_POSIX_SPAWN.
2532         * modules/spawn (Makefile): Substitute
2533         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
2534         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
2535         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
2536         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
2537         (Depends-on): Update conditions.
2538         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2539         the Solaris 11 bug.
2540
2541 2012-01-08  Bruno Haible  <bruno@clisp.org>
2542
2543         doc: Update for Solaris 11 2011-11.
2544         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
2545         * m4/printf.m4: Update comments.
2546
2547 2012-01-08  Bruno Haible  <bruno@clisp.org>
2548
2549         mktime: Avoid compilation error on Solaris 11.
2550         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
2551
2552 2012-01-08  Bruno Haible  <bruno@clisp.org>
2553
2554         doc: Small fix.
2555         * doc/posix-headers/nl_types.texi: Correct platforms list.
2556
2557 2012-01-08  Simon Josefsson  <simon@josefsson.org>
2558
2559         Add lgpl-3.0 module.
2560         * MODULES.html.sh (Support for building documentation): Add
2561         lgpl-3.0.
2562         * modules/lgpl-3.0: New file.
2563
2564 2012-01-08  Jim Meyering  <meyering@redhat.com>
2565
2566         select.c: indent with spaces, not TABs
2567         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
2568
2569 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2570
2571         quotearg: do not use grave accent for left quote
2572         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
2573         locale_quoting_style.
2574         (quotearg_buffer_restyled): Fix example.
2575         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
2576
2577 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2578
2579         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
2580         Most programs do not have translation catalogs for English and much
2581         less separate catalogs for British and American English.  Drop the
2582         suggestion to translators about these two, and provide it
2583         automatically for Unicode locales.  Like most programs, even those
2584         using American English, we use single quotation marks.  This conflicts
2585         with the American typographic convention, but works better when you
2586         cite the entire error message within double quotes.  It also tries not
2587         to clash with established practice and with what non-gnulib programs
2588         will usually do.
2589         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
2590         using an UTF-8 or GB-18030 locale.  The list of other locales with
2591         quotes was provided by Bruno Haible.
2592         (quotearg_buffer_restyled): Adjust instructions to translators.
2593         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
2594         text, since this would be wrong when using Unicode.
2595         * modules/quotearg: Depend on c-strcaseeq.
2596
2597 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
2598
2599         quotearg: fix Wikipedia link
2600         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
2601
2602 2012-01-07  Simon Josefsson  <simon@josefsson.org>
2603
2604         Fix for mingw with MSVC9.
2605         * m4/ld-version-script.m4: Check that compiler rejects version
2606         scripts with syntax errors.  Reported by Bruno Haible
2607         <bruno@clisp.org>.
2608
2609 2012-01-06  Bruno Haible  <bruno@clisp.org>
2610
2611         Talk about "native Windows API", not "Woe32".
2612         * lib/accept4.c: Update comments to mention native Windows.
2613         * lib/execute.c: Likewise.
2614         * lib/fatal-signal.c: Likewise.
2615         * lib/localcharset.c: Likewise.
2616         * lib/nanosleep.c: Likewise.
2617         * lib/nl_langinfo.c: Likewise.
2618         * lib/pclose.c: Likewise.
2619         * lib/pipe-filter-gi.c: Likewise.
2620         * lib/pipe-filter-ii.c: Likewise.
2621         * lib/pipe.c: Likewise.
2622         * lib/pipe2.c: Likewise.
2623         * lib/popen.c: Likewise.
2624         * lib/progreloc.c: Likewise.
2625         * lib/relocatable.c: Likewise.
2626         * lib/sigaction.c: Likewise.
2627         * lib/sigprocmask.c: Likewise.
2628         * lib/spawn-pipe.h: Likewise.
2629         * lib/spawn-pipe.c: Likewise.
2630         * lib/spawni.c: Likewise.
2631         * lib/stat-time.h: Likewise.
2632         * lib/w32spawn.h: Likewise.
2633         * tests/test-isatty.c: Likewise.
2634         * lib/config.charset: More comments.
2635         * doc/gnulib-intro.texi: Mention native Windows.
2636         * doc/posix-functions/_Exit_C99.texi: Likewise.
2637         * doc/posix-headers/fcntl.texi: Likewise.
2638
2639 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
2640
2641         argp: Avoid crash if translator uses % characters in a translation.
2642         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
2643         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2644
2645 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2646
2647         doc: C11 and C++11 are now official
2648         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
2649         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
2650         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
2651         * modules/stdalign:
2652         Replace references to draft C1X to C11, and to draft C++0X to C++11.
2653
2654 2012-01-06  Bruno Haible  <bruno@clisp.org>
2655
2656         uc-is-grapheme-break tests: Tweak.
2657         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
2658         message.
2659
2660 2012-01-06  Bruno Haible  <bruno@clisp.org>
2661
2662         test-init.sh: correct the test for diff -u
2663         * tests/test-init.sh: Also redirect stdout to /dev/null.
2664
2665 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2666
2667         Use ', not `, for quoting output.
2668         * build-aux/announce-gen (usage, sizes, print_news_deltas)
2669         (print_changelog_deltas, get_tool_versions, main program):
2670         * build-aux/git-version-gen:
2671         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
2672         * build-aux/move-if-change (help):
2673         * build-aux/useless-if-before-free (usage, main program):
2674         * check-module (parse_module_file, usage)
2675         (find_included_lib_files, check_module):
2676         * lib/argmatch.c (main) [TEST]:
2677         * lib/argp-help.c (_help):
2678         * lib/getopt1.c (main) [TEST]:
2679         * lib/git-merge-changelog.c (usage):
2680         * lib/xstrtol-error.c (xstrtol_error):
2681         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
2682         * m4/argz.m4 (gl_FUNC_ARGZ):
2683         * m4/bison.m4 (gl_BISON):
2684         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
2685         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
2686         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2687         * m4/fpending.m4 (gl_PREREQ_FPENDING):
2688         * m4/gc-random.m4 (gl_GC_RANDOM):
2689         * m4/intl.m4 (gt_CHECK_DECL):
2690         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
2691         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
2692         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
2693         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
2694         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
2695         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
2696         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
2697         * tests/test-dirname.c (main):
2698         * tests/test-getpass.c (main):
2699         * tests/test-iconvme.c (main):
2700         * tests/test-parse-datetime.c (LOG):
2701         * tests/test-xstrtoimax.sh:
2702         * tests/test-xstrtol.sh:
2703         * tests/test-xstrtoll.sh:
2704         * tests/test-xstrtoumax.sh:
2705         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
2706         * top/GNUmakefile (abort-due-to-no-makefile):
2707         Quote 'like this', not `like this', as per the recent change to
2708         the GNU coding standards.
2709
2710 2012-01-05  Bruno Haible  <bruno@clisp.org>
2711
2712         strtoimax: Don't force a replacement on systems where intmax_t is int.
2713         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
2714         'intmax_t' is not larger than 'int'.
2715         Reported by Pádraig Brady <P@draigBrady.com>.
2716
2717 2012-01-05  Bruno Haible  <bruno@clisp.org>
2718
2719         doc: Mention NetBSD bugs.
2720         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
2721         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
2722
2723 2012-01-05  Bruno Haible  <bruno@clisp.org>
2724
2725         strtoumax tests: Enhance tests.
2726         * tests/test-strtoumax.c (main): Add tests for large values.
2727
2728 2012-01-05  Bruno Haible  <bruno@clisp.org>
2729
2730         strtoimax: Work around AIX 5.1 bug.
2731         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
2732         definition.
2733         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
2734         Set HAVE_STRTOIMAX.
2735         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
2736         REPLACE_STRTOIMAX.
2737         * modules/inttypes-incomplete (Makefile.am): Substitute
2738         REPLACE_STRTOIMAX.
2739         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
2740         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
2741         (Depends-on): Update conditions.
2742         * tests/test-strtoimax.c (main): Add tests for large values.
2743         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
2744
2745 2012-01-05  Bruno Haible  <bruno@clisp.org>
2746
2747         inttypes: Modernize.
2748         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
2749         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
2750         (Makefile.am): Update inttypes.h rule.
2751
2752 2012-01-05  Jim Meyering  <meyering@redhat.com>
2753
2754         init.sh: don't waste a subshell just to redirect stderr
2755         * tests/init.sh: In testing for diff -u and diff -c, use a
2756         stderr-redirecting exec inside `...` rather than a subshell.
2757
2758         test-init.sh: avoid failure on HP-UX 11.00
2759         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
2760         resolves to diff -c or cmp.  Reported by Bruno Haible.
2761
2762 2012-01-05  Bruno Haible  <bruno@clisp.org>
2763
2764         Tests for module 'strtoull'.
2765         * modules/strtoull-tests: New file.
2766         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
2767
2768 2012-01-05  Bruno Haible  <bruno@clisp.org>
2769
2770         Tests for module 'strtoll'.
2771         * modules/strtoll-tests: New file.
2772         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
2773
2774 2012-01-05  Bruno Haible  <bruno@clisp.org>
2775
2776         Tests for module 'strtoul'.
2777         * modules/strtoul-tests: New file.
2778         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
2779
2780 2012-01-05  Bruno Haible  <bruno@clisp.org>
2781
2782         Tests for module 'strtol'.
2783         * modules/strtol-tests: New file.
2784         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
2785
2786 2012-01-04  Jim Meyering  <meyering@redhat.com>
2787
2788         test-init.sh: accommodate Solaris 5.10's different diff -u output
2789         * tests/test-init.sh: Also exempt @@ lines from the comparison
2790         of diff output, since Solaris 5.10 and GNU diff formats differ.
2791         Reported by Stefano Lattarini.
2792
2793 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2794
2795         test-posixtm: don't assume signed integer wraparound
2796         * tests/test-posixtm.c (main): Don't assume wraparound semantics
2797         after signed integer overflow.  Inspired by (though it may not
2798         fix) Bruno Haible's bug report in
2799         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
2800
2801         Spell out "Windows 9x" and "Windows XP".
2802         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
2803         "Windows 9x" and "WinXP" with "Windows XP".
2804
2805 2012-01-04  Jim Meyering  <meyering@redhat.com>
2806
2807         test-vc-list-files-cvs.sh: remove obsolete comment
2808         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
2809         double exit.  Now that's all encapsulated via skip_ and Exit.
2810
2811 2012-01-04  Bruno Haible  <bruno@clisp.org>
2812
2813         Talk about "native Windows API", not "Win32".
2814         * lib/classpath.c: Update comments to mention native Windows.
2815         * lib/csharpexec.c: Likewise.
2816         * lib/dup2.c: Likewise.
2817         * lib/error.c: Likewise.
2818         * lib/fcntl.c: Likewise.
2819         * lib/filename.h: Likewise.
2820         * lib/findprog.c: Likewise.
2821         * lib/get-rusage-as.c: Likewise.
2822         * lib/get-rusage-data.c: Likewise.
2823         * lib/getpagesize.c: Likewise.
2824         * lib/javaexec.c: Likewise.
2825         * lib/msvc-inval.c: Likewise.
2826         * lib/msvc-nothrow.c: Likewise.
2827         * lib/nanosleep.c: Likewise.
2828         * lib/nonblocking.c: Likewise.
2829         * lib/printf-parse.c: Likewise.
2830         * lib/setlocale.c: Likewise.
2831         * lib/sigaction.c: Likewise.
2832         * lib/strerror_r.c: Likewise.
2833         * lib/tmpdir.c: Likewise.
2834         * lib/vasnprintf.c: Likewise.
2835         * lib/w32spawn.h: Likewise.
2836         * lib/waitpid.c: Likewise.
2837         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
2838         * m4/locale-ar.m4: Likewise.
2839         * m4/locale-fr.m4: Likewise.
2840         * m4/locale-ja.m4: Likewise.
2841         * m4/locale-tr.m4: Likewise.
2842         * m4/locale-zh.m4: Likewise.
2843         * m4/printf.m4: Likewise.
2844         * tests/test-cloexec.c: Likewise.
2845         * tests/test-copy-acl.sh: Likewise.
2846         * tests/test-copy-file.sh: Likewise.
2847         * tests/test-file-has-acl.sh: Likewise.
2848         * tests/test-set-mode-acl.sh: Likewise.
2849         * tests/test-dup-safer.c: Likewise.
2850         * tests/test-dup2.c: Likewise.
2851         * tests/test-dup3.c: Likewise.
2852         * tests/test-fcntl.c: Likewise.
2853         * tests/test-nonblocking-pipe.h: Likewise.
2854         * tests/test-nonblocking-socket.h: Likewise.
2855         * tests/test-pipe.c: Likewise.
2856         * tests/test-pipe2.c: Likewise.
2857         * tests/test-spawn-pipe-child.c: Likewise.
2858         * doc/acl-resources.txt: Likewise.
2859         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2860         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
2861         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
2862         * lib/localcharset.c: Update comments to mention native Windows.
2863         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2864         * lib/localename.c: Likewise.
2865         * lib/progreloc.c: Likewise.
2866         * lib/relocatable.c: Likewise.
2867         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
2868         (windows_compute_revents): Renamed from win32_compute_revents.
2869         (windows_compute_revents_socket): Renamed from
2870         win32_compute_revents_socket.
2871         * lib/select.c: Update comments to mention native Windows.
2872         (windows_poll_handle): Renamed from win32_poll_handle.
2873         * m4/threadlib.m4: Update comments to mention native Windows.
2874         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
2875         --enable-threads=windows instead of --enable-threads=win32. Set
2876         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
2877         * lib/glthread/lock.h: Update comments to mention native Windows.
2878         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
2879         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
2880         USE_WIN32_THREADS.
2881         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
2882         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
2883         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
2884         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
2885         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
2886         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
2887         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
2888         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
2889         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
2890         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
2891         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
2892         * tests/test-tls.c: Likewise.
2893         Rationale:
2894         Microsoft renamed the "Win32 API" to "Windows API", as it is available
2895         on both 32-bit and 64-bit Windows systems.
2896         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
2897         line of distinction is between "native Windows" on one side and Unix/
2898         POSIX systems on the other side. More details in
2899         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
2900         Suggested by Paul Eggert.
2901
2902 2012-01-03  Bruno Haible  <bruno@clisp.org>
2903
2904         isatty: Support for MSVC 9.
2905         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
2906         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
2907         (_isatty_nothrow): New function.
2908         (isatty): Use it instead of _isatty.
2909         (IsConsoleHandle): Add comment, from Paolo Bonzini.
2910         * lib/poll.c (IsConsoleHandle): Likewise.
2911         * lib/select.c (IsConsoleHandle): Likewise.
2912         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
2913         (gl_PREREQ_ISATTY): New macro.
2914         * modules/isatty (Depends-on): Add msvc-inval.
2915         (configure.ac): Invoke gl_PREREQ_ISATTY.
2916
2917 2012-01-03  Jim Meyering  <meyering@redhat.com>
2918
2919         maint.mk: remove temporary transition aid from over 1.5 years ago
2920         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
2921         purpose was to aid in the transition (avoiding silent malfunction)
2922         from that old name to the new _sc_search_regexp.  This shim was
2923         added by commit 219c504b.
2924
2925         init.sh: do not try to accommodate compare arguments starting with "-"
2926         * tests/init.sh (compare_dev_null_): Do not try to accommodate
2927         compare arguments that start with "-".  Besides, we do not worry
2928         about this when invoking diff or cmp; why start now with sed?
2929         Using "--" to separate options from argument would trigger sed
2930         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
2931         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
2932
2933 2012-01-02  Bruno Haible  <bruno@clisp.org>
2934
2935         Enhance tests for module 'isatty'.
2936         * modules/isatty-tests (Depends-on): Add pipe-posix.
2937         * tests/test-isatty.c: Include <fcntl.h>.
2938         (DEV_NULL): New macro.
2939         (main): Test the resut of isatty() also on regular files, pipes, and
2940         /dev/null.
2941
2942         New module 'isatty'.
2943         * lib/unistd.in.h (isatty): New declaration.
2944         * lib/isatty.c: New file, based on an idea of
2945         Bastien Roucariès <roucaries.bastien@gmail.com>.
2946         * m4/isatty.m4: New file.
2947         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
2948         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
2949         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
2950         REPLACE_ISATTY.
2951         * modules/isatty: New file.
2952         * doc/posix-functions/isatty.texi: Mention the new module.
2953         Suggested by Paolo Bonzini.
2954
2955 2012-01-02  Bruno Haible  <bruno@clisp.org>
2956
2957         canonicalize: Tweak 2011-12-29 commit.
2958         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
2959         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
2960
2961 2012-01-02  Jim Meyering  <meyering@redhat.com>
2962
2963         gitlog-to-changelog: describe input syntax in --help output
2964         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
2965
2966         gitlog-to-changelog: fix typo in --help: show backslash before email @
2967         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
2968         in sources, but not in actual output.
2969
2970 2011-12-30  Jim Meyering  <meyering@redhat.com>
2971
2972         gitlog-to-changelog: don't malfunction when name contains %-directive
2973         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
2974         in a name string cause trouble.  E.g., with a user name of "%s",
2975         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
2976
2977 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
2978
2979         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
2980         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
2981         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
2982         the "  (tiny change)" notation that is appended to the standard
2983         ChangeLog "date  name  email" header line.
2984
2985 2012-01-01  Jim Meyering  <meyering@redhat.com>
2986
2987         test-framework-sh: init.sh: fix "make dist" failure
2988         When using gnulib-tool's --with-tests option and any module that
2989         depends on test-framework-sh, "make dist" would fail due to the
2990         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
2991         in the gltests directory, and not in the gllib/ directory.
2992         One way to work around that is to move the EXTRA_DIST += init.sh
2993         from the primary module to the -tests one:
2994         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
2995         * modules/test-framework-sh (Makefile.am): ...not here.
2996         Reported by Tom G. Christensen in
2997         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
2998
2999         version-etc: update copyright year reported by --version
3000         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
3001
3002 2011-12-31  Pádraig Brady  <P@draigBrady.com>
3003
3004         canonicalize: only stat() if required
3005         * lib/canonicalize.c (canonicalize_filename_mode):
3006         Avoid calling l?stat() when both CAN_MISSING,
3007         and CAN_NOLINKS are set, as we neither need
3008         to resolve symlinks or test component existence.
3009
3010 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
3011
3012         doc: cover st_ino issues once; add OpenVMS etc.
3013         * doc/posix-functions/stat.texi (stat):
3014         * doc/posix-functions/lstat.texi (lstat):
3015         * doc/posix-functions/fstatat.texi (fstatat):
3016         * doc/posix-functions/fstat.texi (fstat):
3017         Move general 'struct stat' stuff to sys_stat.texi,
3018         leaving behind a pointer.
3019         * doc/posix-headers/sys_stat.texi (sys/stat.h):
3020         Merge duplicate info about 'struct stat' problems into here.
3021         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
3022         and suggest partial workarounds.
3023
3024         same-inode: port to OpenVMS
3025         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
3026         three st_ino values.
3027
3028 2011-12-30  Pádraig Brady  <P@draigBrady.com>
3029
3030         canonicalize: fix references to stat() and lstat()
3031         * lib/canonicalize.c (canonicalize_filename_mode):
3032         Ensure references always resolve to a replacement
3033         function if required (even via a macro).
3034
3035 2011-12-30  Jim Meyering  <meyering@redhat.com>
3036
3037         gitlog-to-changelog: remove a little duplication
3038         * build-aux/gitlog-to-changelog (main): Grep @lines once,
3039         rather than twice.
3040
3041 2011-12-29  Pádraig Brady  <P@draigBrady.com>
3042
3043         canonicalize: add support for not resolving symlinks
3044         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
3045         indicate we don't want to follow symlinks.  Also
3046         provide CAN_MODE_MASK to aid setting these existing
3047         mutually exclusive values.
3048         * lib/canonicalize.c (canonicalize_filename_mode):
3049         Extract the flags from can_mode parameter, which
3050         are currently just used to select between stat()
3051         and lstat().  Also ensure that mutually exclusive
3052         values are flagged immediately as invalid.
3053         * tests/test-canonicalize.c: Verify symlinks are
3054         not followed, and that invalid flag combinations
3055         are diagnosed.
3056
3057 2011-12-25  Jim Meyering  <meyering@redhat.com>
3058
3059         gitlog-to-changelog: do not clump multi-paragraph entries
3060         Identical header lines (date,name,email+coauthors) are suppressed,
3061         thus putting all entries with those same characteristics under
3062         a single header.  However, when a log entry consists of two or
3063         more paragraphs, it may not be clear where it starts and ends.
3064         This change makes it so that such an entry is always separated
3065         from others by a header line, even when that header would
3066         otherwise be suppressed.
3067         * build-aux/gitlog-to-changelog: Implement the above.
3068         Inspired by a related request from Stefano Lattarini in
3069         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
3070
3071 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3072
3073         announce-gen: fix `cmd' typo in diagnostic
3074         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
3075         diagnostic: a missing '$' meant that the command was not output.
3076
3077 2011-12-23  Jim Meyering  <meyering@redhat.com>
3078
3079         test-framework-sh: distribute init.sh
3080         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
3081         Otherwise, "make -C gnulib-tests check" (at least in grep) would
3082         fail due to the lack of init.sh.
3083
3084         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
3085         * modules/atexit-tests: Rather than listing tests/init.sh,
3086         now that there's a module for it, simply depend on that new module.
3087         * modules/closein-tests: Likewise.
3088         * modules/exclude-tests: Likewise.
3089         * modules/getcwd-tests: Likewise.
3090         * modules/perror-tests: Likewise.
3091         * modules/pread-tests: Likewise.
3092         * modules/pwrite-tests: Likewise.
3093         * modules/vc-list-files-tests: Likewise.
3094         * modules/verify-tests: Likewise.
3095         * modules/xalloc-die-tests: Likewise.
3096         * modules/xstrtoimax-tests: Likewise.
3097         * modules/xstrtol-tests: Likewise.
3098         * modules/xstrtoll-tests: Likewise.
3099         * modules/xstrtoumax-tests: Likewise.
3100         * modules/yesno-tests: Likewise.
3101
3102 2011-12-22  Jim Meyering  <meyering@redhat.com>
3103
3104         test-framework-sh: add minimal tests of init.sh's compare function
3105         * modules/test-framework-sh-tests: New file.
3106         * tests/test-init.sh: New file.
3107
3108         test-framework-sh: new module
3109         * modules/test-framework-sh: New file.
3110         * MODULES.html.sh (Support for maintaining and releasing projects):
3111         List it.
3112
3113         init.sh: do not emit simulated diff output to stderr
3114         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
3115
3116 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3117
3118         .gitignore: ignore gnulib.dvi and regex.info
3119         * doc/.gitignore:add gnulib.dvi and regex.info
3120
3121 2011-12-22  Jim Meyering  <meyering@redhat.com>
3122
3123         init.sh: correct previous change
3124         * tests/init.sh (compare): My previous change was wrong.
3125         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
3126
3127         init.sh: avoid unwarranted test failure when using "set -e"
3128         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
3129         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
3130         a use like "compare exp out" would get evoke an unconditional failure.
3131
3132 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
3133
3134         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
3135         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
3136         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
3137         autoreconf that did not.
3138         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
3139         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3140
3141 2011-12-17  Jim Meyering  <meyering@redhat.com>
3142
3143         bootstrap: remove some now-unneeded code
3144         This script arose back when gnulib-tool was young.
3145         Since then, it has seen improvements that render much of this
3146         script unnecessary.  In particular, it can now make symlinks
3147         to the files it uses.  Also, I no longer see as much value in
3148         marking files as read-only via comments.
3149         If you relied on the symlink-creation feature of the preceding
3150         version of this script, you can get most of that functionality
3151         by adding the --symlink option to the definition of
3152         gnulib_tool_option_extras in your bootstrap.conf file.
3153         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
3154         Run autopoint and libtoolize *before* gnulib-tool.
3155         After it, run an abbreviated autoreconf, rather than a loop around
3156         all tools.
3157         (slirp, bt_mark_as_generated): Remove functions.
3158
3159 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3160
3161         ftoastr: fix typo
3162         * lib/ftoastr.h: Fix misspelling in comment.
3163
3164 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
3165
3166         * top/README-release: fix punctuation.
3167
3168 2011-12-17  Jim Meyering  <meyering@redhat.com>
3169
3170         bootstrap: correct the recent buildreq change
3171         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
3172         had no effect.
3173         * build-aux/bootstrap (buildreq): Bracket each search term with
3174         "*...*", so that the shell "case" statement works as intended.
3175         Add comments.
3176
3177 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
3178
3179         build: let bootstrap resort to wget when downloading .po files
3180         * build-aux/bootstrap (download_po_files): Fallback to wget when
3181         downloading the .po files via rsync fails.  This is necessary to
3182         bootstrap from behind a strict firewall.
3183
3184 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3185
3186         stdint: don't assume C++11 when compiling with g++
3187         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
3188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
3189         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
3190         work also in C++ before C++11, as that improperly inhibits
3191         generating a substitute stdint.h for that case.
3192
3193 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3194
3195         alloca: protect comment from gnulib-tool
3196         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
3197         that gnulib-tool doesn't think it's a license, and munge it to
3198         say "GCC version 3".
3199
3200 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
3201
3202         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
3203         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
3204         $(abs_top_builddir) instead of $(top_builddir).
3205
3206 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
3207
3208         strftime-tests: also test nanoseconds
3209         * tests/test-strftime.c (T): Add a test of %N.
3210
3211 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
3212
3213         inttypes, stdint: add C++11 support
3214         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
3215         when including inttypes.h and stdint.h.  Support this change to
3216         the standard.
3217         * doc/posix-headers/inttypes.texi (inttypes.h):
3218         * doc/posix-headers/stdint.texi (stdint.h): Document this.
3219         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
3220         Define if not defined already, for the benefit of pre-C++11 hosts.
3221         Define the standard format macros (e.g., PRId8) always.
3222         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
3223         Likewise, if __cpluspus.  Define the standard constant and limit
3224         macros (e.g., INT8_C, INT8_MAX) always.
3225         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
3226         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
3227         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
3228         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
3229         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
3230         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
3231         Likewise.
3232
3233 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
3234
3235         nonblocking tests: Fix test failure on Linux/PPC.
3236         Suggested by Prerna Saxena in
3237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
3238         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
3239         Set to 1100000.
3240
3241 2011-12-12  Jim Meyering  <meyering@redhat.com>
3242
3243         argmatch: don't hard-code `' when listing valid option arguments
3244         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
3245         use the quote function to add quotes.  Use fputs rather than
3246         fprintf for the format string with no format directive.
3247
3248 2011-12-07  Eric Blake  <eblake@redhat.com>
3249
3250         bootstrap: detect tools required by gnulib-tool
3251         * build-aux/bootstrap (buildreq): Provide minimum implicit
3252         dependencies.
3253         * DEPENDENCIES: Mention patch as a prereq.
3254
3255 2011-12-04  Bruno Haible  <bruno@clisp.org>
3256
3257         sethostname: Port to Windows platforms.
3258         * lib/sethostname.c: Provide an alternate implementation for Windows
3259         platforms.
3260         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
3261         (main): Skip the test if sethostname() fails with EPERM. On Windows
3262         platforms, don't check the result of gethostname().
3263
3264 2011-12-04  Bruno Haible  <bruno@clisp.org>
3265             Jim Meyering  <meyering@redhat.com>
3266
3267         tests: Avoid spurious error message on platforms without mktemp program.
3268         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
3269
3270 2011-12-04  Bruno Haible  <bruno@clisp.org>
3271
3272         sethostname: Fix documentation.
3273         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
3274         "not fixed" section.
3275
3276 2011-12-03  Bruno Haible  <bruno@clisp.org>
3277
3278         gnulib-tool: Verify that the License field is present and non-empty.
3279         * gnulib-tool (func_get_license_raw): New function, extracted from
3280         func_get_license.
3281         (func_get_license): Use it. Warn if the module is not a test module and
3282         has no license.
3283         Suggested by Jim Meyering.
3284
3285 2011-12-03  Bruno Haible  <bruno@clisp.org>
3286
3287         sethostname tests: Fix link error on mingw.
3288         * tests/test-sethostname1.c: New file, extracted from
3289         tests/test-sethostname.c.
3290         * tests/test-sethostname2.c: New file, extracted from
3291         tests/test-sethostname.c.
3292         * tests/test-sethostname.c: Remove file.
3293         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
3294         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
3295         (Depends-on): Add gethostname.
3296         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
3297         Link the latter with $(GETHOSTNAME_LIB).
3298
3299         sethostname tests: Fix compilation error on mingw.
3300         * tests/test-sethostname.c: Don't include <sys/types.h>.
3301         (geteuid): Use a dummy value without uid_t.
3302         * modules/sethostname-tests (Depends-on): Remove sys_types.
3303
3304         sethostname tests: Avoid a gcc warning.
3305         * tests/test-sethostname.c (main): Remove an unused variable.
3306
3307         Tweak last commit.
3308         * modules/sethostname-tests (Files): Sort by decreasing importance.
3309         (configure.ac): Check for geteuid.
3310         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
3311         the test when there's nothing to test. Drop an unnecessary cast.
3312         Improve an error message. Verify that the final sethostname() call
3313         succeeds.
3314
3315 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3316
3317         Add a test suite for the sethostname module.
3318         * modules/sethostname-tests: New file.  A test program
3319         for the sethostname module.
3320         * tests/test-sethostname.c: Likewise.
3321
3322 2011-12-03  Bruno Haible  <bruno@clisp.org>
3323
3324         Tweak last commit.
3325         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
3326         Fix preprocessor directives indentation. Fix typos.
3327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
3328         * modules/unistd (Makefile): Likewise.
3329
3330 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3331
3332         Integrate the sethostname module into unistd.
3333         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
3334         into the unistd.h header.
3335         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
3336         preprocessor directives.
3337         * modules/unistd: Setup the Makefile substitutions of the
3338         SETHOSTNAME preprocessor directives.
3339
3340 2011-12-03  Bruno Haible  <bruno@clisp.org>
3341
3342         Tweak last commit.
3343         * lib/sethostname.c: Don't include <string.h>.
3344         (sethostname): No need to copy the argument string to the stack. Don't
3345         call clearerr. Preserve errno when fprintf failed.
3346         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
3347         Don't invoke AC_REPLACE_FUNCS.
3348         * modules/sethostname (Link): Remove empty section.
3349         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
3350         failure problem.
3351
3352 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3353
3354         New module 'sethostname'.
3355         * lib/sethostname.c (sethostname): New file.  Provide sethostname
3356         for systems that lack it.
3357         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
3358         sethostname declaration and function.
3359         * modules/sethostname: New file.  Define the sethostname module.
3360
3361 2011-12-03  Bruno Haible  <bruno@clisp.org>
3362
3363         Tweak last commit.
3364         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
3365
3366 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3367
3368         Split the HOST_NAME_MAX detection into a separate m4 macro.
3369         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
3370         macro so it can be used by the pending sethostname module.
3371
3372 2011-12-03  Bruno Haible  <bruno@clisp.org>
3373
3374         Fix module descriptions syntax.
3375         * modules/argv-iter (License): Fix syntax.
3376         * modules/di-set (License): Likewise.
3377         * modules/ino-map (License): Likewise.
3378         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
3379
3380 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
3381
3382         stdalign: port to Clang 3.0
3383         Problem reported by Simon Josefsson in
3384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
3385         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
3386         which has <stdalign.h> but which does not define alignof.
3387         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
3388
3389 2011-12-01  Eric Blake  <eblake@redhat.com>
3390
3391         mktempd: silence dd usage
3392         * build-aux/mktempd (rand_bytes): Silence dd.
3393
3394 2011-11-30  Simon Josefsson  <simon@josefsson.org>
3395
3396         manywarnings: Don't mention gcc version in docstring.
3397         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
3398         Jim Meyering <meyering@redhat.com>.
3399
3400 2011-11-30  Jim Meyering  <meyering@redhat.com>
3401
3402         hash: mark a few floating point constants with "f" suffix
3403         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
3404         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
3405         floating point constants with "f", since they're destined to be
3406         saved/used as "float"s.
3407
3408 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
3409
3410         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
3411         * tests/test-float.c (test_long_double): Correct and re-enable the
3412         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
3413
3414 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
3415
3416         Avoid subtracting two pointers that don't point into the same block.
3417         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
3418         only pointers into the same memory block are subtracted. We cannot
3419         assume that sizeof (ptrdiff_t) == sizeof (void *).
3420
3421 2011-11-29  Eric Blake  <eblake@redhat.com>
3422
3423         maint.mk: add syntax check for use of compare from init.sh
3424         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
3425         moved here from coreutils.
3426
3427         manywarnings: drop -Wunsuffixed-float-constants
3428         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
3429         '1.0D', which is the only way to silence this warning for 'double'.
3430
3431 2011-11-29  Jim Meyering  <meyering@redhat.com>
3432
3433         hash: mark compute_bucket_size with the pure attribute
3434         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
3435
3436         quotearg, propername: correct pragma guard expression
3437         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
3438         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
3439
3440 2011-11-28  Jim Meyering  <meyering@redhat.com>
3441
3442         propername: do not mark proper_name with the const attribute
3443         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
3444         since it examines data pointed to by its parameter.
3445         * lib/propername.c (proper_name): Instead, add a pragma to suppress
3446         the suggestion from -Wsuggest-attribute=const.
3447
3448         propername: mark one more function as const
3449         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
3450
3451 2011-11-27  Jim Meyering  <meyering@redhat.com>
3452
3453         mark functions with const and pure attributes
3454
3455         Mark functions per suggestions from gcc-4.6 when using these options:
3456         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
3457         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
3458         Follow these guidelines: when possible, apply the attribute to
3459         an extern declaration, not to its definition.  Apply it to the
3460         definition only when the definition is static.
3461         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
3462         * lib/argv-iter.h (argv_iter_n_args): Likewise.
3463         * lib/base64.h (isbase64): Likewise.
3464         * lib/basename-lgpl.c (last_component, base_len): Likewise.
3465         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
3466         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
3467         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
3468         (c_tolower, c_toupper): Likewise.
3469         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
3470         * lib/chdir-long.c (find_non_slash): Likewise.
3471         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
3472         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
3473         * lib/file-type.h (file_type): Likewise.
3474         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
3475         * lib/filevercmp.c (verrevcmp): Likewise.
3476         * lib/freadahead.h (freadahead): Likewise.
3477         * lib/fts.c (fts_maxarglen): Likewise.
3478         * lib/hash-pjw.h (hash_pjw): Likewise.
3479         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
3480         * lib/hash.c (is_prime, next_prime): Likewise.
3481         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
3482         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
3483         (hash_table_ok, hash_get_first, hash_string): Likewise.
3484         (compute_bucket_size): Likewise.
3485         * lib/i-ring.h (i_ring_empty): Likewise.
3486         * lib/isnan.c (isnanl): Likewise.
3487         * lib/math.h (isnanl, rpl_isnanl): Likewise.
3488         * lib/memcasecmp.h (memcasecmp): Likewise.
3489         * lib/memchr2.h (memchr2): Likewise.
3490         * lib/memcmp2.h (memcmp2): Likewise.
3491         * lib/parse-datetime.y (lookup_zone): Likewise.
3492         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
3493         [!WINDOWS_SOCKETS]: Likewise.
3494         * lib/strnlen1.h (strnlen1): Likewise.
3495         * lib/uniwidth.in.h (uc_width): Likewise.
3496         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
3497         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
3498         (quoting_options_from_style): Add a comment.
3499         * lib/propername.h (proper_name): Add a comment.
3500
3501 2011-11-27  Bruno Haible  <bruno@clisp.org>
3502
3503         Remove unused macros from !_LIBC code in glibc-borrowed files.
3504         * lib/fnmatch.c (STRCOLL): Remove macro.
3505         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
3506         * lib/glob.c (__stat, __readdir64): Remove macros.
3507         * lib/tempname.c (__open64, __xstat64): Remove macros.
3508         Suggested by Paul Eggert.
3509
3510 2011-11-27  Bruno Haible  <bruno@clisp.org>
3511
3512         getcwd: Fix link error on MSVC 9.
3513         * modules/getcwd (Depends-on): Add readdir, rewinddir.
3514
3515 2011-11-27  Bruno Haible  <bruno@clisp.org>
3516
3517         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
3518         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
3519         HAVE_OPENDIR is 0.
3520         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
3521         HAVE_CLOSEDIR is 0.
3522         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
3523         is 0.
3524         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
3525
3526 2011-11-27  Bruno Haible  <bruno@clisp.org>
3527
3528         getcwd: Fix bug from 2011-08-17.
3529         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
3530         platforms that need it.
3531         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
3532         code of 4 to be a failure, not a success. This ensures that
3533         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
3534
3535 2011-11-27  Bruno Haible  <bruno@clisp.org>
3536
3537         binary-io tests: Avoid test failure on mingw when libtool is used.
3538         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
3539         Don't verify the size of t-bin-out1.tmp here.
3540         * tests/test-binary-io.sh: Verify it here.
3541         Reported by Simon Josefsson.
3542
3543 2011-11-26  Bruno Haible  <bruno@clisp.org>
3544
3545         Fix conflict between two instantiations of module 'unistd'.
3546         * gnulib-tool (func_emit_autoconf_snippet): Substitute
3547         ${include_guard_prefix} also in the autoconf snippet.
3548         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
3549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
3550         GNULIB_UNISTD_H_GETOPT.
3551         * modules/getopt-posix (configure.ac): Set the
3552         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
3553         * modules/getopt-gnu (configure.ac): Likewise.
3554         * modules/unistd (Makefile.am): Change the substitution value of
3555         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
3556         Reported by Simon Josefsson.
3557
3558 2011-11-25  Bruno Haible  <bruno@clisp.org>
3559
3560         pagealign_alloc: Doc and comments.
3561         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
3562         module.
3563         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
3564
3565 2011-11-25  Jim Meyering  <meyering@redhat.com>
3566
3567         test-update-copyright.sh: avoid false-positive failure
3568         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
3569         around false positive failure on Cygwin/Windows.  The latter was
3570         matching erroneously-created files with names like
3571         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
3572
3573 2011-11-25  Simon Josefsson  <simon@josefsson.org>
3574
3575         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
3576         * m4/valgrind-tests.m4: Check that the parameters that will be
3577         used works, not just a subset of them.  Reported by Bruno Haible
3578         <bruno@clisp.org>.
3579
3580 2011-11-24  Jim Meyering  <meyering@redhat.com>
3581
3582         test-stdalign.c: comment out long double tests
3583         * tests/test-stdalign.c: Don't try to reduce alignment of long double
3584         variables.  That provokes errors like this from gcc-4.7.0 20111124:
3585         error: '_Alignas' specifiers cannot reduce alignment of \
3586         'static_longdouble_alignas'.
3587
3588 2011-11-22  Jim Meyering  <meyering@redhat.com>
3589
3590         init.sh: make "compare /dev/null FILE" output more readable
3591         * tests/init.sh (compare_): Document the preferred order of arguments.
3592         (emit_diff_u_header_): New function.
3593         (compare_dev_null_): Emit a simulated diff, rather than just the
3594         contents of the unexpected file.  Suggestion from Bruno Haible.
3595
3596 2011-11-21  Jim Meyering  <meyering@redhat.com>
3597             Eric Blake  <eblake@redhat.com>
3598
3599         init.sh: work around OSF/1 5.1's mishandling of /dev/null
3600         * tests/init.sh: Make our compare function slightly more portable.
3601         Reported by Bruno Haible in
3602         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
3603
3604 2011-11-21  Simon Josefsson  <simon@josefsson.org>
3605
3606         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
3607         before using it, in code that ends up in config.h.
3608
3609 2011-11-20  Bruno Haible  <bruno@clisp.org>
3610
3611         getcwd: Work around getcwd bug on AIX 5..7.
3612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
3613         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
3614         Use a different value for gl_cv_func_getcwd_path_max. Move the
3615         definition of HAVE_PARTLY_WORKING_GETCWD from here...
3616         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
3617         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
3618         Define HAVE_MINIMALLY_WORKING_GETCWD.
3619         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
3620         where it is not even minimally working, that is, on AIX.
3621         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
3622         m4/getcwd-path-max.m4.
3623         (main): Update exit code computation.
3624         * doc/posix-functions/getcwd.texi: Mention list of platforms where
3625         getcwd does not handle long file names.
3626
3627 2011-11-20  Bruno Haible  <bruno@clisp.org>
3628
3629         getcwd: Fix bug from 2009-09-10.
3630         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
3631         like "no".
3632
3633 2011-11-20  Simon Josefsson  <simon@josefsson.org>
3634
3635         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
3636
3637 2011-11-20  Bruno Haible  <bruno@clisp.org>
3638
3639         fma tests: Avoid shadowing local variables.
3640         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
3641         expected.
3642
3643 2011-11-20  Bruno Haible  <bruno@clisp.org>
3644
3645         copysignf tests: Fix.
3646         * tests/test-copysignf.c: Fix signature check.
3647
3648 2011-11-20  Bruno Haible  <bruno@clisp.org>
3649
3650         fma: Remove unused code.
3651         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
3652         unused macros.
3653
3654 2011-11-20  Bruno Haible  <bruno@clisp.org>
3655
3656         sethostname: Fix doc about AIX.
3657         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
3658         sethostname; it has it.
3659
3660         sethostname: Mention more portability problems.
3661         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
3662         problem.
3663         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
3664
3665 2011-11-19  Bruno Haible  <bruno@clisp.org>
3666
3667         Depend on module fcntl-h when AT_FDCWD is used.
3668         * modules/utimens (Depends-on): Add fcntl-h.
3669         * modules/areadlinkat (Depends-on): Likewise.
3670         * modules/areadlinkat-with-size (Depends-on): Likewise.
3671         * modules/faccessat (Depends-on): Likewise.
3672         * modules/fchmodat (Depends-on): Likewise.
3673         * modules/fchownat (Depends-on): Likewise.
3674         * modules/getcwd (Depends-on): Likewise.
3675         * modules/mkdirat (Depends-on): Likewise.
3676         * modules/mkfifoat (Depends-on): Likewise.
3677         * modules/readlinkat (Depends-on): Likewise.
3678         * modules/symlinkat (Depends-on): Likewise.
3679         * modules/dup2-tests (Depends-on): Likewise.
3680         * modules/fdutimensat-tests (Depends-on): Likewise.
3681         * modules/futimens-tests (Depends-on): Likewise.
3682
3683 2011-11-19  Bruno Haible  <bruno@clisp.org>
3684
3685         euidaccess: Update a comment.
3686         * lib/euidaccess.c: Update comment about platforms with faccessat.
3687
3688 2011-11-19  Bruno Haible  <bruno@clisp.org>
3689
3690         openat: Fix file list.
3691         * modules/openat (Files): Remove lib/at-func.c.
3692
3693 2011-11-19  Bruno Haible  <bruno@clisp.org>
3694
3695         fstatat: Simplify.
3696         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
3697         gnulib should define rpl_fstatat, there is a
3698         "#define fstatat rpl_fstatat" in <sys/stat.h>.
3699
3700 2011-11-19  Bruno Haible  <bruno@clisp.org>
3701
3702         Ensure 'inline' can be used in tests/test-utimens-common.h.
3703         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
3704         * modules/futimens-tests (configure.ac): Likewise.
3705         * modules/utimens-tests (configure.ac): Likewise.
3706         * modules/utimensat-tests (configure.ac): Likewise.
3707
3708 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3709
3710         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
3711         not hash_insert0.
3712         (hash_insert_if_absent): Doc fix.
3713
3714 2011-11-19  Simon Josefsson  <simon@josefsson.org>
3715
3716         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
3717
3718 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
3719
3720         test-getcwd: disambiguate exit status
3721         * tests/test-getcwd.c (test_long_name): Return 0..7.
3722         (main): Exit with an unambiguous exit status.  The old
3723         code yielded a mysterious mixture of two failure codes.
3724
3725         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
3726         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
3727         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
3728         rpl_fstatat or fstatat.  This should fix the other problem
3729         reported by Kai Habel in
3730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3731         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
3732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
3733         and I reproduced it on a Solaris 8 host we still have in production.
3734
3735 2011-11-18  Jim Meyering  <meyering@redhat.com>
3736
3737         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
3738         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
3739         Add a sentence to the comment.
3740         (hash_insert0): New function that simply calls hash_insert_if_absent.
3741         * lib/hash.h (hash_insert_if_absent): Declare it.
3742         (hash_insert0): Add deprecation attribute.
3743         (_GL_ATTRIBUTE_DEPRECATED): Define.
3744         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
3745         not hash_insert0.
3746         * NEWS: Mention it, even though it's not really an incompatible change.
3747
3748 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
3749
3750         openat: avoid compilation failure due to lack of <errno.h> inclusion
3751         * lib/openat.c: Include <errno.h>.
3752
3753 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
3754
3755         * modules/getcwd (Depends-on): Add fdopendir.
3756         This fixes one of the two problems reported by Kai Habel in
3757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
3758
3759         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
3760         stdalign problem reported by Ian Beckwith in
3761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
3762         * modules/crypto/gc-arcfour (Depends-on):
3763         Depend conditionally on crypto/arcfour.
3764         * modules/crypto/gc-arctwo (Depends-on):
3765         Depend conditionally on crypto/arctwo.
3766         * modules/crypto/gc-des (Depends-on):
3767         Depend conditionally on crypto/des.
3768         * modules/crypto/gc-hmac-md5 (Depends-on):
3769         Depend conditionally on crypto/hmac-md5.
3770         * modules/crypto/gc-hmac-sha1 (Depends-on):
3771         Depend conditionally on crypto/hmac-sha1.
3772         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
3773         * modules/crypto/gc-md4 (Depends-on):
3774         Depend conditionally on crypto/md4.
3775         * modules/crypto/gc-md5 (Depends-on):
3776         Depend conditionally on crypto/md5.
3777         * modules/crypto/gc-rijndael (Depends-on):
3778         Depend conditionally on crypto/rijndael.
3779         * modules/crypto/gc-sha1 (Depends-on):
3780         Depend conditionally on crypto/sha1.
3781         * modules/crypto/gc-arcfour:
3782         * modules/crypto/gc-arctwo:
3783         * modules/crypto/gc-des:
3784         * modules/crypto/gc-hmac-md5:
3785         * modules/crypto/gc-hmac-sha1:
3786         * modules/crypto/gc-md2:
3787         * modules/crypto/gc-md4:
3788         * modules/crypto/gc-md5:
3789         * modules/crypto/gc-rijndael:
3790         * modules/crypto/gc-sha1:
3791         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
3792         now that the conditional dependencies do the work for us.
3793
3794 2011-11-17  Jim Meyering  <meyering@redhat.com>
3795
3796         tests: factor st_ctime-comparison out of two headers
3797         * tests/test-utimens-common.h (ctime_compare): Define.
3798         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
3799         * tests/test-lutimens.h (test_lutimens): Likewise.
3800         * tests/test-utimens.h (test_utimens): Likewise.
3801
3802         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
3803         Invoke the test program via an init.sh-using wrapper.
3804         * tests/test-getcwd.sh: New file.
3805         * modules/getcwd-tests (Files): Add it.
3806         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
3807
3808 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
3809
3810         gitlog-to-changelog: support multi-author commits.
3811         The FSF cares about keeping track of all authors of patches to its
3812         projects, but Git doesn't provide obvious support for multi-author
3813         changesets. Consensus seems to be forming around the use of extra
3814         Signed-off-by inspired lines in the log message formatted as
3815         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
3816         multi-author commits between version control systems.
3817         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
3818         log message and output in standard ChangeLog multi-author format.
3819         Reported by Peter Rosin <peda@lysator.liu.se>
3820
3821 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
3822             Bruno Haible  <bruno@clisp.org>
3823
3824         Fix some modules' file list.
3825         * modules/fstatat (Files): Add m4/lstat.m4.
3826         * modules/openat (Files): Likewise.
3827         * modules/unlinkat (Files): Likewise.
3828
3829 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
3830
3831         maint.mk: fix tight-scope.mk generation in VPATH builds.
3832         * top/maint.mk (tight-scope.mk): Make sure to prefix file
3833         reference with $(srcdir) so that the file is found correctly even
3834         when running `make syntax-check' in a VPATH build.
3835
3836 2011-11-13  Bruno Haible  <bruno@clisp.org>
3837             Jim Meyering  <meyering@redhat.com>
3838
3839         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
3840         * tests/init.sh (compare): Remove "No differences encountered" or
3841         synonymous output from the 'diff' program.
3842
3843 2011-11-13  Bruno Haible  <bruno@clisp.org>
3844
3845         Makefile: Tweak indentation.
3846         * Makefile: Use tab as first character in every line that contains rule
3847         commands.
3848
3849 2011-11-13  Bruno Haible  <bruno@clisp.org>
3850
3851         Syntax check for copyright statements.
3852         * check-copyright: New file.
3853         * Makefile (sc_check_copyright): New rule.
3854
3855 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3856
3857         * build-aux/git-version-gen: Add --prefix to configure the tag
3858         match string.
3859
3860 2011-11-13  Simon Josefsson  <simon@josefsson.org>
3861
3862         * build-aux/git-version-gen: Add --help and --version.
3863
3864 2011-11-12  Jim Meyering  <meyering@redhat.com>
3865
3866         revamp the other test-exclude?.sh scripts to use init.sh, too
3867         * tests/test-exclude1.sh: Use init.sh.
3868         * tests/test-exclude2.sh: Likewise.
3869         * tests/test-exclude3.sh: Likewise.
3870         * tests/test-exclude4.sh: Likewise.
3871         * tests/test-exclude5.sh: Likewise.
3872         * tests/test-exclude6.sh: Likewise.
3873         * tests/test-exclude7.sh: Likewise.
3874         * tests/test-exclude8.sh: Likewise.
3875         * modules/exclude-tests (Files): List init.sh.
3876
3877         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
3878         These shell scripts ignored failure of the binary test-exclude,
3879         so making the latter return 77 didn't cause them to be skipped.
3880         * tests/test-exclude5.sh: Exit with test-exclude's error status
3881         when that program fails.  Revamp to use init.sh.
3882         * tests/test-exclude2.sh: Likewise.
3883
3884         test-exclude: fix a typo
3885         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
3886
3887 2011-11-11  Bruno Haible  <bruno@clisp.org>
3888
3889         obstack: Fix compilation error on MSVC 9.
3890         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
3891
3892 2011-11-11  Jim Meyering  <meyering@redhat.com>
3893
3894         test-exclude: skip tests rather than failing on deficient systems
3895         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
3896         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
3897         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
3898         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
3899
3900 2011-11-10  Bruno Haible  <bruno@clisp.org>
3901
3902         ptsname_r test: Avoid gcc warning on glibc systems.
3903         * tests/test-ptsname_r.c (null_ptr): New function.
3904         (test_errors): Use it.
3905
3906 2011-11-10  Bruno Haible  <bruno@clisp.org>
3907
3908         ptsname_r: Avoid compilation error on OSF/1 5.1.
3909         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
3910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
3911         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
3912         function is not declared or incompatibly declared.
3913         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
3914         * modules/ptsname_r (Depends-on, configure.ac): Update.
3915         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
3916
3917 2011-11-10  Bruno Haible  <bruno@clisp.org>
3918
3919         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
3920         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
3921         When cross-compiling, guess yes on all platforms except AIX.
3922         Reported by Ludovic Courtès <ludo@gnu.org>.
3923
3924 2011-11-09  Bruno Haible  <bruno@clisp.org>
3925
3926         ptsname_r tests: Fix bugs.
3927         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
3928         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
3929
3930 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3931
3932         fstatat: work with cross-compilation
3933         Problem reported by Ludovic Courtès in
3934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
3935         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
3936         "cross-compiling" and assume the bug is present.  Replace
3937         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
3938         an inverted sense, to be more conservative about our assumptions.
3939         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
3940
3941 2011-11-09  Bruno Haible  <bruno@clisp.org>
3942
3943         Improve MODULES.html output.
3944         * modules/mkfifoat (Description): Use the word "function".
3945         * modules/readlinkat (Description): Likewise.
3946         * modules/symlinkat (Description): Likewise.
3947
3948 2011-11-09  Eric Blake  <eblake@redhat.com>
3949
3950         ptsname_r-tests: new test module
3951         * modules/ptsname_r-tests: New module.
3952         * tests/test-ptsname_r.c: New file.
3953
3954         ptsname_r: new module
3955         * modules/ptsname_r: New module.
3956         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
3957         * lib/ptsname.c (__ptsname_r): Split...
3958         * lib/ptsname_r.c: ...into new file.
3959         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3960         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
3961         * modules/stdlib (Makefile.am): Substitute witnesses.
3962         * lib/stdlib.in.h (ptsname_r): Declare it.
3963         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
3964         * MODULES.html.sh (Misc): Likewise.
3965         * modules/ptsname (Depends-on): Alter dependency.
3966         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
3967
3968 2011-11-09  Jim Meyering  <meyering@redhat.com>
3969
3970         announce-gen: be more concise when there's only one URL+tarball
3971         * build-aux/announce-gen (get_tool_versions): When you distribute
3972         only one type of tarball, combine the first two "Here are..."
3973         sections and make the key-checking grammar independent of
3974         how many tarballs there are.
3975
3976 2011-11-09  Eric Blake  <eblake@redhat.com>
3977
3978         openpty: provide a stub on mingw
3979         * lib/pty.in.h (includes): Provide forward declarations.
3980         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
3981
3982         raise: fix mingw handling of SIGPIPE
3983         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
3984
3985 2011-11-08  Bruno Haible  <bruno@clisp.org>
3986
3987         More conditional dependencies.
3988         * modules/faccessat (Depends-on): Add conditions.
3989         * modules/fchmodat (Depends-on): Likewise.
3990         * modules/fchownat (Depends-on): Likewise.
3991         * modules/fstatat (Depends-on): Likewise.
3992         * modules/mkfifoat (Depends-on): Likewise.
3993         * modules/readlinkat (Depends-on): Likewise.
3994         * modules/symlinkat (Depends-on): Likewise.
3995         * modules/unlinkat (Depends-on): Likewise.
3996         * modules/utimensat (Depends-on): Likewise.
3997         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
3998         * modules/linkat (Depends-on): Refine the conditions.
3999         * modules/renameat (Depends-on): Likewise.
4000
4001 2011-11-08  Bruno Haible  <bruno@clisp.org>
4002
4003         faccessat: Move AC_LIBOBJ invocation to module description.
4004         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
4005         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
4006         invocation from here...
4007         * modules/faccessat (configure.ac): ... to here. Invoke
4008         gl_PREREQ_FACCESSAT.
4009
4010 2011-11-08  Bruno Haible  <bruno@clisp.org>
4011
4012         faccessat: Simplify autoconf macro.
4013         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
4014         gl_FUNC_EUIDACCESS.
4015
4016 2011-11-08  Bruno Haible  <bruno@clisp.org>
4017
4018         renameat: Fix dependencies.
4019         * modules/renameat (Depends-on): Add stdbool.
4020
4021 2011-11-08  Bruno Haible  <bruno@clisp.org>
4022
4023         mkfifoat: Fix module description.
4024         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
4025         not gl_UNISTD_MODULE_INDICATOR.
4026
4027 2011-11-08  Bruno Haible  <bruno@clisp.org>
4028
4029         fstatat: Remove unused dependency.
4030         * modules/fstatat (Depends-on): Remove fstat.
4031
4032 2011-11-08  Simon Josefsson  <simon@josefsson.org>
4033
4034         GNUmakefile: behave when Makefile is missing.
4035         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
4036
4037 2011-11-08  Bruno Haible  <bruno@clisp.org>
4038
4039         openat: Conditionalize dependencies.
4040         * lib/openat.c: Reduce the scope of some #includes.
4041         * modules/openat (Depends-on): Add conditions.
4042
4043 2011-11-07  Jim Meyering  <meyering@redhat.com>
4044
4045         maint.mk: extract GPG key ID without using a temporary file
4046         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
4047         without using a temporary file.  Based on a suggestion from Werner Koch
4048         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
4049
4050 2011-11-07  Eric Blake  <eblake@redhat.com>
4051
4052         grantpt: fix typo
4053         * lib/stdlib.in.h (grantpt): Check correct function.
4054
4055         maint.mk: silence new syntax check
4056         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
4057
4058 2011-11-06  Bruno Haible  <bruno@clisp.org>
4059
4060         Doc about floating-point and math API.
4061         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
4062         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
4063
4064 2011-11-06  Bruno Haible  <bruno@clisp.org>
4065
4066         stdalign tests: Skip the test when compiled by Sun C.
4067         * tests/test-stdalign.c (main): Skip the test on Sun C.
4068
4069 2011-11-06  Bruno Haible  <bruno@clisp.org>
4070
4071         ansi-c++-opt: Complete the 2011-06-05 change.
4072         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
4073         does not support namespaces, set the variable to "no", not to ":".
4074
4075 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4076
4077         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
4078
4079 2011-11-06  Bruno Haible  <bruno@clisp.org>
4080
4081         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
4082         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
4083         (minus_zerol) [HP-UX]: New macro.
4084         (unary_minus) [HP-UX]: New function.
4085         (copysignl) [HP-UX]: Use unary_minus function.
4086
4087 2011-11-06  Bruno Haible  <bruno@clisp.org>
4088
4089         ldexp, ldexpf, ldexpl: Enhance tests.
4090         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
4091         and tests/test-ldexpl.c.
4092         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
4093         LDEXP, MIN_EXP, MAX_EXP): New macros.
4094         Include test-ldexp.h.
4095         (main): Just call test_function.
4096         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
4097         infinity.h, nan.h.
4098         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4099         MAX_EXP): New macros.
4100         Include test-ldexp.h.
4101         (x, y): Remove variables.
4102         (main): Just call test_function.
4103         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
4104         infinity.h, nan.h.
4105         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4106         MAX_EXP): New macros.
4107         Include test-ldexp.h.
4108         (x, y): Remove variables.
4109         (main): Just call test_function.
4110         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
4111         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
4112         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4113         (Depends-on): Add isnand-nolibm, signbit, float.
4114         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
4115         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4116         (Depends-on): Add isnanf-nolibm, signbit, float.
4117
4118 2011-11-06  Bruno Haible  <bruno@clisp.org>
4119
4120         math tests: Cosmetics.
4121         * tests/test-math-c++.cc: Reorder declarations.
4122
4123 2011-11-05  Bruno Haible  <bruno@clisp.org>
4124
4125         fma*: Simplify test.
4126         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
4127         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
4128
4129         Tests for module 'fmal'.
4130         * modules/fmal-tests: New file.
4131         * tests/test-fmal1.c: New file.
4132         * tests/test-fmal2.c: New file.
4133
4134         New module 'fmal'.
4135         * lib/math.in.h (fmal): New declaration.
4136         * lib/fmal.c: New file.
4137         * m4/fmal.m4: New file.
4138         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
4139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
4140         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
4141         REPLACE_FMAL.
4142         * modules/fmal: New file.
4143         * doc/posix-functions/fmal.texi: Mention the new module and the various
4144         bugs.
4145
4146         Tests for module 'fmaf'.
4147         * modules/fmaf-tests: New file.
4148         * tests/test-fmaf1.c: New file.
4149         * tests/test-fmaf2.c: New file.
4150
4151         New module 'fmaf'.
4152         * lib/math.in.h (fmaf): New declaration.
4153         * lib/fmaf.c: New file.
4154         * m4/fmaf.m4: New file.
4155         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
4156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
4157         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
4158         REPLACE_FMAF.
4159         * modules/fmaf: New file.
4160         * doc/posix-functions/fmaf.texi: Mention the new module and the various
4161         bugs.
4162
4163         Tests for module 'fma'.
4164         * modules/fma-tests: New file.
4165         * tests/test-fma1.c: New file.
4166         * tests/test-fma1.h: New file.
4167         * tests/test-fma2.c: New file.
4168         * tests/test-fma2.h: New file.
4169
4170         New module 'fma'.
4171         * lib/math.in.h (fma): New declaration.
4172         * lib/fma.c: New file.
4173         * m4/fma.m4: New file.
4174         * m4/fegetround.m4: New file.
4175         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
4176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
4177         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
4178         REPLACE_FMA.
4179         * modules/fma: New file.
4180         * doc/posix-functions/fma.texi: Mention the new module and the various
4181         bugs.
4182
4183         Extend gl_MATHFUNC.
4184         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
4185         Support 'void' as argument type.
4186         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
4187
4188 2011-11-05  Jim Meyering  <meyering@redhat.com>
4189
4190         maint.mk: also prohibit inclusion of dirent.h without use
4191         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
4192
4193 2011-11-05  Bruno Haible  <bruno@clisp.org>
4194
4195         ldexpl tests: Avoid test failure on MSVC 9.
4196         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
4197         value. Needed in order to enforce the conversion from a value greater
4198         than LDBL_MAX to Infinity.
4199
4200 2011-11-05  Bruno Haible  <bruno@clisp.org>
4201
4202         New modules 'at-internal', 'openat-h', split off from module 'openat'.
4203         * modules/at-internal: New file, extracted from modules/openat.
4204         * modules/openat-h: New file.
4205         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
4206         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
4207         * modules/openat (Description): Add reference to POSIX function.
4208         (Files): Remove lib/openat.h, lib/openat-proc.c.
4209         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
4210         intprops, unistd.
4211         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
4212         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
4213         gl_FCNTL_MODULE_INDICATOR.
4214         (Include): Remove unistd.h, openat.h.
4215         * modules/areadlinkat (Files): Add lib/at-func.c.
4216         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4217         openat-die, openat-h, save-cwd.
4218         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
4219         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4220         openat-die, openat-h, save-cwd, unistd.
4221         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
4222         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4223         openat-h, save-cwd. Remove fcntl-h, openat.
4224         * modules/fchmodat (Files): Remove lib/openat.h.
4225         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4226         openat, stdbool, unistd.
4227         * modules/fchownat (Files): Remove lib/openat.h.
4228         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4229         openat, stdbool, sys_stat.
4230         * modules/fdopendir (Files): Remove lib/openat-priv.h,
4231         lib/openat-proc.c.
4232         (Depends-on): Add at-internal.
4233         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
4234         * modules/fstatat (Files): Remove lib/openat.h.
4235         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4236         stdbool, unistd.
4237         * modules/fts (Depends-on): Add openat-h.
4238         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
4239         openat.
4240         * modules/mkdirat (Files): Remove lib/openat.h.
4241         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4242         openat, stdbool, sys_stat.
4243         * modules/mkfifoat (Files): Add lib/at-func.c.
4244         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4245         openat-h, save-cwd. Remove fcntl-h, openat.
4246         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
4247         * modules/readlinkat (Files): Add lib/at-func.c.
4248         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4249         openat-h, save-cwd. Remove fcntl-h, openat.
4250         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
4251         openat.
4252         * modules/selinux-at (Files): Add lib/at-func.c.
4253         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4254         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
4255         * modules/symlinkat (Files): Add lib/at-func.c.
4256         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4257         openat-h, save-cwd. Remove fcntl-h, openat.
4258         * modules/unlinkat (Files): Remove lib/openat.h.
4259         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4260         stdbool.
4261         * modules/utimensat (Files): Add lib/at-func.c.
4262         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
4263         openat-die, openat-h, save-cwd.
4264         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
4265         * modules/fdutimensat-tests (Depends-on): Add openat.
4266         * modules/fstatat-tests (Depends-on): Add openat-h.
4267         * modules/readlinkat-tests (Depends-on): Add openat.
4268         * modules/symlinkat-tests (Depends-on): Add openat.
4269
4270 2011-11-05  Bruno Haible  <bruno@clisp.org>
4271
4272         openat: Include <stdbool.h>.
4273         * lib/openat.c: Include <stdbool.h>.
4274
4275 2011-11-04  Bruno Haible  <bruno@clisp.org>
4276
4277         fchownat, renameat, unlinkat: Fix dependencies.
4278         * modules/fchownat (Depends-on): Add fstatat.
4279         * modules/renameat (Depends-on): Likewise.
4280         * modules/unlinkat (Depends-on): Likewise.
4281
4282 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
4283
4284         openat: remove direct dependency on dirent
4285         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
4286         and hasn't been needed ever since fdopendir was split into its own
4287         module on 2009-08-31.
4288         * modules/openat (Depends-on): Remove dirent.
4289
4290 2011-11-04  Bruno Haible  <bruno@clisp.org>
4291
4292         renameat: Optimize code size.
4293         * modules/renameat (configure.ac): Don't compile at-func2.c if
4294         REPLACE_RENAMEAT is 1.
4295
4296 2011-11-04  Bruno Haible  <bruno@clisp.org>
4297
4298         openat tests: Fix file list.
4299         * modules/openat-tests (Files): Add tests/test-open.h.
4300
4301 2011-11-04  Bruno Haible  <bruno@clisp.org>
4302
4303         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
4304         * modules/fchmodat (Depends-on): Add openat-die.
4305         * modules/fchownat (Depends-on): Likewise.
4306         * modules/linkat (Depends-on): Likewise.
4307         * modules/renameat (Depends-on): Likewise.
4308         * modules/openat (Depends-on): Add dirent.
4309
4310 2011-11-04  Jim Meyering  <meyering@redhat.com>
4311
4312         at-func*.c: fix comments
4313         * lib/at-func2.c: Correct/improve first-line comment.
4314         * lib/at-func.c: Correct grammar in first-line comment.
4315
4316 2011-11-04  Bruno Haible  <bruno@clisp.org>
4317
4318         New module 'mkdirat', split off from module 'openat'.
4319         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
4320         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
4321         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
4322         * modules/mkdirat: New file, extracted from modules/openat.
4323         * modules/openat (Files): Remove lib/mkdirat.c.
4324         (Depends-on): Remove mkdir.
4325         (configure.ac): Remove AC_LIBOBJ of mkdirat.
4326         (Include): Remove <sys/stat.h>.
4327         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
4328         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
4329         tests/test-mkdir.h.
4330         (Depends-on): Remove ignore-value.
4331         (Makefile.am): Remove rules for test-mkdirat.
4332         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
4333         of module 'openat'.
4334         * NEWS: Mention the change.
4335
4336 2011-11-04  Bruno Haible  <bruno@clisp.org>
4337
4338         closedir: Avoid warning on mingw.
4339         * lib/closedir.c: Include <unistd.h>.
4340
4341 2011-11-04  Bruno Haible  <bruno@clisp.org>
4342
4343         New module 'fstatat', split off from module 'openat'.
4344         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
4345         defined.
4346         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
4347         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
4348         gl_FUNC_FSTATAT.
4349         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
4350         * modules/fstatat: New file, extracted from modules/openat.
4351         * modules/openat (Files): Remove lib/fstatat.c.
4352         (Depends-on): Remove lstat.
4353         (configure.ac): Remove AC_LIBOBJ of fstatat.
4354         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
4355         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
4356         tests/test-lstat.h, tests/test-stat.h.
4357         (Depends-on): Remove getcwd-lgpl.
4358         (Makefile.am): Remove rules for test-fstatat.
4359         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
4360         of module 'openat'.
4361         * NEWS: Mention the change.
4362         * modules/getcwd (Depends-on): Add fstatat.
4363         * modules/linkat (Depends-on): Likewise.
4364         * modules/mkfifoat-tests (Depends-on): Likewise.
4365         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
4366
4367 2011-11-03  Bruno Haible  <bruno@clisp.org>
4368
4369         New module 'unlinkat', split off from module 'openat'.
4370         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
4371         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
4372         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
4373         * modules/unlinkat: New file, extracted from modules/openat. Correct
4374         the dependency conditions.
4375         * modules/openat (Files): Remove lib/unlinkat.c.
4376         (Depends-on): Remove rmdir, unlink.
4377         (configure.ac): Remove AC_LIBOBJ of unlinkat.
4378         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
4379         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
4380         tests/test-rmdir.h, tests/test-unlink.h.
4381         (Depends-on): Remove unlinkdir.
4382         (Makefile.am): Remove rules for test-unlinkat.
4383         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
4384         of module 'openat'.
4385         * NEWS: Mention the change.
4386         * modules/linkat-tests (Depends-on): Add unlinkat.
4387         * modules/mkfifoat-tests (Depends-on): Likewise.
4388         * modules/readlinkat-tests (Depends-on): Likewise.
4389
4390 2011-11-02  Bruno Haible  <bruno@clisp.org>
4391
4392         New module 'fchmodat', split off from module 'openat'.
4393         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
4394         defined.
4395         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
4396         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
4397         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
4398         * modules/fchmodat: New file, extracted from modules/openat.
4399         * modules/openat (Files): Remove lib/fchmodat.c.
4400         (configure.ac): Remove AC_LIBOBJ of fchmodat.
4401         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
4402         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
4403         (Makefile.am): Remove rules for test-fchmodat.
4404         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
4405         of module 'openat'.
4406         * NEWS: Mention the change.
4407
4408 2011-11-02  Jim Meyering  <meyering@redhat.com>
4409
4410         putenv: indent #definition of "environ" to placate cppi
4411         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
4412
4413         gitlog-to-changelog: provide a ChangeLog-repair mechanism
4414         Git logs are often treated as immutable, because editing them
4415         changes the SHA1 checksums of all descendants.  Thus, errors in
4416         git logs tend to stay there forever.  However, when we generate
4417         a ChangeLog file -- typically for distribution -- from that git log,
4418         we can actually make corrections in the generated file.  The key
4419         lies in recording in machine-readable/applicable form the desired
4420         corrections.  See --help for description and an example.
4421         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
4422         (usage): Describe it; alphabetize option descriptions.
4423         (main): Honor the new option, carefully.
4424
4425 2011-11-01  Jim Meyering  <meyering@redhat.com>
4426
4427         gitlog-to-changelog: avoid an infloop
4428         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
4429         that ends up being empty.
4430
4431 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4432
4433         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
4434         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
4435         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
4436         contains (possibly-quoted) backslashes.  This should avoid
4437         all-too-common shell bugs if COMPLICATED contains backslashes in
4438         the "wrong" places.  Reported by David Evans in
4439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
4440         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
4441         because we want ASCII ranges.  Is there some reason we don't use
4442         the C locale everywhere in this script?
4443         (func_module, top level): Avoid unwanted pathname expansion when
4444         $repo_url_prefix or $repo_url_suffix_repl contain shell
4445         metacharacters like '?' and '*'.
4446
4447 2011-11-01  Bruno Haible  <bruno@clisp.org>
4448
4449         fchownat: Improve description.
4450         * modules/fchownat (Description): Add link to function.
4451
4452 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4453
4454         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
4455         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
4456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
4457         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
4458
4459 2011-11-01  Bruno Haible  <bruno@clisp.org>
4460
4461         alignof: Avoid collision with stdalign module.
4462         * lib/alignof.h (alignof): Remove macro.
4463         * NEWS: Mention the change.
4464         Reported by Paul Eggert.
4465
4466 2011-11-01  Bruno Haible  <bruno@clisp.org>
4467
4468         New module 'fchownat', split off from module 'openat'.
4469         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
4470         defined.
4471         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
4472         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
4473         invoke gl_FUNC_FCHOWNAT.
4474         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
4475         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
4476         * modules/fchownat: New file, extracted from modules/openat.
4477         * modules/openat (Files): Remove lib/fchownat.c.
4478         (Depends-on): Remove lchown.
4479         (configure.ac): Remove AC_LIBOBJ of fchownat.
4480         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
4481         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
4482         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
4483         (Depends-on): Remove mgetgroups, usleep, stat-time.
4484         (configure.ac): Remove test for getegid.
4485         (Makefile.am): Remove rules for test-fchownat.
4486         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
4487         of module 'openat'.
4488         * NEWS: Mention the change.
4489
4490 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
4491
4492         stdalign: port better to MSVC and to Sun C 5.11
4493         This fixes some of the problems reported by Bruno Haible in
4494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
4495         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
4496         shortcomings of MSVC and of Sun C 5.11.
4497         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
4498         around __declspec arg.
4499         * modules/stdalign-tests (Files): Add tests/macros.h.
4500         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
4501         Include macros.h, for ASSERT.
4502         (DECLARE_ALIGNED): Remove.
4503         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
4504         to catch bug), and to 1 if not (simplifies the rest of the code).
4505         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
4506         (CHECK_AUTO): Remove.
4507         (CHECK_ALIGNED): Check only the alignment of the static vars,
4508         since auto var alignment isn't supported by Sun C 5.11.
4509         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
4510         ASSERT failures are easier to diagnose.
4511
4512 2011-10-31  Bruno Haible  <bruno@clisp.org>
4513
4514         doc about some IRIX 5.3 problems.
4515         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
4516         on IRIX 5.3.
4517         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
4518         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
4519         5.3.
4520         * doc/posix-functions/grantpt.texi: Likewise.
4521         * doc/posix-functions/unlockpt.texi: Likewise.
4522         * doc/posix-functions/lgamma.texi: Likewise.
4523         * doc/posix-functions/nextafter.texi: Likewise.
4524         * doc/posix-functions/remainder.texi: Likewise.
4525         * doc/posix-functions/select.texi: Mention misplaced declaration on
4526         IRIX 5.3.
4527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4528
4529 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
4530
4531         gitlog-to-changelog: fix git-log invocation.
4532         git-log mishandles date strings before 1970-01-01 UTC, and there is
4533         no use to specify --since=1970-01-01 by default anyway.
4534         * build-aux/gitlog-to-changelog: By default, when no --since option
4535         was given, do not specify explicit --since option to git-log.
4536
4537 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
4538
4539         gitlog-to-changelog: new option --append-dot.
4540         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
4541         first non-blank line of each commit message terminated with a dot.
4542
4543 2011-10-30  Bruno Haible  <bruno@clisp.org>
4544
4545         ffsl, ffsll: Avoid compilation error due to 'restrict'.
4546         * lib/ffsl.h: Include <config.h>.
4547         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
4548
4549 2011-10-30  Jim Meyering  <meyering@redhat.com>
4550
4551         GNUmakefile: reenable "make syntax-check" for most projects
4552         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
4553         build-aux variable", "syntax-check" would do nothing but succeed with
4554         the "No version control files detected..." diagnostic (unless you
4555         happened to override _build-aux via cfg.mk).
4556         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
4557         to precede inclusion of maint.mk.  Otherwise, these variables would
4558         be used undefined in any project that does not override the default.
4559
4560 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
4561
4562         gitlog-to-changelog: treat a message with only blank lines as empty.
4563         * build-aux/gitlog-to-changelog: Move the code that removes leading and
4564         trailing blank lines before the code that issues a warning about an
4565         empty commit message.
4566
4567 2011-10-30  Jim Meyering  <meyering@redhat.com>
4568
4569         test-parse-datetime.c: avoid new DST-related false positive test failure
4570         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
4571         based on the time/date we'll convert, not the current time.
4572         Otherwise, the moment we cross a DST boundary like today's in
4573         Europe, (CEST to CET), that offset ends up being one hour off.
4574
4575 2011-10-27  Bruno Haible  <bruno@clisp.org>
4576
4577         fstat: Tweak documentation.
4578         * modules/fstat (Description): More precise description.
4579
4580 2011-10-27  Bruno Haible  <bruno@clisp.org>
4581
4582         Update documentation regarding 'largefile' module.
4583         * doc/posix-functions/fstat.texi: Tweak wording.
4584         * doc/posix-functions/opendir.texi: Mention that the module fixes the
4585         problems with huge directories and/or small ino_t types.
4586         * doc/posix-functions/readdir.texi: Likewise.
4587         * doc/posix-functions/rewinddir.texi: Likewise.
4588
4589 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
4590
4591         maint.mk: don't maintain a second build-aux variable.
4592         * maint.mk (build_aux): Removed.  The maintainer-makefile module
4593         depends on GNUmakefile, which already maintains a cfg.mk
4594         overridable $(_build-aux) for projects with a non-standard
4595         build-aux directory location, although without the $(srcdir)
4596         prefix.  Use that variable consistently instead of introducing a
4597         second one.  Adjust all call sites.
4598
4599 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
4600
4601         Add stdalign module and use it in other modules.
4602         This is based on a previous proposal by Bruno Haible
4603         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
4604
4605         stdalign: new module
4606         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
4607         * modules/stdalign: New files.
4608         * MODULES.html.sh (c1x_core_properties): Add stdalign.
4609         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
4610
4611         stdalign-tests: new module
4612         * modules/stdalign-tests, tests/test-stdalign.c: New files.
4613
4614         argp: use stdalign
4615         * lib/argp-parse.c: Include <stdalign.h>.
4616         (alignof): Remove.
4617         * modules/argp (Depends-on): Add stdalign.
4618
4619         crypto libraries: use stdalign
4620         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
4621         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
4622         Do not include <stdlib.h> twice, in md4.c.
4623         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
4624         because we are accessing a pointer's bit-pattern, not a size.
4625         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
4626         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
4627         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
4628         * modules/crypto/sha512: Likewise.
4629
4630         sys_socket: use stdalign, not alignof
4631         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
4632         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
4633
4634 2011-10-27  Bruno Haible  <bruno@clisp.org>
4635
4636         raise test: Avoid a test failure on Linux/MIPS.
4637         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
4638         because 99 is a valid signal on Linux/MIPS.
4639
4640 2011-10-27  Bruno Haible  <bruno@clisp.org>
4641
4642         nonblocking tests: Fix test failure on Linux/MIPS.
4643         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
4644         Set to 270000.
4645
4646 2011-10-27  Bruno Haible  <bruno@clisp.org>
4647
4648         utimensat: Work around problem on Linux/hppa.
4649         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
4650         values.
4651         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
4652
4653 2011-10-25  Jim Meyering  <meyering@redhat.com>
4654
4655         maint.mk: fix a bug in sc_prohibit_stddef_without_use
4656         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
4657         after symbols like NULL, size_t, etc.
4658         Reported by Alfred M. Szmidt.
4659
4660         maint.mk: exempt ENODATA from a syntax-check rule
4661         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
4662         from the sc_prohibit_always-defined_macros syntax-check rule.
4663         Add a comment.  See this for more details:
4664         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
4665
4666 2011-10-23  Jim Meyering  <meyering@redhat.com>
4667
4668         fts: close parent dir FD before returning from post-traversal fts_read
4669         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
4670         unlink A, even though an FD open on A remained.  This is suboptimal
4671         (holding a file descriptor open longer than needed), but otherwise not
4672         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
4673         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
4674         that represents a real problem: it causes the removal of A to fail
4675         with e.g., "rm: cannot remove `A': Device or resource busy"
4676
4677         fts visits each directory twice and keeps a cache (fts_fd_ring) of
4678         directory file descriptors.  After completing the final, FTS_DP,
4679         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
4680         cache, but then proceeded to add a new FD to it via the subsequent
4681         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
4682         final file descriptor would be closed only via fts_close's call to
4683         fd_ring_clear.  Now, it is usually closed earlier, via the final
4684         FTS_DP-returning fts_read call.
4685         * lib/fts.c (restore_initial_cwd): New function, converted from
4686         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
4687         Update callers.
4688         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
4689         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
4690
4691 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
4692             Bruno Haible  <bruno@clisp.org>
4693             Jim Meyering  <jim@meyering.net>
4694
4695         readme-release: improve safety of release prep instructions.
4696         * README-release: Don't git pull all branches when only master
4697         is needed for the release process.
4698         Run make maintainer-clean before changing trees and merging.
4699         Don't try to run ./configure right after git pull in case files
4700         that influence the bootstrap process have changed, move the
4701         ./configure step to after running ./bootstrap.
4702         Don't bootstrap "one last time"... it's the first time!
4703
4704 2011-10-22  Bruno Haible  <bruno@clisp.org>
4705
4706         errno, strerror-override: Support for MSVC 10.
4707         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
4708         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
4709         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
4710         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
4711         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
4712         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
4713         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
4714         Assign values compatible with MSVC 10.
4715         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
4716         New macros.
4717         (GNULIB_defined_EWINSOCK): New macro.
4718         * lib/strerror-override.c (strerror_override): Update accordingly.
4719         * lib/strerror-override.h: Likewise.
4720         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
4721         longer equal to the corresponding errno value.
4722         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4723
4724 2011-10-22  Bruno Haible  <bruno@clisp.org>
4725
4726         perror: Recognize when test program crashes.
4727         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
4728         strerror, set gl_cv_func_perror_works to no.
4729         Reported by Daniel Richard G. <skunk@iskunk.org>.
4730
4731         perror: Fix indentation.
4732         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
4733
4734 2011-10-22  Bruno Haible  <bruno@clisp.org>
4735
4736         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
4737         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
4738         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
4739         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
4740         functions, not as a macro.
4741         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
4742         macros.
4743         (isfinite, isinf, isnan, signbit): Check overloaded functions and
4744         absence of macro.
4745         Suggested by Eric Blake.
4746         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4747
4748 2011-10-21  Bruno Haible  <bruno@clisp.org>
4749
4750         relocatable-prog-wrapper: Don't leave object files behind.
4751         * build-aux/install-reloc: Re-synchronize list of .o files to be
4752         removed with list of compilation units.
4753
4754 2011-10-20  Bruno Haible  <bruno@clisp.org>
4755
4756         openpty, posix_openpt: Remove code duplication.
4757         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
4758         * lib/openpty.c: Include <stdlib.h>.
4759         (openpty): Use posix_openpt on all platforms except IRIX.
4760         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
4761
4762 2011-10-20  Bruno Haible  <bruno@clisp.org>
4763
4764         unlockpt: Detect invalid argument.
4765         * lib/unlockpt.c: Include <fcntl.h>.
4766         (unlockpt): Check whether fd is valid, using fcntl().
4767         * modules/unlockpt (Depends-on): Add fcntl-h.
4768
4769 2011-10-20  Bruno Haible  <bruno@clisp.org>
4770
4771         openpty: Avoid compilation error on AIX 6.1.
4772         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
4773
4774 2011-10-20  Bruno Haible  <bruno@clisp.org>
4775
4776         posix_openpt: Support for OpenBSD.
4777         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
4778         (posix_openpt) [OpenBSD]: New code.
4779         * lib/grantpt.c: Include <fcntl.h>.
4780         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
4781         * modules/grantpt (Depends-on): Add fcntl-h.
4782
4783 2011-10-20  Bruno Haible  <bruno@clisp.org>
4784
4785         posix_openpt test: Coding style.
4786         * tests/test-posix_openpt.c: Use GNU coding style.
4787
4788 2011-10-20  Bruno Haible  <bruno@clisp.org>
4789
4790         grantpt: Support --avoid=pt_chown.
4791         * modules/grantpt (Files): Add lib/pty-private.h.
4792
4793 2011-10-20  Bruno Haible  <bruno@clisp.org>
4794
4795         posix_openpt: Fix autoconf macro.
4796         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
4797         unneeded check for _getpty.
4798
4799 2011-10-20  Bruno Haible  <bruno@clisp.org>
4800
4801         openpty: Update comments.
4802         * lib/openpty.c: Add comments about Minix.
4803
4804 2011-10-19  Eric Blake  <eblake@redhat.com>
4805
4806         openpty: relax license
4807         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
4808
4809         pt_chown: use configmake to simplify build
4810         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
4811
4812         ptsname and others: relax license
4813         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
4814         * modules/unlockpt (License): Likewise.
4815         * modules/pt_chown (License): Likewise.
4816         * modules/ptsname (License): Likewise.
4817         * modules/ttyname_r (License): Likewise.
4818
4819 2011-10-19  Jim Meyering  <meyering@redhat.com>
4820
4821         posix_openpt: remove spurious #endif
4822         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
4823
4824 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
4825
4826         maint.mk: Respect $(build_aux) in web-manual rule.
4827         * top/maint.mk (web-manual): Find gen-announce script in user's
4828         $(build_aux) directory instead of hard-coding 'build-aux'.
4829
4830 2011-10-19  Bruno Haible  <bruno@clisp.org>
4831
4832         posix_openpt: Fix compilation error.
4833         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
4834         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
4835         Mention the openpty module as an alternative.
4836
4837 2011-10-19  Bruno Haible  <bruno@clisp.org>
4838
4839         Support for old NeXTstep 3.3 frexp().
4840         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
4841         execution time of the test to 5 seconds.
4842         Reported by Daniel Richard G. <skunk@iskunk.org>.
4843
4844 2011-10-19  Bruno Haible  <bruno@clisp.org>
4845
4846         Support for old NeXTstep 3.3 sed.
4847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
4848         part, use /.../, not \|...|. Escape periods in the header file name.
4849         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4850         Reported by Daniel Richard G. <skunk@iskunk.org>.
4851
4852 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4853
4854         Support for old NeXTstep 3.3 gcc.
4855         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
4856         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
4857         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
4858         * lib/spawn.in.h (_Restrict_arr_): Likewise.
4859         * lib/regex.h (_Restrict_arr_): Likewise.
4860         * lib/regex_internal.h (re_token_t): Likewise.
4861         * lib/regexec.c (check_node_accept_bytes): Likewise.
4862         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
4863
4864 2011-10-18  Eric Blake  <eblake@redhat.com>
4865
4866         posix_openpt: new module
4867         * modules/posix_openpt: New module.
4868         * m4/posix_openpt.m4: New file.
4869         * lib/posix_openpt.c: Likewise.
4870         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4871         (gl_STDLIB_H_DEFAULTS): Set defaults.
4872         * modules/stdlib (Makefile.am): Substitute macros.
4873         * lib/stdlib.in.h (posix_openpt): Declare.
4874         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
4875         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
4876         * modules/posix_openpt-tests: New test module.
4877         * tests/test-posix_openpt.c: New test.
4878
4879 2011-10-15  Bruno Haible  <bruno@clisp.org>
4880
4881         xstrtoll: Fix compilation failure.
4882         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
4883         from lib/strtol.c.
4884         * doc/posix-headers/limits.texi: Mention missing numerical limits on
4885         some platforms.
4886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4887
4888 2011-10-15  Bruno Haible  <bruno@clisp.org>
4889
4890         vasnprintf: Optimize bit search operation.
4891         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
4892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
4893         gl_DOUBLE_EXPONENT_LOCATION.
4894         * modules/vasnprintf (Files): Add m4/exponentd.m4.
4895         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4896         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4897         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4898         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4899         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4900         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4901         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4902         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
4903
4904 2011-10-15  Bruno Haible  <bruno@clisp.org>
4905
4906         vasnprintf: Fix comments.
4907         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
4908
4909 2011-10-14  Bruno Haible  <bruno@clisp.org>
4910
4911         Tests for module 'integer_length_ll'.
4912         * modules/integer_length_ll-tests: New file.
4913         * tests/test-integer_length_ll.c: New file.
4914
4915         New module 'integer_length_ll'.
4916         * lib/integer_length_ll.c: New file.
4917         * modules/integer_length_ll: New file.
4918
4919 2011-10-14  Bruno Haible  <bruno@clisp.org>
4920
4921         Tests for module 'integer_length_l'.
4922         * modules/integer_length_l-tests: New file.
4923         * tests/test-integer_length_l.c: New file.
4924
4925         New module 'integer_length_l'.
4926         * lib/integer_length_l.c: New file.
4927         * modules/integer_length_l: New file.
4928
4929 2011-10-14  Bruno Haible  <bruno@clisp.org>
4930
4931         Tests for module 'integer_length'.
4932         * modules/integer_length-tests: New file.
4933         * tests/test-integer_length.c: New file.
4934
4935         New module 'integer_length'.
4936         * lib/integer_length.h: New file.
4937         * lib/integer_length.c: New file.
4938         * modules/integer_length: New file.
4939
4940 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4941
4942         popen: Fix dependency conditions.
4943         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
4944
4945 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
4946
4947         perror: Fix autoconf test.
4948         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
4949         <stdlib.h> and <string.h>.
4950
4951 2011-10-14  Bruno Haible  <bruno@clisp.org>
4952
4953         ffsl: Optimize on 64-bit platforms.
4954         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
4955         unrolling.
4956
4957 2011-10-13  Bruno Haible  <bruno@clisp.org>
4958
4959         ffsl: Optimize on 32-bit platforms.
4960         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
4961         use ffs() without a loop.
4962
4963         ffsl, ffsll: Optimize for GCC.
4964         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
4965         * lib/ffsl.c (GCC_BUILTIN): New macro.
4966         * lib/ffsll.c (GCC_BUILTIN): Likewise.
4967
4968 2011-10-13  Bruno Haible  <bruno@clisp.org>
4969
4970         ffs, bcopy, memset: Support symbol renaming via config.h.
4971         * lib/ffs.c: Include <config.h>.
4972         * lib/bcopy.c: Likewise.
4973         * lib/memset.c: Likewise.
4974
4975 2011-10-10  Bruno Haible  <bruno@clisp.org>
4976
4977         atanl: Simplify for platforms where 'long double' == 'double'.
4978         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4979         alternative implementation.
4980         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4981         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4982         * modules/atanl (Depends-on): Add atan. Update conditions.
4983
4984 2011-10-10  Bruno Haible  <bruno@clisp.org>
4985
4986         acosl: Simplify for platforms where 'long double' == 'double'.
4987         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4988         alternative implementation.
4989         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4990         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4991         * modules/acosl (Depends-on): Add acos. Update conditions.
4992
4993 2011-10-10  Bruno Haible  <bruno@clisp.org>
4994
4995         asinl: Simplify for platforms where 'long double' == 'double'.
4996         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4997         alternative implementation.
4998         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4999         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5000         * modules/asinl (Depends-on): Add asin. Update conditions.
5001
5002 2011-10-10  Bruno Haible  <bruno@clisp.org>
5003
5004         tanl: Simplify for platforms where 'long double' == 'double'.
5005         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5006         implementation.
5007         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5008         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5009         * modules/tanl (Depends-on): Add tan. Update conditions.
5010         (configure.ac): Don't compile trigl.c if
5011         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5012
5013 2011-10-10  Bruno Haible  <bruno@clisp.org>
5014
5015         cosl: Simplify for platforms where 'long double' == 'double'.
5016         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5017         implementation.
5018         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5019         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5020         * modules/cosl (Depends-on): Add cos. Update conditions.
5021         (configure.ac): Don't compile sincosl.c and trigl.c if
5022         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5023
5024 2011-10-10  Bruno Haible  <bruno@clisp.org>
5025
5026         sinl: Simplify for platforms where 'long double' == 'double'.
5027         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5028         implementation.
5029         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5030         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5031         * modules/sinl (Depends-on): Add sin. Update conditions.
5032         (configure.ac): Don't compile sincosl.c and trigl.c if
5033         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5034
5035 2011-10-10  Bruno Haible  <bruno@clisp.org>
5036
5037         logl: Simplify for platforms where 'long double' == 'double'.
5038         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5039         implementation.
5040         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5041         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5042         * modules/logl (Depends-on): Add log. Update conditions.
5043
5044 2011-10-10  Bruno Haible  <bruno@clisp.org>
5045
5046         expl: Simplify for platforms where 'long double' == 'double'.
5047         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5048         implementation.
5049         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5050         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5051         * modules/expl (Depends-on): Add exp. Update conditions.
5052
5053 2011-10-10  Bruno Haible  <bruno@clisp.org>
5054
5055         sqrtl: Simplify for platforms where 'long double' == 'double'.
5056         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5057         alternative implementation.
5058         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5059         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5060         * modules/sqrtl (Depends-on): Update conditions.
5061
5062 2011-10-10  Bruno Haible  <bruno@clisp.org>
5063
5064         ldexpl: Simplify for platforms where 'long double' == 'double'.
5065         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5066         alternative implementation.
5067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5068         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5069         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
5070
5071 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
5072
5073         ffsll: set correct witness
5074         * modules/ffsll (configure.ac): Fix typo.
5075
5076 2011-10-10  Bruno Haible  <bruno@clisp.org>
5077
5078         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
5079         * lib/printf-frexpl.c: Include <config.h>.
5080         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5081         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
5082         second time.
5083         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
5084         gl_LONG_DOUBLE_VS_DOUBLE.
5085         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
5086         conditions.
5087
5088 2011-10-10  Bruno Haible  <bruno@clisp.org>
5089
5090         frexpl: Simplify for platforms where 'long double' == 'double'.
5091         * lib/frexpl.c: Include <config.h>.
5092         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5093         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5094         time.
5095         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5096         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5097         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
5098         * modules/frexpl (Depends-on): Add frexp. Update conditions.
5099         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
5100         conditions.
5101
5102 2011-10-10  Jim Meyering  <meyering@redhat.com>
5103
5104         test-renameat: don't leave behind a temporary file
5105         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
5106           ERROR: files left in build directory after distclean:
5107           ./gltests/test-renameat.too
5108           make[1]: *** [distcleancheck] Error 1
5109         Reported by Tom G. Christensen.
5110
5111 2011-10-09  Bruno Haible  <bruno@clisp.org>
5112
5113         rint: Determine RINT_LIBM correctly on AIX 7.
5114         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
5115         directly, not only through a function pointer. Also accept an optional
5116         4th argument with extra code.
5117         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
5118         rintf() call by gcc when optimizing.
5119
5120         mathfunc.m4: Refactor.
5121         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
5122         m4 variable.
5123
5124 2011-10-09  Bruno Haible  <bruno@clisp.org>
5125
5126         rintl: Simplify for platforms where 'long double' == 'double'.
5127         * lib/rintl.c: Include <config.h>.
5128         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5129         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5130         time.
5131         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5132         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5133         * modules/rintl (Depends-on): Add rint. Update conditions.
5134
5135 2011-10-09  Bruno Haible  <bruno@clisp.org>
5136
5137         roundl: Simplify for platforms where 'long double' == 'double'.
5138         * lib/roundl.c: Include <config.h>.
5139         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5140         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5141         time.
5142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5143         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5144         * modules/roundl (Depends-on): Add round. Update conditions.
5145
5146 2011-10-09  Bruno Haible  <bruno@clisp.org>
5147
5148         truncl: Simplify for platforms where 'long double' == 'double'.
5149         * lib/truncl.c: Include <config.h>.
5150         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5151         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5152         time.
5153         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5154         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5155         * modules/truncl (Depends-on): Add trunc. Update conditions.
5156
5157 2011-10-09  Bruno Haible  <bruno@clisp.org>
5158
5159         ceill: Simplify for platforms where 'long double' == 'double'.
5160         * lib/ceill.c: Include <config.h>.
5161         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5162         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5163         time.
5164         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5165         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5166         * modules/ceill (Depends-on): Add ceil. Update conditions.
5167
5168 2011-10-09  Bruno Haible  <bruno@clisp.org>
5169
5170         floorl: Simplify for platforms where 'long double' == 'double'.
5171         * lib/floorl.c: Include <config.h>.
5172         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5173         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5174         time.
5175         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5176         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5177         * modules/floorl (Depends-on): Add floor. Update conditions.
5178
5179 2011-10-09  Bruno Haible  <bruno@clisp.org>
5180
5181         rint: Fix ordering constraints.
5182         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
5183         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5184         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5185
5186 2011-10-09  Bruno Haible  <bruno@clisp.org>
5187
5188         copysignl: Simplify for platforms where 'long double' == 'double'.
5189         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5190         alternative.
5191         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5192         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5193         * modules/copysignl (Depends-on): Add copysign. Update conditions.
5194
5195 2011-10-09  Bruno Haible  <bruno@clisp.org>
5196
5197         Tests for module 'rintl'.
5198         * modules/rintl-tests: New file.
5199         * tests/test-rintl.c: New file.
5200
5201         New module 'rintl'.
5202         * lib/math.in.h (rintl): New declaration.
5203         * lib/rintl.c: New file.
5204         * m4/rintl.m4: New file.
5205         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
5206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
5207         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
5208         * modules/rintl: New file.
5209         * tests/test-math-c++.cc: Check the declaration of rintl.
5210         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5211         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
5212         * doc/posix-functions/rintl.texi: Mention the new module.
5213
5214 2011-10-09  Bruno Haible  <bruno@clisp.org>
5215
5216         Tests for module 'rintf'.
5217         * modules/rintf-tests: New file.
5218         * tests/test-rintf.c: New file.
5219
5220         New module 'rintf'.
5221         * lib/math.in.h (rintf): New declaration.
5222         * lib/rintf.c: New file.
5223         * m4/rintf.m4: New file.
5224         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
5225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
5226         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
5227         * modules/rintf: New file.
5228         * tests/test-math-c++.cc: Check the declaration of rintf.
5229         * doc/posix-functions/rintf.texi: Mention the new module.
5230
5231 2011-10-09  Bruno Haible  <bruno@clisp.org>
5232
5233         rint: Support for MSVC.
5234         * lib/math.in.h (rint): New declaration.
5235         * lib/rint.c: New file.
5236         * m4/rint.m4: New file.
5237         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
5238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
5239         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
5240         * modules/rint (Description): Fix.
5241         (Files): Add lib/rint.c, m4/rint.m4.
5242         (Depends-on): Add math.
5243         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
5244         gl_MATH_MODULE_INDICATOR.
5245         * tests/test-math-c++.cc: Check the declaration of rint.
5246         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5247         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
5248         * doc/posix-functions/rint.texi: Mention the replacement provided by
5249         the module.
5250
5251         rint tests: More tests.
5252         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
5253         minus-zero.h, infinity.h, nan.h.
5254         (main): Skip the test if the current rounding mode is not standard. Add
5255         tests for negative numbers, minus zero, infinity, NaN.
5256         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
5257         tests/nan.h.
5258         (Depends-on): Add isnand-nolibm.
5259
5260 2011-10-09  Bruno Haible  <bruno@clisp.org>
5261
5262         Tests for module 'copysignl'.
5263         * modules/copysignl-tests: New file.
5264         * tests/test-copysignl.c: New file.
5265
5266         New module 'copysignl'.
5267         * lib/math.in.h (copysignl): New declaration.
5268         * lib/copysignl.c: New file.
5269         * m4/copysignl.m4: New file.
5270         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
5271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
5272         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
5273         HAVE_COPYSIGNL.
5274         * modules/copysignl: New file.
5275         * tests/test-math-c++.cc: Check the declaration of copysignl.
5276         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5277         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
5278         * doc/posix-functions/copysignl.texi: Mention the new module.
5279
5280 2011-10-09  Bruno Haible  <bruno@clisp.org>
5281
5282         Tests for module 'copysignf'.
5283         * modules/copysignf-tests: New file.
5284         * tests/test-copysignf.c: New file.
5285
5286         New module 'copysignf'.
5287         * lib/math.in.h (copysignf): New declaration.
5288         * lib/copysignf.c: New file.
5289         * m4/copysignf.m4: New file.
5290         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
5291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
5292         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
5293         HAVE_COPYSIGNF.
5294         * modules/copysignf: New file.
5295         * tests/test-math-c++.cc: Check the declaration of copysignf.
5296         * doc/posix-functions/copysignf.texi: Mention the new module.
5297
5298 2011-10-09  Bruno Haible  <bruno@clisp.org>
5299
5300         Ensure that HAVE_* variables are set to 1 before they are set to 0.
5301         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
5302         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
5303         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5304         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
5305         gl_SIGNAL_H_DEFAULTS.
5306
5307 2011-10-09  Bruno Haible  <bruno@clisp.org>
5308
5309         poll: Make macro safer.
5310         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
5311         ac_cv_header_poll_h is not set.
5312
5313 2011-10-09  Bruno Haible  <bruno@clisp.org>
5314
5315         copysign: Provide replacement.
5316         * lib/math.in.h (copysign): New declaration.
5317         * lib/copysign.c: New file.
5318         * m4/copysign.m4: New file.
5319         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
5320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
5321         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
5322         HAVE_COPYSIGN.
5323         * modules/copysign (Description): Clarify.
5324         (Files): Add lib/copysign.c, m4/copysign.m4.
5325         (Depends-on): Add math, signbit.
5326         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
5327         gl_MATH_MODULE_INDICATOR.
5328         * tests/test-math-c++.cc: Check the declaration of copysign.
5329         * doc/posix-functions/copysign.texi: Mention the effects of the module
5330         on Minix and MSVC.
5331
5332 2011-10-09  Bruno Haible  <bruno@clisp.org>
5333
5334         isinf: Ensure macro on AIX 5.1.
5335         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
5336         macro.
5337         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
5338
5339 2011-10-09  Bruno Haible  <bruno@clisp.org>
5340
5341         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
5342         * modules/snprintf-posix-tests (configure.ac): Require
5343         gl_LONG_DOUBLE_VS_DOUBLE.
5344         * modules/sprintf-posix-tests (configure.ac): Likewise.
5345         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
5346         * modules/vasprintf-posix-tests (configure.ac): Likewise.
5347         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
5348         * modules/vsprintf-posix-tests (configure.ac): Likewise.
5349         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
5350         tests on platforms where 'long double' is the same as 'double'.
5351         * tests/test-sprintf-posix.h (test_function): Likewise.
5352         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5353         * tests/test-vasprintf-posix.c (test_function): Likewise.
5354
5355         *printf: Fix for platforms where 'long double' == 'double'.
5356         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
5357         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
5358         * modules/dprintf-posix (Files): Add m4/math_h.m4.
5359         * modules/fprintf-posix (Files): Likewise.
5360         * modules/obstack-printf-posix (Files): Likewise.
5361         * modules/snprintf-posix (Files): Likewise.
5362         * modules/sprintf-posix (Files): Likewise.
5363         * modules/vasnprintf (Files): Likewise.
5364         * modules/vasnprintf-posix (Files): Likewise.
5365         * modules/vasprintf-posix (Files): Likewise.
5366         * modules/vdprintf-posix (Files): Likewise.
5367         * modules/vfprintf-posix (Files): Likewise.
5368         * modules/vsnprintf-posix (Files): Likewise.
5369         * modules/vsprintf-posix (Files): Likewise.
5370         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5371         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5372         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5373         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5374         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5375         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5376         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5377
5378         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
5379         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
5380         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5381         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
5382         'long double'.
5383         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
5384
5385         isinf: Fix for platforms where 'long double' == 'double'.
5386         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
5387         Don't blindly assume 80-bit 'long double'.
5388
5389         isfinite: Fix for platforms where 'long double' == 'double'.
5390         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
5391         Don't blindly assume 80-bit 'long double'.
5392
5393         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
5394         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
5395         * modules/isfinite-tests (configure.ac): Require
5396         gl_LONG_DOUBLE_VS_DOUBLE.
5397         * modules/isinf-tests (configure.ac): Likewise.
5398         * modules/isnan-tests (configure.ac): Likewise.
5399         * modules/isnanl-tests (configure.ac): Likewise.
5400         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
5401         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
5402         tests on platforms where 'long double' is the same as 'double'.
5403         * tests/test-isinf.c (test_isinfl): Likewise.
5404         * tests/test-isnan.c (test_long_double): Likewise.
5405         * tests/test-isnanl.h (main): Likewise.
5406
5407 2011-10-08  Bruno Haible  <bruno@clisp.org>
5408
5409         Tests for module 'tanhf'.
5410         * modules/tanhf-tests: New file.
5411         * tests/test-tanhf.c: New file.
5412
5413         New module 'tanhf'.
5414         * lib/math.in.h (tanhf): New declaration.
5415         * lib/tanhf.c: New file.
5416         * m4/tanhf.m4: New file.
5417         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
5418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
5419         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
5420         * modules/tanhf: New file.
5421         * tests/test-math-c++.cc: Check the declaration of tanhf.
5422         * doc/posix-functions/tanhf.texi: Mention the new module.
5423
5424         tanh: Use a .m4 file.
5425         * m4/tanh.m4: New file.
5426         * modules/tanh (Files): Add it.
5427         (configure.ac): Just invoke gl_FUNC_TANH.
5428
5429 2011-10-08  Bruno Haible  <bruno@clisp.org>
5430
5431         Tests for module 'coshf'.
5432         * modules/coshf-tests: New file.
5433         * tests/test-coshf.c: New file.
5434
5435         New module 'coshf'.
5436         * lib/math.in.h (coshf): New declaration.
5437         * lib/coshf.c: New file.
5438         * m4/coshf.m4: New file.
5439         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
5440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
5441         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
5442         * modules/coshf: New file.
5443         * tests/test-math-c++.cc: Check the declaration of coshf.
5444         * doc/posix-functions/coshf.texi: Mention the new module.
5445
5446         cosh: Use a .m4 file.
5447         * m4/cosh.m4: New file.
5448         * modules/cosh (Files): Add it.
5449         (configure.ac): Just invoke gl_FUNC_COSH.
5450
5451 2011-10-08  Bruno Haible  <bruno@clisp.org>
5452
5453         Tests for module 'sinhf'.
5454         * modules/sinhf-tests: New file.
5455         * tests/test-sinhf.c: New file.
5456
5457         New module 'sinhf'.
5458         * lib/math.in.h (sinhf): New declaration.
5459         * lib/sinhf.c: New file.
5460         * m4/sinhf.m4: New file.
5461         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
5462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
5463         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
5464         * modules/sinhf: New file.
5465         * tests/test-math-c++.cc: Check the declaration of sinhf.
5466         * doc/posix-functions/sinhf.texi: Mention the new module.
5467
5468         sinh: Use a .m4 file.
5469         * m4/sinh.m4: New file.
5470         * modules/sinh (Files): Add it.
5471         (configure.ac): Just invoke gl_FUNC_SINH.
5472
5473 2011-10-08  Bruno Haible  <bruno@clisp.org>
5474
5475         Tests for module 'atan2f'.
5476         * modules/atan2f-tests: New file.
5477         * tests/test-atan2f.c: New file.
5478
5479         New module 'atan2f'.
5480         * lib/math.in.h (atan2f): New declaration.
5481         * lib/atan2f.c: New file.
5482         * m4/atan2f.m4: New file.
5483         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
5484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
5485         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
5486         * modules/atan2f: New file.
5487         * tests/test-math-c++.cc: Check the declaration of atan2f.
5488         * doc/posix-functions/atan2f.texi: Mention the new module.
5489
5490         atan2: Use a .m4 file.
5491         * m4/atan2.m4: New file.
5492         * modules/atan2 (Files): Add it.
5493         (configure.ac): Just invoke gl_FUNC_ATAN2.
5494
5495 2011-10-08  Bruno Haible  <bruno@clisp.org>
5496
5497         Tests for module 'atanf'.
5498         * modules/atanf-tests: New file.
5499         * tests/test-atanf.c: New file.
5500
5501         New module 'atanf'.
5502         * lib/math.in.h (atanf): New declaration.
5503         * lib/atanf.c: New file.
5504         * m4/atanf.m4: New file.
5505         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
5506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
5507         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
5508         * modules/atanf: New file.
5509         * tests/test-math-c++.cc: Check the declaration of atanf.
5510         * doc/posix-functions/atanf.texi: Mention the new module.
5511
5512         atan: Use a .m4 file.
5513         * m4/atan.m4: New file.
5514         * modules/atan (Files): Add it.
5515         (configure.ac): Just invoke gl_FUNC_ATAN.
5516
5517 2011-10-08  Bruno Haible  <bruno@clisp.org>
5518
5519         Tests for module 'acosf'.
5520         * modules/acosf-tests: New file.
5521         * tests/test-acosf.c: New file.
5522
5523         New module 'acosf'.
5524         * lib/math.in.h (acosf): New declaration.
5525         * lib/acosf.c: New file.
5526         * m4/acosf.m4: New file.
5527         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
5528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
5529         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
5530         * modules/acosf: New file.
5531         * tests/test-math-c++.cc: Check the declaration of acosf.
5532         * doc/posix-functions/acosf.texi: Mention the new module.
5533
5534         acos: Use a .m4 file.
5535         * m4/acos.m4: New file.
5536         * modules/acos (Files): Add it.
5537         (configure.ac): Just invoke gl_FUNC_ACOS.
5538
5539 2011-10-08  Bruno Haible  <bruno@clisp.org>
5540
5541         Tests for module 'asinf'.
5542         * modules/asinf-tests: New file.
5543         * tests/test-asinf.c: New file.
5544
5545         New module 'asinf'.
5546         * lib/math.in.h (asinf): New declaration.
5547         * lib/asinf.c: New file.
5548         * m4/asinf.m4: New file.
5549         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
5550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
5551         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
5552         * modules/asinf: New file.
5553         * tests/test-math-c++.cc: Check the declaration of asinf.
5554         * doc/posix-functions/asinf.texi: Mention the new module.
5555
5556         asin: Use a .m4 file.
5557         * m4/asin.m4: New file.
5558         * modules/asin (Files): Add it.
5559         (configure.ac): Just invoke gl_FUNC_ASIN.
5560
5561 2011-10-08  Bruno Haible  <bruno@clisp.org>
5562
5563         Tests for module 'tanf'.
5564         * modules/tanf-tests: New file.
5565         * tests/test-tanf.c: New file.
5566
5567         New module 'tanf'.
5568         * lib/math.in.h (tanf): New declaration.
5569         * lib/tanf.c: New file.
5570         * m4/tanf.m4: New file.
5571         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
5572         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
5573         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
5574         * modules/tanf: New file.
5575         * tests/test-math-c++.cc: Check the declaration of tanf.
5576         * doc/posix-functions/tanf.texi: Mention the new module.
5577
5578         tan: Use a .m4 file.
5579         * m4/tan.m4: New file.
5580         * modules/tan (Files): Add it.
5581         (configure.ac): Just invoke gl_FUNC_TAN.
5582
5583 2011-10-08  Bruno Haible  <bruno@clisp.org>
5584
5585         Tests for module 'cosf'.
5586         * modules/cosf-tests: New file.
5587         * tests/test-cosf.c: New file.
5588
5589         New module 'cosf'.
5590         * lib/math.in.h (cosf): New declaration.
5591         * lib/cosf.c: New file.
5592         * m4/cosf.m4: New file.
5593         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
5594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
5595         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
5596         * modules/cosf: New file.
5597         * tests/test-math-c++.cc: Check the declaration of cosf.
5598         * doc/posix-functions/cosf.texi: Mention the new module.
5599
5600         cos: Use a .m4 file.
5601         * m4/cos.m4: New file.
5602         * modules/cos (Files): Add it.
5603         (configure.ac): Just invoke gl_FUNC_COS.
5604
5605 2011-10-08  Bruno Haible  <bruno@clisp.org>
5606
5607         Tests for module 'sinf'.
5608         * modules/sinf-tests: New file.
5609         * tests/test-sinf.c: New file.
5610
5611         New module 'sinf'.
5612         * lib/math.in.h (sinf): New declaration.
5613         * lib/sinf.c: New file.
5614         * m4/sinf.m4: New file.
5615         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
5616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
5617         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
5618         * modules/sinf: New file.
5619         * tests/test-math-c++.cc: Check the declaration of sinf.
5620         * doc/posix-functions/sinf.texi: Mention the new module.
5621
5622         sin: Use a .m4 file.
5623         * m4/sin.m4: New file.
5624         * modules/sin (Files): Add it.
5625         (configure.ac): Just invoke gl_FUNC_SIN.
5626
5627 2011-10-08  Bruno Haible  <bruno@clisp.org>
5628
5629         Tests for module 'powf'.
5630         * modules/powf-tests: New file.
5631         * tests/test-powf.c: New file.
5632
5633         New module 'powf'.
5634         * lib/math.in.h (powf): New declaration.
5635         * lib/powf.c: New file.
5636         * m4/powf.m4: New file.
5637         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
5638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
5639         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
5640         * modules/powf: New file.
5641         * tests/test-math-c++.cc: Check the declaration of powf.
5642         * doc/posix-functions/powf.texi: Mention the new module.
5643
5644         pow: Use a .m4 file.
5645         * m4/pow.m4: New file.
5646         * modules/pow (Files): Add it.
5647         (configure.ac): Just invoke gl_FUNC_POW.
5648
5649 2011-10-08  Bruno Haible  <bruno@clisp.org>
5650
5651         Tests for module 'log10f'.
5652         * modules/log10f-tests: New file.
5653         * tests/test-log10f.c: New file.
5654
5655         New module 'log10f'.
5656         * lib/math.in.h (log10f): New declaration.
5657         * lib/log10f.c: New file.
5658         * m4/log10f.m4: New file.
5659         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
5660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
5661         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
5662         * modules/log10f: New file.
5663         * tests/test-math-c++.cc: Check the declaration of log10f.
5664         * doc/posix-functions/log10f.texi: Mention the new module.
5665
5666         log10: Use a .m4 file.
5667         * m4/log10.m4: New file.
5668         * modules/log10 (Files): Add it.
5669         (configure.ac): Just invoke gl_FUNC_LOG10.
5670
5671 2011-10-08  Bruno Haible  <bruno@clisp.org>
5672
5673         Tests for module 'logf'.
5674         * modules/logf-tests: New file.
5675         * tests/test-logf.c: New file.
5676
5677         New module 'logf'.
5678         * lib/math.in.h (logf): New declaration.
5679         * lib/logf.c: New file.
5680         * m4/logf.m4: New file.
5681         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
5682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
5683         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
5684         * modules/logf: New file.
5685         * tests/test-math-c++.cc: Check the declaration of logf.
5686         * doc/posix-functions/logf.texi: Mention the new module.
5687
5688         log: Use a .m4 file.
5689         * m4/log.m4: New file.
5690         * modules/log (Files): Add it.
5691         (configure.ac): Just invoke gl_FUNC_LOG.
5692
5693 2011-10-08  Bruno Haible  <bruno@clisp.org>
5694
5695         Tests for module 'expf'.
5696         * modules/expf-tests: New file.
5697         * tests/test-expf.c: New file.
5698
5699         New module 'expf'.
5700         * lib/math.in.h (expf): New declaration.
5701         * lib/expf.c: New file.
5702         * m4/expf.m4: New file.
5703         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
5704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
5705         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
5706         * modules/expf: New file.
5707         * tests/test-math-c++.cc: Check the declaration of expf.
5708         * doc/posix-functions/expf.texi: Mention the new module.
5709
5710         exp: Use a .m4 file.
5711         * m4/exp.m4: New file.
5712         * modules/exp (Files): Add it.
5713         (configure.ac): Just invoke gl_FUNC_EXP.
5714
5715 2011-10-08  Bruno Haible  <bruno@clisp.org>
5716
5717         Tests for module 'sqrtf'.
5718         * modules/sqrtf-tests: New file.
5719         * tests/test-sqrtf.c: New file.
5720
5721         New module 'sqrtf'.
5722         * lib/math.in.h (sqrtf): New declaration.
5723         * lib/sqrtf.c: New file.
5724         * m4/sqrtf.m4: New file.
5725         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
5726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
5727         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
5728         * modules/sqrtf: New file.
5729         * tests/test-math-c++.cc: Check the declaration of sqrtf.
5730         * doc/posix-functions/sqrtf.texi: Mention the new module.
5731
5732 2011-10-08  Bruno Haible  <bruno@clisp.org>
5733
5734         Tests: Avoid link failures w.r.t. libintl.
5735         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
5736         $(LIBINTL).
5737         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
5738         $(LIBINTL).
5739         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
5740         against $(LIBINTL).
5741         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
5742         $(LIBINTL).
5743         * modules/openat-tests (Makefile.am): Link test-fchmodat against
5744         $(LIBINTL).
5745         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
5746
5747 2011-10-08  Bruno Haible  <bruno@clisp.org>
5748
5749         pow tests: Defeat compiler optimizations.
5750         * tests/test-pow.c (main): Assign arguments to x and y before use.
5751
5752 2011-10-08  Bruno Haible  <bruno@clisp.org>
5753
5754         gnulib-tool: Improve last commit.
5755         * gnulib-tool (func_modules_transitive_closure): Simplify code.
5756         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
5757         ignore dependencies that are not among the modules list.
5758
5759 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
5760
5761         gnulib-tool: don't follow dependencies to avoided modules
5762         This fixes a bug that is related to the previous one.
5763         * gnulib-tool (func_modules_transitive_closure)
5764         (func_emit_autoconf_snippets):
5765         Check whether a dependency is acceptable before using it.
5766         (--extract-dependencies): Report an error if --avoid is also used,
5767         since this combination of options is not yet supported.
5768
5769         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
5770         Problem reported by Peter Dyballa in
5771         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
5772         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
5773         when echoing "$condition".
5774
5775 2011-10-07  Bruno Haible  <bruno@clisp.org>
5776
5777         Fix documentation about math functions on MacOS X.
5778         * doc/posix-functions/exp2.texi: Don't say the function is missing on
5779         MacOS X 10.5.
5780         * doc/posix-functions/fdim.texi: Likewise.
5781         * doc/posix-functions/feclearexcept.texi: Likewise.
5782         * doc/posix-functions/fegetenv.texi: Likewise.
5783         * doc/posix-functions/fegetround.texi: Likewise.
5784         * doc/posix-functions/feholdexcept.texi: Likewise.
5785         * doc/posix-functions/feraiseexcept.texi: Likewise.
5786         * doc/posix-functions/fesetenv.texi: Likewise.
5787         * doc/posix-functions/fesetround.texi: Likewise.
5788         * doc/posix-functions/fetestexcept.texi: Likewise.
5789         * doc/posix-functions/feupdateenv.texi: Likewise.
5790         * doc/posix-functions/fmax.texi: Likewise.
5791         * doc/posix-functions/fmin.texi: Likewise.
5792         * doc/posix-functions/log2.texi: Likewise.
5793         * doc/posix-functions/modff.texi: Likewise.
5794         * doc/posix-functions/nan.texi: Likewise.
5795         * doc/posix-functions/nanf.texi: Likewise.
5796         * doc/posix-functions/nextafterf.texi: Likewise.
5797         * doc/posix-functions/remquo.texi: Likewise.
5798
5799 2011-10-07  Bruno Haible  <bruno@clisp.org>
5800
5801         modff: Drop assumption about library that defines modff.
5802         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
5803         AC_CHECK_FUNCS.
5804         * modules/modff (Files): Add m4/mathfunc.m4.
5805
5806 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
5807
5808         raise tests: Avoid a GCC warning.
5809         * tests/test-raise.c (handler): Use _Noreturn.
5810
5811 2011-10-07  Bruno Haible  <bruno@clisp.org>
5812
5813         Tests for module 'ldexpf'.
5814         * modules/ldexpf-tests: New file.
5815         * tests/test-ldexpf.c: New file.
5816
5817         New module 'ldexpf'.
5818         * lib/math.in.h (ldexpf): New declaration.
5819         * lib/ldexpf.c: New file.
5820         * m4/ldexpf.m4: New file.
5821         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
5822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
5823         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
5824         * modules/ldexpf: New file.
5825         * tests/test-math-c++.cc: Check the declaration of ldexpf.
5826         * doc/posix-functions/ldexpf.texi: Mention the new module.
5827
5828 2011-10-06  Bruno Haible  <bruno@clisp.org>
5829
5830         frexpf: Work around problems on IRIX and mingw.
5831         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
5832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
5833         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
5834         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
5835         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
5836         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
5837         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
5838
5839 2011-10-06  Bruno Haible  <bruno@clisp.org>
5840
5841         fabsf: Drop assumption about library that defines fabsf.
5842         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
5843         AC_CHECK_FUNCS.
5844         * modules/fabsf (Files): Add m4/mathfunc.m4.
5845
5846 2011-10-06  Bruno Haible  <bruno@clisp.org>
5847
5848         frexpf: Drop assumption about library that defines frexpf.
5849         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
5850         'int *', 'float *', 'long double *', 'float', 'long double'.
5851         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
5852         AC_CHECK_FUNCS.
5853         * modules/frexpf (Files): Add m4/mathfunc.m4.
5854
5855         Tests for module 'frexpf'.
5856         * modules/frexpf-tests: New file.
5857         * tests/test-frexpf.c: New file.
5858
5859         New module 'frexpf'.
5860         * lib/math.in.h (frexpf): New declaration.
5861         * lib/frexpf.c: New file.
5862         * m4/frexpf.m4: New file.
5863         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
5864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
5865         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
5866         * modules/frexpf: New file.
5867         * tests/test-math-c++.cc: Check the declaration of frexpf.
5868         * doc/posix-functions/frexpf.texi: Mention the new module.
5869
5870 2011-10-06  Bruno Haible  <bruno@clisp.org>
5871
5872         math: Sort function declarations of math.in.h.
5873         * lib/math.in.h (frexp, logb): Move declarations.
5874
5875 2011-10-05  Bruno Haible  <bruno@clisp.org>
5876
5877         Tests for module 'modff'.
5878         * modules/modff-tests: New file.
5879         * tests/test-modff.c: New file.
5880
5881         New module 'modff'.
5882         * lib/math.in.h (modff): New declaration.
5883         * lib/modff.c: New file.
5884         * m4/modff.m4: New file.
5885         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
5886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
5887         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
5888         * modules/modff: New file.
5889         * tests/test-math-c++.cc: Check the declaration of modff.
5890         * doc/posix-functions/modff.texi: Mention the new module.
5891
5892         modf tests: Make test sharper.
5893         * tests/test-modf.c (main): Strengthen upper bound.
5894
5895         modf: Use a .m4 file.
5896         * m4/modf.m4: New file.
5897         * modules/modf (Files): Add it.
5898         (configure.ac): Just invoke gl_FUNC_MODF.
5899
5900 2011-10-05  Bruno Haible  <bruno@clisp.org>
5901
5902         Tests for module 'fmodf'.
5903         * modules/fmodf-tests: New file.
5904         * tests/test-fmodf.c: New file.
5905
5906         New module 'fmodf'.
5907         * lib/math.in.h (fmodf): New declaration.
5908         * lib/fmodf.c: New file.
5909         * m4/fmodf.m4: New file.
5910         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
5911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
5912         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
5913         * modules/fmodf: New file.
5914         * tests/test-math-c++.cc: Check the declaration of fmodf.
5915         * doc/posix-functions/fmodf.texi: Mention the new module.
5916
5917         fmod: Use a .m4 file.
5918         * m4/fmod.m4: New file.
5919         * modules/fmod (Files): Add it.
5920         (configure.ac): Just invoke gl_FUNC_FMOD.
5921
5922 2011-10-05  Bruno Haible  <bruno@clisp.org>
5923
5924         Tests for module 'fabsf'.
5925         * modules/fabsf-tests: New file.
5926         * tests/test-fabsf.c: New file.
5927
5928         New module 'fabsf'.
5929         * lib/math.in.h (fabsf): New declaration.
5930         * lib/fabsf.c: New file.
5931         * m4/fabsf.m4: New file.
5932         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
5933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
5934         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
5935         * modules/fabsf: New file.
5936         * tests/test-math-c++.cc: Check the declaration of fabsf.
5937         * doc/posix-functions/fabsf.texi: Mention the new module.
5938
5939         fabs: Use a .m4 file.
5940         * m4/fabs.m4: New file.
5941         * modules/fabs (Files): Add it.
5942         (configure.ac): Just invoke gl_FUNC_FABS.
5943
5944 2011-10-05  Jim Meyering  <meyering@redhat.com>
5945
5946         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
5947         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
5948         ls -lL regression introduced in coreutils-8.12, it does so at the
5949         cost of an additional stat call in the common case.  Besides, now
5950         that the kernel change that prompted commit 95f7c57f has been reverted
5951         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
5952         we have no use for commit 95f7c57f, "file-has-acl: use
5953         acl_extended_file_nofollow if available".
5954
5955 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
5956
5957         file-has-acl: revert unintended change in behavior of ls -L
5958         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
5959         derived from...
5960         (file_has_acl): ...code here.  Call it.
5961         This problem was introduced with 2011-07-22 commit 95f7c57f,
5962         "file-has-acl: use acl_extended_file_nofollow if available".
5963         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
5964
5965 2011-10-03  Bruno Haible  <bruno@clisp.org>
5966
5967         poll: Avoid link errors on MSVC.
5968         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
5969         * modules/poll (Depends-on): Add sockets.
5970         (Link): New section.
5971         * NEWS: Mention the change.
5972         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
5973         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
5974         $(LIB_POLL) instead of $(LIBSOCKET).
5975
5976 2011-10-03  Bruno Haible  <bruno@clisp.org>
5977
5978         sys_select tests: Fix link error on MSVC 9.
5979         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
5980         with $(LIB_SELECT) instead of $(LIBSOCKET).
5981
5982 2011-10-03  Bruno Haible  <bruno@clisp.org>
5983
5984         sys_select: Fix compilation error on mingw.
5985         * lib/sys_select.in.h: On native Windows, include <io.h>.
5986
5987 2011-10-03  Bruno Haible  <bruno@clisp.org>
5988
5989         wmemset: Support for MSVC.
5990         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
5991         whether wmemset() exists.
5992
5993 2011-10-03  Bruno Haible  <bruno@clisp.org>
5994
5995         wmemmove: Support for MSVC.
5996         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
5997         whether wmemmove() exists.
5998
5999 2011-10-03  Bruno Haible  <bruno@clisp.org>
6000
6001         wmemcpy: Support for MSVC.
6002         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
6003         whether wmemcpy() exists.
6004
6005 2011-10-03  Bruno Haible  <bruno@clisp.org>
6006
6007         wmemcmp: Support for MSVC.
6008         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
6009         whether wmemcmp() exists.
6010
6011 2011-10-03  Bruno Haible  <bruno@clisp.org>
6012
6013         wmemchr: Support for MSVC.
6014         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
6015         whether wmemchr() exists.
6016
6017 2011-10-03  Bruno Haible  <bruno@clisp.org>
6018
6019         glthread/*, strsignal: Support for MSVC.
6020         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
6021         including <winsock.h> on MSVC 9.
6022         * lib/glthread/lock.h: Likewise.
6023         * lib/glthread/thread.h: Likewise.
6024         * lib/glthread/tls.h: Likewise.
6025         * lib/glthread/yield.h: Likewise.
6026         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
6027         if HAVE_UNISTD_H is false.
6028         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
6029
6030 2011-10-03  Bruno Haible  <bruno@clisp.org>
6031
6032         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
6033         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
6034         Set to 100000.
6035
6036 2011-10-03  Bruno Haible  <bruno@clisp.org>
6037
6038         acl: Fix specification.
6039         * lib/file-has-acl.c (file_has_acl): Fix specification.
6040
6041 2011-10-03  Bruno Haible  <bruno@clisp.org>
6042
6043         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
6044         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
6045         (compute_curr_prefix, shared_library_fullname,
6046         find_shared_library_fullname, get_shared_library_fullname, relocate):
6047         Use it together with PIC && INSTALLDIR.
6048         Reported by <jojelino@gmail.com>
6049         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
6050
6051 2011-10-01  Jim Meyering  <meyering@redhat.com>
6052
6053         maint.mk: adjust a release-related rule not to require use of gzip
6054         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
6055         Instead, check each file in $(DIST_ARCHIVES).  This is better for
6056         projects that build only .tar.xz files.  Also fix an erroneous test.
6057
6058         test-linkat: don't leave behind a temporary file
6059         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
6060         Otherwise, coreutils' "make distcheck" would fail with this:
6061           Only in /c/cu/tests/torture/coreutils/test/\
6062             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
6063           make[2]: *** [my-distcheck] Error 1
6064
6065         float, math: add omitted file
6066         * lib/itold.c: Add file, required for yesterday's float change.
6067
6068 2011-10-01  Bruno Haible  <bruno@clisp.org>
6069
6070         isinf: Fix for OpenBSD/x86.
6071         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
6072         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
6073         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
6074
6075 2011-10-01  Bruno Haible  <bruno@clisp.org>
6076
6077         isfinite: Fix syntax error in configure test.
6078         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
6079
6080         isfinite: Fix typo.
6081         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
6082         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
6083
6084 2011-10-01  Bruno Haible  <bruno@clisp.org>
6085
6086         nonblocking tests: Fix test failure on Linux/IA-64.
6087         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
6088         Set to 270000.
6089
6090 2011-10-01  Bruno Haible  <bruno@clisp.org>
6091
6092         mkfifoat tests: Fix a test failure on mingw.
6093         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
6094         with error ENOSYS.
6095
6096 2011-09-30  Bruno Haible  <bruno@clisp.org>
6097
6098         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
6099         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
6100         'long double'. Set REPLACE_ITOLD.
6101         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
6102         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
6103         * lib/itold.c: New file.
6104         * modules/float (Files): Add lib/itold.c.
6105         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
6106         (Makefile.am): Substitute REPLACE_ITOLD.
6107         * modules/math (Depends-on): Add float.
6108         (Makefile.am): Substitute REPLACE_ITOLD.
6109         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
6110         * doc/posix-headers/math.texi: Likewise.
6111         * doc/posix-functions/logl.texi: Likewise.
6112
6113 2011-09-30  Bruno Haible  <bruno@clisp.org>
6114
6115         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
6116         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
6117         Set to 140000.
6118
6119 2011-09-30  Bruno Haible  <bruno@clisp.org>
6120
6121         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
6122         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
6123         invocation, say "right after AC_PROG_CC_STDC", not "right after
6124         AC_PROG_CC".
6125         Reported by Gary V. Vaughan <gary@gnu.org>.
6126
6127 2011-09-30  Bruno Haible  <bruno@clisp.org>
6128
6129         Centralize C99 requirement.
6130         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
6131         * modules/stdarg (configure.ac-early): Invoke it instead of
6132         AC_PROG_CC_STDC.
6133         Reported by Gary V. Vaughan and Paul Eggert.
6134
6135 2011-09-29  Bruno Haible  <bruno@clisp.org>
6136
6137         float: Fix LDBL_MAX value on Linux/PowerPC.
6138         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
6139         on Linux/PowerPC.
6140         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
6141         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
6142         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
6143         platform.
6144         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
6145
6146 2011-09-29  Bruno Haible  <bruno@clisp.org>
6147
6148         doc: Improve doc about gl_EARLY.
6149         * doc/gnulib-tool.texi (Initial import): Mention where to place an
6150         AC_PROG_CC_STDC invocation.
6151         Reported by Gary V. Vaughan <gary@gnu.org>.
6152
6153 2011-09-28  Bruno Haible  <bruno@clisp.org>
6154
6155         fgetc, fputc, fread, fwrite tests: Fix link error.
6156         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
6157         on non-MSVC platforms.
6158         * tests/test-fputc.c (main): Likewise.
6159         * tests/test-fread.c (main): Likewise.
6160         * tests/test-fwrite.c (main): Likewise.
6161         Reported by Jim Meyering.
6162
6163 2011-09-27  Bruno Haible  <bruno@clisp.org>
6164
6165         fputc, fwrite tests: Avoid test failure on MSVC.
6166         * tests/test-fgetc.c: Include msvc-inval.h.
6167         (main): Invoke gl_msvc_inval_ensure_handler.
6168         * tests/test-fputc.c: Include msvc-inval.h.
6169         (main): Invoke gl_msvc_inval_ensure_handler.
6170         * tests/test-fread.c: Include msvc-inval.h.
6171         (main): Invoke gl_msvc_inval_ensure_handler.
6172         * tests/test-fwrite.c: Include msvc-inval.h.
6173         (main): Invoke gl_msvc_inval_ensure_handler.
6174         * modules/fgetc-tests (Depends-on): Add msvc-inval.
6175         * modules/fputc-tests (Depends-on): Likewise.
6176         * modules/fread-tests (Depends-on): Likewise.
6177         * modules/fwrite-tests (Depends-on): Likewise.
6178
6179 2011-09-27  Bruno Haible  <bruno@clisp.org>
6180
6181         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
6182         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
6183         (raise): Remove older, duplicated declaration.
6184         (_gl_raise_SIGPIPE): New declaration.
6185         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
6186         (rpl_raise): Remove function.
6187         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
6188         a gnulib-defined SIGPIPE here.
6189         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
6190         'sigprocmask' has detected missing signal-blocking and the module
6191         'sigpipe' is enabled.
6192         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6193
6194 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
6195
6196         base64-tests: avoid memory leak
6197         * tests/test-base64.c (main): Plug memory leak.
6198
6199         base32: new module
6200         * modules/base32: New module.
6201         * lib/base32.c: New file.
6202         * lib/base32.h: Likewise.
6203         * m4/base32.m4: Likewise.
6204         * modules/base32-tests: New test.
6205         * tests/test-base32.c: Likewise.
6206         * MODULES.html.sh (Misc): Mention it.
6207
6208 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6209
6210         gnulib: use more-standard license notice wording
6211         * gnulib-tool (func_emit_copyright_notice): When emitting a
6212         license notice into a file, use the standard wording as suggested
6213         by the current information for GNU maintainers, except say "file"
6214         rather than "program".  The new wording gives a license version
6215         number, which addresses an issue raised by Glenn Morris in
6216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
6217         * m4/onceonly.m4: Use that same wording here, too.
6218
6219         dup2: minor simplification
6220         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
6221         as lib/dup2.c no longer uses 'inline'.
6222
6223 2011-09-25  Bruno Haible  <bruno@clisp.org>
6224
6225         strings: Fix compilation error on MSVC.
6226         * lib/strings.in.h: Include <stddef.h> for size_t.
6227
6228 2011-09-25  Bruno Haible  <bruno@clisp.org>
6229
6230         fflush et al.: Document limitation on MSVC.
6231         * doc/posix-functions/fflush.texi: Document possible crash in handling
6232         mode other than DEFAULT_HANDLING.
6233         * doc/posix-functions/fgetc.texi: Likewise.
6234         * doc/posix-functions/fputc.texi: Likewise.
6235         * doc/posix-functions/fread.texi: Likewise.
6236         * doc/posix-functions/fwrite.texi: Likewise.
6237
6238 2011-09-25  Bruno Haible  <bruno@clisp.org>
6239
6240         msvc-inval: Allow three invalid parameter handling modes.
6241         * lib/msvc-inval.h: Don't include <stdlib.h> here.
6242         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
6243         macros.
6244         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
6245         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
6246         SANE_LIBRARY_HANDLING as a no-op.
6247         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
6248         <stdlib.h>.
6249         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
6250
6251 2011-09-25  Bruno Haible  <bruno@clisp.org>
6252
6253         msvc-inval: Make handler multithread-safe.
6254         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
6255         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
6256         declarations.
6257         (gl_msvc_inval_current): New declaration.
6258         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6259         Operate on the structure returned by gl_msvc_inval_current().
6260         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
6261         Remove varaiables.
6262         (tls_index, tls_initialized): New variables.
6263         (not_per_thread): New variable.
6264         (gl_msvc_inval_current): New function.
6265         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
6266         returned by gl_msvc_inval_current().
6267
6268 2011-09-25  Bruno Haible  <bruno@clisp.org>
6269
6270         msvc-inval: Install handler globally.
6271         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
6272         !_MSC_VER.
6273         (gl_msvc_invalid_parameter_handler): Remove declaration.
6274         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
6275         declarations.
6276         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6277         Install the handler globally, don't uninstall it.
6278         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
6279         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
6280         currently valid, call RaiseException instead.
6281         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
6282         for !_MSC_VER.
6283
6284 2011-09-25  Bruno Haible  <bruno@clisp.org>
6285
6286         strerror_r-posix: Fix for MSVC 9.
6287         * lib/strerror_r.c (local_snprintf): New function.
6288         (snprintf): Define to local_snprintf, not to _snprintf.
6289
6290 2011-09-25  Bruno Haible  <bruno@clisp.org>
6291
6292         ftruncate: Support for MSVC 9.
6293         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
6294         (chsize_nothrow): New function.
6295         (chsize): Redefine as a macro.
6296         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
6297         * modules/ftruncate (Depends-on): Add msvc-inval.
6298
6299 2011-09-25  Bruno Haible  <bruno@clisp.org>
6300
6301         New module 'fstat'.
6302         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
6303         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
6304         * lib/fchdir.c (rpl_fstat): Remove function.
6305         * m4/fstat.m4: New file.
6306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
6307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
6308         declared.
6309         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
6310         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
6311         * modules/fstat: New file.
6312         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
6313         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
6314         is set.
6315         * doc/posix-functions/fstat.texi: Mention the new module and the
6316         problem on MSVC.
6317         * NEWS: Mention the change.
6318         * modules/acl (Depends-on): Add fstat.
6319         * modules/chdir-safer (Depends-on): Likewise.
6320         * modules/chown (Depends-on): Likewise.
6321         * modules/copy-file (Depends-on): Likewise.
6322         * modules/fchdir (Depends-on): Likewise.
6323         * modules/fdopendir (Depends-on): Likewise.
6324         * modules/fopen (Depends-on): Likewise.
6325         * modules/fts (Depends-on): Likewise.
6326         * modules/getcwd (Depends-on): Likewise.
6327         * modules/isapipe (Depends-on): Likewise.
6328         * modules/linkat (Depends-on): Likewise.
6329         * modules/lseek (Depends-on): Likewise.
6330         * modules/mkdir-p (Depends-on): Likewise.
6331         * modules/open (Depends-on): Likewise.
6332         * modules/openat (Depends-on): Likewise.
6333         * modules/read-file (Depends-on): Likewise.
6334         * modules/renameat (Depends-on): Likewise.
6335         * modules/utimens (Depends-on): Likewise.
6336
6337 2011-09-25  Bruno Haible  <bruno@clisp.org>
6338
6339         linkat: Fix compilation on MSVC 9.
6340         * lib/linkat.c: Don't include <stdint.h>.
6341
6342 2011-09-25  Bruno Haible  <bruno@clisp.org>
6343
6344         fclose: Support for MSVC 9.
6345         * lib/fclose.c: Include msvc-inval.h.
6346         (fclose_nothrow): New function.
6347         (rpl_fclose): Use it.
6348         * modules/fclose (Depends-on): Add msvc-inval.
6349         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
6350
6351 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
6352
6353         dup2: minor simplifications
6354         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
6355         that it's a performance win.
6356         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
6357         ! defined __CYGWIN__)" to "ifdef F_GETFL".
6358
6359 2011-09-24  Jim Meyering  <meyering@redhat.com>
6360
6361         test-futimens: avoid a warning from gcc -Wshadow
6362         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
6363         to avoid a shadowing warning.
6364
6365 2011-09-24  Bruno Haible  <bruno@clisp.org>
6366
6367         fdopen: Support for MSVC 9.
6368         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
6369         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
6370         * lib/fdopen.c: Include msvc-inval.h.
6371         (fdopen_nothrow): New function.
6372         (rpl_fdopen): Use it.
6373         * modules/fdopen (Depends-on): Add msvc-inval.
6374         * modules/fclose-tests (Depends-on): Add fdopen.
6375         * modules/fflush-tests (Depends-on): Likewise.
6376         * modules/fgetc-tests (Depends-on): Likewise.
6377         * modules/fputc-tests (Depends-on): Likewise.
6378         * modules/fread-tests (Depends-on): Likewise.
6379         * modules/freopen-tests (Depends-on): Likewise.
6380         * modules/fseeko-tests (Depends-on): Likewise.
6381         * modules/ftello-tests (Depends-on): Likewise.
6382         * modules/fwrite-tests  (Depends-on): Likewise.
6383         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
6384
6385 2011-09-24  Bruno Haible  <bruno@clisp.org>
6386
6387         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
6388         * modules/fgetc-tests (Depends-on): Add unistd.
6389         * modules/fputc-tests (Depends-on): Likewise.
6390         * modules/fread-tests (Depends-on): Likewise.
6391         * modules/fwrite-tests (Depends-on): Likewise.
6392
6393 2011-09-24  Bruno Haible  <bruno@clisp.org>
6394
6395         dup: Simplify autoconf test.
6396         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
6397         on gl_MSVC_INVAL's result.
6398
6399 2011-09-24  Bruno Haible  <bruno@clisp.org>
6400
6401         Tests for function fwrite().
6402         * modules/fwrite-tests: New file.
6403         * tests/test-fwrite.c: New file.
6404         * modules/stdio-tests (Depends-on): Add fwrite-tests.
6405
6406         Tests for function fread().
6407         * modules/fread-tests: New file.
6408         * tests/test-fread.c: New file.
6409         * modules/stdio-tests (Depends-on): Add fread-tests.
6410
6411         Activate fputc tests.
6412         * modules/stdio-tests (Depends-on): Add fputc-tests.
6413
6414         Enhance fgetc, fputc tests.
6415         * tests/test-fgetc.c (main): Also test the stream's error indicator.
6416         * tests/test-fputc.c (main): Likewise.
6417
6418 2011-09-24  Bruno Haible  <bruno@clisp.org>
6419
6420         write: Support for MSVC 9.
6421         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
6422         is not 1.
6423         * lib/write.c (write_nothrow): New function.
6424         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
6425         not 1. Use write_nothrow.
6426         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
6427         invalid parameter handler.
6428         (gl_PREREQ_WRITE): New macro.
6429         * modules/write (Depends-on): Add msvc-inval.
6430         (configure.ac): Invoke gl_PREREQ_WRITE.
6431         * doc/posix-functions/write.texi: Mention the problem on MSVC.
6432
6433 2011-09-24  Bruno Haible  <bruno@clisp.org>
6434
6435         read: Fix last commit.
6436         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
6437
6438 2011-09-24  Bruno Haible  <bruno@clisp.org>
6439
6440         dup2: Fix last commit.
6441         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
6442         (rpl_dup2): Disable fcntl workaround on native Windows.
6443
6444         sigprocmask: Make code safer.
6445         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
6446         section that changes macro definitions for this compilation unit.
6447
6448 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
6449
6450         dup2: clarify by coalescing Windows-specific material
6451         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
6452         "msvc-nothrow.h"' to the Windows-specific section, so that the
6453         Emacs source need not contain these include files.
6454         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
6455         Windows-specific fixes into this function rather than just the
6456         nothrow fix, as this shortens and clarifies the code.  Always
6457         define as a function, as that's a bit cleaner than having it be
6458         sometimes a function and sometimes a macro.
6459         (rpl_dup2): Move the Windows-specific stuff out of here and into
6460         ms_windows_dup2.  Don't protect the Haiku-related fix with
6461         "#if !defined __linux__", as the same code also works around
6462         a Linux kernel bug, and it doesn't add any system calls on any
6463         platform.  Add comment about FreeBSD 6.1.
6464
6465         sigprocmask: move #include directive
6466         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
6467         Windows-specific section, so that the Emacs source need not
6468         contain msvc-inval.h.
6469
6470 2011-09-23  Bruno Haible  <bruno@clisp.org>
6471
6472         read: Support for MSVC 9.
6473         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
6474         is not 1.
6475         * lib/read.c (read_nothrow): New function.
6476         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
6477         read_nothrow.
6478         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
6479         invalid parameter handler.
6480         (gl_PREREQ_READ): New macro.
6481         * modules/read (Depends-on): Add msvc-inval.
6482         (configure.ac): Invoke gl_PREREQ_READ.
6483         * doc/posix-functions/read.texi: Mention the problem on MSVC.
6484
6485 2011-09-23  Bruno Haible  <bruno@clisp.org>
6486
6487         close: Support for MSVC 9.
6488         * lib/close.c: Include <errno.h>, msvc-inval.h.
6489         (close_nothrow): New function.
6490         (rpl_close): Use it.
6491         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
6492         invalid parameter handler.
6493         * modules/close (Depends-on): Add msvc-inval.
6494         * modules/dup2-tests (Depends-on): Add close.
6495         * modules/dup3-tests (Depends-on): Likewise.
6496         * modules/fcntl-tests (Depends-on): Likewise.
6497         * modules/spawn-pipe-tests (Depends-on): Likewise.
6498         * modules/unistd-safer-tests (Depends-on): Likewise.
6499         * doc/posix-functions/close.texi: Mention the problem on MSVC.
6500
6501 2011-09-23  Bruno Haible  <bruno@clisp.org>
6502
6503         New module 'dup'.
6504         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
6505         Allow replacement.
6506         * lib/dup.c: New file.
6507         * lib/fchdir.c (rpl_dup): Remove function.
6508         * m4/dup.m4: New file.
6509         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
6510         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
6511         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
6512         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
6513         * modules/dup: New file.
6514         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
6515         'dup' module is in use.
6516         * modules/fdopendir (Depends-on): Add dup.
6517         * modules/fdutimensat-tests (Depends-on): Likewise.
6518         * modules/fts (Depends-on): Likewise.
6519         * modules/futimens-tests (Depends-on): Likewise.
6520         * modules/posix_spawnp-tests (Depends-on): Likewise.
6521         * modules/unistd-safer-tests (Depends-on): Likewise.
6522         * modules/utimens-tests (Depends-on): Likewise.
6523         * doc/posix-functions/dup.texi: Mention the new module and the problem
6524         on MSVC.
6525
6526 2011-09-23  Bruno Haible  <bruno@clisp.org>
6527
6528         getdtablesize: Support for MSVC 9.
6529         * lib/getdtablesize.c: Include msvc-inval.h.
6530         (_setmaxstdio_nothrow): New function.
6531         (_setmaxstdio): Redefine it.
6532         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
6533         * modules/getdtablesize (Depends-on): Add msvc-inval.
6534         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
6535
6536 2011-09-23  Bruno Haible  <bruno@clisp.org>
6537
6538         signal-h: Rename from signal.
6539         * modules/signal-h: Renamed from modules/signal.
6540         * modules/pthread_sigmask (Depends-on): Update.
6541         * modules/raise (Depends-on): Likewise.
6542         * modules/sigaction (Depends-on): Likewise.
6543         * modules/sigpipe (Depends-on): Likewise.
6544         * modules/sigprocmask (Depends-on): Likewise.
6545         * modules/sys_select (Depends-on): Likewise.
6546         * modules/signal-h-tests: Renamed from modules/signal-tests.
6547         (Files, Depends-on, Makefile.am): Update.
6548         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
6549         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
6550         (Files, Makefile.am): Update.
6551         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
6552         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
6553         * modules/signal: New placeholder file.
6554         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
6555         * doc/posix-headers/signal.texi: Update.
6556         * NEWS: Mention the change.
6557
6558 2011-09-23  Bruno Haible  <bruno@clisp.org>
6559
6560         sigprocmask: Avoid crashes through signal() on MSVC 9.
6561         * lib/sigprocmask.c: Include msvc-inval.h.
6562         (signal_nothrow): New function.
6563         (signal): Redefine it.
6564         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
6565         * modules/sigprocmask (Depends-on): Add msvc-inval.
6566         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
6567
6568 2011-09-23  Bruno Haible  <bruno@clisp.org>
6569
6570         Tests for module 'raise'.
6571         * modules/raise-tests: New file.
6572         * tests/test-raise.c: New file.
6573
6574         raise: Support for MSVC.
6575         * lib/signal.in.h (raise): New declaration.
6576         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
6577         for native Windows platforms.
6578         * m4/raise.m4: New file.
6579         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
6580         HAVE_RAISE, REPLACE_RAISE.
6581         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
6582         REPLACE_RAISE.
6583         * modules/raise (Status, Notice): Remove fields.
6584         (Files): Add m4/raise.m4.
6585         (Depends-on): Add signal, msvc-inval.
6586         (configure.ac): Use the common idioms.
6587         (Maintainer): Add me.
6588         * tests/test-signal-c++.cc: Check the signature of raise.
6589         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
6590
6591 2011-09-23  Bruno Haible  <bruno@clisp.org>
6592
6593         pipe2: Fix compilation on pre-C99 compilers.
6594         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
6595
6596 2011-09-23  Bruno Haible  <bruno@clisp.org>
6597
6598         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
6599         * lib/msvc-nothrow.h: New file.
6600         * lib/msvc-nothrow.c: New file.
6601         * m4/msvc-nothrow.m4: New file.
6602         * modules/msvc-nothrow: New file.
6603         * lib/dup2.c: Include msvc-nothrow.h.
6604         (rpl_dup2): No need to protect _get_osfhandle call here.
6605         * lib/accept4.c: Include msvc-nothrow.h.
6606         * lib/error.c: Likewise.
6607         * lib/fcntl.c: Likewise.
6608         * lib/lseek.c: Likewise.
6609         * lib/nonblocking.c: Likewise.
6610         * lib/poll.c: Likewise.
6611         * lib/read.c: Likewise.
6612         * lib/select.c: Likewise.
6613         * lib/sockets.h: Likewise.
6614         * lib/sockets.c: Likewise.
6615         * lib/stdio-read.c: Likewise.
6616         * lib/stdio-write.c: Likewise.
6617         * lib/write.c: Likewise.
6618         * lib/w32sock.h: Likewise.
6619         * lib/w32spawn.h: Likewise.
6620         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
6621         * lib/fsync.c: Likewise.
6622         * lib/isapipe.c: Likewise.
6623         * modules/dup2 (Depends-on): Add msvc-nothrow.
6624         * modules/accept4 (Depends-on): Likewise.
6625         * modules/error (Depends-on): Likewise.
6626         * modules/fcntl (Depends-on): Likewise.
6627         * modules/lseek (Depends-on): Likewise.
6628         * modules/nonblocking (Depends-on): Likewise.
6629         * modules/poll (Depends-on): Likewise.
6630         * modules/read (Depends-on): Likewise.
6631         * modules/select (Depends-on): Likewise.
6632         * modules/sockets (Depends-on): Likewise.
6633         * modules/sigpipe (Depends-on): Likewise.
6634         * modules/write (Depends-on): Likewise.
6635         * modules/accept (Depends-on): Likewise.
6636         * modules/bind (Depends-on): Likewise.
6637         * modules/connect (Depends-on): Likewise.
6638         * modules/gethostname (Depends-on): Likewise.
6639         * modules/getpeername (Depends-on): Likewise.
6640         * modules/getsockname (Depends-on): Likewise.
6641         * modules/getsockopt (Depends-on): Likewise.
6642         * modules/ioctl (Depends-on): Likewise.
6643         * modules/listen (Depends-on): Likewise.
6644         * modules/recv (Depends-on): Likewise.
6645         * modules/recvfrom (Depends-on): Likewise.
6646         * modules/send (Depends-on): Likewise.
6647         * modules/sendto (Depends-on): Likewise.
6648         * modules/setsockopt (Depends-on): Likewise.
6649         * modules/shutdown (Depends-on): Likewise.
6650         * modules/socket (Depends-on): Likewise.
6651         * modules/execute (Depends-on): Likewise.
6652         * modules/spawn-pipe (Depends-on): Likewise.
6653         * modules/flock (Depends-on): Likewise.
6654         * modules/fsync (Depends-on): Likewise.
6655         * modules/isapipe (Depends-on): Likewise.
6656         * tests/test-cloexec.c: Include msvc-nothrow.h.
6657         * tests/test-dup-safer.c: Likewise.
6658         * tests/test-dup2.c: Likewise.
6659         * tests/test-dup3.c: Likewise.
6660         * tests/test-fcntl.c: Likewise.
6661         * tests/test-pipe.c: Likewise.
6662         * tests/test-pipe2.c: Likewise.
6663         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
6664         * modules/unistd-safer-tests (Depends-on): Likewise.
6665         * modules/dup2-tests (Depends-on): Likewise.
6666         * modules/dup3-tests (Depends-on): Likewise.
6667         * modules/fcntl-tests (Depends-on): Likewise.
6668         * modules/pipe-posix-tests (Depends-on): Likewise.
6669         * modules/pipe2-tests (Depends-on): Likewise.
6670
6671 2011-09-23  Bruno Haible  <bruno@clisp.org>
6672
6673         dup2: Make code more maintainable.
6674         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
6675         (rpl_dup2): Use it.
6676         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
6677         * modules/dup2 (configure.ac): Invoke it.
6678         Reported by Paul Eggert.
6679
6680 2011-09-23  Bruno Haible  <bruno@clisp.org>
6681
6682         msvc-inval: Fix compilation error.
6683         * lib/msvc-inval.h: Include <excpt.h>.
6684
6685 2011-09-23  Bruno Haible  <bruno@clisp.org>
6686
6687         mkdir: Tweak for MSVC 9.
6688         * lib/sys_stat.in.h: Update comments.
6689         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
6690
6691         Tests for module 'chdir'.
6692         * modules/chdir-tests: New file.
6693         * tests/test-chdir.c: New file.
6694
6695         New module 'chdir'.
6696         * modules/chdir: New file.
6697         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
6698         (chdir): New declaration.
6699         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
6700         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
6701         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
6702         * tests/test-unistd-c++.cc: Check signature of chdir.
6703         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
6704         * modules/chdir-long (Depends-on): Add chdir.
6705         * modules/fchdir (Depends-on): Likewise.
6706         * modules/rename (Depends-on): Likewise.
6707         * modules/savewd (Depends-on): Likewise.
6708
6709         rmdir: Support for mingw, MSVC 9.
6710         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
6711         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
6712
6713         getcwd: Tweak for MSVC 9.
6714         * lib/unistd.in.h: Update comments.
6715         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
6716
6717 2011-09-22  Bruno Haible  <bruno@clisp.org>
6718
6719         strerror_r-posix: Avoid a link error on MSVC.
6720         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
6721         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
6722
6723 2011-09-22  Bruno Haible  <bruno@clisp.org>
6724
6725         select: Avoid link errors on MSVC.
6726         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
6727         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
6728         * modules/pselect (Link): Likewise.
6729         * NEWS: Mention the change.
6730         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
6731         test-select-stdin against $(LIB_SELECT).
6732         * modules/pselect-tests (Makefile.am): Link test-pselect against
6733         $(LIB_SELECT).
6734
6735 2011-09-22  Bruno Haible  <bruno@clisp.org>
6736
6737         select: Avoid compilation error on MSVC.
6738         * lib/select.c: Don't include <stdbool.h>.
6739
6740 2011-09-21  Bruno Haible  <bruno@clisp.org>
6741
6742         Consolidate all uses of PATH_MAX in *.m4 files.
6743         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
6744         macros.
6745         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
6746         and gl_PATHMAX_SNIPPET.
6747         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6748         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6749         * modules/chdir-long (Files): Add m4/pathmax.m4.
6750         * modules/getcwd (Files): Likewise.
6751
6752 2011-09-21  Bruno Haible  <bruno@clisp.org>
6753
6754         ftruncate: Un-deprecate, concentrate on Win32 support.
6755         * modules/ftruncate (Status, Notice): Remove sections.
6756         (Depends-on): Add largefile.
6757         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
6758         non-mingw platforms.
6759         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
6760         include <io.h>.
6761         * modules/perror-tests (Depends-on): Add ftruncate.
6762         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
6763         'ftruncate' module.
6764
6765 2011-09-21  Bruno Haible  <bruno@clisp.org>
6766
6767         Add dependencies to new dirent related modules.
6768         * modules/opendir (Depends-on): Add closedir.
6769         * modules/getcwd (Depends-on): Add opendir, closedir.
6770         * modules/dirent-safer-tests (Depends-on): Likewise.
6771         * modules/fdopendir-tests (Depends-on): Likewise.
6772         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
6773         * modules/renameat-tests (Depends-on): Likewise.
6774
6775 2011-09-21  Bruno Haible  <bruno@clisp.org>
6776
6777         opendir: Avoid compilation error on mingw.
6778         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
6779         * modules/opendir (Depends-on): Add unistd.
6780
6781 2011-09-21  Bruno Haible  <bruno@clisp.org>
6782
6783         ftruncate tests: Avoid a test failure on mingw.
6784         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
6785
6786 2011-09-21  Bruno Haible  <bruno@clisp.org>
6787
6788         select tests: Avoid test failures on OSF/1 5.1 and mingw.
6789         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
6790         native Windows.
6791
6792 2011-09-21  Bruno Haible  <bruno@clisp.org>
6793
6794         New module 'fdopen'.
6795         * lib/stdio.in.h (fdopen): New declaration.
6796         * lib/fdopen.c: New file.
6797         * m4/fdopen.m4: New file.
6798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
6799         REPLACE_FDOPEN.
6800         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
6801         REPLACE_FDOPEN.
6802         * modules/fdopen: New file.
6803         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
6804         * tests/test-stdio-c++.cc: Check signature of fdopen.
6805         * doc/posix-functions/fdopen.texi: Mention the new module.
6806
6807 2011-09-21  Bruno Haible  <bruno@clisp.org>
6808
6809         unlockpt tests: Avoid test failure on NetBSD 5.1.
6810         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
6811         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
6812
6813 2011-09-21  Bruno Haible  <bruno@clisp.org>
6814
6815         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
6816         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
6817         * tests/test-getlogin_r.c (main): Likewise.
6818
6819 2011-09-20  Bruno Haible  <bruno@clisp.org>
6820
6821         time tests: Don't require pid_t.
6822         * doc/posix-headers/time.texi: Revert last change.
6823         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
6824         * tests/test-time.c: Comment out the check for pid_t.
6825
6826 2011-09-20  Bruno Haible  <bruno@clisp.org>
6827
6828         fsync tests: Avoid a test failure on mingw.
6829         * tests/test-fsync.c (main): Allow a failure with EIO.
6830
6831 2011-09-20  Bruno Haible  <bruno@clisp.org>
6832
6833         euidaccess: Update comments.
6834         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
6835
6836 2011-09-20  Bruno Haible  <bruno@clisp.org>
6837
6838         Ensure EBADF returns for socket functions on mingw.
6839         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
6840         descriptor is invalid.
6841         * lib/bind.c (rpl_bind): Likewise.
6842         * lib/connect.c (rpl_connect): Likewise.
6843         * lib/getpeername.c (rpl_getpeername): Likewise.
6844         * lib/getsockname.c (rpl_getsockname): Likewise.
6845         * lib/getsockopt.c (rpl_getsockopt): Likewise.
6846         * lib/listen.c (rpl_listen): Likewise.
6847         * lib/recv.c (rpl_recv): Likewise.
6848         * lib/recvfrom.c (rpl_recvfrom): Likewise.
6849         * lib/send.c (rpl_send): Likewise.
6850         * lib/sendto.c (rpl_sendto): Likewise.
6851         * lib/setsockopt.c (rpl_setsockopt): Likewise.
6852         * lib/shutdown.c (rpl_shutdown): Likewise.
6853
6854 2011-09-20  Bruno Haible  <bruno@clisp.org>
6855
6856         select tests: EBADF tests.
6857         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
6858         test_bad_fd): New functions.
6859         (test_function): Invoke also test_bad_fd.
6860
6861 2011-09-20  Bruno Haible  <bruno@clisp.org>
6862
6863         Tests for module 'posix_spawn_file_actions_addopen.
6864         * modules/posix_spawn_file_actions_addopen-tests: New file.
6865         * tests/test-posix_spawn_file_actions_addopen.c: New file.
6866
6867         Tests for module 'posix_spawn_file_actions_adddup2'.
6868         * modules/posix_spawn_file_actions_adddup2-tests: New file.
6869         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
6870
6871         Tests for module 'posix_spawn_file_actions_addclose'.
6872         * modules/posix_spawn_file_actions_addclose-tests: New file.
6873         * tests/test-posix_spawn_file_actions_addclose.c: New file.
6874
6875 2011-09-20  Bruno Haible  <bruno@clisp.org>
6876
6877         Tests for module 'unlockpt'.
6878         * modules/unlockpt-tests: New file.
6879         * tests/test-unlockpt.c: New file.
6880         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
6881
6882         Tests for module 'grantpt'.
6883         * modules/grantpt-tests: New file.
6884         * tests/test-grantpt.c: New file.
6885         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
6886
6887 2011-09-20  Bruno Haible  <bruno@clisp.org>
6888
6889         freopen tests: EBADF tests.
6890         * tests/test-freopen.c: Include errno.h, unistd.h.
6891         (main): Add tests for EBADF, commented out for the moment.
6892
6893         fclose tests: EBADF tests.
6894         * tests/test-fclose.c (main): Add tests for EBADF.
6895
6896         fflush tests: EBADF tests.
6897         * tests/test-fflush.c: Include errno.h, macros.h.
6898         (main): Add tests for EBADF.
6899
6900         ftello tests: EBADF tests.
6901         * tests/test-ftello4.sh: New file.
6902         * tests/test-ftello4.c: New file.
6903         * modules/ftello-tests (Files): Add them.
6904         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
6905
6906         fseeko tests: EBADF tests.
6907         * tests/test-fseeko4.sh: New file.
6908         * tests/test-fseeko4.c: New file.
6909         * modules/fseeko-tests (Files): Add them.
6910         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
6911
6912         Tests for function fputc().
6913         * modules/fputc-tests: New file.
6914         * tests/test-fputc.c: New file.
6915         * modules/stdio-tests (Depends-on): Add fputc-tests.
6916
6917         Tests for function fgetc().
6918         * modules/fgetc-tests: New file.
6919         * tests/test-fgetc.c: New file.
6920         * modules/stdio-tests (Depends-on): Add fgetc-tests.
6921
6922         Tests for function fdopen().
6923         * modules/fdopen-tests: New file.
6924         * tests/test-fdopen.c: New file.
6925         * modules/stdio-tests (Depends-on): Add fdopen-tests.
6926
6927         Tests for module 'vdprintf'.
6928         * modules/vdprintf-tests: New file.
6929         * tests/test-vdprintf.c: New file.
6930
6931         Tests for module 'dprintf'.
6932         * modules/dprintf-tests: New file.
6933         * tests/test-dprintf.c: New file.
6934
6935 2011-09-20  Bruno Haible  <bruno@clisp.org>
6936
6937         Tests for module 'ioctl'.
6938         * modules/ioctl-tests: New file.
6939         * tests/test-ioctl.c: New file.
6940
6941 2011-09-20  Bruno Haible  <bruno@clisp.org>
6942
6943         fcntl tests: EBADF tests.
6944         * tests/test-fcntl.c (main): Add more tests for EBADF.
6945
6946 2011-09-20  Bruno Haible  <bruno@clisp.org>
6947
6948         utimensat tests: EBADF tests.
6949         * tests/test-utimensat.c (main): Add tests for EBADF.
6950
6951         renameat tests: EBADF tests.
6952         * tests/test-renameat.c (main): Add tests for EBADF.
6953
6954         mkfifoat tests: EBADF tests.
6955         * tests/test-mkfifoat.c (main): Add tests for EBADF.
6956
6957         readlinkat tests: EBADF tests.
6958         * tests/test-readlinkat.c (main): Add tests for EBADF.
6959
6960         symlinkat tests: EBADF tests.
6961         * tests/test-symlinkat.c (main): Add tests for EBADF.
6962
6963         linkat tests: EBADF tests.
6964         * tests/test-linkat.c (main): Add tests for EBADF.
6965
6966         Tests for module 'faccessat'.
6967         * modules/faccessat-tests: New file.
6968         * tests/test-faccessat.c: New file.
6969
6970         fdopendir tests: EBADF tests.
6971         * tests/test-fdopendir.c (main): Add more tests for EBADF.
6972
6973         openat tests: EBADF tests.
6974         * tests/test-fchownat.c (main): Add tests for EBADF.
6975         * tests/test-fstatat.c (main): Likewise.
6976         * tests/test-mkdirat.c (main): Likewise.
6977         * tests/test-openat.c (main): Likewise.
6978         * tests/test-unlinkat.c (main): Likewise.
6979         * tests/test-fchmodat.c: New file.
6980         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
6981         (Makefile.am): Also run 'test-fchmodat'.
6982
6983 2011-09-20  Bruno Haible  <bruno@clisp.org>
6984
6985         utimens, futimens, fdutimensat tests: EBADF tests.
6986         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
6987
6988         Tests for function fstat().
6989         * modules/fstat-tests: New file.
6990         * tests/test-fstat.c: New file.
6991         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
6992
6993 2011-09-20  Bruno Haible  <bruno@clisp.org>
6994
6995         test-ttyname_r tests: EBADF tests.
6996         * tests/test-ttyname_r.c (main): Add tests for EBADF.
6997
6998         Tests for module 'isatty'.
6999         * modules/isatty-tests: New file.
7000         * tests/test-isatty.c: New file.
7001
7002         Tests for module 'write'.
7003         * modules/write-tests: New file.
7004         * tests/test-write.c: New file.
7005
7006         Tests for module 'read'.
7007         * modules/read-tests: New file.
7008         * tests/test-read.c: New file.
7009
7010         pwrite tests: EBADF tests.
7011         * tests/test-pwrite.c (main): Add tests for EBADF.
7012
7013         pread tests: EBADF tests.
7014         * tests/test-pread.c (main): Add tests for EBADF.
7015
7016         lseek tests: EBADF tests.
7017         * tests/test-lseek.c (main): Add more tests for EBADF.
7018
7019         Tests for module 'ftruncate'.
7020         * modules/ftruncate-tests: New file.
7021         * tests/test-ftruncate.sh: New file.
7022         * tests/test-ftruncate.c: New file.
7023
7024         fsync tests: EBADF tests.
7025         * tests/test-fsync.c (main): Add more tests for EBADF.
7026
7027         fdatasync tests: EBADF tests.
7028         * tests/test-fdatasync.c (main): Add more tests for EBADF.
7029
7030         Tests for module 'fchown'.
7031         * modules/fchown-tests: New file.
7032         * tests/test-fchown.c: New file.
7033
7034         Tests for module 'fchmod'.
7035         * modules/fchmod-tests: New file.
7036         * tests/test-fchmod.c: New file.
7037
7038         fchdir tests: EBADF tests.
7039         * tests/test-fchdir.c (main): Add more tests for EBADF.
7040
7041         dup2 tests: EBADF tests.
7042         * tests/test-dup2.c (main): Add more tests for EBADF.
7043
7044         Tests for module 'dup'.
7045         * modules/dup-tests: New file.
7046         * tests/test-dup.c: New file.
7047
7048         Tests for module 'close'.
7049         * modules/close-tests: New file.
7050         * tests/test-close.c: New file.
7051
7052 2011-09-20  Bruno Haible  <bruno@clisp.org>
7053
7054         Tests for module 'shutdown'.
7055         * modules/shutdown-tests: New file.
7056         * tests/test-shutdown.c: New file.
7057
7058         Tests for module 'setsockopt'.
7059         * modules/setsockopt-tests: New file.
7060         * tests/test-setsockopt.c: New file.
7061
7062         Tests for module 'sendto'.
7063         * modules/sendto-tests: New file.
7064         * tests/test-sendto.c: New file.
7065
7066         Tests for module 'send'.
7067         * modules/send-tests: New file.
7068         * tests/test-send.c: New file.
7069
7070         Tests for module 'recvfrom'.
7071         * modules/recvfrom-tests: New file.
7072         * tests/test-recvfrom.c: New file.
7073
7074         Tests for module 'recv'.
7075         * modules/recv-tests: New file.
7076         * tests/test-recv.c: New file.
7077
7078         Tests for module 'listen'.
7079         * modules/listen-tests: New file.
7080         * tests/test-listen.c: New file.
7081
7082         Tests for module 'getsockopt'.
7083         * modules/getsockopt-tests: New file.
7084         * tests/test-getsockopt.c: New file.
7085
7086         Tests for module 'getsockname'.
7087         * modules/getsockname-tests: New file.
7088         * tests/test-getsockname.c: New file.
7089
7090         Tests for module 'getpeername'.
7091         * modules/getpeername-tests: New file.
7092         * tests/test-getpeername.c: New file.
7093
7094         Tests for module 'connect'.
7095         * modules/connect-tests: New file.
7096         * tests/test-connect.c: New file.
7097
7098         Tests for module 'bind'.
7099         * modules/bind-tests: New file.
7100         * tests/test-bind.c: New file.
7101
7102         accept4 tests: Fix for native Windows.
7103         * tests/test-accept4.c: Include sockets.h.
7104         (main): Invoke gl_sockets_startup.
7105         * modules/accept4-tests (Depends-on): Add sockets.
7106
7107         accept tests: Fix for native Windows.
7108         * tests/test-accept.c: Include sockets.h.
7109         (main): Invoke gl_sockets_startup.
7110         * modules/accept-tests (Depends-on): Add sockets.
7111
7112 2011-09-19  Bruno Haible  <bruno@clisp.org>
7113
7114         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
7115         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
7116         do...while(0).
7117         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
7118         Suggested by Paul Eggert.
7119
7120 2011-09-19  Bruno Haible  <bruno@clisp.org>
7121
7122         sched: Ensure pid_t is defined.
7123         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
7124         not define pid_t.
7125         * lib/sched.in.h: Include <sys/types.h>.
7126         * doc/posix-headers/sched.texi: Mention the pid_t problem.
7127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7128
7129 2011-09-19  Bruno Haible  <bruno@clisp.org>
7130
7131         msvc-inval: Ensure the entire expansion is a single statement.
7132         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
7133         of braces.
7134
7135 2011-09-19  Jim Meyering  <meyering@redhat.com>
7136
7137         tests: use printf, not echo in init.sh's warn_ function
7138         * tests/init.sh (warn_): Use printf, not echo.  The latter would
7139         misbehave when given strings containing a backslash or starting
7140         with e.g., -n.  James Youngman suggested setting IFS.
7141
7142 2011-09-19  Eric Blake  <eblake@redhat.com>
7143
7144         futimens: enhance test
7145         * tests/test-futimens.h (test_futimens): Also check for EBADF on
7146         closed non-negative fd.
7147
7148         date: accept 'hence' as opposite of 'ago'
7149         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
7150         * tests/test-parse-datetime.c (main): Enhance test.
7151         Suggested by Jesse Wilson.
7152
7153 2011-09-19  Jim Meyering  <meyering@redhat.com>
7154
7155         getcwd: don't fail in a deep directory on a system without openat
7156         Before this change, getcwd would fail when called from a directory
7157         of depth PATH_MAX / 3 or greater.  That was due to the fact that
7158         the non-openat implementation used "..", "../..", "../../..", etc.
7159         to access ancestor directories.  With too many, that string would
7160         be longer than PATH_MAX.
7161         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
7162         using gnulib's openat replacement.
7163         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
7164         we're using the replacement function.
7165
7166 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
7167
7168         maint.mk: avoid warnings from perl about missing files
7169         * top/maint.mk (def_sym_regex): Ignore files listed in
7170         $(gl_other_headers_) that do not exist, say because a project
7171         does not use a corresponding module.
7172
7173 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7174
7175         stat: use pathmax.h only if needed
7176         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
7177         This is better for Emacs, which does not have a mingw port and
7178         therefore can avoid the pathmax module.
7179
7180         utimens: remove dependency on dup2
7181         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
7182         to work around the Linux kernel bug.
7183         * modules/utimens (Depends-on): Remove dup2.
7184
7185 2011-09-18  Bruno Haible  <bruno@clisp.org>
7186
7187         inet_ntop, inet_pton: Look for it also in libresolv.
7188         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
7189         libnsl, search for it in libresolv.
7190         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7191         Needed on Solaris 7.
7192
7193 2011-09-18  Bruno Haible  <bruno@clisp.org>
7194
7195         accept, accept4 tests: Avoid link error on Solaris.
7196         * modules/accept-tests (Makefile.am): Link test-accept against
7197         $(LIBSOCKET).
7198         * modules/accept4-tests (Makefile.am): Link test-accept4 against
7199         $(LIBSOCKET).
7200
7201         accept4: Avoid link error on Solaris.
7202         * modules/accept4 (Link): New section.
7203
7204         socket functions: Avoid link errors on Solaris.
7205         * modules/accept (Depends-on): Add socketlib.
7206         (Link): New section.
7207         * modules/bind (Depends-on): Add socketlib.
7208         (Link): New section.
7209         * modules/connect (Depends-on): Add socketlib.
7210         (Link): New section.
7211         * modules/getpeername (Depends-on): Add socketlib.
7212         (Link): New section.
7213         * modules/getsockname (Depends-on): Add socketlib.
7214         (Link): New section.
7215         * modules/getsockopt (Depends-on): Add socketlib.
7216         (Link): New section.
7217         * modules/listen (Depends-on): Add socketlib.
7218         (Link): New section.
7219         * modules/recv (Depends-on): Add socketlib.
7220         (Link): New section.
7221         * modules/recvfrom (Depends-on): Add socketlib.
7222         (Link): New section.
7223         * modules/send (Depends-on): Add socketlib.
7224         (Link): New section.
7225         * modules/sendto (Depends-on): Add socketlib.
7226         (Link): New section.
7227         * modules/setsockopt (Depends-on): Add socketlib.
7228         (Link): New section.
7229         * modules/shutdown (Depends-on): Add socketlib.
7230         (Link): New section.
7231         * modules/socket (Depends-on): Add socketlib.
7232         (Link): New section.
7233
7234 2011-09-18  Bruno Haible  <bruno@clisp.org>
7235
7236         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
7237         * tests/test-ptsname.c (main): Terminate the test if it takes longer
7238         than 5 seconds.
7239         * modules/ptsname-tests (configure.ac): Test for alarm.
7240
7241 2011-09-18  Bruno Haible  <bruno@clisp.org>
7242
7243         posix_spawn_file_actions_add*: Fix module dependencies.
7244         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
7245         posix_spawn_file_actions_init.
7246         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
7247         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
7248
7249 2011-09-18  Bruno Haible  <bruno@clisp.org>
7250
7251         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
7252         * tests/test-rename.h (test_rename): Allow error code EEXIST.
7253         * tests/test-renameat.c (main): Likewise.
7254
7255 2011-09-18  Bruno Haible  <bruno@clisp.org>
7256
7257         Tests for module 'accept4'.
7258         * modules/accept4-tests: New file.
7259         * tests/test-accept4.c: New file.
7260
7261 2011-09-18  Bruno Haible  <bruno@clisp.org>
7262
7263         Tests for module 'accept'.
7264         * modules/accept-tests: New file.
7265         * tests/test-accept.c: New file.
7266
7267 2011-09-18  Bruno Haible  <bruno@clisp.org>
7268
7269         dup2: Support for MSVC.
7270         * lib/dup2.c: Include msvc-inval.h.
7271         (rpl_dup2): Handle invalid parameter notifications during dup2 and
7272         _get_osfhandle calls.
7273         * modules/dup2 (Depends-on): Add msvc-inval.
7274         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
7275
7276         New module 'msvc-inval'.
7277         * lib/msvc-inval.h: New file.
7278         * lib/msvc-inval.c: New file.
7279         * m4/msvc-inval.m4: New file.
7280         * modules/msvc-inval: New file.
7281
7282 2011-09-17  Bruno Haible  <bruno@clisp.org>
7283
7284         Tests for module 'pclose'.
7285         * modules/pclose-tests: New file.
7286
7287         New module 'pclose'.
7288         * lib/stdio.in.h (pclose): New declaration.
7289         * lib/pclose.c: New file.
7290         * m4/pclose.m4: New file.
7291         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
7292         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
7293         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
7294         * modules/pclose: New file.
7295         * modules/popen-tests (Depends-on): Add pclose.
7296         * modules/popen-safer-tests (Depends-on): Likewise.
7297         * doc/posix-functions/pclose.texi: Mention the new module.
7298
7299 2011-09-17  Bruno Haible  <bruno@clisp.org>
7300
7301         popen: Support for MSVC.
7302         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
7303         * lib/popen.c (popen): Provide alternate definition for native Windows.
7304         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
7305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
7306         * modules/popen (Depends-on, configure.ac): Update condition.
7307         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
7308         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
7309         fixed.
7310
7311 2011-09-17  Bruno Haible  <bruno@clisp.org>
7312
7313         isnanl, isnand, isnanf: Work around MSVC bug.
7314         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
7315
7316 2011-09-17  Bruno Haible  <bruno@clisp.org>
7317
7318         sys_socket tests: Fix recent mistake.
7319         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
7320
7321 2011-09-17  Bruno Haible  <bruno@clisp.org>
7322
7323         putenv: Support for MSVC.
7324         * modules/putenv (Depends-on): Add environ.
7325         * lib/putenv.c (environ): Disable declaration.
7326         * lib/unistd.in.h: Update comment.
7327
7328 2011-09-17  Bruno Haible  <bruno@clisp.org>
7329
7330         math: Avoid macro redefinition warnings on MSVC.
7331         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
7332         Undefine before redefining.
7333
7334 2011-09-17  Bruno Haible  <bruno@clisp.org>
7335
7336         doc: Mention functions which are declared as macros.
7337         * doc/posix-functions/*[fl].texi: Mention that some functions are
7338         defined as macros with arguments only.
7339
7340 2011-09-17  Bruno Haible  <bruno@clisp.org>
7341
7342         Add dependencies to new dirent related modules.
7343         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
7344         * modules/fts (Depends-on): Likewise.
7345         * modules/glob (Depends-on): Likewise.
7346         * modules/savedir (Depends-on): Likewise.
7347         * modules/scandir (Depends-on): Likewise.
7348         * modules/dirent-safer (Depends-on): Add opendir, closedir.
7349         * modules/fdopendir (Depends-on): Add opendir.
7350
7351 2011-09-17  Bruno Haible  <bruno@clisp.org>
7352
7353         inet_pton: Support for MSVC on Windows Vista or newer.
7354         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
7355         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
7356         HAVE_DECL_INET_PTON is defined.
7357         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7358         On platforms with <winsock2.h>, test whether inet_pton is declared in
7359         <ws2tcpip.h>. If so, arrange to replace it.
7360         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
7361         REPLACE_INET_PTON.
7362         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
7363         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
7364         (Depends-on, configure.ac): Update condition.
7365         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
7366
7367 2011-09-17  Bruno Haible  <bruno@clisp.org>
7368
7369         inet_ntop: Support for MSVC on Windows Vista or newer.
7370         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
7371         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
7372         HAVE_DECL_INET_NTOP is defined.
7373         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7374         On platforms with <winsock2.h>, test whether inet_ntop is declared in
7375         <ws2tcpip.h>. If so, arrange to replace it.
7376         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
7377         REPLACE_INET_NTOP.
7378         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
7379         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
7380         (Depends-on, configure.ac): Update condition.
7381         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
7382
7383 2011-09-16  Eric Blake  <eblake@redhat.com>
7384
7385         test-fsync: yet another enhancement
7386         * tests/test-fsync.c (main): Also test behavior on read-only text
7387         file.
7388
7389 2011-09-16  Bruno Haible  <bruno@clisp.org>
7390
7391         Enhance fsync, fdatasync tests.
7392         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
7393         * tests/test-fdatasync.c (main): Likewise.
7394
7395 2011-09-16  Bruno Haible  <bruno@clisp.org>
7396
7397         Support for MSVC compiler: Ensure mode_t gets defined.
7398         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
7399         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7400         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7401         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
7402         * tests/test-fcntl-h.c: Check that mode_t is defined.
7403         * tests/test-sys_stat.c: Likewise.
7404         * tests/test-sys_types.c: Likewise.
7405         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
7406         * doc/posix-headers/sys_stat.texi: Likewise.
7407         * doc/posix-headers/sys_types.texi: Likewise.
7408
7409 2011-09-16  Bruno Haible  <bruno@clisp.org>
7410
7411         sys_stat: Support for MSVC.
7412         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
7413         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
7414         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
7415         MSVC.
7416
7417 2011-09-16  Bruno Haible  <bruno@clisp.org>
7418
7419         Support for MSVC compiler: Ensure off_t gets defined.
7420         * lib/unistd.in.h: Include <sys/types.h>.
7421         * tests/test-fcntl-h.c: Check that off_t is defined.
7422         * tests/test-sys_stat.c: Likewise.
7423         * tests/test-sys_types.c: Likewise.
7424
7425 2011-09-16  Eric Blake  <eblake@redhat.com>
7426
7427         fdatasync: port to Solaris
7428         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
7429         * modules/fdatasync (Link): Document it.
7430         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
7431
7432         fdatasync: port to MacOS X 10.7
7433         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
7434         declared.
7435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
7436         * modules/unistd (Makefile.am): Substitute it.
7437         * lib/unistd.in.h (fdatasync): Declare on MacOS.
7438         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
7439
7440         fdatasync: minor improvements
7441         * modules/fdatasync (Depends-on): Add condition for fsync.
7442         * lib/fdatasync.c (fdatasync): Add comment.
7443         * tests/test-unistd-c++.cc: Test fdatasync.
7444
7445         unistd: update refs to newer POSIX
7446         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
7447         Suggested by Bruno Haible.
7448
7449         fdatasync: new module
7450         * modules/fsync (Description): Document difference to fdatasync.
7451         * modules/fdatasync: New module.
7452         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
7453         * lib/fdatasync.c (fdatasync): Likewise.
7454         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
7455         defaults.
7456         * modules/unistd (Makefile.am): Set witnesses.
7457         * lib/unistd.in.h (fdatasync): Declare.
7458         * MODULES.html.sh: Document it.
7459         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
7460         * modules/fdatasync-tests: New test.
7461         * tests/test-fdatasync.c: Likewise.
7462
7463 2011-09-16  Eric Blake  <eblake@redhat.com>
7464
7465         test-fsync: enhance tests
7466         * modules/fsync-tests (Depends-on): Add errno, for mingw.
7467         * tests/test-fsync.c (main): Enhance test.
7468
7469 2011-09-15  Bruno Haible  <bruno@clisp.org>
7470
7471         Support for MSVC compiler: Ensure ssize_t gets defined.
7472         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
7473         * doc/posix-headers/stdio.texi: Likewise.
7474         * modules/stdio (Depends-on): Add ssize_t.
7475         * modules/sys_socket (Depends-on): Likewise.
7476         * modules/sys_types (Depends-on): Likewise.
7477         * modules/sys_uio (Depends-on): Likewise.
7478         * modules/unistd (Depends-on): Likewise.
7479         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
7480         * tests/test-sys_types.c: Check that ssize_t is defined.
7481
7482 2011-09-14  Bruno Haible  <bruno@clisp.org>
7483
7484         Avoid using #, the m4 comment starter character, near brackets.
7485         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
7486         delimiter character in sed expressions.
7487         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7488         Suggested by Eric Blake.
7489
7490         Properly quote AC_CHECK_DECLS' 4th argument.
7491         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
7492         argument.
7493         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7494         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7495         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7496         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7497         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7498         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
7499         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
7500         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
7501         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
7502         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7503         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
7504         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7505         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7506         * m4/isinf.m4 (gl_ISINF): Likewise.
7507         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7508         * m4/readutmp.m4 (gl_READUTMP): Likewise.
7509         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7510         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7511         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7513         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
7514         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7515         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
7516         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7517         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7518         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
7520         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7522         Reported by Eric Blake.
7523
7524         Properly quote AC_CHECK_DECL's 4th argument.
7525         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
7526         argument.
7527         * m4/argp.m4 (gl_ARGP): Likewise.
7528         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
7529         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
7530         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
7531         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
7532         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
7533         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
7534         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7535         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
7536         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
7537         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
7538         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
7539         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
7540         Reported by Eric Blake.
7541
7542 2011-09-14  Eric Blake  <eblake@redhat.com>
7543
7544         opendir: avoid compile warning
7545         * lib/opendir.c (includes): Always include errno.h.
7546         Reported by Tatsuro MATSUOKA.
7547
7548 2011-09-14  Jim Meyering  <meyering@redhat.com>
7549
7550         maint.mk: sc_tight_scope: propagate failure from sub-make
7551         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
7552         Reported by Martin von Gagern.
7553
7554 2011-09-13  Bruno Haible  <bruno@clisp.org>
7555
7556         tempname: Support for MSVC.
7557         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
7558         MSVC.
7559         * modules/tempname (Depends-on): Add fcntl-h.
7560
7561 2011-09-13  Bruno Haible  <bruno@clisp.org>
7562
7563         sys_time: Support for MSVC.
7564         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
7565         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
7566         include <winsock2.h>.
7567         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
7568         function declarations that collide with POSIX.
7569         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
7570         (Makefile.am): Substitute HAVE_WINSOCK2_H.
7571
7572 2011-09-13  Bruno Haible  <bruno@clisp.org>
7573
7574         stat: Support for MSVC.
7575         * lib/stat.c: Include pathmax.h.
7576         * modules/stat (Depends-on): Add pathmax.
7577
7578         pathmax: Support for native Windows.
7579         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
7580
7581 2011-09-12  Bruno Haible  <bruno@clisp.org>
7582
7583         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
7584         * lib/dirent.in.h (struct dirent): New type.
7585         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
7586         DT_WHT): New macros.
7587         (DIR): New type.
7588         (opendir, closedir): Declare only if the module 'opendir' is enabled.
7589         (readdir, rewinddir): New declarations.
7590         * lib/dirent-private.h: New file.
7591         * lib/opendir.c: New file.
7592         * lib/readdir.c: New file.
7593         * lib/rewinddir.c: New file.
7594         * lib/closedir.c: New file.
7595         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
7596         * m4/opendir.m4: New file.
7597         * m4/readdir.m4: New file.
7598         * m4/rewinddir.m4: New file.
7599         * m4/closedir.m4: New file.
7600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
7601         REPLACE_CLOSEDIR here.
7602         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
7603         readdir, rewinddir are declared.
7604         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
7605         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
7606         HAVE_REWINDDIR, HAVE_CLOSEDIR.
7607         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
7608         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
7609         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
7610         * modules/opendir: New file.
7611         * modules/readdir: New file.
7612         * modules/rewinddir: New file.
7613         * modules/closedir: New file.
7614         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
7615         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
7616         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
7617         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
7618         * NEWS: Mention the 'fchdir' change.
7619
7620 2011-09-11  Bruno Haible  <bruno@clisp.org>
7621
7622         asm-underscore.m4: Support for MSVC.
7623         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
7624         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
7625
7626 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
7627
7628         Doc about crypt functions.
7629         * doc/posix-functions/crypt.texi: Expand range of glibc versions
7630         needing for _GNU_SOURCE to get crypt.
7631         * doc/posix-functions/encrypt.texi: Likewise.
7632         * doc/posix-functions/setkey.texi: Likewise.
7633
7634 2011-09-11  Bruno Haible  <bruno@clisp.org>
7635
7636         doc: Update regarding MSVC 9.
7637         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
7638         tested".
7639         * doc/posix-functions/*.texi: Update with info about MSVC 9.
7640         * doc/posix-headers/*.texi: Likewise.
7641         * doc/pastposix-functions/*.texi: Likewise.
7642         * doc/glibc-functions/*.texi: Likewise.
7643         * doc/glibc-headers/*.texi: Likewise.
7644
7645 2011-09-11  Bruno Haible  <bruno@clisp.org>
7646
7647         unistd et al.: Don't assume <unistd.h> exists.
7648         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
7649         does not exist.
7650         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
7651         exist. But include <stdlib.h>.
7652         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
7653         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
7654         symlink() does not exist.
7655         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
7656         include <io.h> instead.
7657         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
7658         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
7659         include <direct.h> instead.
7660         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7661         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7662         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
7663         <io.h> instead.
7664         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
7665         correctly if the system does not have hard links.
7666         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
7667         <direct.h> instead.
7668         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
7669         it when looking for function declarations.
7670         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
7671         <direct.h> and <io.h> instead.
7672         * doc/posix-headers/unistd.texi: More details about MSVC problem.
7673
7674 2011-09-11  Bruno Haible  <bruno@clisp.org>
7675
7676         strcase: Support for MSVC.
7677         * modules/strcase (Status, Notice): Remove obsoletion mark.
7678         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
7679         * doc/posix-functions/strncasecmp.texi: Likewise.
7680
7681         strings: Don't assume <strings.h> exists.
7682         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
7683         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
7684         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
7685         * doc/posix-headers/strings.texi: Mention the MSVC problem.
7686
7687 2011-09-11  Bruno Haible  <bruno@clisp.org>
7688
7689         dirent: Don't assume <dirent.h> exists.
7690         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
7691         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
7692         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
7693         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
7694
7695 2011-09-11  Bruno Haible  <bruno@clisp.org>
7696
7697         Fix wint_t on MSVC.
7698         * lib/wchar.in.h (wint_t): On MSVC, override it.
7699         * lib/wctype.in.h (wint_t): Likewise.
7700         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
7701         MSVC.
7702         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
7703         * doc/posix-headers/wctype.texi: Likewise.
7704
7705 2011-09-11  Bruno Haible  <bruno@clisp.org>
7706
7707         sys_types: Fix typo.
7708         * lib/sys_types.in.h: Fix typo in comment.
7709         Reported by Paul Eggert.
7710
7711         Support for MSVC compiler: Ensure size_t gets defined.
7712         * modules/strings (Depends-on): Add 'sys_types'.
7713         * modules/sys_uio (Depends-on): Likewise.
7714         * lib/sys_uio.in.h: Update comment.
7715
7716         C++ tests for module 'sys_types'.
7717         * modules/sys_types-c++-tests: New file.
7718         * tests/test-sys_types-c++.cc: New file.
7719
7720         Tests for module 'sys_types'.
7721         * modules/sys_types-tests: New file.
7722         * tests/test-sys_types.c: New file.
7723
7724         New module 'sys_types'.
7725         * lib/sys_types.in.h: New file.
7726         * m4/sys_types_h.m4: New file.
7727         * modules/sys_types: New file.
7728         * doc/posix-headers/sys_types.texi: Mention the new module and the
7729         size_t problem on MSVC 9.
7730
7731 2011-09-11  Bruno Haible  <bruno@clisp.org>
7732
7733         Support for MSVC compiler: Avoid division by a literal 0.
7734         * lib/math.in.h (NAN): Define through a function call also on MSVC.
7735         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
7736         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
7737         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
7738         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
7739         * tests/infinity.h: New file.
7740         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
7741         on MSVC.
7742         * tests/test-ceilf1.c: Include infinity.h.
7743         (main): Use Infinityf.
7744         * tests/test-ceil1.c: Include infinity.h.
7745         (main): Use Infinityd.
7746         * tests/test-ceill.c: Include infinity.h.
7747         (main): Use Infinityl.
7748         * tests/test-dprintf-posix.c: Include infinity.h.
7749         (test_function): Use Infinityd.
7750         * tests/test-floorf1.c: Include infinity.h.
7751         (main): Use Infinityf.
7752         * tests/test-floor1.c: Include infinity.h.
7753         (main): Use Infinityd.
7754         * tests/test-floorl.c: Include infinity.h.
7755         (main): Use Infinityl.
7756         * tests/test-fprintf-posix.c: Include infinity.h.
7757         (test_function): Use Infinityd.
7758         * tests/test-frexp.c: Include infinity.h.
7759         (main): Use Infinityd.
7760         * tests/test-frexpl.c: Include infinity.h.
7761         (main): Use Infinityl.
7762         * tests/test-isfinite.c: Include infinity.h.
7763         (test_isfinitef): Use Infinityf.
7764         (test_isfinited): Use Infinityd.
7765         (test_isfinitel): Use Infinityl.
7766         * tests/test-isinf.c: Include infinity.h.
7767         (test_isinff): Use Infinityf.
7768         (test_isinfd): Use Infinityd.
7769         (test_isinfl): Use Infinityl.
7770         * tests/test-isnan.c: Include infinity.h.
7771         (test_float): Use Infinityf.
7772         (test_double): Use Infinityd.
7773         (test_long_double): Use Infinityl.
7774         * tests/test-isnanf.h: Include infinity.h.
7775         (main): Use Infinityf.
7776         * tests/test-isnand.h: Include infinity.h.
7777         (main): Use Infinityd.
7778         * tests/test-isnanl.h: Include infinity.h.
7779         (main): Use Infinityl.
7780         * tests/test-ldexpl.c: Include infinity.h.
7781         (main): Use Infinityl.
7782         * tests/test-printf-posix.h: Include infinity.h.
7783         (test_function): Use Infinityd.
7784         * tests/test-roundf1.c: Include infinity.h.
7785         (main): Use Infinityf.
7786         * tests/test-round1.c: Include infinity.h.
7787         (main): Use Infinityd.
7788         * tests/test-roundl.c: Include infinity.h.
7789         (main): Use Infinityl.
7790         * tests/test-signbit.c: Include infinity.h.
7791         (test_signbitf): Use Infinityf.
7792         (test_signbitd): Use Infinityd.
7793         (test_signbitl): Use Infinityl.
7794         * tests/test-snprintf-posix.h: Include infinity.h.
7795         (test_function): Use Infinityd, Infinityl.
7796         * tests/test-sprintf-posix.h: Include infinity.h.
7797         (test_function): Use Infinityd, Infinityl.
7798         * tests/test-truncf1.c: Include infinity.h.
7799         (main): Use Infinityf.
7800         * tests/test-trunc1.c: Include infinity.h.
7801         (main): Use Infinityd.
7802         * tests/test-truncl.c: Include infinity.h.
7803         (main): Use Infinityl.
7804         * tests/test-vasnprintf-posix.c: Include infinity.h.
7805         (test_function): Use Infinityd, Infinityl.
7806         * tests/test-vasprintf-posix.c: Include infinity.h.
7807         (test_function): Use Infinityd, Infinityl.
7808         * modules/ceilf-tests (Files): Add tests/infinity.h.
7809         * modules/ceil-tests (Files): Likewise.
7810         * modules/ceill-tests (Files): Likewise.
7811         * modules/dprintf-posix-tests (Files): Likewise.
7812         * modules/floorf-tests (Files): Likewise.
7813         * modules/floor-tests (Files): Likewise.
7814         * modules/floorl-tests (Files): Likewise.
7815         * modules/fprintf-posix-tests (Files): Likewise.
7816         * modules/frexp-tests (Files): Likewise.
7817         * modules/frexp-nolibm-tests (Files): Likewise.
7818         * modules/frexpl-tests (Files): Likewise.
7819         * modules/frexpl-nolibm-tests (Files): Likewise.
7820         * modules/isfinite-tests (Files): Likewise.
7821         * modules/isinf-tests (Files): Likewise.
7822         * modules/isnan-tests (Files): Likewise.
7823         * modules/isnanf-tests (Files): Likewise.
7824         * modules/isnanf-nolibm-tests (Files): Likewise.
7825         * modules/isnand-tests (Files): Likewise.
7826         * modules/isnand-nolibm-tests (Files): Likewise.
7827         * modules/isnanl-tests (Files): Likewise.
7828         * modules/isnanl-nolibm-tests (Files): Likewise.
7829         * modules/ldexpl-tests (Files): Likewise.
7830         * modules/printf-posix-tests (Files): Likewise.
7831         * modules/roundf-tests (Files): Likewise.
7832         * modules/round-tests (Files): Likewise.
7833         * modules/roundl-tests (Files): Likewise.
7834         * modules/signbit-tests (Files): Likewise.
7835         * modules/snprintf-posix-tests (Files): Likewise.
7836         * modules/sprintf-posix-tests (Files): Likewise.
7837         * modules/truncf-tests (Files): Likewise.
7838         * modules/trunc-tests (Files): Likewise.
7839         * modules/truncl-tests (Files): Likewise.
7840         * modules/vasnprintf-posix-tests (Files): Likewise.
7841         * modules/vasprintf-posix-tests (Files): Likewise.
7842         * modules/vdprintf-posix-tests (Files): Likewise.
7843         * modules/vfprintf-posix-tests (Files): Likewise.
7844         * modules/vprintf-posix-tests (Files): Likewise.
7845         * modules/vsnprintf-posix-tests (Files): Likewise.
7846         * modules/vsprintf-posix-tests (Files): Likewise.
7847         * modules/xprintf-posix-tests (Files): Likewise.
7848
7849 2011-09-11  Bruno Haible  <bruno@clisp.org>
7850
7851         Ensure pid_t gets defined.
7852         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
7853         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7854         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7855         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7856         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7857         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7858         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7859         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7860         * tests/test-fcntl-h.c: Check that pid_t is defined.
7861         * tests/test-sched.c: Likewise.
7862         * tests/test-termios.c: Likewise.
7863         * tests/test-time.c: Likewise.
7864         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
7865         * doc/posix-headers/signal.texi: Likewise.
7866         * doc/posix-headers/sys_types.texi: Likewise.
7867         * doc/posix-headers/time.texi: Likewise.
7868
7869 2011-09-11  Bruno Haible  <bruno@clisp.org>
7870
7871         acl: Fix compilation on Solaris 10 (older version).
7872         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
7873         of ACE_EVERYONE.
7874         * lib/set-mode-acl.c (qset_acl): Likewise.
7875         Reported by Christian Jullien <eligis@orange.fr>.
7876
7877 2011-09-10  Bruno Haible  <bruno@clisp.org>
7878
7879         iconv, unsetenv: Add support for MSVC compiler.
7880         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
7881         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
7882
7883 2011-09-10  Bruno Haible  <bruno@clisp.org>
7884
7885         *printf: Add support for MSVC compiler.
7886         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
7887         handles the exception caused by the %n directive. When cross-compiling,
7888         guess no on native Windows.
7889         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7890         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
7891         emulate it through vsnprintf.
7892         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
7893         * doc/posix-functions/dprintf.texi: Update documentation regarding
7894         MSVC 9.
7895         * doc/posix-functions/fprintf.texi: Likewise.
7896         * doc/posix-functions/printf.texi: Likewise.
7897         * doc/posix-functions/snprintf.texi: Likewise.
7898         * doc/posix-functions/sprintf.texi: Likewise.
7899         * doc/posix-functions/swprintf.texi: Likewise.
7900         * doc/posix-functions/vdprintf.texi: Likewise.
7901         * doc/posix-functions/vfprintf.texi: Likewise.
7902         * doc/posix-functions/vprintf.texi: Likewise.
7903         * doc/posix-functions/vsnprintf.texi: Likewise.
7904         * doc/posix-functions/vsprintf.texi: Likewise.
7905         * doc/glibc-functions/asprintf.texi: Likewise.
7906         * doc/glibc-functions/obstack_printf.texi: Likewise.
7907         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7908         * doc/glibc-functions/vasprintf.texi: Likewise.
7909
7910 2011-09-10  Bruno Haible  <bruno@clisp.org>
7911
7912         nocrash: Add support for native Windows.
7913         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
7914
7915 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
7916             Bruno Haible  <bruno@clisp.org>
7917
7918         absolute-header, include-next: Add support for MSVC compiler.
7919         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
7920         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
7921         directory separator in #line directives.
7922         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
7923         recognize also backslash as directory separator in #line directives.
7924
7925 2011-09-08  Jim Meyering  <meyering@redhat.com>
7926
7927         maint.mk: mark the post-release commit log with "maint: " prefix
7928         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
7929         one-line commit-log summary.
7930
7931 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
7932             Bruno Haible  <bruno@clisp.org>
7933
7934         Doc about crypt functions.
7935         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
7936         systems.
7937         * doc/posix-functions/encrypt.texi: Likewise.
7938         * doc/posix-functions/setkey.texi: Likewise.
7939
7940 2011-09-08  Simon Josefsson  <simon@josefsson.org>
7941
7942         * lib/gc.h: Fix copyright header.
7943
7944 2011-09-07  Bruno Haible  <bruno@clisp.org>
7945
7946         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
7947         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
7948         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
7949
7950 2011-09-07  Bruno Haible  <bruno@clisp.org>
7951
7952         openat: Work around compilation error with OSF/1 5.1 DTK cc.
7953         * lib/fopen.c: Use different syntax for include of <stdio.h>.
7954         * lib/freopen.c: Likewise.
7955         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
7956         * lib/lstat.c: Likewise.
7957         * lib/stat.c: Likewise.
7958         * lib/open.c: Use different syntax for include of <fcntl.h>.
7959         * lib/openat.c: Include fcntl.h again, explicitly.
7960
7961 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
7962
7963         parse-datetime: document the newly accepted format
7964         * doc/parse-datetime.texi (Combined date and time of day items):
7965         New section.
7966
7967 2011-09-06  Bruno Haible  <bruno@clisp.org>
7968
7969         acl: Fix a test failure on newer Solaris 10 with ZFS.
7970         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
7971         ENOSYS as no ACL.
7972         Reported by Jim Meyering.
7973
7974 2011-09-06  Bruno Haible  <bruno@clisp.org>
7975
7976         acl: Update for AIX >= 5.3 with NFS.
7977         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
7978         ENOSYS as no ACL.
7979
7980         acl: Fix a test failure on AIX >= 5.3 with NFS.
7981         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
7982         as no ACL.
7983
7984 2011-09-06  Bruno Haible  <bruno@clisp.org>
7985
7986         acl: Fix a test failure on IRIX 6.5 with NFS.
7987         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
7988         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
7989         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
7990         * lib/copy-acl.c (qcopy_acl): Likewise.
7991
7992 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
7993
7994         openat: port to AIX 7.1 with large files
7995         AIX 7.1 does a "#define openat open64at" if large files are in use,
7996         so we can't simply #undef openat.  Use the orig_openat trick (similar
7997         to orig_open in lib/open.c) to work around the problem.  Problem
7998         reported by Kevin Brott for GNU tar, in the thread containing
7999         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
8000         * lib/openat.c (__need_system_fcntl_h): Define first.
8001         Include <fcntl.h> and <sys/types.h> before undefining.
8002         (orig_openat) [HAVE_OPENAT]: New inline function.
8003         (openat) [HAVE_OPENAT]: Do not undef.
8004         (rpl_openat): Use orig_openat, not openat.
8005
8006 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8007             Bruno Haible  <bruno@clisp.org>
8008
8009         acl: Avoid errors on NonStop Kernel.
8010         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
8011         ENOTSUP errors.
8012
8013 2011-09-05  Bruno Haible  <bruno@clisp.org>
8014
8015         acl: Clean up Solaris code.
8016         * lib/acl-internal.h: Remove no-op #if.
8017         * lib/file-has-acl.c: Likewise.
8018         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
8019         * lib/copy-acl.c (qcopy_acl): Likewise.
8020
8021 2011-09-05  Bruno Haible  <bruno@clisp.org>
8022
8023         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
8024         binaries built on the original Solaris 10.
8025         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
8026         trivial.
8027
8028 2011-09-05  Bruno Haible  <bruno@clisp.org>
8029
8030         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8031         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
8032         10.
8033         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
8034         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
8035         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
8036         instead of acl_get, facl_get, acl_set, facl_set.
8037
8038 2011-09-05  Bruno Haible  <bruno@clisp.org>
8039
8040         copy-file: Try unit tests on more file systems.
8041         * tests/test-copy-file-1.sh: New file.
8042         * tests/test-copy-file-2.sh: New file.
8043         * modules/copy-file-tests (Files): Add them.
8044         (Makefile.am): Add them to TESTS.
8045
8046         acl: Try unit tests on more file systems.
8047         * tests/test-file-has-acl-1.sh: New file.
8048         * tests/test-file-has-acl-2.sh: New file.
8049         * tests/test-set-mode-acl-1.sh: New file.
8050         * tests/test-set-mode-acl-2.sh: New file.
8051         * tests/test-copy-acl-1.sh: New file.
8052         * tests/test-copy-acl-2.sh: New file.
8053         * modules/acl-tests (Files): Add them.
8054         (Makefile.am): Add them to TESTS.
8055
8056 2011-09-04  Bruno Haible  <bruno@clisp.org>
8057
8058         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8059         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
8060         10.
8061         (OLD_ALLOW, OLD_DENY): New macros.
8062         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
8063         ACE_ACCESS_ALLOWED_ACE_TYPE.
8064         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
8065         ACE_ACCESS_DENIED_ACE_TYPE.
8066         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
8067         (NEW_ACE_EXECUTE): Fix value.
8068         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
8069         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
8070         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
8071         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
8072         NEW_ACE_SYNCHRONIZE): New macros.
8073         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
8074         instead of acl_fromtext, acl_set, facl_set.
8075         Fixes a coreutils/tests/cp/perm failure.
8076
8077 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
8078
8079         openat: test for fstatat (..., 0) bug
8080         Further testing with tar suggests that fstatat (..., 0)
8081         does not work in general, on AIX 7.1; see
8082         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
8083         So, give up entirely on AIX 7.1's fstatat, and fall back on our
8084         replacement fstatat (which is what older AIX releases were using
8085         anyway).
8086         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
8087         use is now changed to orig_fstatat.  This was probably the right
8088         thing to do anyway.
8089         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
8090         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
8091         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
8092         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
8093         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
8094         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
8095         if the bug is found.
8096
8097         openat: test for fstatat (AT_FDCWD, ..., 0) bug
8098         This tests for another fstatat bug on AIX 7.1:
8099         fstatat (AT_FDCWD, ..., 0) does not work.  See
8100         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
8101         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
8102         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
8103         (rpl_fstatat): Adjust so that it works around either (or both)
8104         bugs if present.
8105         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
8106
8107 2011-09-03  Karl Berry  <karl@gnu.org>
8108
8109         * doc/regex.texi (Character Class Operators): Avoid literal ":"
8110         in index entries.
8111
8112 2011-09-02  Bruno Haible  <bruno@clisp.org>
8113
8114         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
8115         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
8116         values of AR, ARFLAGS, RANLIB.
8117         Reported by John W. Eaton <jwe@gnu.org> for Octave.
8118
8119 2011-09-02  Bruno Haible  <bruno@clisp.org>
8120
8121         Find 'ar' program that fits with --host argument.
8122         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
8123
8124 2011-09-02  Bruno Haible  <bruno@clisp.org>
8125
8126         tests: init.sh: Support any non-GNU diff.
8127         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
8128         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
8129         Solaris 8.
8130
8131 2011-09-02  Bruno Haible  <bruno@clisp.org>
8132
8133         tests: init.sh: work also with any non-GNU diff that supports -u
8134         * tests/init.sh: Relax check for diff -u support.
8135         Rather than checking for GNU diff via --version, simply check
8136         for support for -u itself.  Useful at least on OpenBSD 4.9,
8137         AIX 7.1, IRIX 6.5, and Solaris 10.
8138
8139 2011-09-01  Bruno Haible  <bruno@clisp.org>
8140
8141         strtoimax, strtoumax: Document problem on HP-UX 11.
8142         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
8143         * doc/posix-functions/strtoumax.texi: Likewise.
8144
8145 2011-09-01  Bruno Haible  <bruno@clisp.org>
8146
8147         strtoumax: Avoid link error on OSF/1 with DTK cc.
8148         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
8149         defined as a function.
8150         * modules/strtoumax (Depends-on, configure.ac): Test only whether
8151         strtoumax is defined, not whether it is declared.
8152
8153 2011-09-01  Bruno Haible  <bruno@clisp.org>
8154
8155         strtoimax: Avoid link error on OSF/1 with DTK cc.
8156         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
8157         defined as a function.
8158         * modules/strtoimax (Depends-on, configure.ac): Test only whether
8159         strtoimax is defined, not whether it is declared.
8160
8161 2011-09-01  Bruno Haible  <bruno@clisp.org>
8162
8163         imaxdiv: Avoid link error on OSF/1 with DTK cc.
8164         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
8165         as a function.
8166         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
8167         whether it is declared.
8168
8169 2011-09-01  Bruno Haible  <bruno@clisp.org>
8170
8171         imaxabs: Avoid link error on OSF/1 with DTK cc.
8172         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
8173         as a function.
8174         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
8175         whether it is declared.
8176
8177 2011-09-01  Bruno Haible  <bruno@clisp.org>
8178
8179         Tests for module 'strtoumax'.
8180         * modules/strtoumax-tests: New file.
8181         * tests/test-strtoumax.c: New file.
8182
8183         Tests for module 'strtoimax'.
8184         * modules/strtoimax-tests: New file.
8185         * tests/test-strtoimax.c: New file.
8186
8187         Tests for module 'imaxdiv'.
8188         * modules/imaxdiv-tests: New file.
8189         * tests/test-imaxdiv.c: New file.
8190
8191         Tests for module 'imaxabs'.
8192         * modules/imaxabs-tests: New file.
8193         * tests/test-imaxabs.c: New file.
8194
8195 2011-09-01  Bruno Haible  <bruno@clisp.org>
8196
8197         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
8198         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
8199         pthread_create.
8200
8201 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8202
8203         openat: work around AIX 7.1 fstatat issue
8204         This should fix the problem that was not properly fixed
8205         in the previous change, dated 2011-08-30.
8206         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
8207         __need_system_stat_h defined.
8208         (orig_fstatat) [HAVE_FSTATAT]: New function.
8209         (rpl_fstatat): Go back to the old way of doing things,
8210         except call orig_fstatat instead of fstatat.
8211         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
8212         Remove unnecessary check whether fstatat fills in st_size etc.
8213
8214 2011-09-01  Bruno Haible  <bruno@clisp.org>
8215
8216         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
8217         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
8218         just include the system's header.
8219
8220 2011-08-31  Jim Meyering  <meyering@redhat.com>
8221
8222         tests: avoid spurious assertion failure in test-float.c on ppc64
8223         * tests/test-float.c (test_long_double): Comment out an assertion,
8224         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
8225         with gcc-4.4.4.
8226
8227         maint: indent with spaces, not TABs
8228         I need to get in the habit of running gnulib's "make check".
8229         Both of these would have been caught.
8230         * m4/largefile.m4: Indent with spaces, not TABs.
8231         * lib/parse-datetime.y (iso_8601_time): Likewise.
8232         Spotted by Pádraig Brady.
8233
8234         test-parse-datetime.c: accommodate a relatively strict gcc warning
8235         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
8236         to avoid a warning from gcc's -Werror=missing-declarations.
8237         Insert a few spaces-before-funcall-parenthesis.
8238
8239 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
8240
8241         parse-datetime: accept ISO 8601 date and time rep with "T" separator
8242         The parser now accepts ISO 8601 date-time strings with "T" as the
8243         separator.  It has long parsed dates like "2004-02-29 16:21:42"
8244         with a space between the date and time strings.  Now it also parses
8245         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
8246         variants like "2004-02-29T16:21:42.333-07:00"
8247         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
8248         of day representation using the 'T' separator character.
8249         * doc/parse-datetime.texi (General date syntax): replace use of
8250         deprecated --iso-8601 option with --rfc-3339 in example of date
8251         command output formats that can be parsed.
8252         * tests/test-parse-datetime.c (tm_diff): New function, taken from
8253         lib/parse-datetime.y.
8254         (gmt_offset): New function.
8255         (main): Add additional test cases to validate ISO8601 extended
8256         date and time of day parsing.
8257
8258 2011-08-31  Bruno Haible  <bruno@clisp.org>
8259
8260         freopen: Documentation.
8261         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
8262         name.
8263         Reported by Claudio Bley <claudio.bley@gmail.com>.
8264
8265 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
8266
8267         freopen: Don't crash if the filename argument is NULL.
8268         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
8269         NULL.
8270
8271 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8272
8273         openat: work around AIX 7.1 fstatat bug
8274         Problem reported by Kevin Brott for GNU tar, in the thread containing
8275         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
8276         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
8277         FSTATAT_ST_SIZE_ETC_BROKEN.
8278         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
8279         rpl_fstatat.
8280         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
8281         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
8282         AC_CHECK_FUNCS_ONCE for fstatat.
8283         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
8284         fchmodat, mkdirat, openat and unlinkat.
8285
8286 2011-08-30  Bruno Haible  <bruno@clisp.org>
8287
8288         Avoid endless recursions if config.h includes some header files.
8289         * lib/fopen.c (__need_FILE): Define already before including config.h.
8290         * lib/freopen.c (__need_FILE): Likewise.
8291         * lib/open.c (__need_system_fcntl_h): Likewise.
8292         * lib/stat.c (__need_system_sys_stat_h): Likewise.
8293         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
8294         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8295
8296 2011-08-25  Karl Berry  <karl@gnu.org>
8297
8298         * config/srclist.txt (ylwrap): new try.
8299         * build-aux/ylwrap: new file.
8300
8301 2011-08-23  Bruno Haible  <bruno@clisp.org>
8302
8303         tmpdir: Use a good default directory on native Windows.
8304         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
8305         (P_tmpdir): Default to _P_tmpdir on native Windows.
8306         (path_search): On native Windows, try the value returned by GetTempPath
8307         before trying P_tmpdir.
8308         * modules/tmpdir (Depends-on): Add pathmax.
8309         Suggested by John Darrington <john@darrington.wattle.id.au>.
8310
8311 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
8312
8313         doc: fix typo in README-release
8314         * top/README-release: Capitalize first word of a sentence.
8315
8316 2011-08-19  Jim Meyering  <meyering@redhat.com>
8317
8318         fts: do not exhaust memory when processing million-entry directories
8319         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
8320         directory would require about 256*N bytes of memory.  Thus, it was
8321         easy to construct a directory too large to be processed by any of
8322         those tools.  With this change, fts' maximum memory utilization is
8323         now limited to around 30MB.
8324         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
8325         (fts_read): When we've processed the final entry (i.e., when
8326         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
8327         using the parent entry to read any remaining entries.  Dispatch
8328         depending on what fts_build returns:
8329         - NULL+stop, aka failure: stop
8330         - NULL otherwise: move up in the dir hierarchy
8331         - non-NULL: handle this new entry
8332         (fts_build): Declare and use new local, continue_readdir.
8333         Prepare to be called from fts_read, when the entries
8334         from a partially-read directory have just been exhausted.
8335         In that case, we'll skip the opendir and instead use the parent's
8336         fts_dirp and derive dir_fd from that.
8337         Finally, in the readdir loop, if we read max_entries entries,
8338         exit the loop ensuring *not* to call closedir.  This is required
8339         so that fts_dirp can be reused on a subsequent call.
8340         Prompted by Ben England's report of memory exhaustion in find
8341         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
8342
8343         maint: fts: move decl of `dp' down into while loop; split a long line
8344         * lib/fts.c (fts_build): No semantic change.
8345
8346         fts: add/use new struct member, fts_dirp
8347         We are about to use this to manage any directory with
8348         too many entries to read all of them into memory at once.
8349         To do that, we'll need to save the DIR* pointer in each
8350         affected FTSENT struct.
8351         * lib/fts_.h: Include <dirent.h>.
8352         (struct FTSENT) [fts_dirp]: New member.
8353         * lib/fts.c (closedir_and_clear): Define.
8354         Use it in place of closedir so that we are sure to
8355         clear the new fts_dirp member when done with it.
8356         (fts_alloc): Initialize the new member.
8357         (fts_lfree): Free, if needed.
8358
8359         maint: fts: give __opendir2 a new parameter and rename
8360         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
8361         than surreptitiously using sole caller's "dir_fd".
8362         (fts_opendir): Rename from __opendir2.
8363
8364         maint: fts.c: remove __opendir2's now-unused parameter, oflag
8365         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
8366
8367         maint: fts.c: correct off-by-one indentation
8368         * lib/fts.c (fts_build): Correct indentation, change style
8369         of a couple of block comments, and bracing style.
8370
8371         maint: fts.c: move __opendir2 #define "up" out of function body
8372         * lib/fts.c (__opendir2): Move "up".  No semantic change.
8373
8374         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
8375         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
8376         out for a long time and besides was useful only on BSD systems.
8377
8378 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
8379
8380         regex: port to Stratus OpenVOS
8381         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
8382         define to empty, rather than attempting nonportable optimizations.
8383         Problem reported by Paul Green in:
8384         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
8385         and fix suggested by Eric Blake in:
8386         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
8387
8388 2011-08-17  Eric Blake  <eblake@redhat.com>
8389
8390         getcwd: fix test failures on mingw
8391         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
8392         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
8393         test if long directory cannot be created, and allow mingw errno.
8394
8395         getcwd-lgpl: fix m4 to match relaxed test for BSD
8396         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
8397         (gl_FUNC_GETCWD_SIGNATURE): New macro.
8398         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
8399         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
8400         signature problem.
8401
8402         getcwd: fix compilation on mingw64
8403         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
8404         getcwd.
8405         Reported by Marc-André Lureau.
8406
8407         pipe2: silence compiler warning
8408         * lib/pipe2.c (pipe2): Hide label if it is not used.
8409
8410 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
8411
8412         relocatable-prog: fix link error
8413         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
8414         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
8415         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
8416         into modules/relocatable-lib without noticing that
8417         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
8418         also needs to build relocatable.c.
8419
8420 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8421
8422         getaddrinfo: fix sh typo in gai_strerrorA decl checking
8423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
8424         shell code: it contained a 'break' that was not in a loop.
8425         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
8426         via a shell-language loop; this may have been true in old Autoconf
8427         versions, but it's not true in Autoconf 2.68.  I found this bug
8428         when testing coreutils git on Solaris 8, whose shell complains
8429         about the syntax error.
8430
8431 2011-08-12  Simon Josefsson  <simon@josefsson.org>
8432
8433         * lib/base64.c: Fix comment to reference RFC 4648.
8434         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
8435         <gvtulder@gmail.com>.
8436
8437 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
8438
8439         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
8440
8441         po/Makefile.in.in: fix make -q problem
8442         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
8443         rule, since there's no file named 'check-macro-version' and its
8444         use as a file breaks make -q.
8445         (all): Don't depend on check-macro-version.
8446         (CHECK_MACRO_VERSION): New macro.
8447         (stamp-po): Use it.
8448
8449         configmake: fix make -q problem
8450         * modules/configmake (configmake.h): Update configmake.h's time stamp
8451         even if the file does not change.  Otherwise, 'make -q' fails.
8452         Problem reported by Simon Josefsson in
8453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
8454
8455 2011-08-11  Jim Meyering  <meyering@redhat.com>
8456
8457         git-version-gen: correct the advice in a comment
8458         * build-aux/git-version-gen: Correct comment.
8459         Don't recommend to list .tarball-version in .gitignore.
8460
8461 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8462
8463         base64: fix off-by-one buffer size bug
8464         Problem and (trivial) fix reported by Gijs van Tulder in
8465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
8466         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
8467         * tests/test-base64.c (main): Catch the bug.
8468
8469 2011-08-10  Eric Blake  <eblake@redhat.com>
8470
8471         closein: correct comments
8472         * lib/closein.c (close_stdin): Improve comments.
8473
8474 2011-08-09  Bruno Haible  <bruno@clisp.org>
8475
8476         More tests for 'fseeko'.
8477         * tests/test-fseeko3.c: New file, from Eric Blake.
8478         * tests/test-fseeko3.sh: New file.
8479         * modules/fseeko-tests (Files): Add them.
8480         (TESTS): Add test-fseeko3.sh.
8481         (check_PROGRAMS): Add test-fseeko3.
8482
8483 2011-08-09  Eric Blake  <eblake@redhat.com>
8484
8485         fseeko: remove unneeded hack
8486         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
8487
8488         fseeko: fix bug on glibc
8489         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
8490         Reported by John W. Eaton.
8491
8492 2011-08-08  Bruno Haible  <bruno@clisp.org>
8493
8494         unictype/base: Fix interoperability with preinstalled libunistring.
8495         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
8496         Reported by Simon Josefsson.
8497
8498 2011-08-08  Bruno Haible  <bruno@clisp.org>
8499
8500         iswblank: Detect declaration correctly.
8501         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
8502         AC_CHECK_DECLS invocation.
8503
8504 2011-08-08  Bruno Haible  <bruno@clisp.org>
8505
8506         tcgetsid: Detect declaration correctly.
8507         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
8508         AC_CHECK_DECLS invocation.
8509         Reported by Simon Josefsson.
8510
8511 2011-08-08  Eric Blake  <eblake@redhat.com>
8512
8513         largefile: fix typo that regressed large file support
8514         * modules/largefile (configure.ac-early): Fix section name.
8515
8516 2011-08-06  Karl Berry  <karl@gnu.org>
8517
8518         * MODULES.html.sh (func_all_files): _Noreturn is no longer
8519         a separate module.
8520
8521 2011-08-05  Simon Josefsson  <simon@josefsson.org>
8522
8523         openat: Fix warnings and commens when building unlinkat.c on Hurd.
8524         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
8525         get prototype for free.
8526
8527 2011-08-04  Bruno Haible  <bruno@clisp.org>
8528
8529         Tests for module 'pathmax'.
8530         * modules/pathmax-tests: New file.
8531         * tests/test-pathmax.c: New file.
8532
8533         canonicalize-lgpl: Support larger filenames on the Hurd.
8534         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
8535         Reported by Paul Eggert.
8536
8537         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
8538         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
8539         * lib/chdir-long.h: Include pathmax.h.
8540         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
8541         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
8542         (PATH_MAX): Remove code that is done by pathmax.h.
8543         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
8544         * lib/tmpfile.c: Add a comment.
8545         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
8546         * modules/chdir-long (Depends-on): Add pathmax.
8547         * modules/getcwd (Depends-on): Add pathmax.
8548         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
8549         is not defined.
8550         * doc/posix-headers/limits.texi: Mention the pathmax module.
8551         * NEWS: Mention the change.
8552
8553 2011-08-02  Bruno Haible  <bruno@clisp.org>
8554
8555         pthread_sigmask: Actually use results of gl_THREADLIB.
8556         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
8557         gl_THREADLIB, not gl_[]THREADLIB.
8558         Reported by Eric Blake.
8559
8560 2011-08-02  Jim Meyering  <meyering@redhat.com>
8561
8562         maint.mk: relax the default _gl_TS_function_match regexp
8563         * top/maint.mk (_gl_TS_function_match): Don't require at least one
8564         space between function name and "(" in an "extern" declaration.
8565         That would fail to match a decl with no space there: extern void foo();
8566
8567 2011-07-31  Iain Nicol  <iain@thenicols.net>
8568
8569         git-version-gen: document that EXTRA_DIST must include .version
8570         * build-aux/git-version-gen: In the how-to-use comment, document
8571         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
8572         will fail when run from an unpacked distribution tarball.
8573
8574 2011-08-01  Bruno Haible  <bruno@clisp.org>
8575
8576         wctype-h: Fix last change.
8577         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
8578         REPLACE_TOWLOWER to 0.
8579         Reported by Sam Steingold <sds@gnu.org>.
8580
8581 2011-07-31  Bruno Haible  <bruno@clisp.org>
8582
8583         frexpl: Update autoconf test.
8584         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
8585         according to changes of 2011-06-20.
8586
8587 2011-07-31  Bruno Haible  <bruno@clisp.org>
8588
8589         sys_utsname: Add support for Minix.
8590         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
8591         <sys/utsname.h>.
8592         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8593         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
8594
8595 2011-07-31  Bruno Haible  <bruno@clisp.org>
8596
8597         strings: Add support for Minix.
8598         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
8599         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8600         * doc/posix-headers/strings.texi: Document the Minix problem.
8601
8602 2011-07-31  Bruno Haible  <bruno@clisp.org>
8603
8604         wctype-h: Add support for Minix.
8605         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
8606         REPLACE_TOWLOWER.
8607         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
8608         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
8609         REPLACE_ISWCNTRL.
8610
8611 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
8612
8613         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
8614         This is a performance improvement for 64-bit hosts: it causes the
8615         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
8616
8617 2011-07-31  Bruno Haible  <bruno@clisp.org>
8618
8619         stdioext: Add support for Minix.
8620         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
8621         * lib/fpurge.c (fpurge): Likewise.
8622         * lib/freadahead.c (freadahead): Likewise.
8623         * lib/freadable.c (freadable): Likewise.
8624         * lib/freading.c (freading): Likewise.
8625         * lib/freadptr.c (freadptr): Likewise.
8626         * lib/freadseek.c (freadptrinc): Likewise.
8627         * lib/fseeko.c (rpl_fseeko): Likewise.
8628         * lib/fseterr.c (fseterr): Likewise.
8629         * lib/fwritable.c (fwritable): Likewise.
8630         * lib/fwriting.c (fwriting): Likewise.
8631         * lib/fflush.c (clear_ungetc_buffer): Update comment.
8632         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
8633
8634 2011-07-31  Bruno Haible  <bruno@clisp.org>
8635
8636         errno: Port to Minix.
8637         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
8638         ECONNABORTED are defined.
8639         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
8640         GNULIB_defined_ECONNABORTED): New macros.
8641         * lib/strerror-override.h (strerror_override): Test also
8642         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
8643         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
8644         ECONNABORTED.
8645         * doc/posix-headers/errno.texi: Mention the Minix problem.
8646
8647 2011-07-31  Bruno Haible  <bruno@clisp.org>
8648
8649         Work around declaration collisions on Minix.
8650         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
8651         defined, set REPLACE_MBSINIT.
8652         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
8653         defined, set REPLACE_MBRTOWC.
8654         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
8655         set REPLACE_MBRLEN.
8656         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
8657         defined, set REPLACE_MBSRTOWCS.
8658         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
8659         defined, set REPLACE_WCRTOMB.
8660         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
8661         defined, set REPLACE_WCSRTOMBS.
8662
8663 2011-07-31  Bruno Haible  <bruno@clisp.org>
8664
8665         Add support for Minix with ACK compiler.
8666         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
8667         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
8668         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
8669
8670 2011-07-31  Bruno Haible  <bruno@clisp.org>
8671
8672         Documentation about Minix.
8673         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
8674         * doc/glibc-headers/*.texi: Likewise.
8675         * doc/posix-functions/*.texi: Likewise.
8676         * doc/glibc-functions/*.texi: Likewise.
8677
8678 2011-07-31  Bruno Haible  <bruno@clisp.org>
8679
8680         snippet/warn-on-use: Fix indentation.
8681         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
8682
8683 2011-07-25  Jim Meyering  <meyering@redhat.com>
8684
8685         tests: test-update-copyright.sh: remove unnecessary "rm" commands
8686         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
8687         commands.
8688
8689 2011-07-27  Jim Meyering  <meyering@redhat.com>
8690
8691         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
8692         * top/maint.mk (gl_extract_significant_defines_): Now that
8693         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
8694         gnulib/lib/signal.in.h, and now that we recommend to
8695         define-if-undefined those two symbols in application code,
8696         we must filter them out of the "significant" list.
8697         This avoids a "make syntax-check" failure in coreutils.
8698
8699 2011-07-26  Eric Blake  <eblake@redhat.com>
8700
8701         warnings: add comments about previous patch
8702         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
8703         * m4/include_next.m4: Likewise.
8704         * m4/warn-on-use.m4: Likewise.
8705         * m4/warnings.m4: Likewise, and simplify use.
8706         Suggested by Stefano Lattarini.
8707
8708         include-next, warnings: support older autoconf
8709         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
8710         AS_VAR_PUSHDEF in a way that works with older autoconf.
8711         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
8712         Reported by Daniel P. Berrange.
8713
8714 2011-07-25  Bruno Haible  <bruno@clisp.org>
8715
8716         fseek, ftell: Fix doc.
8717         * doc/posix-functions/fseek.texi: Reword statement about
8718         AC_SYS_LARGEFILE.
8719         * doc/posix-functions/ftell.texi: Likewise.
8720
8721 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8722             Bruno Haible  <bruno@clisp.org>
8723
8724         Add dependencies to the 'largefile' module.
8725         * modules/fopen (Depends-on): Add 'largefile'.
8726         * modules/freopen (Depends-on): Likewise.
8727         * modules/fseeko (Depends-on): Likewise.
8728         * modules/ftello (Depends-on): Likewise.
8729         * modules/glob (Depends-on): Likewise.
8730         * modules/lseek (Depends-on): Likewise.
8731         * modules/lstat (Depends-on): Likewise.
8732         * modules/mkostemp (Depends-on): Likewise.
8733         * modules/mkostemps (Depends-on): Likewise.
8734         * modules/mkstemp (Depends-on): Likewise.
8735         * modules/mkstemps (Depends-on): Likewise.
8736         * modules/open (Depends-on): Likewise.
8737         * modules/openat (Depends-on): Likewise.
8738         * modules/pread (Depends-on): Likewise.
8739         * modules/pwrite (Depends-on): Likewise.
8740         * modules/scandir (Depends-on): Likewise.
8741         * modules/stat (Depends-on): Likewise.
8742         * modules/tmpfile (Depends-on): Likewise.
8743         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
8744         since the containing module now depends on the largefile module.
8745         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
8746         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
8747         off_t is fixed by gnulib.
8748         * doc/posix-functions/freopen.texi: Likewise.
8749         * doc/posix-functions/fseeko.texi: Likewise.
8750         * doc/posix-functions/fstatat.texi: Likewise.
8751         * doc/posix-functions/ftello.texi: Likewise.
8752         * doc/posix-functions/glob.texi: Likewise.
8753         * doc/posix-functions/lseek.texi: Likewise.
8754         * doc/posix-functions/lstat.texi: Likewise.
8755         * doc/posix-functions/mkstemp.texi: Likewise.
8756         * doc/posix-functions/open.texi: Likewise.
8757         * doc/posix-functions/openat.texi: Likewise.
8758         * doc/posix-functions/pread.texi: Likewise.
8759         * doc/posix-functions/pwrite.texi: Likewise.
8760         * doc/posix-functions/scandir.texi: Likewise.
8761         * doc/posix-functions/stat.texi: Likewise.
8762         * doc/posix-functions/tmpfile.texi: Likewise.
8763         * doc/glibc-functions/mkostemp.texi: Likewise.
8764         * doc/glibc-functions/mkostemps.texi: Likewise.
8765         * doc/glibc-functions/mkstemps.texi: Likewise.
8766
8767 2011-07-25  Bruno Haible  <bruno@clisp.org>
8768
8769         fcntl: Move AC_LIBOBJ invocation to module description.
8770         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
8771         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
8772
8773         fcntl: Remove call-in from fchdir.m4.
8774         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
8775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
8776
8777         dup3: Remove potential call-in from fchdir.m4.
8778         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
8779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
8780
8781         dup2: Move AC_LIBOBJ invocation to module description.
8782         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
8783         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
8784         Don't invoke AC_LIBOBJ.
8785         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
8786
8787         dup2: Remove call-in from fchdir.m4.
8788         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
8789         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
8790
8791         fclose: Move AC_LIBOBJ invocation to module description.
8792         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
8793         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
8794         to 1.
8795         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
8796
8797         fclose: Remove call-in from close.m4.
8798         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
8799         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
8800
8801         close: Move AC_LIBOBJ invocation to module description.
8802         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
8803         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
8804         1.
8805         * modules/close (configure.ac): Invoke AC_LIBOBJ.
8806
8807         close: Remove call-in from fchdir.m4.
8808         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
8809         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
8810
8811         open: Move AC_LIBOBJ invocation to module description.
8812         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
8813         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
8814         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
8815
8816         open: Remove call-in from fchdir.m4.
8817         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
8818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
8819
8820         fchdir: Start to remove gl_REPLACE_* idiom.
8821         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
8822         (gl_FUNC_FCHDIR): Invoke it.
8823
8824 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8825
8826         * lib/ftell.c (ftell): Comment out cast.
8827
8828         close: use gl_REPLACE_FCLOSE only if defined
8829         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
8830         is defined.  The close module doesn't depend on the fclose module
8831         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
8832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
8833         I reproduced the problem with "./gnulib-tool --test close sys_socket".
8834
8835 2011-07-24  Jim Meyering  <meyering@redhat.com>
8836
8837         test-select.h: avoid warning when using gcc's -Wmissing-declarations
8838         * tests/test-select.h (test_function): Declare as "static".
8839
8840 2011-07-24  Bruno Haible  <bruno@clisp.org>
8841
8842         doc: Mention the effects of AC_SYS_LARGEFILE.
8843         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
8844         on this function.
8845         * doc/posix-functions/aio_error.texi: Likewise.
8846         * doc/posix-functions/aio_fsync.texi: Likewise.
8847         * doc/posix-functions/aio_read.texi: Likewise.
8848         * doc/posix-functions/aio_return.texi: Likewise.
8849         * doc/posix-functions/aio_suspend.texi: Likewise.
8850         * doc/posix-functions/aio_write.texi: Likewise.
8851         * doc/posix-functions/fgetpos.texi: Likewise.
8852         * doc/posix-functions/fopen.texi: Likewise.
8853         * doc/posix-functions/freopen.texi: Likewise.
8854         * doc/posix-functions/fsetpos.texi: Likewise.
8855         * doc/posix-functions/fstatvfs.texi: Likewise.
8856         * doc/posix-functions/ftruncate.texi: Likewise.
8857         * doc/posix-functions/ftw.texi: Likewise.
8858         * doc/posix-functions/getrlimit.texi: Likewise.
8859         * doc/posix-functions/glob.texi: Likewise.
8860         * doc/posix-functions/lio_listio.texi: Likewise.
8861         * doc/posix-functions/lockf.texi: Likewise.
8862         * doc/posix-functions/mkstemp.texi: Likewise.
8863         * doc/posix-functions/mmap.texi: Likewise.
8864         * doc/posix-functions/nftw.texi: Likewise.
8865         * doc/posix-functions/openat.texi: Likewise.
8866         * doc/posix-functions/opendir.texi: Likewise.
8867         * doc/posix-functions/posix_fadvise.texi: Likewise.
8868         * doc/posix-functions/posix_fallocate.texi: Likewise.
8869         * doc/posix-functions/pread.texi: Likewise.
8870         * doc/posix-functions/pwrite.texi: Likewise.
8871         * doc/posix-functions/readdir.texi: Likewise.
8872         * doc/posix-functions/readdir_r.texi: Likewise.
8873         * doc/posix-functions/rewinddir.texi: Likewise.
8874         * doc/posix-functions/scandir.texi: Likewise.
8875         * doc/posix-functions/seekdir.texi: Likewise.
8876         * doc/posix-functions/setrlimit.texi: Likewise.
8877         * doc/posix-functions/statvfs.texi: Likewise.
8878         * doc/posix-functions/telldir.texi: Likewise.
8879         * doc/posix-functions/tmpfile.texi: Likewise.
8880         * doc/posix-functions/truncate.texi: Likewise.
8881         * doc/glibc-functions/fallocate.texi: Likewise.
8882         * doc/glibc-functions/fstatfs.texi: Likewise.
8883         * doc/glibc-functions/fts_children.texi: Likewise.
8884         * doc/glibc-functions/fts_read.texi: Likewise.
8885         * doc/glibc-functions/getdirentries.texi: Likewise.
8886         * doc/glibc-functions/mkostemp.texi: Likewise.
8887         * doc/glibc-functions/mkostemps.texi: Likewise.
8888         * doc/glibc-functions/mkstemps.texi: Likewise.
8889         * doc/glibc-functions/preadv.texi: Likewise.
8890         * doc/glibc-functions/pwritev.texi: Likewise.
8891         * doc/glibc-functions/sendfile.texi: Likewise.
8892         * doc/glibc-functions/statfs.texi: Likewise.
8893
8894 2011-07-24  Bruno Haible  <bruno@clisp.org>
8895
8896         doc: Fix typo.
8897         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
8898
8899 2011-07-24  Bruno Haible  <bruno@clisp.org>
8900
8901         doc: Mention fsusage.
8902         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
8903
8904 2011-07-24  Bruno Haible  <bruno@clisp.org>
8905
8906         doc: Mention new glibc headers and functions.
8907         * doc/glibc-headers/gshadow.texi: New file.
8908         * doc/glibc-functions/endsgent.texi: New file.
8909         * doc/glibc-functions/fgetsgent.texi: New file.
8910         * doc/glibc-functions/fgetsgent_r.texi: New file.
8911         * doc/glibc-functions/getsgent.texi: New file.
8912         * doc/glibc-functions/getsgent_r.texi: New file.
8913         * doc/glibc-functions/getsgnam.texi: New file.
8914         * doc/glibc-functions/getsgnam_r.texi: New file.
8915         * doc/glibc-functions/putsgent.texi: New file.
8916         * doc/glibc-functions/setsgent.texi: New file.
8917         * doc/glibc-functions/sgetsgent.texi: New file.
8918         * doc/glibc-functions/sgetsgent_r.texi: New file.
8919         * doc/glibc-functions/malloc_info.texi: New file.
8920         * doc/glibc-functions/preadv.texi: New file.
8921         * doc/glibc-functions/pwritev.texi: New file.
8922         * doc/glibc-functions/register_printf_modifier.texi: New file.
8923         * doc/glibc-functions/register_printf_specifier.texi: New file.
8924         * doc/glibc-functions/register_printf_type.texi: New file.
8925         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
8926         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
8927         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
8928         * doc/glibc-functions/pthread_getname_np.texi: New file.
8929         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
8930         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
8931         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
8932         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
8933         * doc/glibc-functions/pthread_setname_np.texi: New file.
8934         * doc/glibc-functions/pthread_sigqueue.texi: New file.
8935         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
8936         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
8937         * doc/glibc-functions/qsort_r.texi: New file.
8938         * doc/glibc-functions/quick_exit.texi: New file.
8939         * doc/glibc-functions/syncfs.texi: New file.
8940         * doc/gnulib.texi: Include them.
8941         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
8942         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
8943         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
8944         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8945         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8946         * doc/glibc-functions/execvpe.texi: Likewise.
8947
8948 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8949
8950         ftell: don't include <unistd.h>
8951         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
8952         guaranteed to define off_t, and the ftell module depends on the
8953         stdio module.
8954
8955         ftell: do not assume wraparound signed arithmetic
8956         * lib/ftell.c: Include <limits.h>.
8957         (ftell): Don't assume wraparound signed arithmetic.
8958
8959 2011-07-24  Bruno Haible  <bruno@clisp.org>
8960
8961         close: No longer depend on module 'fclose'.
8962         * modules/close (Depends-on): Remove fclose.
8963         * NEWS: Mention the change.
8964         Suggested by Sam Steingold <sds@gnu.org>.
8965
8966 2011-07-24  Bruno Haible  <bruno@clisp.org>
8967
8968         fsusage: Enable large volume support on AIX >= 5.2.
8969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
8970         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
8971         instead of STAT_STATVFS.
8972         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
8973
8974         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
8975         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
8976         f_blocks field only on MacOS X.
8977
8978         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
8979         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
8980         * modules/fsusage (Depends-on): Add largefile.
8981
8982 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
8983
8984         * README: Modernize discussion of signed integers.
8985         Assuming overflow wraparound is no longer safe.
8986         Mention ones' complement and signed magnitude.
8987
8988 2011-07-22  Bruno Haible  <bruno@clisp.org>
8989
8990         select tests, pselect tests: Refactor.
8991         * tests/test-select.h: New file, extracted from tests/test-select.c.
8992         (select_fn): New type.
8993         (test, do_select, do_select_nowait, do_select_wait, test_tty,
8994         test_connect_first, test_accept_first, test_pair, test_socket_pair,
8995         test_pipe): Add my_select argument.
8996         (test_function): Renamed from main. Add my_select argument.
8997         * tests/test-select.c: Move most code to tests/test-select.h. Include
8998         test-select.h.
8999         * modules/select-tests (Files): Add tests/test-select.h.
9000         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
9001         (my_select, main): New functions.
9002         * modules/pselect-tests (Files): Add tests/test-select.h,
9003         tests/macros.h, tests/signature.h.
9004         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
9005         (configure.ac): Check for <sys/wait.h>.
9006
9007 2011-07-22  Bruno Haible  <bruno@clisp.org>
9008
9009         sys_select tests: Check the signature of FD_*.
9010         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
9011         signature tests from here...
9012         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
9013         here.
9014         * modules/sys_select-tests (Files): Add tests/signature.h.
9015
9016 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
9017
9018         largefile: new module, replacing large-inode
9019         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
9020         * MODULES.html.sh: Add largefile, remove large-inode.
9021         * modules/largefile, m4/largefile.m4: New files.
9022         * modules/large-inode, m4/large-inode.m4: Remove.
9023
9024         fsusage: port to MacOS X 10.7 with 4 TiB file systems
9025         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
9026         implementations that use only 32 bits to count blocks.
9027         On typical hosts with 1024-byte blocks, this fails with file
9028         systems as small as 4 TiB.  Problem reported by Herb Wartens
9029         <http://debbugs.gnu.org/9140> and this should also fix a similar
9030         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
9031
9032         large-inode: New module
9033         * MODULES.html.sh: Add it.
9034         * modules/large-inode, m4/large-inode.m4: New files.
9035
9036         extensions: Enable extensions on MacOS X 10.5 and later.
9037         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
9038
9039 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
9040
9041         file-has-acl: use acl_extended_file_nofollow if available
9042         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
9043         (acl_extended_file): New macro.
9044         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
9045         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
9046
9047 2011-07-21  Bruno Haible  <bruno@clisp.org>
9048
9049         Declare system functions in a way that works with C++.
9050         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
9051         declare fdopendir as extern "C".
9052         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
9053         declare frexpl as extern "C".
9054         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
9055         declare gai_strerror as extern "C".
9056         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
9057         programs, declare gai_strerror as extern "C".
9058         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
9059         declare getlogin_r as extern "C".
9060         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
9061         as extern "C".
9062         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
9063         declare ldexpl as extern "C".
9064         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
9065         as extern "C".
9066         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
9067         program, declare getmntinfo as extern "C".
9068         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
9069         stpncpy as extern "C".
9070         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
9071         program, declare __xpg_strerror_r as extern "C".
9072         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
9073         strndup as extern "C".
9074         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
9075         declare memset and bzero as extern "C".
9076         Reported by Sam Steingold <sds@gnu.org>.
9077
9078 2011-07-12  Jim Meyering  <meyering@redhat.com>
9079
9080         maint.mk: prohibit inclusion of "verify.h" without use
9081         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
9082
9083 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9084
9085         timer-time: A new module to check for timer_settime()
9086         * m4/timer_time.m4: Check for the posix function.
9087         * modules/timer-time: Add the new module.
9088         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
9089         Mention it.
9090
9091 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
9092             Bruno Haible  <bruno@clisp.org>
9093
9094         pthread_sigmask: assume POSIX threads if --avoid=threadlib
9095         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
9096         not defined, assume POSIX threads and look for pthread_sigmask in
9097         $LIBS, without changing $CPPFLAGS.
9098
9099 2011-07-19  Bruno Haible  <bruno@clisp.org>
9100
9101         strstr: Update cross-compilation guess.
9102         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
9103         CPUs, guess no, in view of glibc
9104         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
9105         Suggested by Eric Blake. Reported by Reuben Thomas.
9106
9107 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9108
9109         getopt-gnu: suppress core dumps from detection code
9110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
9111         to suppress core dumps that may well occur on glibc systems.
9112         * modules/getopt-gnu: Depend on nocrash.
9113
9114 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
9115
9116         pthread_sigmask: ensure usleep is declared
9117         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
9118         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
9119
9120 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9121
9122         doc: Document NonStop portability issues.
9123         * doc/posix-functions/sigaction.texi (sigaction):
9124         * doc/posix-headers/signal.texi (signal.h):
9125         Document NonStop.  See Joachim Schmitz in
9126         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
9127
9128 2011-07-15  Bruno Haible  <bruno@clisp.org>
9129
9130         ffsl, ffsll: Avoid unportable behaviour.
9131         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
9132
9133 2011-07-15  Bruno Haible  <bruno@clisp.org>
9134
9135         ffs: More tests.
9136         * tests/test-ffs.c (NBITS): New macro.
9137         (main): Add more tests.
9138         * tests/test-ffsl.c (NBITS): New macro.
9139         (main): Add more tests.
9140         * tests/test-ffsll.c (NBITS): New macro.
9141         (main): Add more tests.
9142
9143 2011-07-15  Eric Blake  <eblake@redhat.com>
9144
9145         ffsl, ffsll: new modules
9146         * modules/ffsl: New file.
9147         * modules/ffsll: Likewise.
9148         * m4/ffsl.m4: Likewise.
9149         * m4/ffsll.m4: Likewise.
9150         * lib/ffsl.c: Likewise.
9151         * lib/ffsl.h: Likewise.
9152         * lib/ffsll.c: Likewise.
9153         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
9154         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
9155         * modules/string (Makefile.am): Substitute witnesses.
9156         * lib/strings.in.h (ffsl, ffsll): Declare.
9157         * modules/ffsl-tests: New test file.
9158         * modules/ffsll-tests: Likewise.
9159         * tests/test-ffsl.c: Likewise.
9160         * tests/test-ffsll.c: Likewise.
9161         * MODULES.html.sh (Integer arithmetic functions): Mention it.
9162         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
9163         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
9164
9165         ffs: fix m4 prerequisite
9166         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
9167
9168         ffs: avoid undefined behavior
9169         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
9170         * tests/test-ffs.c (naive, main): Avoid signed shifts.
9171         Reported by Bruno Haible.
9172
9173 2011-07-12  Bruno Haible  <bruno@clisp.org>
9174
9175         pthread_sigmask: Rely on module 'threadlib'.
9176         * modules/pthread_sigmask (Depends-on): Add threadlib.
9177         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
9178         is defined.
9179
9180 2011-07-12  Bruno Haible  <bruno@clisp.org>
9181
9182         regex: Depend on module 'strcase'.
9183         * modules/regex (Depends-on): Add strcase, for strcasecmp().
9184
9185 2011-07-12  Jim Meyering  <meyering@redhat.com>
9186
9187         warn-on-use: fix typo in file name
9188         * modules/snippet/warn-on-use (Files): Correct file name:
9189         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
9190
9191 2011-07-12  Bruno Haible  <bruno@clisp.org>
9192
9193         strings: Document module.
9194         * doc/posix-headers/strings.texi: Mention module 'strings'.
9195
9196 2011-07-12  Bruno Haible  <bruno@clisp.org>
9197
9198         Rename module '_Noreturn' to 'snippet/_Noreturn'.
9199         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
9200         (Files, Makefile.am): Update.
9201         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
9202         * modules/stdlib (Depends-on): Update.
9203
9204 2011-07-12  Bruno Haible  <bruno@clisp.org>
9205
9206         * NEWS: Mention the changes.
9207
9208         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
9209         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
9210         (Files, Makefile.am): Update.
9211         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
9212         * modules/arpa_inet (Depends-on): Update.
9213         * modules/ctype (Depends-on): Update.
9214         * modules/dirent (Depends-on): Update.
9215         * modules/fcntl-h (Depends-on): Update.
9216         * modules/glob (Depends-on): Update.
9217         * modules/iconv-h (Depends-on): Update.
9218         * modules/inttypes-incomplete (Depends-on): Update.
9219         * modules/langinfo (Depends-on): Update.
9220         * modules/locale (Depends-on): Update.
9221         * modules/math (Depends-on): Update.
9222         * modules/netdb (Depends-on): Update.
9223         * modules/poll-h (Depends-on): Update.
9224         * modules/pty (Depends-on): Update.
9225         * modules/search (Depends-on): Update.
9226         * modules/signal (Depends-on): Update.
9227         * modules/spawn (Depends-on): Update.
9228         * modules/stdio (Depends-on): Update.
9229         * modules/stdlib (Depends-on): Update.
9230         * modules/string (Depends-on): Update.
9231         * modules/strings (Depends-on): Update.
9232         * modules/sys_file (Depends-on): Update.
9233         * modules/sys_ioctl (Depends-on): Update.
9234         * modules/sys_select (Depends-on): Update.
9235         * modules/sys_socket (Depends-on): Update.
9236         * modules/sys_stat (Depends-on): Update.
9237         * modules/sys_time (Depends-on): Update.
9238         * modules/sys_times (Depends-on): Update.
9239         * modules/sys_utsname (Depends-on): Update.
9240         * modules/sys_wait (Depends-on): Update.
9241         * modules/termios (Depends-on): Update.
9242         * modules/time (Depends-on): Update.
9243         * modules/unistd (Depends-on): Update.
9244         * modules/wchar (Depends-on): Update.
9245         * modules/wctype-h (Depends-on): Update.
9246         * MODULES.html.sh (Support for building libraries and executables):
9247         Update.
9248
9249         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
9250         * modules/snippet/unused-parameter: Renamed from
9251         modules/unused-parameter.
9252         (Files, Makefile.am): Update.
9253         * build-aux/snippet/unused-parameter.h: Renamed from
9254         build-aux/unused-parameter.h.
9255         * modules/selinux-h (Depends-on): Update.
9256         * modules/unistr/base (Depends-on): Update.
9257         * MODULES.html.sh (Core language properties): Update.
9258
9259         Rename module 'link-warning' to 'snippet/link-warning'.
9260         * modules/snippet/link-warning: Renamed from modules/link-warning.
9261         (Files, Makefile.am): Update.
9262         * build-aux/snippet/link-warning.h: Renamed from
9263         build-aux/link-warning.h.
9264         * MODULES.html.sh (Support for building libraries and executables):
9265         Update.
9266
9267         Rename module 'c++defs' to 'snippet/c++defs'.
9268         * modules/snippet/c++defs: Renamed from modules/c++defs.
9269         (Files, Makefile.am): Update.
9270         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
9271         * modules/arpa_inet (Depends-on): Update.
9272         * modules/ctype (Depends-on): Update.
9273         * modules/dirent (Depends-on): Update.
9274         * modules/fcntl-h (Depends-on): Update.
9275         * modules/glob (Depends-on): Update.
9276         * modules/iconv-h (Depends-on): Update.
9277         * modules/langinfo (Depends-on): Update.
9278         * modules/locale (Depends-on): Update.
9279         * modules/math (Depends-on): Update.
9280         * modules/netdb (Depends-on): Update.
9281         * modules/poll-h (Depends-on): Update.
9282         * modules/pty (Depends-on): Update.
9283         * modules/search (Depends-on): Update.
9284         * modules/signal (Depends-on): Update.
9285         * modules/spawn (Depends-on): Update.
9286         * modules/stdio (Depends-on): Update.
9287         * modules/stdlib (Depends-on): Update.
9288         * modules/string (Depends-on): Update.
9289         * modules/strings (Depends-on): Update.
9290         * modules/sys_ioctl (Depends-on): Update.
9291         * modules/sys_select (Depends-on): Update.
9292         * modules/sys_socket (Depends-on): Update.
9293         * modules/sys_stat (Depends-on): Update.
9294         * modules/sys_time (Depends-on): Update.
9295         * modules/sys_wait (Depends-on): Update.
9296         * modules/termios (Depends-on): Update.
9297         * modules/time (Depends-on): Update.
9298         * modules/unistd (Depends-on): Update.
9299         * modules/wchar (Depends-on): Update.
9300         * modules/wctype-h (Depends-on): Update.
9301
9302         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
9303         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
9304         (Files, Makefile.am): Update.
9305         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
9306         * modules/argv-iter (Depends-on): Update.
9307         * modules/arpa_inet (Depends-on): Update.
9308         * modules/dirent (Depends-on): Update.
9309         * modules/fcntl-h (Depends-on): Update.
9310         * modules/fnmatch (Depends-on): Update.
9311         * modules/getopt-posix (Depends-on): Update.
9312         * modules/glob (Depends-on): Update.
9313         * modules/iconv-h (Depends-on): Update.
9314         * modules/inttypes-incomplete (Depends-on): Update.
9315         * modules/locale (Depends-on): Update.
9316         * modules/math (Depends-on): Update.
9317         * modules/netdb (Depends-on): Update.
9318         * modules/search (Depends-on): Update.
9319         * modules/signal (Depends-on): Update.
9320         * modules/spawn (Depends-on): Update.
9321         * modules/stdio (Depends-on): Update.
9322         * modules/stdlib (Depends-on): Update.
9323         * modules/string (Depends-on): Update.
9324         * modules/strings (Depends-on): Update.
9325         * modules/sys_socket (Depends-on): Update.
9326         * modules/sys_stat (Depends-on): Update.
9327         * modules/sys_time (Depends-on): Update.
9328         * modules/sys_times (Depends-on): Update.
9329         * modules/sys_utsname (Depends-on): Update.
9330         * modules/time (Depends-on): Update.
9331         * modules/unistd (Depends-on): Update.
9332         * modules/wchar (Depends-on): Update.
9333         * MODULES.html.sh (Support for building libraries and executables):
9334         Update.
9335
9336 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
9337
9338         Improvements on _Noreturn and related modules.
9339
9340         modules/_Exit-tests: test _Noreturn too
9341         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
9342         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
9343         (main): Use them.
9344
9345         stdnoreturn, stdnoreturn-tests: remove modules
9346         They're not needed here and a bit premature for use elsewhere.  See
9347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
9348         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9349         * tests/test-stdnoreturn.c: Remove files.
9350         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
9351         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
9352         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
9353         and using noreturn.
9354         * modules/openat, modules/sigpipe-die, modules/xalloc:
9355         * modules/xmemdup0, modules/xstrtol:
9356         Remove dependency on stdnoreturn.
9357
9358         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
9359         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
9360         Reparenthesize to avoid GCC warning.
9361         Support Microsoft's syntax.
9362         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
9363
9364         _Noreturn-tests: remove module
9365         * modules/_Noreturn-tests: Remove.
9366         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
9367         * tests/test-_Noreturn.c: Remove.
9368         * tests/test-stdnoreturn.c: Merge from the old
9369         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
9370
9371 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
9372
9373         _Noreturn, stdnoreturn, and related modules.
9374
9375         * top/maint.mk: Adjust to new noreturn support.
9376         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
9377         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
9378
9379         xalloc: use stdnoreturn.h
9380         * lib/xalloc.h: Include <stdnoreturn.h>.
9381         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9382         * modules/xalloc (Depends-on): Add stdnoreturn.
9383
9384         xstrtol: use stdnoreturn.h
9385         * lib/xstrtol.h: Include <stdnoreturn.h>.
9386         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9387         * modules/xstrtol (Depends-on): Add stdnoreturn.
9388
9389         xmemdup0: use stdnoreturn.h
9390         * lib/xmemdup0.h: Include <stdnoreturn.h>.
9391         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9392         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
9393
9394         sigpipe-die: use stdnoreturn.h
9395         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
9396         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9397         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
9398
9399         openat: use stdnoreturn.h
9400         * lib/openat.h: Include <stdnoreturn.h>.
9401         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
9402         * modules/openat (Depends-on): Add stdnoreturn.
9403
9404         * lib/openat-die.c (openat_save_fail): Modernize comment.
9405
9406         * lib/xalloc-die.c (xalloc_die): Modernize comment.
9407
9408         * lib/glthread/thread.h: Modernize comment.
9409
9410         obstack: use _Noreturn
9411         * lib/obstack.c (__attribute__): Remove macro.
9412         (print_and_abort): Use _Noreturn.
9413
9414         c-stack: use _Noreturn
9415         * lib/c-stack.c (die, overflow_handler, segv_handler):
9416         Use _Noreturn rather than __attribute__((noreturn)).
9417
9418         argmatch-tests, exclude_tests: use _Noreturn
9419         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
9420         Remove.
9421         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
9422
9423         stdlib: use _Noreturn
9424         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
9425         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
9426         * modules/stdlib (Depends-on): Add _Noreturn.
9427         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
9428
9429         stdnoreturn-tests: new module
9430         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
9431
9432         stdnoreturn: new module
9433         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
9434         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
9435
9436         _Noreturn-tests: new module
9437         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
9438
9439         _Noreturn: new module
9440         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
9441         New section, mentioning it.
9442         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
9443
9444         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
9445
9446 2011-07-11  Eric Blake  <eblake@redhat.com>
9447
9448         ffs: new module
9449         * modules/ffs: New file.
9450         * m4/ffs.m4: Likewise.
9451         * lib/ffs.c: Likewise.
9452         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
9453         * modules/strings (Makefile.am): Substitute witness.
9454         (Depends-on): Add c++defs.
9455         * lib/strings.in.h (ffs): Declare.
9456         * modules/ffs-tests: New test file.
9457         * tests/test-ffs.c: Test new module.
9458         * MODULES.html.sh (Integer arithmetic functions): Mention it.
9459         * doc/posix-functions/ffs.texi (ffs): Likewise.
9460
9461         regex: avoid compiler warning
9462         * lib/regex.c (includes): Include <strings.h>, for use of
9463         strcasecmp in regcomp.c.
9464         Reported by Joachim Schmitz.
9465
9466 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
9467
9468         stdint: respect system's intmax_t if INTMAX_MAX
9469         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
9470         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
9471         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
9472         long but int64_t is long long, and where we will clash with the
9473         system intmax_t if we override it.  See
9474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
9475         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
9476         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
9477         similarly for UINTMAX_C.
9478
9479 2011-07-08  Bruno Haible  <bruno@clisp.org>
9480
9481         pthread_sigmask tests: Avoid a compiler warning.
9482         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
9483         non-zero.
9484
9485         sigprocmask tests: A better way to avoid a compiler warning.
9486         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
9487         (main): Complain if system() returns non-zero.
9488         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
9489
9490 2011-07-08  Bruno Haible  <bruno@clisp.org>
9491
9492         pthread_sigmask: Work around IRIX bug.
9493         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
9494         bug.
9495         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
9496         there may be unblocked pending signals.
9497         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
9498
9499 2011-07-08  Bruno Haible  <bruno@clisp.org>
9500
9501         pthread_sigmask: Work around Cygwin bug.
9502         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
9503         bug.
9504         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
9505         the system's pthread_sigmask function.
9506         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
9507
9508 2011-07-08  Bruno Haible  <bruno@clisp.org>
9509
9510         pthread_sigmask: Work around bug in single-threaded implementation.
9511         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
9512         FreeBSD, HP-UX, Solaris bug.
9513         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
9514         * lib/pthread_sigmask.c: Include <stddef.h>.
9515         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
9516         the system's pthread_sigmask function.
9517         * modules/pthread_sigmask (configure.ac): Invoke
9518         gl_PREREQ_PTHREAD_SIGMASK.
9519         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
9520         HP-UX, Solaris.
9521
9522 2011-07-08  Eric Blake  <eblake@redhat.com>
9523
9524         test-sigprocmask: avoid compiler warning
9525         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
9526         * tests/test-sigprocmask.c (main): Use it to silence warning.
9527         Reported by Jim Meyering.
9528
9529         test-snprintf: avoid compiler warning
9530         * tests/test-snprintf.c (main): Avoid shadowed declaration.
9531         * tests/test-vsnprintf.c (main): Likewise.
9532         Reported by Jim Meyering.
9533
9534 2011-07-08  Bruno Haible  <bruno@clisp.org>
9535
9536         Tests for module 'pthread_sigmask'.
9537         * modules/pthread_sigmask-tests: New file.
9538         * tests/test-pthread_sigmask1.c: New file, based on
9539         tests/test-sigprocmask.c.
9540         * tests/test-pthread_sigmask2.c: New file.
9541
9542 2011-07-08  Jim Meyering  <meyering@redhat.com>
9543
9544         test-getopt.h: avoid warning about an unused variable
9545         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
9546
9547 2011-07-07  Jim Meyering  <meyering@redhat.com>
9548
9549         maint: reduce list of files exempt from sc_prohibit_leading_TABs
9550         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
9551         now that it no longer contains leading TABs.
9552         Remove unused "url=FIXME" statement.
9553
9554 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
9555
9556         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
9557         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9558         When gl_THREADLIB is not in use, assume that the POSIX sematics
9559         are desired.  This is better for Emacs, which uses POSIX semantics
9560         on GNUish and/or POSIXish platforms, and does not use threads at
9561         all otherwise.
9562
9563         pthread_sigmask: fix typo when testing for libraries
9564         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9565         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
9566
9567 2011-07-08  Eric Blake  <eblake@redhat.com>
9568
9569         fts: introduce FTS_NOATIME
9570         * lib/fts_.h (FTS_NOATIME): New bit flag.
9571         (FTS_OPTIONMASK): Adjust.
9572         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
9573         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
9574
9575 2011-07-08  Bruno Haible  <bruno@clisp.org>
9576
9577         Tests for module 'thread'.
9578         * modules/thread-tests: New file.
9579         * tests/test-thread_self.c: New file.
9580         * tests/test-thread_create.cc: New file.
9581
9582 2011-07-08  Bruno Haible  <bruno@clisp.org>
9583
9584         thread: Avoid gcc warnings when using gl_thread_self().
9585         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
9586         'void *'.
9587         (gl_thread_self_pointer): Update.
9588
9589 2011-07-07  Bruno Haible  <bruno@clisp.org>
9590
9591         signal-c++-tests: Check declaration of pthread_sigmask.
9592         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
9593         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
9594         $(LIB_PTHREAD_SIGMASK).
9595
9596 2011-07-07  Bruno Haible  <bruno@clisp.org>
9597
9598         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
9599         * lib/signal.in.h (pthread_sigmask): Override if
9600         REPLACE_PTHREAD_SIGMASK is 1.
9601         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9602         REPLACE_PTHREAD_SIGMASK.
9603         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
9604         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
9605         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
9606         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
9607         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
9608
9609 2011-07-07  Bruno Haible  <bruno@clisp.org>
9610
9611         pthread_sigmask: Ensure declaration in <signal.h>.
9612         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
9613         include <pthread.h>.
9614         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
9615         problem.
9616
9617 2011-07-07  Bruno Haible  <bruno@clisp.org>
9618
9619         pthread_sigmask: Document the module.
9620         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
9621
9622 2011-07-07  Bruno Haible  <bruno@clisp.org>
9623
9624         pthread_sigmask: Follow gnulib conventions.
9625         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
9626         gl_PTHREAD_SIGMASK.
9627         * modules/pthread_sigmask (configure.ac): Update.
9628
9629 2011-07-07  Bruno Haible  <bruno@clisp.org>
9630
9631         pthread_sigmask: Make declaration C++ safe.
9632         * lib/signal.in.h: In two special conditions, just do an #include_next.
9633         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
9634         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
9635         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
9636         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
9637         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
9638         not REPLACE_PTHREAD_MASK.
9639         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
9640         not REPLACE_PTHREAD_MASK.
9641         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
9642
9643 2011-07-07  Bruno Haible  <bruno@clisp.org>
9644
9645         pthread_sigmask: Fix return value.
9646         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
9647         * lib/pthread_sigmask.c: New file.
9648         * modules/pthread_sigmask (Files): Add it.
9649         (configure.ac): Invoke AC_LIBOBJ.
9650
9651 2011-07-07  Eric Blake  <eblake@redhat.com>
9652
9653         getopt: more portable argv creation
9654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
9655         const, use char arrays rather than strings.
9656         Suggested by Paul Eggert.
9657
9658 2011-07-07  Bruno Haible  <bruno@clisp.org>
9659
9660         Tests for module 'sigprocmask'.
9661         * modules/sigprocmask-tests: New file.
9662         * tests/test-sigprocmask.c: New file.
9663
9664 2011-07-07  Bruno Haible  <bruno@clisp.org>
9665
9666         float tests: Tweak.
9667         * tests/test-float.c (main): Tweak skip message.
9668
9669 2011-07-07  Eric Blake  <eblake@redhat.com>
9670
9671         getopt: avoid compiler warning during configure
9672         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
9673         assigning string literals to non-const pointer.
9674
9675         getopt-gnu: avoid crash in glibc getopt
9676         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
9677         * tests/test-getopt.h (test_getopt): Enhance test.
9678         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9679         * doc/posix-functions/getopt.texi (getopt): Document it.
9680         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
9681         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9682         Likewise.
9683
9684 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
9685
9686         getopt: handle W; without long options in getopt [BZ #12922]
9687         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
9688         but no long options are defined, just return 'W'.
9689
9690 2011-07-07  Bruno Haible  <bruno@clisp.org>
9691
9692         Avoid literal tabs.
9693         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
9694         variable containing a tab instead of a literal tab.
9695         Reported by Jim Meyering.
9696
9697 2011-07-07  Bruno Haible  <bruno@clisp.org>
9698
9699         Comments.
9700         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
9701
9702 2011-07-06  Bruno Haible  <bruno@clisp.org>
9703
9704         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
9705         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
9706         <winsock2.h>.
9707         (rpl_fd_isset, FD_ISSET): New definitions, copied from
9708         lib/sys_socket.in.h.
9709         (close, gethostname): Hide declarations from <winsock2.h>.
9710         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9711         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
9712         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
9713         (select): Don't override if gnulib's <sys/select.h> was already
9714         included.
9715         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
9716         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
9717         setsockopt, shutdown, select): Tweak indentation.
9718
9719 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9720
9721         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
9722         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
9723         in an application that does not use the sys_select module.
9724
9725 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
9726
9727         poll: do not return 0 on timeout=-1
9728         * lib/poll.c: Loop with yield if no events occured
9729
9730 2011-07-06  Eric Blake  <eblake@redhat.com>
9731
9732         pthread_sigmask: always replace when not using pthread
9733         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
9734         replacement when using some threading other than pthread.  Fix
9735         logic bug.
9736
9737 2011-07-06  Bruno Haible  <bruno@clisp.org>
9738
9739         Comments.
9740         * m4/printf.m4: Update comments about mingw.
9741
9742 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9743
9744         sys_select: define sigset_t more portably
9745         * lib/sys_select.in.h: Always include <sys/types.h>, since
9746         we now need sigset_t and mingw defines it there.
9747         Include <signal.h> before split inclusion guard, to avoid
9748         mishaps on Solaris, whose <signal.h> eventually includes us.
9749         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
9750         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
9751         which come from ...
9752         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9753         gl_CHECK_TYPE_SIGSET_T.
9754         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
9755         does the real work.
9756         * modules/sys_select (Depends-on): Add 'signal'.
9757
9758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
9759         Suggested by Bruno Haible.
9760
9761         pselect: Use pthread_sigmask, not sigprocmask.
9762         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
9763         multithreaded apps better than sigprocmask does.
9764         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
9765         sigprocmask directly.
9766
9767 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
9768
9769         * lib/pselect.c (pselect): Use plain name, without "rpl_".
9770         Don't #undef,  since we don't need any underlying pselect.
9771         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
9772         (Depends-on): Add select.
9773         (Link): Add $(LIBSOCKET).
9774         These changes suggested by Bruno Haible.
9775
9776         pselect: document better
9777         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9778         * doc/posix-functions/pselect.texi (pselect): Document new module.
9779
9780         pthread_sigmask: new module
9781         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
9782         * doc/posix-functions/pthread_sigmask.texi: Document new module.
9783         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
9784         This is done only as a macro; I don't know how well that'll
9785         work for C++.  Move <sys/types.h> include before the include_next,
9786         to avoid mishap on Solaris.
9787         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
9788         * modules/signal (Makefile.am): Substitute the check's results.
9789         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
9790
9791         test-pselect: new module
9792         * modules/pselect-tests, tests/test-pselect.c: New files.
9793         * tests/test-select.c, tests/test-sys_select-c++.cc:
9794         If TEST_PSELECT is defined, test pselect instead of testing select.
9795
9796         * tests/test-sys_select.c (sigset_t): Test for it, too.
9797         Suggested by Bruno Haible.
9798
9799 2011-07-05  Eric Blake  <eblake@redhat.com>
9800
9801         snprintf: guarantee %1$d, for libintl
9802         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
9803         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
9804         * doc/posix-functions/snprintf.texi (snprintf): Update.
9805         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9806         * tests/test-snprintf.c (main): Enhance test.
9807         * tests/test-vsnprintf.c (main): Likewise.
9808
9809 2011-07-05  Jim Meyering  <meyering@redhat.com>
9810
9811         maint: exempt stdio-read.c and stdio-write.c from the cppi check
9812         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
9813         per Bruno's request, to accommodate this idiom (no space after "#")
9814         even when the function is inside an #if block:
9815         char *
9816         gets (char *s)
9817         #undef gets
9818         {
9819           ...
9820         }
9821
9822 2011-07-04  Jim Meyering  <meyering@redhat.com>
9823
9824         maint: indent with spaces, not TABs, and add a rule to check this
9825         * tests/test-userspec.c: Indent with spaces, not TABs.
9826         * tests/test-argp.c: Likewise.
9827         * tests/test-c-stack2.sh: Likewise.
9828         * tests/test-parse-duration.sh: Likewise
9829         * m4/strtod.m4: Likewise.
9830         * m4/alloca.m4: Likewise.
9831         * m4/pselect.m4: Likewise.
9832         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
9833
9834 2011-07-03  Jim Meyering  <meyering@redhat.com>
9835
9836         maint.mk: correct omissions in prohibit_argmatch_without_use check
9837         This rule would mistakenly report that argmatch.h is included without
9838         use even when both the argmatch and invalid_arg macro were used.
9839         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
9840         of argmatch and invalid_arg.
9841
9842 2011-07-03  Bruno Haible  <bruno@clisp.org>
9843
9844         Comments about EINTR.
9845         * lib/safe-read.h: Explain the purpose of this module.
9846         * lib/safe-write.h: Likewise.
9847         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
9848         module.
9849         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
9850         module.
9851         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9852
9853 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9854
9855         xnanosleep: Rewrite to use new dtotimespec module.
9856         It has the conversion code that used to be in xnanosleep.
9857         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
9858         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
9859         (TIME_T_MAX): Remove.
9860         (xnanosleep): Rewrite in terms of dtotimespec.
9861         * modules/xnanosleep (Depends-on): Add dtotimespec.
9862         Remove intprops, stdbool.
9863
9864         timespec-add, timespec-sub: new modules
9865         * lib/timespec.h (timespec_add, timespec_sub): New decls.
9866         * lib/timespec-add.c, lib/timespec-sub.c:
9867         * modules/timespec-add, modules/timespec-sub: New files.
9868
9869         dtotimespec: new module
9870         * lib/timespec.h (dtotimespec): New decl.
9871         * lib/dtotimespec.c, modules/dtotimespec: New files.
9872
9873         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
9874
9875         pselect: new module
9876         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
9877         (pselect): New decls.
9878         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
9879         since the standard pselect decl uses 'restrict'.
9880         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
9881         HAVE_PSELECT, REPLACE_PSELECT.
9882         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
9883         HAVE_PSELECT, REPLACE_PSELECT.
9884         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
9885
9886         sys_select: don't depend on sys_socket
9887         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
9888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
9889         This fix works on GNU and GNU-like platforms, but has not been tested
9890         on native Windows.
9891         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
9892         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
9893         gl_HEADER_SYS_SOCKET.
9894         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
9895         gl_PREREQ_SYS_H_WINSOCK2.
9896
9897 2011-06-29  Eric Blake  <eblake@redhat.com>
9898
9899         pipe2: fix C89 compile problem
9900         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
9901         Reported by Bruno Haible.
9902
9903         pipe, pipe2: don't corrupt fd on error
9904         * lib/pipe.c (pipe): Leave fd unchanged on error.
9905         * lib/pipe2.c (pipe2): Likewise.
9906         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
9907         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
9908
9909 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
9910
9911         mmap-anon: do not use regular expressions inadvertently
9912         * m4/mmap-anon.m4: Remove trailing period from strings sought
9913         in the output.
9914
9915 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
9916
9917         nanosleep: fix integer overflow problem
9918         * lib/nanosleep.c (my_usleep): Don't assume signed integer
9919         arithmetic wraps around on overflow.
9920
9921         nanosleep: simplify carrying
9922         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
9923         first call to the underyling nanosleep, not for the last one.
9924         This doesn't fix any bugs, but it simplifies the computation of
9925         the remaining delay.  Found while auditing integer overflow issues.
9926
9927         dup2: remove test for existence of fcntl
9928         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
9929         "#if HAVE_FCNTL", in the configure-time test program.
9930         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
9931         and therefore speeds up "configure" a bit.  Found while
9932         adding the dup2 module to Emacs.
9933
9934 2011-06-24  Eric Blake  <eblake@redhat.com>
9935
9936         maint.mk: enhance useless header checks
9937         * top/maint.mk (_sc_header_without_use): Check both include
9938         styles.
9939         (sc_prohibit_assert_without_use)
9940         (sc_prohibit_close_stream_without_use)
9941         (sc_prohibit_getopt_without_use)
9942         (sc_prohibit_quotearg_without_use)
9943         (sc_prohibit_quote_without_use)
9944         (sc_prohibit_long_options_without_use)
9945         (sc_prohibit_inttostr_without_use)
9946         (sc_prohibit_ignore_value_without_use)
9947         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
9948         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
9949         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
9950         (sc_prohibit_hash_pjw_without_use)
9951         (sc_prohibit_safe_read_without_use)
9952         (sc_prohibit_argmatch_without_use)
9953         (sc_prohibit_canonicalize_without_use)
9954         (sc_prohibit_root_dev_ino_without_use)
9955         (sc_prohibit_openat_without_use)
9956         (sc_prohibit_c_ctype_without_use)
9957         (sc_prohibit_signal_without_use)
9958         (sc_prohibit_stdio--_without_use)
9959         (sc_prohibit_stdio-safer_without_use)
9960         (sc_prohibit_strings_without_use)
9961         (sc_prohibit_intprops_without_use)
9962         (sc_prohibit_stddef_without_use)
9963         (sc_prohibit_xfreopen_without_use): Update clients.
9964
9965 2011-06-24  Jim Meyering  <meyering@redhat.com>
9966
9967         syntax-check: keep one maint.mk rule in sync with its header
9968         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
9969         of the bug Eric has just fixed, with today's commit 25e4c2ec.
9970         I prefer to avoid temporary files here, so use <(...), but that
9971         is not supported by /bin/sh, so...
9972         (SHELL): Define to /bin/bash.
9973
9974 2011-06-24  Eric Blake  <eblake@redhat.com>
9975
9976         maint.mk: update sc_prohibit_intprops_without_use
9977         * top/maint.mk (_intprops_names): Match recent changes.
9978
9979 2011-06-24  Bruno Haible  <bruno@clisp.org>
9980
9981         strerror-override: No-op tweak.
9982         * lib/strerror-override.h (strerror_override): Reorder conditions,
9983         for consistency with lib/strerror-override.c.
9984
9985 2011-06-23  Eric Blake  <eblake@redhat.com>
9986
9987         maint.mk: test further PATH_MAX issues
9988         * top/maint.mk (sc_prohibit_path_max_array): Rename...
9989         (sc_prohibit_path_max_allocation): ...and also test alloca.
9990         Suggested by Jim Meyering.
9991
9992 2011-06-22  Eric Blake  <eblake@redhat.com>
9993
9994         maint.mk: add syntax-check to avoid char[PATH_MAX]
9995         * top/maint.mk (sc_prohibit_path_max_array): New rule.
9996
9997         stat: be robust to PATH_MAX definition
9998         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
9999         * modules/stat (Depends-on): Add verify.
10000
10001         link: work around IRIX bug
10002         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
10003         * lib/link.c (rpl_link): Work around it.
10004         * tests/test-link.h (test_link): Enhance test.
10005         * doc/posix-functions/link.texi (link): Document the bug.
10006
10007         getopt: silence clang warning
10008         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
10009         dereference.
10010         Reported by Gustavo Martin Domato.
10011
10012 2011-06-22  Jim Meyering  <meyering@redhat.com>
10013
10014         bootstrap: do not insert a blank line into each .gitignore file
10015         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
10016
10017 2011-06-21  Eric Blake  <eblake@redhat.com>
10018
10019         perror: test for output mismatch
10020         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
10021         perror on IRIX.
10022
10023         strerror_r: fix OpenBSD behavior on out-of-range
10024         * lib/strerror_r.c (strerror_r): Always use maximal string.
10025         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10026
10027         strerror_r: fix OpenBSD behavior on 0
10028         * lib/strerror-override.c (strerror_override): Also override 0
10029         when needed.
10030         * lib/strerror-override.h (strerror_override): Likewise.
10031         * lib/strerror.c (strerror): Simplify, now that 0 override is done
10032         earlier.
10033         * lib/strerror_r.c (strerror_r): Likewise.
10034         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
10035         behavior...
10036         (gl_FUNC_STRERROR_0): ...into new macro.
10037         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
10038         is overridden.
10039         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
10040         * modules/strerror-override (Files): Add strerror.m4.
10041         (configure.ac): Also provide override for 0 when needed.
10042         * doc/posix-functions/strerror.texi (strerror): Document this.
10043         * doc/posix-functions/perror.texi (perror): Likewise.
10044
10045         perror: adjust array size
10046         * modules/perror (Depends-on): Add strerror-override.
10047         * lib/perror.c (perror): Use it to avoid magic number.
10048
10049         strerror-override: reduce size
10050         * lib/strerror-override.c (strerror_override): Use fewer lines.
10051
10052 2011-06-20  Bruno Haible  <bruno@clisp.org>
10053
10054         pathmax: Ensure correct value for PATH_MAX on HP-UX.
10055         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
10056
10057 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10058
10059         alloca: port to compilers that can optimize like GCC 4.6.0
10060         * lib/alloca.c (find_stack_direction): New signature, taken from
10061         Autoconf git.  This works with GCC 4.6.0.  This code should never
10062         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
10063         be used with other compilers that optimize as well as GCC 4.6.0 does.
10064         (alloca): Adjust to new signature.
10065         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
10066         New macro, which patches Autoconf in a similar way.
10067
10068         c-stack: stop worrying about stack direction
10069         * lib/c-stack.c (find_stack_direction): Remove.
10070         (segv_handler): Don't worry about stack direction growth, as it's
10071         too much of a pain to configure this correctly, given how compilers
10072         are optimizing-away our stack-growth detection code.  Instead, assume
10073         that any access to just before or just after the stack is OK.
10074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
10075         Don't require AC_FUNC_ALLOCA; no longer needed.
10076
10077 2011-06-20  Eric Blake  <eblake@redhat.com>
10078
10079         test-stat: don't allocate PATH_MAX bytes
10080         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
10081         PATH_MAX-sized buffer.
10082         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
10083         * modules/stat-tests (Depends-on): Likewise.
10084         * tests/test-fstatat.c (includes): Drop pathmax.h.
10085         * tests/test-stat.c (includes): Likewise.
10086         Reported by Bruno Haible.
10087
10088 2011-06-20  Bruno Haible  <bruno@clisp.org>
10089
10090         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
10091         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
10092         * lib/float.c: New file.
10093         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
10094         REPLACE_FLOAT_LDBL.
10095         * modules/float (Files): Add lib/float.c.
10096         (configure.ac): Invoke AC_LIBOBJ.
10097         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
10098
10099 2011-06-20  Bruno Haible  <bruno@clisp.org>
10100
10101         Tests for module 'float'.
10102         * modules/float-tests: New file.
10103         * tests/test-float.c: New file.
10104
10105 2011-06-19  Bruno Haible  <bruno@clisp.org>
10106
10107         isinf: Coding style.
10108         * lib/isinf.c: Use GNU coding style.
10109
10110 2011-06-19  Bruno Haible  <bruno@clisp.org>
10111
10112         linkat test: Avoid test failure on AIX 7.1.
10113         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
10114         * tests/test-link.h (test_link): Likewise.
10115
10116 2011-06-19  Bruno Haible  <bruno@clisp.org>
10117
10118         pread test: Avoid test failure on OpenBSD 4.9.
10119         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
10120
10121 2011-06-19  Bruno Haible  <bruno@clisp.org>
10122
10123         sprintf-posix: Fix test failure on AIX 7.1.
10124         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
10125         * doc/posix-functions/dprintf.texi: Mention limited precision problem
10126         on AIX.
10127         * doc/posix-functions/fprintf.texi: Likewise.
10128         * doc/posix-functions/printf.texi: Likewise.
10129         * doc/posix-functions/snprintf.texi: Likewise.
10130         * doc/posix-functions/sprintf.texi: Likewise.
10131         * doc/posix-functions/vdprintf.texi: Likewise.
10132         * doc/posix-functions/vfprintf.texi: Likewise.
10133         * doc/posix-functions/vprintf.texi: Likewise.
10134         * doc/posix-functions/vsnprintf.texi: Likewise.
10135         * doc/posix-functions/vsprintf.texi: Likewise.
10136
10137 2011-06-19  Bruno Haible  <bruno@clisp.org>
10138
10139         roundl-ieee: Fix test failure on AIX 7.1.
10140         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
10141         * doc/posix-functions/roundl.texi: Mention problem with negative
10142         arguments.
10143
10144 2011-06-19  Bruno Haible  <bruno@clisp.org>
10145
10146         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10147         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
10148         * doc/posix-functions/round.texi: Mention problem with negative
10149         arguments.
10150         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
10151
10152 2011-06-19  Bruno Haible  <bruno@clisp.org>
10153
10154         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10155         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
10156         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
10157         * doc/posix-functions/roundf.texi: Mention problem with negative
10158         arguments.
10159         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
10160
10161 2011-06-19  Bruno Haible  <bruno@clisp.org>
10162
10163         ceilf-ieee: Work around bug on MacOS X 10.5.
10164         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
10165
10166         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
10167         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
10168         IEEE compliant, avoid compiler optimizations.
10169         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10170         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10171         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10172         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10173         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10174         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10175         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10176         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10177         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10178         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10179
10180 2011-06-19  Bruno Haible  <bruno@clisp.org>
10181
10182         ceilf-ieee: Work around bug on AIX 7.1.
10183         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
10184         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
10185
10186 2011-06-19  Bruno Haible  <bruno@clisp.org>
10187
10188         ceil-ieee: Work around bug on AIX 7.1.
10189         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
10190         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
10191
10192 2011-06-18  Bruno Haible  <bruno@clisp.org>
10193
10194         fsync test: Avoid test failure on MacOS X and AIX.
10195         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
10196         EINVAL.
10197
10198 2011-06-18  Bruno Haible  <bruno@clisp.org>
10199
10200         openat, fdopendir tests: Fix link errors.
10201         * modules/openat-tests (Depends-on): Add progname.
10202         * modules/fdopendir-tests (Depends-on): Likewise.
10203         * tests/test-fchownat.c: Include progname.h.
10204         (main): Call set_program_name.
10205         * tests/test-fstatat.c: Include progname.h.
10206         (main): Call set_program_name.
10207         * tests/test-mkdirat.c: Include progname.h.
10208         (main): Call set_program_name.
10209         * tests/test-openat.c: Include progname.h.
10210         (main): Call set_program_name.
10211         * tests/test-unlinkat.c: Include progname.h.
10212         (main): Call set_program_name.
10213         * tests/test-fdopendir.c: Include progname.h.
10214         (main): Call set_program_name.
10215
10216 2011-06-18  Bruno Haible  <bruno@clisp.org>
10217
10218         Doc update.
10219         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
10220         HP-UX.
10221         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
10222
10223 2011-06-18  Bruno Haible  <bruno@clisp.org>
10224
10225         getcwd tests: Avoid compilation error on HP-UX 11.31.
10226         * modules/getcwd-tests (Depends-on): Add pathmax.
10227         * tests/test-getcwd.c: Include pathmax.h.
10228
10229 2011-06-18  Bruno Haible  <bruno@clisp.org>
10230
10231         isfinite, isinf: Fix link error on AIX 6 and 7.
10232         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
10233         needed, also test the macro with a 'float' argument.
10234         * m4/isinf.m4 (gl_ISINF): Likewise.
10235
10236 2011-06-18  Bruno Haible  <bruno@clisp.org>
10237
10238         getloadavg: Don't clobber LIBS. Regression from previous commit.
10239         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
10240         AC_CHECK_LIB from here...
10241         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
10242         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
10243         gl_func_getloadavg_done.
10244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10245
10246 2011-06-18  Bruno Haible  <bruno@clisp.org>
10247
10248         clean-temp: Improve documentation.
10249         * lib/clean-temp.h: Explain better how to use this module.
10250         Reported by John Darrington <john@darrington.wattle.id.au>.
10251
10252 2011-06-17  Bruno Haible  <bruno@clisp.org>
10253
10254         pread, pwrite: Avoid cc warning on AIX.
10255         * lib/unistd.in.h (pread): Undefine before defining as a macro.
10256         (pwrite): Likewise.
10257
10258 2011-06-17  Bruno Haible  <bruno@clisp.org>
10259
10260         spawn-pipe tests: Fix link error.
10261         * tests/test-spawn-pipe-child.c: Undefine fprintf.
10262         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10263
10264 2011-06-17  Bruno Haible  <bruno@clisp.org>
10265
10266         Tests: Remove unnecessary dependency.
10267         * modules/canonicalize-tests (Depends-on): Remove progname.
10268         * modules/chown-tests (Depends-on): Likewise.
10269         * modules/dirname-tests (Depends-on): Likewise.
10270         * modules/fdopendir-tests (Depends-on): Likewise.
10271         * modules/fdutimensat-tests (Depends-on): Likewise.
10272         * modules/hash-tests (Depends-on): Likewise.
10273         * modules/lchown-tests (Depends-on): Likewise.
10274         * modules/linkat-tests (Depends-on): Likewise.
10275         * modules/renameat-tests (Depends-on): Likewise.
10276         * modules/spawn-pipe-tests (Depends-on): Likewise.
10277         * modules/utimensat-tests (Depends-on): Likewise.
10278
10279 2011-06-17  Bruno Haible  <bruno@clisp.org>
10280
10281         spawn-pipe tests: Fix link error.
10282         * tests/test-spawn-pipe-child.c: Undefine fflush.
10283
10284 2011-06-17  Bruno Haible  <bruno@clisp.org>
10285
10286         Fix tests link errors.
10287         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
10288         * modules/chown-tests (Makefile.am): Don't link test-chown with
10289         LIBINTL.
10290         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
10291         LIBINTL.
10292         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
10293         LIBINTL.
10294         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
10295         LIBINTL.
10296
10297 2011-06-16  Bruno Haible  <bruno@clisp.org>
10298
10299         crypto/gc-sha1: Fix recent regression.
10300         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
10301         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
10302
10303         crypto/gc-md5: Fix recent regression.
10304         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
10305
10306         crypto/gc-md4: Fix recent regression.
10307         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
10308         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
10309
10310         crypto/gc-arctwo: Fix recent regression.
10311         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
10312         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
10313
10314         crypto/gc-rijndael: Fix recent regression.
10315         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
10316         (configure.ac): Invoke AC_LIBOBJ here.
10317         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
10318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10319
10320         crypto/gc-hmac-sha1: Fix recent regression.
10321         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
10322         (configure.ac): Invoke AC_LIBOBJ here.
10323         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
10324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10325
10326         crypto/gc-hmac-md5: Fix recent regression.
10327         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
10328         (configure.ac): Invoke AC_LIBOBJ here.
10329         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
10330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10331
10332         crypto/gc-des: Fix recent regression.
10333         * modules/crypto/gc-des (Files): Remove m4/des.m4.
10334         (configure.ac): Invoke AC_LIBOBJ here.
10335         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
10336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10337
10338         crypto/gc-arcfour: Fix recent regression.
10339         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
10340         (configure.ac): Invoke AC_LIBOBJ here.
10341         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
10342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10343
10344 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10345
10346         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
10347         After the 2011-05-21 change, this macro requires
10348         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
10349         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
10350
10351 2011-06-16  Bruno Haible  <bruno@clisp.org>
10352
10353         fprintftime: Move AC_LIBOBJ invocations to module description.
10354         * m4/fprintftime.m4: Remove file.
10355         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
10356         (configure.ac): Remove gl_FPRINTFTIME call.
10357         (Makefile.am): Augment lib_SOURCES.
10358         Reported by Jim Meyering.
10359
10360 2011-06-16  Bruno Haible  <bruno@clisp.org>
10361
10362         tmpfile-safer: Finish 2011-05-23 commit.
10363         * m4/stdio-safer.m4: Really remove file.
10364         Reported by Jim Meyering.
10365
10366 2011-06-16  Bruno Haible  <bruno@clisp.org>
10367
10368         syntax-check: Fix typo.
10369         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
10370         printf-posix.m4.
10371         Reported by Jim Meyering.
10372
10373 2011-06-13  Jim Meyering  <meyering@redhat.com>
10374
10375         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
10376         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
10377
10378 2011-05-23  Bruno Haible  <bruno@clisp.org>
10379
10380         yesno: Move AC_LIBOBJ invocations to module description.
10381         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
10382         * modules/yesno (Makefile.am): Augment lib_SOURCES.
10383
10384 2011-05-23  Bruno Haible  <bruno@clisp.org>
10385
10386         xstrtol: Move AC_LIBOBJ invocations to module description.
10387         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
10388         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
10389
10390 2011-05-23  Bruno Haible  <bruno@clisp.org>
10391
10392         xstrtold: Move AC_LIBOBJ invocations to module description.
10393         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
10394         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
10395
10396 2011-05-23  Bruno Haible  <bruno@clisp.org>
10397
10398         xstrtod: Move AC_LIBOBJ invocations to module description.
10399         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
10400         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
10401
10402 2011-05-23  Bruno Haible  <bruno@clisp.org>
10403
10404         xnanosleep: Move AC_LIBOBJ invocations to module description.
10405         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
10406         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
10407
10408 2011-05-23  Bruno Haible  <bruno@clisp.org>
10409
10410         xgetcwd: Move AC_LIBOBJ invocations to module description.
10411         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
10412         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
10413
10414 2011-05-23  Bruno Haible  <bruno@clisp.org>
10415
10416         xalloc: Move AC_LIBOBJ invocations to module description.
10417         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
10418         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
10419
10420 2011-05-23  Bruno Haible  <bruno@clisp.org>
10421
10422         write-any-file: Move AC_LIBOBJ invocations to module description.
10423         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
10424         invocation.
10425         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
10426
10427 2011-05-23  Bruno Haible  <bruno@clisp.org>
10428
10429         utimens: Move AC_LIBOBJ invocations to module description.
10430         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
10431         * modules/utimens (Makefile.am): Augment lib_SOURCES.
10432
10433 2011-05-23  Bruno Haible  <bruno@clisp.org>
10434
10435         utimecmp: Move AC_LIBOBJ invocations to module description.
10436         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
10437         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
10438
10439 2011-05-23  Bruno Haible  <bruno@clisp.org>
10440
10441         userspec: Move AC_LIBOBJ invocations to module description.
10442         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
10443         * modules/userspec (Makefile.am): Augment lib_SOURCES.
10444
10445 2011-05-23  Bruno Haible  <bruno@clisp.org>
10446
10447         unlinkdir: Move AC_LIBOBJ invocations to module description.
10448         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
10449         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
10450
10451 2011-05-23  Bruno Haible  <bruno@clisp.org>
10452
10453         unistd-safer: Move AC_LIBOBJ invocations to module description.
10454         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
10455         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
10456
10457 2011-05-23  Bruno Haible  <bruno@clisp.org>
10458
10459         tempname: Move AC_LIBOBJ invocations to module description.
10460         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
10461         * modules/tempname (Makefile.am): Augment lib_SOURCES.
10462
10463 2011-05-23  Bruno Haible  <bruno@clisp.org>
10464
10465         strftime: Move AC_LIBOBJ invocations to module description.
10466         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
10467         * modules/strftime (Makefile.am): Augment lib_SOURCES.
10468
10469 2011-05-23  Bruno Haible  <bruno@clisp.org>
10470
10471         stdlib-safer: Move AC_LIBOBJ invocations to module description.
10472         * m4/stdlib-safer.m4: Remove file.
10473         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
10474         (configure.ac): Remove gl_STDLIB_SAFER call.
10475         (Makefile.am): Augment lib_SOURCES.
10476
10477 2011-05-23  Bruno Haible  <bruno@clisp.org>
10478
10479         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
10480         * m4/stdio-safer.m4: Remove file.
10481         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
10482         (configure.ac): Remove gl_TMPFILE_SAFER call.
10483         (Makefile.am): Augment lib_SOURCES.
10484
10485 2011-05-23  Bruno Haible  <bruno@clisp.org>
10486
10487         popen-safer: Move AC_LIBOBJ invocations to module description.
10488         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
10489         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
10490         (configure.ac): Remove gl_POPEN_SAFER call.
10491         (Makefile.am): Augment lib_SOURCES.
10492
10493 2011-05-23  Bruno Haible  <bruno@clisp.org>
10494
10495         freopen-safer: Move AC_LIBOBJ invocations to module description.
10496         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
10497         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
10498         (configure.ac): Remove gl_FREOPEN_SAFER call.
10499         (Makefile.am): Augment lib_SOURCES.
10500
10501 2011-05-23  Bruno Haible  <bruno@clisp.org>
10502
10503         fopen-safer: Move AC_LIBOBJ invocations to module description.
10504         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
10505         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
10506         (configure.ac): Remove gl_FOPEN_SAFER call.
10507         (Makefile.am): Augment lib_SOURCES.
10508
10509 2011-05-23  Bruno Haible  <bruno@clisp.org>
10510
10511         crypto/sha512: Move AC_LIBOBJ invocations to module description.
10512         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
10513         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
10514
10515 2011-05-23  Bruno Haible  <bruno@clisp.org>
10516
10517         crypto/sha256: Move AC_LIBOBJ invocations to module description.
10518         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
10519         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
10520
10521 2011-05-23  Bruno Haible  <bruno@clisp.org>
10522
10523         crypto/sha1: Move AC_LIBOBJ invocations to module description.
10524         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
10525         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
10526
10527 2011-05-23  Bruno Haible  <bruno@clisp.org>
10528
10529         settime: Move AC_LIBOBJ invocations to module description.
10530         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
10531         * modules/settime (Makefile.am): Augment lib_SOURCES.
10532
10533 2011-05-23  Bruno Haible  <bruno@clisp.org>
10534
10535         savedir: Move AC_LIBOBJ invocations to module description.
10536         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
10537         * modules/savedir (Makefile.am): Augment lib_SOURCES.
10538
10539 2011-05-23  Bruno Haible  <bruno@clisp.org>
10540
10541         save-cwd: Move AC_LIBOBJ invocations to module description.
10542         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
10543         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
10544
10545 2011-05-23  Bruno Haible  <bruno@clisp.org>
10546
10547         same: Move AC_LIBOBJ invocations to module description.
10548         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
10549         * modules/same (Makefile.am): Augment lib_SOURCES.
10550
10551 2011-05-23  Bruno Haible  <bruno@clisp.org>
10552
10553         safe-write: Move AC_LIBOBJ invocations to module description.
10554         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
10555         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
10556         instead of gl_SAFE_WRITE.
10557         (Makefile.am): Augment lib_SOURCES.
10558
10559 2011-05-23  Bruno Haible  <bruno@clisp.org>
10560
10561         safe-read: Move AC_LIBOBJ invocations to module description.
10562         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
10563         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
10564         of gl_SAFE_READ.
10565         (Makefile.am): Augment lib_SOURCES.
10566
10567 2011-05-23  Bruno Haible  <bruno@clisp.org>
10568
10569         safe-alloc: Move AC_LIBOBJ invocations to module description.
10570         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
10571         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
10572
10573 2011-05-23  Bruno Haible  <bruno@clisp.org>
10574
10575         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
10576         * m4/rijndael.m4: Remove file.
10577         * modules/crypto/rijndael (Files): Remove it.
10578         (configure.ac): Remove gl_RIJNDAEL call.
10579         (Makefile.am): Augment lib_SOURCES.
10580
10581 2011-05-23  Bruno Haible  <bruno@clisp.org>
10582
10583         readtokens: Move AC_LIBOBJ invocations to module description.
10584         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
10585         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
10586
10587 2011-05-23  Bruno Haible  <bruno@clisp.org>
10588
10589         read-file: Move AC_LIBOBJ invocations to module description.
10590         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
10591         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
10592         of gl_FUNC_READ_FILE.
10593         (Makefile.am): Augment lib_SOURCES.
10594
10595 2011-05-23  Bruno Haible  <bruno@clisp.org>
10596
10597         quotearg: Move AC_LIBOBJ invocations to module description.
10598         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
10599         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
10600
10601 2011-05-23  Bruno Haible  <bruno@clisp.org>
10602
10603         quote: Move AC_LIBOBJ invocations to module description.
10604         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
10605         * modules/quote (Makefile.am): Augment lib_SOURCES.
10606
10607 2011-05-23  Bruno Haible  <bruno@clisp.org>
10608
10609         posixver: Move AC_LIBOBJ invocations to module description.
10610         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
10611         * modules/posixver (Makefile.am): Augment lib_SOURCES.
10612
10613 2011-05-23  Bruno Haible  <bruno@clisp.org>
10614
10615         posixtm: Move AC_LIBOBJ invocations to module description.
10616         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
10617         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
10618
10619 2011-05-23  Bruno Haible  <bruno@clisp.org>
10620
10621         physmem: Move AC_LIBOBJ invocations to module description.
10622         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
10623         * modules/physmem (Makefile.am): Augment lib_SOURCES.
10624
10625 2011-05-23  Bruno Haible  <bruno@clisp.org>
10626
10627         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
10628         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
10629         invocation.
10630         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
10631
10632 2011-05-23  Bruno Haible  <bruno@clisp.org>
10633
10634         mpsort: Move AC_LIBOBJ invocations to module description.
10635         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
10636         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
10637
10638 2011-05-23  Bruno Haible  <bruno@clisp.org>
10639
10640         modechange: Move AC_LIBOBJ invocations to module description.
10641         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
10642         * modules/modechange (Makefile.am): Augment lib_SOURCES.
10643
10644 2011-05-23  Bruno Haible  <bruno@clisp.org>
10645
10646         mkdir-p: Move AC_LIBOBJ invocations to module description.
10647         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
10648         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
10649
10650 2011-05-23  Bruno Haible  <bruno@clisp.org>
10651
10652         mkancesdirs: Move AC_LIBOBJ invocations to module description.
10653         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
10654         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
10655
10656 2011-05-23  Bruno Haible  <bruno@clisp.org>
10657
10658         mgetgroups: Move AC_LIBOBJ invocations to module description.
10659         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
10660         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
10661
10662 2011-05-23  Bruno Haible  <bruno@clisp.org>
10663
10664         memxor: Move AC_LIBOBJ invocations to module description.
10665         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
10666         * modules/memxor (Makefile.am): Augment lib_SOURCES.
10667
10668 2011-05-23  Bruno Haible  <bruno@clisp.org>
10669
10670         memcoll: Move AC_LIBOBJ invocations to module description.
10671         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
10672         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
10673
10674 2011-05-23  Bruno Haible  <bruno@clisp.org>
10675
10676         memcasecmp: Move AC_LIBOBJ invocations to module description.
10677         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
10678         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
10679
10680 2011-05-23  Bruno Haible  <bruno@clisp.org>
10681
10682         crypto/md5: Move AC_LIBOBJ invocations to module description.
10683         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
10684         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
10685
10686 2011-05-23  Bruno Haible  <bruno@clisp.org>
10687
10688         crypto/md4: Move AC_LIBOBJ invocations to module description.
10689         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
10690         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
10691
10692 2011-05-23  Bruno Haible  <bruno@clisp.org>
10693
10694         crypto/md2: Move AC_LIBOBJ invocations to module description.
10695         * m4/md2.m4: Remove file.
10696         * modules/crypto/md2 (Files): Remove it.
10697         (configure.ac): Remove gl_MD2 call.
10698         (Makefile.am): Augment lib_SOURCES.
10699
10700 2011-05-23  Bruno Haible  <bruno@clisp.org>
10701
10702         long-options: Move AC_LIBOBJ invocations to module description.
10703         * m4/long-options.m4: Remove file.
10704         * modules/long-options (Files): Remove it.
10705         (configure.ac): Remove gl_LONG_OPTIONS call.
10706         (Makefile.am): Augment lib_SOURCES.
10707
10708 2011-05-23  Bruno Haible  <bruno@clisp.org>
10709
10710         i-ring: Move AC_LIBOBJ invocations to module description.
10711         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
10712         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
10713
10714 2011-05-23  Bruno Haible  <bruno@clisp.org>
10715
10716         idcache: Move AC_LIBOBJ invocations to module description.
10717         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
10718         * modules/idcache (Makefile.am): Augment lib_SOURCES.
10719
10720 2011-05-23  Bruno Haible  <bruno@clisp.org>
10721
10722         human: Move AC_LIBOBJ invocations to module description.
10723         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
10724         * modules/human (Makefile.am): Augment lib_SOURCES.
10725
10726 2011-05-23  Bruno Haible  <bruno@clisp.org>
10727
10728         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
10729         * m4/hmac-sha1.m4: Remove file.
10730         * modules/crypto/hmac-sha1 (Files): Remove it.
10731         (configure.ac): Remove gl_HMAC_SHA1 call.
10732         (Makefile.am): Augment lib_SOURCES.
10733
10734 2011-05-23  Bruno Haible  <bruno@clisp.org>
10735
10736         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
10737         * m4/hmac-md5.m4: Remove file.
10738         * modules/crypto/hmac-md5 (Files): Remove it.
10739         (configure.ac): Remove gl_HMAC_MD5 call.
10740         (Makefile.am): Augment lib_SOURCES.
10741
10742 2011-05-23  Bruno Haible  <bruno@clisp.org>
10743
10744         hash: Move AC_LIBOBJ invocations to module description.
10745         * m4/hash.m4: Remove file.
10746         * modules/hash (Files): Remove it.
10747         (configure.ac): Remove gl_HASH call.
10748         (Makefile.am): Augment lib_SOURCES.
10749
10750 2011-05-23  Bruno Haible  <bruno@clisp.org>
10751
10752         hard-locale: Move AC_LIBOBJ invocations to module description.
10753         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
10754         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
10755
10756 2011-05-23  Bruno Haible  <bruno@clisp.org>
10757
10758         getugroups: Move AC_LIBOBJ invocations to module description.
10759         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
10760         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
10761
10762 2011-05-23  Bruno Haible  <bruno@clisp.org>
10763
10764         gettime: Move AC_LIBOBJ invocations to module description.
10765         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
10766         * modules/gettime (Makefile.am): Augment lib_SOURCES.
10767
10768 2011-05-23  Bruno Haible  <bruno@clisp.org>
10769
10770         getndelim2: Move AC_LIBOBJ invocations to module description.
10771         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
10772         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
10773
10774 2011-05-23  Bruno Haible  <bruno@clisp.org>
10775
10776         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
10777         * m4/gc-pbkdf2-sha1.m4: Remove file.
10778         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
10779         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
10780         (Makefile.am): Augment lib_SOURCES.
10781
10782 2011-05-23  Bruno Haible  <bruno@clisp.org>
10783
10784         fts: Move AC_LIBOBJ invocations to module description.
10785         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
10786         * modules/fts (configure.ac): ... to here.
10787
10788 2011-05-23  Bruno Haible  <bruno@clisp.org>
10789
10790         file-type: Move AC_LIBOBJ invocations to module description.
10791         * m4/file-type.m4: Remove file.
10792         * modules/file-type (Files): Remove it.
10793         (configure.ac): Remove gl_FILE_TYPE call.
10794         (Makefile.am): Augment lib_SOURCES.
10795
10796 2011-05-23  Bruno Haible  <bruno@clisp.org>
10797
10798         filenamecat*: Respect rules for use of AC_LIBOBJ.
10799         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
10800         Remove AC_LIBOBJ invocation.
10801         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
10802         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
10803
10804 2011-05-23  Bruno Haible  <bruno@clisp.org>
10805
10806         filemode: Move AC_LIBOBJ invocations to module description.
10807         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
10808         * modules/filemode (Makefile.am): Augment lib_SOURCES.
10809
10810 2011-05-23  Bruno Haible  <bruno@clisp.org>
10811
10812         openat-safer: Move AC_LIBOBJ invocations to module description.
10813         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
10814         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
10815
10816 2011-05-23  Bruno Haible  <bruno@clisp.org>
10817
10818         fcntl-safer: Move AC_LIBOBJ invocations to module description.
10819         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
10820         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
10821
10822 2011-05-23  Bruno Haible  <bruno@clisp.org>
10823
10824         exclude: Move AC_LIBOBJ invocations to module description.
10825         * m4/exclude.m4: Remove file.
10826         * modules/exclude (Files): Remove it.
10827         (configure.ac): Remove gl_EXCLUDE call.
10828         (Makefile.am): Augment lib_SOURCES.
10829
10830 2011-05-23  Bruno Haible  <bruno@clisp.org>
10831
10832         dirname*: Respect rules for use of AC_LIBOBJ.
10833         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
10834         invocations.
10835         * modules/dirname (Makefile.am): Augment lib_SOURCES.
10836         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
10837
10838 2011-05-23  Bruno Haible  <bruno@clisp.org>
10839
10840         dirent-safer: Move AC_LIBOBJ invocations to module description.
10841         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
10842         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
10843
10844 2011-05-23  Bruno Haible  <bruno@clisp.org>
10845
10846         crypto/des: Move AC_LIBOBJ invocations to module description.
10847         * m4/des.m4: Remove file.
10848         * modules/crypto/des (Files): Remove it.
10849         (configure.ac): Remove gl_DES call.
10850         (Makefile.am): Augment lib_SOURCES.
10851
10852 2011-05-23  Bruno Haible  <bruno@clisp.org>
10853
10854         cycle-check: Move AC_LIBOBJ invocations to module description.
10855         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
10856         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
10857
10858 2011-05-23  Bruno Haible  <bruno@clisp.org>
10859
10860         c-strtold: Move AC_LIBOBJ invocations to module description.
10861         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
10862         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
10863
10864 2011-05-23  Bruno Haible  <bruno@clisp.org>
10865
10866         c-strtod: Move AC_LIBOBJ invocations to module description.
10867         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
10868         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
10869
10870 2011-05-23  Bruno Haible  <bruno@clisp.org>
10871
10872         crc: Move AC_LIBOBJ invocations to module description.
10873         * m4/crc.m4: Remove file.
10874         * modules/crc (Files): Remove it.
10875         (configure.ac): Remove gl_CRC call.
10876         (Makefile.am): Augment lib_SOURCES.
10877
10878 2011-05-23  Bruno Haible  <bruno@clisp.org>
10879
10880         close-stream: Move AC_LIBOBJ invocations to module description.
10881         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
10882         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
10883
10884 2011-05-23  Bruno Haible  <bruno@clisp.org>
10885
10886         closeout: Move AC_LIBOBJ invocations to module description.
10887         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
10888         * modules/closeout (Makefile.am): Augment lib_SOURCES.
10889
10890 2011-05-23  Bruno Haible  <bruno@clisp.org>
10891
10892         closein: Move AC_LIBOBJ invocations to module description.
10893         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
10894         * modules/closein (Makefile.am): Augment lib_SOURCES.
10895
10896 2011-05-23  Bruno Haible  <bruno@clisp.org>
10897
10898         cloexec: Move AC_LIBOBJ invocations to module description.
10899         * m4/cloexec.m4: Remove file.
10900         * modules/cloexec (Files): Remove it.
10901         (configure.ac): Remove gl_CLOEXEC call.
10902         (Makefile.am): Augment lib_SOURCES.
10903
10904 2011-05-23  Bruno Haible  <bruno@clisp.org>
10905
10906         check-version: Move AC_LIBOBJ invocations to module description.
10907         * m4/check-version.m4: Remove file.
10908         * modules/check-version (Files): Remove it.
10909         (configure.ac): Remove gl_CHECK_VERSION call.
10910         (Makefile.am): Augment lib_SOURCES.
10911
10912 2011-05-23  Bruno Haible  <bruno@clisp.org>
10913
10914         chdir-safer: Move AC_LIBOBJ invocations to module description.
10915         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
10916         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
10917
10918 2011-05-23  Bruno Haible  <bruno@clisp.org>
10919
10920         canonicalize: Move AC_LIBOBJ invocations to module description.
10921         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
10922         AC_LIBOBJ invocation.
10923         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
10924
10925 2011-05-23  Bruno Haible  <bruno@clisp.org>
10926
10927         canon-host: Move AC_LIBOBJ invocations to module description.
10928         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
10929         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
10930         instead of gl_CANON_HOST.
10931         (Makefile.am): Augment lib_SOURCES.
10932
10933 2011-05-23  Bruno Haible  <bruno@clisp.org>
10934
10935         backupfile: Move AC_LIBOBJ invocations to module description.
10936         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
10937         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
10938
10939 2011-05-23  Bruno Haible  <bruno@clisp.org>
10940
10941         argmatch: Move AC_LIBOBJ invocations to module description.
10942         * m4/argmatch.m4: Remove file.
10943         * modules/argmatch (Files): Remove it.
10944         (configure.ac): Remove gl_ARGMATCH call.
10945         (Makefile.am): Augment lib_SOURCES.
10946
10947 2011-05-23  Bruno Haible  <bruno@clisp.org>
10948
10949         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
10950         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
10951         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
10952
10953 2011-05-23  Bruno Haible  <bruno@clisp.org>
10954
10955         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
10956         * m4/arcfour.m4: Remove file.
10957         * modules/crypto/arcfour (Files): Remove it.
10958         (configure.ac): Remove gl_ARCFOUR call.
10959         (Makefile.am): Augment lib_SOURCES.
10960
10961 2011-05-22  Bruno Haible  <bruno@clisp.org>
10962
10963         write: Move AC_LIBOBJ invocations to module description.
10964         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
10965         * modules/write (configure.ac): ... to here.
10966
10967 2011-05-22  Bruno Haible  <bruno@clisp.org>
10968
10969         wmemset: Move AC_LIBOBJ invocations to module description.
10970         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
10971         here...
10972         * modules/wmemset (configure.ac): ... to here.
10973
10974 2011-05-22  Bruno Haible  <bruno@clisp.org>
10975
10976         wmemmove: Move AC_LIBOBJ invocations to module description.
10977         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
10978         here...
10979         * modules/wmemmove (configure.ac): ... to here.
10980
10981 2011-05-22  Bruno Haible  <bruno@clisp.org>
10982
10983         wmemcpy: Move AC_LIBOBJ invocations to module description.
10984         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
10985         here...
10986         * modules/wmemcpy (configure.ac): ... to here.
10987
10988 2011-05-22  Bruno Haible  <bruno@clisp.org>
10989
10990         wmemcmp: Move AC_LIBOBJ invocations to module description.
10991         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
10992         here...
10993         * modules/wmemcmp (configure.ac): ... to here.
10994
10995 2011-05-22  Bruno Haible  <bruno@clisp.org>
10996
10997         wmemchr: Move AC_LIBOBJ invocations to module description.
10998         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
10999         here...
11000         * modules/wmemchr (configure.ac): ... to here.
11001
11002 2011-05-22  Bruno Haible  <bruno@clisp.org>
11003
11004         wcswidth: Move AC_LIBOBJ invocations to module description.
11005         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
11006         here...
11007         * modules/wcswidth (configure.ac): ... to here.
11008
11009 2011-05-22  Bruno Haible  <bruno@clisp.org>
11010
11011         wcwidth: Respect rules for use of AC_LIBOBJ.
11012         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
11013         invocation from here...
11014         * modules/wcwidth (configure.ac): ... to here.
11015         (Depends-on): Update conditions.
11016
11017 2011-05-22  Bruno Haible  <bruno@clisp.org>
11018
11019         wctype: Move AC_LIBOBJ invocations to module description.
11020         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
11021         invocation from here...
11022         * modules/wctype (configure.ac): ... to here.
11023         (Depends-on): Update conditions.
11024
11025 2011-05-22  Bruno Haible  <bruno@clisp.org>
11026
11027         wctrans: Move AC_LIBOBJ invocations to module description.
11028         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
11029         invocation from here...
11030         * modules/wctrans (configure.ac): ... to here.
11031
11032 2011-05-22  Bruno Haible  <bruno@clisp.org>
11033
11034         wctomb: Move AC_LIBOBJ invocations to module description.
11035         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
11036         invocations from here...
11037         * modules/wctomb (configure.ac): ... to here.
11038
11039 2011-05-22  Bruno Haible  <bruno@clisp.org>
11040
11041         wctob: Move AC_LIBOBJ invocations to module description.
11042         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
11043         gl_PREREQ_WCTOB invocations from here...
11044         * modules/wctob (configure.ac): ... to here.
11045         (Depends-on): Update conditions.
11046
11047 2011-05-22  Bruno Haible  <bruno@clisp.org>
11048
11049         wcsxfrm: Move AC_LIBOBJ invocations to module description.
11050         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
11051         here...
11052         * modules/wcsxfrm (configure.ac): ... to here.
11053
11054 2011-05-22  Bruno Haible  <bruno@clisp.org>
11055
11056         wcstok: Move AC_LIBOBJ invocations to module description.
11057         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
11058         * modules/wcstok (configure.ac): ... to here.
11059
11060 2011-05-22  Bruno Haible  <bruno@clisp.org>
11061
11062         wcsstr: Move AC_LIBOBJ invocations to module description.
11063         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
11064         * modules/wcsstr (configure.ac): ... to here.
11065
11066 2011-05-22  Bruno Haible  <bruno@clisp.org>
11067
11068         wcsspn: Move AC_LIBOBJ invocations to module description.
11069         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
11070         * modules/wcsspn (configure.ac): ... to here.
11071
11072 2011-05-22  Bruno Haible  <bruno@clisp.org>
11073
11074         wcsrtombs: Move AC_LIBOBJ invocations to module description.
11075         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
11076         gl_PREREQ_WCSRTOMBS invocations from here...
11077         * modules/wcsrtombs (configure.ac): ... to here.
11078
11079 2011-05-22  Bruno Haible  <bruno@clisp.org>
11080
11081         wcsrchr: Move AC_LIBOBJ invocations to module description.
11082         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
11083         here...
11084         * modules/wcsrchr (configure.ac): ... to here.
11085
11086 2011-05-22  Bruno Haible  <bruno@clisp.org>
11087
11088         wcspbrk: Move AC_LIBOBJ invocations to module description.
11089         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
11090         here...
11091         * modules/wcspbrk (configure.ac): ... to here.
11092
11093 2011-05-22  Bruno Haible  <bruno@clisp.org>
11094
11095         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
11096         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
11097         gl_PREREQ_WCSNRTOMBS invocations from here...
11098         * modules/wcsnrtombs (configure.ac): ... to here.
11099
11100 2011-05-22  Bruno Haible  <bruno@clisp.org>
11101
11102         wcsnlen: Move AC_LIBOBJ invocations to module description.
11103         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
11104         here...
11105         * modules/wcsnlen (configure.ac): ... to here.
11106
11107 2011-05-22  Bruno Haible  <bruno@clisp.org>
11108
11109         wcsncpy: Move AC_LIBOBJ invocations to module description.
11110         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
11111         here...
11112         * modules/wcsncpy (configure.ac): ... to here.
11113
11114 2011-05-22  Bruno Haible  <bruno@clisp.org>
11115
11116         wcsncmp: Move AC_LIBOBJ invocations to module description.
11117         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
11118         here...
11119         * modules/wcsncmp (configure.ac): ... to here.
11120
11121 2011-05-22  Bruno Haible  <bruno@clisp.org>
11122
11123         wcsncat: Move AC_LIBOBJ invocations to module description.
11124         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
11125         here...
11126         * modules/wcsncat (configure.ac): ... to here.
11127
11128 2011-05-22  Bruno Haible  <bruno@clisp.org>
11129
11130         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
11131         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
11132         from here...
11133         * modules/wcsncasecmp (configure.ac): ... to here.
11134
11135 2011-05-22  Bruno Haible  <bruno@clisp.org>
11136
11137         wcslen: Move AC_LIBOBJ invocations to module description.
11138         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
11139         * modules/wcslen (configure.ac): ... to here.
11140
11141 2011-05-22  Bruno Haible  <bruno@clisp.org>
11142
11143         wcsdup: Move AC_LIBOBJ invocations to module description.
11144         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
11145         * modules/wcsdup (configure.ac): ... to here.
11146
11147 2011-05-22  Bruno Haible  <bruno@clisp.org>
11148
11149         wcscspn: Move AC_LIBOBJ invocations to module description.
11150         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
11151         here...
11152         * modules/wcscspn (configure.ac): ... to here.
11153
11154 2011-05-22  Bruno Haible  <bruno@clisp.org>
11155
11156         wcscpy: Move AC_LIBOBJ invocations to module description.
11157         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
11158         * modules/wcscpy (configure.ac): ... to here.
11159
11160 2011-05-22  Bruno Haible  <bruno@clisp.org>
11161
11162         wcscoll: Move AC_LIBOBJ invocations to module description.
11163         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
11164         here...
11165         * modules/wcscoll (configure.ac): ... to here.
11166
11167 2011-05-22  Bruno Haible  <bruno@clisp.org>
11168
11169         wcscmp: Move AC_LIBOBJ invocations to module description.
11170         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
11171         * modules/wcscmp (configure.ac): ... to here.
11172
11173 2011-05-22  Bruno Haible  <bruno@clisp.org>
11174
11175         wcschr: Move AC_LIBOBJ invocations to module description.
11176         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
11177         * modules/wcschr (configure.ac): ... to here.
11178
11179 2011-05-22  Bruno Haible  <bruno@clisp.org>
11180
11181         wcscat: Move AC_LIBOBJ invocations to module description.
11182         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
11183         * modules/wcscat (configure.ac): ... to here.
11184
11185 2011-05-22  Bruno Haible  <bruno@clisp.org>
11186
11187         wcscasecmp: Move AC_LIBOBJ invocations to module description.
11188         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
11189         here...
11190         * modules/wcscasecmp (configure.ac): ... to here.
11191
11192 2011-05-22  Bruno Haible  <bruno@clisp.org>
11193
11194         wcrtomb: Move AC_LIBOBJ invocations to module description.
11195         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
11196         invocations from here...
11197         * modules/wcrtomb (configure.ac): ... to here.
11198
11199 2011-05-22  Bruno Haible  <bruno@clisp.org>
11200
11201         wcpncpy: Move AC_LIBOBJ invocations to module description.
11202         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
11203         here...
11204         * modules/wcpncpy (configure.ac): ... to here.
11205
11206 2011-05-22  Bruno Haible  <bruno@clisp.org>
11207
11208         wcpcpy: Move AC_LIBOBJ invocations to module description.
11209         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
11210         * modules/wcpcpy (configure.ac): ... to here.
11211
11212 2011-05-22  Bruno Haible  <bruno@clisp.org>
11213
11214         waitpid: Move AC_LIBOBJ invocations to module description.
11215         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
11216         invocation from here...
11217         * modules/waitpid (configure.ac): ... to here.
11218
11219 2011-05-22  Bruno Haible  <bruno@clisp.org>
11220
11221         utimensat: Move AC_LIBOBJ invocations to module description.
11222         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
11223         here...
11224         * modules/utimensat (configure.ac): ... to here.
11225
11226 2011-05-22  Bruno Haible  <bruno@clisp.org>
11227
11228         usleep: Move AC_LIBOBJ invocations to module description.
11229         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
11230         here...
11231         * modules/usleep (configure.ac): ... to here.
11232
11233 2011-05-22  Bruno Haible  <bruno@clisp.org>
11234
11235         unlockpt: Move AC_LIBOBJ invocations to module description.
11236         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
11237         gl_PREREQ_UNLOCKPT invocations from here...
11238         * modules/unlockpt (configure.ac): ... to here.
11239
11240 2011-05-22  Bruno Haible  <bruno@clisp.org>
11241
11242         unlink: Respect rules for use of AC_LIBOBJ.
11243         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
11244         * modules/unlink (configure.ac): ... to here.
11245
11246 2011-05-22  Bruno Haible  <bruno@clisp.org>
11247
11248         uname: Move AC_LIBOBJ invocations to module description.
11249         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
11250         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
11251         here...
11252         * modules/uname (configure.ac): ... to here.
11253
11254 2011-05-22  Bruno Haible  <bruno@clisp.org>
11255
11256         ttyname_r: Move AC_LIBOBJ invocations to module description.
11257         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
11258         gl_PREREQ_TTYNAME_R invocations from here...
11259         * modules/ttyname_r (configure.ac): ... to here.
11260
11261 2011-05-22  Bruno Haible  <bruno@clisp.org>
11262
11263         tsearch: Move AC_LIBOBJ invocations to module description.
11264         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
11265         invocations from here...
11266         * modules/tsearch (configure.ac): ... to here.
11267
11268 2011-05-22  Bruno Haible  <bruno@clisp.org>
11269
11270         towctrans: Move AC_LIBOBJ invocations to module description.
11271         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
11272         AC_LIBOBJ invocation from here...
11273         * modules/towctrans (configure.ac): ... to here.
11274
11275 2011-05-22  Bruno Haible  <bruno@clisp.org>
11276
11277         tmpfile: Move AC_LIBOBJ invocations to module description.
11278         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
11279         invocations from here...
11280         * modules/tmpfile (configure.ac): ... to here.
11281
11282 2011-05-22  Bruno Haible  <bruno@clisp.org>
11283
11284         times: Move AC_LIBOBJ invocations to module description.
11285         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
11286         * modules/times (configure.ac): ... to here.
11287
11288 2011-05-22  Bruno Haible  <bruno@clisp.org>
11289
11290         time_r: Move AC_LIBOBJ invocations to module description.
11291         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
11292         invocations from here...
11293         * modules/time_r (configure.ac): ... to here.
11294
11295 2011-05-22  Bruno Haible  <bruno@clisp.org>
11296
11297         timegm: Move AC_LIBOBJ invocations to module description.
11298         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
11299         invocations from here...
11300         * modules/timegm (configure.ac): ... to here.
11301
11302 2011-05-22  Bruno Haible  <bruno@clisp.org>
11303
11304         tcgetsid: Move AC_LIBOBJ invocations to module description.
11305         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
11306         and gl_PREREQ_TCGETSID invocations from here...
11307         * modules/tcgetsid (configure.ac): ... to here.
11308         (Depends-on): Update conditions.
11309
11310 2011-05-22  Bruno Haible  <bruno@clisp.org>
11311
11312         symlinkat: Move AC_LIBOBJ invocations to module description.
11313         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
11314         here...
11315         * modules/symlinkat (configure.ac): ... to here.
11316
11317 2011-05-22  Bruno Haible  <bruno@clisp.org>
11318
11319         symlink: Move AC_LIBOBJ invocations to module description.
11320         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
11321         here...
11322         * modules/symlink (configure.ac): ... to here.
11323
11324 2011-05-22  Bruno Haible  <bruno@clisp.org>
11325
11326         strverscmp: Move AC_LIBOBJ invocations to module description.
11327         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
11328         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
11329         from here...
11330         * modules/strverscmp (configure.ac): ... to here.
11331
11332 2011-05-22  Bruno Haible  <bruno@clisp.org>
11333
11334         strtok_r: Move AC_LIBOBJ invocations to module description.
11335         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
11336         and gl_PREREQ_STRTOK_R invocations from here...
11337         * modules/strtok_r (configure.ac): ... to here.
11338         (Depends-on): Update conditions.
11339
11340 2011-05-22  Bruno Haible  <bruno@clisp.org>
11341
11342         strtoumax: Move AC_LIBOBJ invocations to module description.
11343         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
11344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
11345         from here...
11346         * modules/strtoumax (configure.ac): ... to here.
11347
11348 2011-05-22  Bruno Haible  <bruno@clisp.org>
11349
11350         strtoimax: Move AC_LIBOBJ invocations to module description.
11351         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
11352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
11353         from here...
11354         * modules/strtoimax (configure.ac): ... to here.
11355
11356 2011-05-22  Bruno Haible  <bruno@clisp.org>
11357
11358         strtoull: Move AC_LIBOBJ invocations to module description.
11359         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
11360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
11361         from here...
11362         * modules/strtoull (configure.ac): ... to here.
11363
11364 2011-05-22  Bruno Haible  <bruno@clisp.org>
11365
11366         strtoll: Move AC_LIBOBJ invocations to module description.
11367         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
11368         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
11369         here...
11370         * modules/strtoll (configure.ac): ... to here.
11371
11372 2011-05-22  Bruno Haible  <bruno@clisp.org>
11373
11374         strtoul: Move AC_LIBOBJ invocations to module description.
11375         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
11376         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
11377         * modules/strtoul (configure.ac): ... to here.
11378
11379 2011-05-22  Bruno Haible  <bruno@clisp.org>
11380
11381         strtol: Move AC_LIBOBJ invocations to module description.
11382         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
11383         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
11384         * modules/strtol (configure.ac): ... to here.
11385
11386 2011-05-22  Bruno Haible  <bruno@clisp.org>
11387
11388         strtod: Move AC_LIBOBJ invocations to module description.
11389         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
11390         invocations from here...
11391         * modules/strtod (configure.ac): ... to here.
11392
11393 2011-05-22  Bruno Haible  <bruno@clisp.org>
11394
11395         strstr*: Move AC_LIBOBJ invocations to module description.
11396         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
11397         invocations from here...
11398         * modules/strstr-simple (configure.ac): ... to here.
11399         * modules/strstr (configure.ac): ... and here.
11400
11401 2011-05-22  Bruno Haible  <bruno@clisp.org>
11402
11403         strsignal: Move AC_LIBOBJ invocations to module description.
11404         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
11405         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
11406         * modules/strsignal (configure.ac): ... to here.
11407         (Depends-on): Update conditions.
11408
11409 2011-05-22  Bruno Haible  <bruno@clisp.org>
11410
11411         strsep: Move AC_LIBOBJ invocations to module description.
11412         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
11413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
11414         here...
11415         * modules/strsep (configure.ac): ... to here.
11416
11417 2011-05-22  Bruno Haible  <bruno@clisp.org>
11418
11419         strptime: Move AC_LIBOBJ invocations to module description.
11420         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
11421         gl_PREREQ_STRPTIME invocations from here...
11422         * modules/strptime (configure.ac): ... to here.
11423
11424 2011-05-22  Bruno Haible  <bruno@clisp.org>
11425
11426         strpbrk: Move AC_LIBOBJ invocations to module description.
11427         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
11428         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
11429         here...
11430         * modules/strpbrk (configure.ac): ... to here.
11431
11432 2011-05-22  Bruno Haible  <bruno@clisp.org>
11433
11434         strnlen: Move AC_LIBOBJ invocations to module description.
11435         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
11436         invocations from here...
11437         * modules/strnlen (configure.ac): ... to here.
11438
11439 2011-05-22  Bruno Haible  <bruno@clisp.org>
11440
11441         strndup: Move AC_LIBOBJ invocations to module description.
11442         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
11443         invocations from here...
11444         * modules/strndup (configure.ac): ... to here.
11445         (Depends-on): Update conditions.
11446
11447 2011-05-22  Bruno Haible  <bruno@clisp.org>
11448
11449         strncat: Move AC_LIBOBJ invocations to module description.
11450         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
11451         invocations from here...
11452         * modules/strncat (configure.ac): ... to here.
11453
11454 2011-05-22  Bruno Haible  <bruno@clisp.org>
11455
11456         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
11457         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
11458         invocations from here...
11459         * modules/strdup (configure.ac): ... to here.
11460         * modules/strdup-posix (configure.ac): ... and here.
11461
11462 2011-05-22  Bruno Haible  <bruno@clisp.org>
11463
11464         strcspn: Move AC_LIBOBJ invocations to module description.
11465         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
11466         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
11467         here...
11468         * modules/strcspn (configure.ac): ... to here.
11469
11470 2011-05-22  Bruno Haible  <bruno@clisp.org>
11471
11472         strchrnul: Move AC_LIBOBJ invocations to module description.
11473         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
11474         gl_PREREQ_STRCHRNUL invocations from here...
11475         * modules/strchrnul (configure.ac): ... to here.
11476
11477 2011-05-22  Bruno Haible  <bruno@clisp.org>
11478
11479         strcasestr*: Move AC_LIBOBJ invocations to module description.
11480         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11481         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
11482         * modules/strcasestr-simple (configure.ac): ... to here.
11483         * modules/strcasestr (configure.ac): ... and here.
11484
11485 2011-05-22  Bruno Haible  <bruno@clisp.org>
11486
11487         strcase: Move AC_LIBOBJ invocations to module description.
11488         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
11489         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
11490         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
11491         gl_PREREQ_STRNCASECMP invocations from here...
11492         * modules/strcase (configure.ac): ... to here.
11493
11494 2011-05-22  Bruno Haible  <bruno@clisp.org>
11495
11496         stpncpy: Move AC_LIBOBJ invocations to module description.
11497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
11498         here...
11499         * modules/stpncpy (configure.ac): ... to here.
11500
11501 2011-05-22  Bruno Haible  <bruno@clisp.org>
11502
11503         stpcpy: Move AC_LIBOBJ invocations to module description.
11504         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
11505         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
11506         here...
11507         * modules/stpcpy (configure.ac): ... to here.
11508
11509 2011-05-21  Bruno Haible  <bruno@clisp.org>
11510
11511         stat: Move AC_LIBOBJ invocations to module description.
11512         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
11513         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
11514         here...
11515         * modules/stat (configure.ac): ... to here.
11516
11517 2011-05-21  Bruno Haible  <bruno@clisp.org>
11518
11519         sleep: Move AC_LIBOBJ invocations to module description.
11520         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
11521         * modules/sleep (configure.ac): ... to here.
11522
11523 2011-05-21  Bruno Haible  <bruno@clisp.org>
11524
11525         signbit: Move AC_LIBOBJ invocations to module description.
11526         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
11527         * modules/signbit (configure.ac): ... to here.
11528
11529 2011-05-21  Bruno Haible  <bruno@clisp.org>
11530
11531         sigprocmask: Move AC_LIBOBJ invocations to module description.
11532         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
11533         gl_PREREQ_SIGPROMASK invocations from here...
11534         * modules/sigprocmask (configure.ac): ... to here.
11535
11536 2011-05-21  Bruno Haible  <bruno@clisp.org>
11537
11538         sigaction: Move AC_LIBOBJ invocations to module description.
11539         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
11540         gl_PREREQ_SIGACTION invocations from here...
11541         * modules/sigaction (configure.ac): ... to here.
11542
11543 2011-05-21  Bruno Haible  <bruno@clisp.org>
11544
11545         sig2str: Move AC_LIBOBJ invocations to module description.
11546         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
11547         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
11548         here...
11549         * modules/sig2str (configure.ac): ... to here.
11550
11551 2011-05-21  Bruno Haible  <bruno@clisp.org>
11552
11553         setlocale: Move AC_LIBOBJ invocations to module description.
11554         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
11555         gl_PREREQ_SETLOCALE invocations from here...
11556         * modules/setlocale (configure.ac): ... to here.
11557
11558 2011-05-21  Bruno Haible  <bruno@clisp.org>
11559
11560         unsetenv: Move AC_LIBOBJ invocations to module description.
11561         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
11562         and gl_PREREQ_UNSETENV invocations from here...
11563         * modules/unsetenv (configure.ac): ... to here.
11564         (Depends-on): Update.
11565
11566 2011-05-21  Bruno Haible  <bruno@clisp.org>
11567
11568         setenv: Move AC_LIBOBJ invocations to module description.
11569         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
11570         here...
11571         * modules/setenv (configure.ac): ... to here.
11572
11573 2011-05-21  Bruno Haible  <bruno@clisp.org>
11574
11575         selinux-h: Move AC_LIBOBJ invocations to module description.
11576         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
11577         AC_LIBOBJ invocation from here...
11578         * modules/selinux-h (configure.ac): ... to here.
11579
11580 2011-05-21  Bruno Haible  <bruno@clisp.org>
11581
11582         select: Respect rules for use of AC_LIBOBJ.
11583         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
11584         here...
11585         * modules/select (configure.ac): ... to here.
11586
11587 2011-05-21  Bruno Haible  <bruno@clisp.org>
11588
11589         scandir: Move AC_LIBOBJ invocations to module description.
11590         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
11591         invocations from here...
11592         * modules/scandir (configure.ac): ... to here.
11593
11594 2011-05-21  Bruno Haible  <bruno@clisp.org>
11595
11596         rpmatch: Move AC_LIBOBJ invocations to module description.
11597         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
11598         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
11599         here...
11600         * modules/rpmatch (configure.ac): ... to here.
11601
11602 2011-05-21  Bruno Haible  <bruno@clisp.org>
11603
11604         rmdir: Respect rules for use of AC_LIBOBJ.
11605         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
11606         * modules/rmdir (configure.ac): ... to here.
11607
11608 2011-05-21  Bruno Haible  <bruno@clisp.org>
11609
11610         renameat: Move AC_LIBOBJ invocations to module description.
11611         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
11612         here...
11613         * modules/renameat (configure.ac): ... to here.
11614
11615 2011-05-21  Bruno Haible  <bruno@clisp.org>
11616
11617         rename: Respect rules for use of AC_LIBOBJ.
11618         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
11619         here...
11620         * modules/rename (configure.ac): ... to here.
11621
11622 2011-05-21  Bruno Haible  <bruno@clisp.org>
11623
11624         remove: Move AC_LIBOBJ invocations to module description.
11625         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
11626         here...
11627         * modules/remove (configure.ac): ... to here.
11628
11629 2011-05-21  Bruno Haible  <bruno@clisp.org>
11630
11631         relocatable-lib: Move AC_LIBOBJ invocations to module description.
11632         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
11633         macro.
11634         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
11635         * modules/relocatable-lib (configure.ac): ... to here.
11636         * modules/relocatable-prog-wrapper (configure.ac): Invoke
11637         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
11638
11639 2011-05-21  Bruno Haible  <bruno@clisp.org>
11640
11641         relocatable-prog: Move AC_LIBOBJ invocations to module description.
11642         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
11643         here...
11644         * modules/relocatable-prog (configure.ac): ... to here.
11645
11646 2011-05-21  Bruno Haible  <bruno@clisp.org>
11647
11648         regex: Move AC_LIBOBJ invocations to module description.
11649         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
11650         invocations from here...
11651         * modules/regex (configure.ac): ... to here.
11652
11653 2011-05-21  Bruno Haible  <bruno@clisp.org>
11654
11655         realloc-*: Move AC_LIBOBJ invocations to module description.
11656         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
11657         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
11658         AC_LIBOBJ invocations from here...
11659         * modules/realloc-gnu (configure.ac): ... to here.
11660         * modules/realloc-posix (configure.ac): ... and here.
11661
11662 2011-05-21  Bruno Haible  <bruno@clisp.org>
11663
11664         readutmp: Move AC_LIBOBJ invocations to module description.
11665         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
11666         * modules/readutmp (configure.ac): ... to here.
11667
11668 2011-05-21  Bruno Haible  <bruno@clisp.org>
11669
11670         readlinkat: Move AC_LIBOBJ invocations to module description.
11671         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
11672         here...
11673         * modules/readlinkat (configure.ac): ... to here.
11674
11675 2011-05-21  Bruno Haible  <bruno@clisp.org>
11676
11677         readlink: Move AC_LIBOBJ invocations to module description.
11678         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
11679         gl_PREREQ_READLINK invocations from here...
11680         * modules/readlink (configure.ac): ... to here.
11681
11682 2011-05-21  Bruno Haible  <bruno@clisp.org>
11683
11684         readline: Move AC_LIBOBJ invocations to module description.
11685         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
11686         gl_PREREQ_READLINE invocations from here...
11687         * modules/readline (configure.ac): ... to here.
11688
11689 2011-05-21  Bruno Haible  <bruno@clisp.org>
11690
11691         read: Move AC_LIBOBJ invocations to module description.
11692         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
11693         * modules/read (configure.ac): ... to here.
11694
11695 2011-05-21  Bruno Haible  <bruno@clisp.org>
11696
11697         rawmemchr: Move AC_LIBOBJ invocations to module description.
11698         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
11699         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
11700         from here...
11701         * modules/rawmemchr (configure.ac): ... to here.
11702
11703 2011-05-21  Bruno Haible  <bruno@clisp.org>
11704
11705         random_r: Move AC_LIBOBJ invocations to module description.
11706         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
11707         gl_PREREQ_RANDOM_R invocations from here...
11708         * modules/random_r (configure.ac): ... to here.
11709
11710 2011-05-21  Bruno Haible  <bruno@clisp.org>
11711
11712         pwrite: Move AC_LIBOBJ invocations to module description.
11713         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
11714         * modules/pwrite (configure.ac): ... to here.
11715
11716 2011-05-21  Bruno Haible  <bruno@clisp.org>
11717
11718         putenv: Move AC_LIBOBJ invocations to module description.
11719         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
11720         * modules/putenv (configure.ac): ... to here.
11721
11722 2011-05-21  Bruno Haible  <bruno@clisp.org>
11723
11724         login_tty: Move AC_LIBOBJ invocations to module description.
11725         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
11726         * modules/login_tty (configure.ac): ... to here.
11727
11728 2011-05-21  Bruno Haible  <bruno@clisp.org>
11729
11730         openpty: Move AC_LIBOBJ invocations to module description.
11731         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
11732         * modules/openpty (configure.ac): ... to here.
11733
11734 2011-05-21  Bruno Haible  <bruno@clisp.org>
11735
11736         forkpty: Move AC_LIBOBJ invocations to module description.
11737         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
11738         * modules/forkpty (configure.ac): ... to here.
11739
11740 2011-05-21  Bruno Haible  <bruno@clisp.org>
11741
11742         ptsname: Move AC_LIBOBJ invocations to module description.
11743         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
11744         invocations from here...
11745         * modules/ptsname (configure.ac): ... to here.
11746
11747 2011-05-21  Bruno Haible  <bruno@clisp.org>
11748
11749         pread: Move AC_LIBOBJ invocations to module description.
11750         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
11751         * modules/pread (configure.ac): ... to here.
11752
11753 2011-05-21  Bruno Haible  <bruno@clisp.org>
11754
11755         posix_spawn*: Move AC_LIBOBJ invocations to module description.
11756         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
11757         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
11758         * modules/posix_spawn (configure.ac): ... to here.
11759         * modules/posix_spawnp (configure.ac): ... and here.
11760
11761 2011-05-21  Bruno Haible  <bruno@clisp.org>
11762
11763         popen: Move AC_LIBOBJ invocations to module description.
11764         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
11765         invocations from here...
11766         * modules/popen (configure.ac): ... to here.
11767
11768 2011-05-21  Bruno Haible  <bruno@clisp.org>
11769
11770         poll: Move AC_LIBOBJ invocations to module description.
11771         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
11772         invocations from here...
11773         * modules/poll (configure.ac): ... to here.
11774
11775 2011-05-21  Bruno Haible  <bruno@clisp.org>
11776
11777         pipe-posix: Move AC_LIBOBJ invocations to module description.
11778         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
11779         * modules/pipe-posix (configure.ac): ... to here.
11780
11781 2011-05-21  Bruno Haible  <bruno@clisp.org>
11782
11783         openat: Respect rules for use of AC_LIBOBJ.
11784         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
11785         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11786         * modules/openat (configure.ac): ... to here.
11787
11788 2011-05-21  Bruno Haible  <bruno@clisp.org>
11789
11790         obstack-printf*: Move AC_LIBOBJ invocations to module description.
11791         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
11792         invocation from here...
11793         * modules/obstack-printf (configure.ac): ... to here.
11794         * modules/obstack-printf-posix (configure.ac): ... and here.
11795
11796 2011-05-21  Bruno Haible  <bruno@clisp.org>
11797
11798         nl_langinfo: Move AC_LIBOBJ invocations to module description.
11799         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
11800         from here...
11801         * modules/nl_langinfo (configure.ac): ... to here.
11802
11803 2011-05-21  Bruno Haible  <bruno@clisp.org>
11804
11805         nanosleep: Move AC_LIBOBJ invocations to module description.
11806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
11807         gl_PREREQ_NANOSLEEP invocations from here...
11808         * modules/nanosleep (configure.ac): ... to here.
11809
11810 2011-05-21  Bruno Haible  <bruno@clisp.org>
11811
11812         mountlist: Move AC_LIBOBJ invocations to module description.
11813         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
11814         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
11815         * modules/mountlist (configure.ac): ... to here.
11816
11817 2011-05-21  Bruno Haible  <bruno@clisp.org>
11818
11819         mktime: Respect rules for use of AC_LIBOBJ.
11820         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
11821         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
11822         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
11823         (gl_FUNC_MKTIME_INTERNAL): ... and here...
11824         * modules/mktime (configure.ac): ... to here.
11825         * modules/mktime-internal (configure.ac): ... and here.
11826         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
11827
11828 2011-05-21  Bruno Haible  <bruno@clisp.org>
11829
11830         mkstemps: Move AC_LIBOBJ invocations to module description.
11831         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
11832         here...
11833         * modules/mkstemps (configure.ac): ... to here.
11834
11835 2011-05-21  Bruno Haible  <bruno@clisp.org>
11836
11837         mkstemp: Move AC_LIBOBJ invocations to module description.
11838         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
11839         gl_PREREQ_MKSTEMP invocations from here...
11840         * modules/mkstemp (configure.ac): ... to here.
11841
11842 2011-05-21  Bruno Haible  <bruno@clisp.org>
11843
11844         mkostemps: Move AC_LIBOBJ invocations to module description.
11845         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
11846         here...
11847         * modules/mkostemps (configure.ac): ... to here.
11848
11849 2011-05-21  Bruno Haible  <bruno@clisp.org>
11850
11851         mkostemp: Move AC_LIBOBJ invocations to module description.
11852         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
11853         gl_PREREQ_MKOSTEMP invocations from here...
11854         * modules/mkostemp (configure.ac): ... to here.
11855
11856 2011-05-21  Bruno Haible  <bruno@clisp.org>
11857
11858         mknod: Move AC_LIBOBJ invocations to module description.
11859         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
11860         * modules/mknod (configure.ac): ... to here.
11861
11862 2011-05-21  Bruno Haible  <bruno@clisp.org>
11863
11864         mkfifoat: Move AC_LIBOBJ invocations to module description.
11865         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
11866         here...
11867         * modules/mkfifoat (configure.ac): ... to here.
11868
11869 2011-05-21  Bruno Haible  <bruno@clisp.org>
11870
11871         mkfifo: Respect rules for use of AC_LIBOBJ.
11872         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
11873         here...
11874         * modules/mkfifo (configure.ac): ... to here.
11875
11876 2011-05-21  Bruno Haible  <bruno@clisp.org>
11877
11878         mkdtemp: Move AC_LIBOBJ invocations to module description.
11879         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
11880         invocations from here...
11881         * modules/mkdtemp (configure.ac): ... to here.
11882
11883 2011-05-21  Bruno Haible  <bruno@clisp.org>
11884
11885         mkdir: Move AC_LIBOBJ invocations to module description.
11886         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
11887         * modules/mkdir (configure.ac): ... to here.
11888
11889 2011-05-21  Bruno Haible  <bruno@clisp.org>
11890
11891         memset: Move AC_LIBOBJ invocations to module description.
11892         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
11893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
11894         here...
11895         * modules/memset (configure.ac): ... to here.
11896
11897 2011-05-21  Bruno Haible  <bruno@clisp.org>
11898
11899         memrchr: Move AC_LIBOBJ invocations to module description.
11900         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
11901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
11902         here...
11903         * modules/memrchr (configure.ac): ... to here.
11904
11905 2011-05-21  Bruno Haible  <bruno@clisp.org>
11906
11907         mempcpy: Move AC_LIBOBJ invocations to module description.
11908         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
11909         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
11910         here...
11911         * modules/mempcpy (configure.ac): ... to here.
11912
11913 2011-05-21  Bruno Haible  <bruno@clisp.org>
11914
11915         memmove: Move AC_LIBOBJ invocations to module description.
11916         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
11917         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
11918         here...
11919         * modules/memmove (configure.ac): ... to here.
11920
11921 2011-05-21  Bruno Haible  <bruno@clisp.org>
11922
11923         memmem*: Move AC_LIBOBJ invocations to module description.
11924         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
11925         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
11926         here...
11927         (gl_FUNC_MEMMEM): ... and here...
11928         * modules/memmem-simple (configure.ac): ... to here.
11929         * modules/memmem (configure.ac): ... and here.
11930
11931 2011-05-21  Bruno Haible  <bruno@clisp.org>
11932
11933         memcpy: Move AC_LIBOBJ invocations to module description.
11934         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
11935         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
11936         here...
11937         * modules/memcpy (configure.ac): ... to here.
11938
11939 2011-05-21  Bruno Haible  <bruno@clisp.org>
11940
11941         memcmp: Simplify autoconf macro.
11942         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
11943         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
11944         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
11945
11946 2011-05-21  Bruno Haible  <bruno@clisp.org>
11947
11948         memcmp: Move AC_LIBOBJ invocations to module description.
11949         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
11950         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
11951         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
11952         * modules/memcmp (configure.ac): ... to here.
11953         (Depends-on): Update conditions.
11954
11955 2011-05-21  Bruno Haible  <bruno@clisp.org>
11956
11957         memchr: Respect rules for use of AC_LIBOBJ.
11958         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
11959         invocations from here...
11960         * modules/memchr (configure.ac): ... to here.
11961
11962 2011-05-21  Bruno Haible  <bruno@clisp.org>
11963
11964         mbtowc: Move AC_LIBOBJ invocations to module description.
11965         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
11966         invocations from here...
11967         * modules/mbtowc (configure.ac): ... to here.
11968
11969 2011-05-21  Bruno Haible  <bruno@clisp.org>
11970
11971         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
11972         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
11973         gl_PREREQ_MBSRTOWCS invocations from here...
11974         * modules/mbsrtowcs (configure.ac): ... to here.
11975
11976 2011-05-21  Bruno Haible  <bruno@clisp.org>
11977
11978         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
11979         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
11980         gl_PREREQ_MBSNRTOWCS invocations from here...
11981         * modules/mbsnrtowcs (configure.ac): ... to here.
11982
11983 2011-05-21  Bruno Haible  <bruno@clisp.org>
11984
11985         mbsinit: Move AC_LIBOBJ invocations to module description.
11986         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
11987         invocations from here...
11988         * modules/mbsinit (configure.ac): ... to here.
11989
11990 2011-05-21  Bruno Haible  <bruno@clisp.org>
11991
11992         mbrlen: Move AC_LIBOBJ invocations to module description.
11993         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
11994         invocations from here...
11995         * modules/mbrlen (configure.ac): ... to here.
11996
11997 2011-05-21  Bruno Haible  <bruno@clisp.org>
11998
11999         mbrtowc: Respect rules for use of AC_LIBOBJ.
12000         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
12001         invocations from here...
12002         * modules/mbrtowc (configure.ac): ... to here.
12003
12004 2011-05-21  Bruno Haible  <bruno@clisp.org>
12005
12006         malloc-*: Move AC_LIBOBJ invocations to module description.
12007         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
12008         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
12009         AC_LIBOBJ invocations from here...
12010         * modules/malloc-gnu (configure.ac): ... to here.
12011         * modules/malloc-posix (configure.ac): ... and here.
12012
12013 2011-05-21  Bruno Haible  <bruno@clisp.org>
12014
12015         lstat, openat: Respect rules for use of AC_LIBOBJ.
12016         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
12017         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
12018         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
12019         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
12020         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
12021         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
12022         here.
12023         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
12024
12025 2011-05-21  Bruno Haible  <bruno@clisp.org>
12026
12027         lseek: Move AC_LIBOBJ invocations to module description.
12028         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
12029         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12030         * modules/lseek (configure.ac): ... to here.
12031
12032 2011-05-21  Bruno Haible  <bruno@clisp.org>
12033
12034         linkat: Move AC_LIBOBJ invocations to module description.
12035         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
12036         here...
12037         * modules/linkat (configure.ac): ... to here.
12038
12039 2011-05-21  Bruno Haible  <bruno@clisp.org>
12040
12041         link: Respect rules for use of AC_LIBOBJ.
12042         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
12043         * modules/link (configure.ac): ... to here.
12044
12045 2011-05-21  Bruno Haible  <bruno@clisp.org>
12046
12047         lchown: Move AC_LIBOBJ invocations to module description.
12048         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12049         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12050         * modules/lchown (configure.ac): ... to here.
12051
12052 2011-05-21  Bruno Haible  <bruno@clisp.org>
12053
12054         iswctype: Move AC_LIBOBJ invocations to module description.
12055         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
12056         here...
12057         * modules/iswctype (configure.ac): ... to here.
12058
12059 2011-05-21  Bruno Haible  <bruno@clisp.org>
12060
12061         iswblank: Move AC_LIBOBJ invocations to module description.
12062         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
12063         here...
12064         * modules/iswblank (configure.ac): ... to here.
12065
12066 2011-05-21  Bruno Haible  <bruno@clisp.org>
12067
12068         atanl: Move AC_LIBOBJ invocations to module description.
12069         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
12070         * modules/atanl (configure.ac): ... to here.
12071
12072 2011-05-21  Bruno Haible  <bruno@clisp.org>
12073
12074         acosl: Move AC_LIBOBJ invocations to module description.
12075         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
12076         * modules/acosl (configure.ac): ... to here.
12077
12078 2011-05-21  Bruno Haible  <bruno@clisp.org>
12079
12080         asinl: Respect rules for use of AC_LIBOBJ.
12081         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
12082         * modules/asinl (configure.ac): ... to here.
12083
12084 2011-05-21  Bruno Haible  <bruno@clisp.org>
12085
12086         tanl: Move AC_LIBOBJ invocations to module description.
12087         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
12088         * modules/tanl (configure.ac): ... to here.
12089
12090 2011-05-21  Bruno Haible  <bruno@clisp.org>
12091
12092         cosl: Move AC_LIBOBJ invocations to module description.
12093         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
12094         * modules/cosl (configure.ac): ... to here.
12095
12096 2011-05-21  Bruno Haible  <bruno@clisp.org>
12097
12098         sinl: Move AC_LIBOBJ invocations to module description.
12099         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
12100         * modules/sinl (configure.ac): ... to here.
12101
12102 2011-05-21  Bruno Haible  <bruno@clisp.org>
12103
12104         logl: Move AC_LIBOBJ invocations to module description.
12105         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
12106         * modules/logl (configure.ac): ... to here.
12107
12108 2011-05-21  Bruno Haible  <bruno@clisp.org>
12109
12110         expl: Move AC_LIBOBJ invocations to module description.
12111         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
12112         * modules/expl (configure.ac): ... to here.
12113
12114 2011-05-21  Bruno Haible  <bruno@clisp.org>
12115
12116         roundl: Move AC_LIBOBJ invocations to module description.
12117         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
12118         * modules/roundl (configure.ac): ... to here.
12119
12120 2011-05-21  Bruno Haible  <bruno@clisp.org>
12121
12122         round: Move AC_LIBOBJ invocations to module description.
12123         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
12124         * modules/round (configure.ac): ... to here.
12125
12126 2011-05-21  Bruno Haible  <bruno@clisp.org>
12127
12128         roundf: Move AC_LIBOBJ invocations to module description.
12129         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
12130         * modules/roundf (configure.ac): ... to here.
12131
12132 2011-05-21  Bruno Haible  <bruno@clisp.org>
12133
12134         truncl: Move AC_LIBOBJ invocations to module description.
12135         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
12136         * modules/truncl (configure.ac): ... to here.
12137
12138 2011-05-21  Bruno Haible  <bruno@clisp.org>
12139
12140         trunc: Move AC_LIBOBJ invocations to module description.
12141         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
12142         * modules/trunc (configure.ac): ... to here.
12143
12144 2011-05-21  Bruno Haible  <bruno@clisp.org>
12145
12146         truncf: Move AC_LIBOBJ invocations to module description.
12147         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
12148         * modules/truncf (configure.ac): ... to here.
12149
12150 2011-05-21  Bruno Haible  <bruno@clisp.org>
12151
12152         ceill: Move AC_LIBOBJ invocations to module description.
12153         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
12154         * modules/ceill (configure.ac): ... to here.
12155
12156 2011-05-21  Bruno Haible  <bruno@clisp.org>
12157
12158         ceil: Move AC_LIBOBJ invocations to module description.
12159         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
12160         * modules/ceil (configure.ac): ... to here.
12161
12162 2011-05-21  Bruno Haible  <bruno@clisp.org>
12163
12164         ceilf: Move AC_LIBOBJ invocations to module description.
12165         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
12166         * modules/ceilf (configure.ac): ... to here.
12167
12168 2011-05-21  Bruno Haible  <bruno@clisp.org>
12169
12170         floorl: Respect rules for use of AC_LIBOBJ.
12171         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
12172         * modules/floorl (configure.ac): ... to here.
12173
12174 2011-05-21  Bruno Haible  <bruno@clisp.org>
12175
12176         floor: Respect rules for use of AC_LIBOBJ.
12177         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
12178         * modules/floor (configure.ac): ... to here.
12179
12180 2011-05-21  Bruno Haible  <bruno@clisp.org>
12181
12182         floorf: Move AC_LIBOBJ invocations to module description.
12183         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
12184         * modules/floorf (configure.ac): ... to here.
12185
12186 2011-05-20  Bruno Haible  <bruno@clisp.org>
12187
12188         sqrtl: Respect rules for use of AC_LIBOBJ.
12189         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
12190         * modules/sqrtl (configure.ac): ... to here.
12191
12192 2011-05-20  Bruno Haible  <bruno@clisp.org>
12193
12194         ldexpl: Respect rules for use of AC_LIBOBJ.
12195         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
12196         * modules/ldexpl (configure.ac): ... to here.
12197
12198 2011-05-20  Bruno Haible  <bruno@clisp.org>
12199
12200         frexpl*: Respect rules for use of AC_LIBOBJ.
12201         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
12202         invocation from here...
12203         * modules/frexpl (configure.ac): ... to here.
12204         * modules/frexpl-nolibm (configure.ac): ... and here.
12205
12206 2011-05-20  Bruno Haible  <bruno@clisp.org>
12207
12208         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
12209         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
12210         invocation from here...
12211         * modules/frexp (configure.ac): ... to here.
12212         * modules/frexp-nolibm (configure.ac): ... and here.
12213
12214 2011-05-20  Bruno Haible  <bruno@clisp.org>
12215
12216         isnan: Respect rules for use of AC_LIBOBJ.
12217         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
12218         invocations here.
12219         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
12220         REPLACE_ISNAN.
12221         * modules/isnand (configure.ac): Likewise.
12222         * modules/isnanl (configure.ac): Likewise.
12223
12224 2011-05-20  Bruno Haible  <bruno@clisp.org>
12225
12226         isnanl*: Respect rules for use of AC_LIBOBJ.
12227         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
12228         invocation from here...
12229         * modules/isnanl (configure.ac): ... to here.
12230         * modules/isnanl-nolibm (configure.ac): ... and here.
12231
12232 2011-05-20  Bruno Haible  <bruno@clisp.org>
12233
12234         isnand*: Move AC_LIBOBJ invocations to module description.
12235         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
12236         invocation from here...
12237         * modules/isnand (configure.ac): ... to here.
12238         * modules/isnand-nolibm (configure.ac): ... and here.
12239
12240 2011-05-20  Bruno Haible  <bruno@clisp.org>
12241
12242         isnanf*: Move AC_LIBOBJ invocations to module description.
12243         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
12244         invocation from here...
12245         * modules/isnanf (configure.ac): ... to here.
12246         * modules/isnanf-nolibm (configure.ac): ... and here.
12247
12248 2011-05-20  Bruno Haible  <bruno@clisp.org>
12249
12250         isnan*: Separate the AC_LIBOBJ invocations.
12251         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
12252         AC_LIBOBJ invocation.
12253         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
12254         here.
12255         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
12256         AC_LIBOBJ invocation.
12257         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
12258         here.
12259         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
12260         AC_LIBOBJ invocation.
12261         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
12262         here.
12263         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
12264
12265 2011-05-08  Bruno Haible  <bruno@clisp.org>
12266
12267         isinf: Move AC_LIBOBJ invocations to module description.
12268         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
12269         * modules/isinf (configure.ac): ... to here.
12270
12271 2011-05-08  Bruno Haible  <bruno@clisp.org>
12272
12273         isfinite: Move AC_LIBOBJ invocations to module description.
12274         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
12275         * modules/isfinite (configure.ac): ... to here.
12276
12277 2011-05-08  Bruno Haible  <bruno@clisp.org>
12278
12279         isblank: Move AC_LIBOBJ invocations to module description.
12280         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
12281         here...
12282         * modules/isblank (configure.ac): ... to here.
12283
12284 2011-05-08  Bruno Haible  <bruno@clisp.org>
12285
12286         isapipe: Move AC_LIBOBJ invocations to module description.
12287         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
12288         gl_PREREQ_ISAPIPE invocations from here...
12289         * modules/isapipe (configure.ac): ... to here.
12290         (Depends-on): Update condition.
12291
12292 2011-05-08  Bruno Haible  <bruno@clisp.org>
12293
12294         ioctl: Move AC_LIBOBJ invocations to module description.
12295         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
12296         invocations from here...
12297         * modules/ioctl (configure.ac): ... to here.
12298         (Depends-on): Update condition.
12299
12300 2011-05-08  Bruno Haible  <bruno@clisp.org>
12301
12302         imaxdiv: Move AC_LIBOBJ invocations to module description.
12303         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
12304         invocations from here...
12305         * modules/imaxdiv (configure.ac): ... to here.
12306
12307 2011-05-08  Bruno Haible  <bruno@clisp.org>
12308
12309         imaxabs: Move AC_LIBOBJ invocations to module description.
12310         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
12311         invocations from here...
12312         * modules/imaxabs (configure.ac): ... to here.
12313
12314 2011-05-08  Bruno Haible  <bruno@clisp.org>
12315
12316         getaddrinfo: Move AC_LIBOBJ invocations to module description.
12317         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
12318         AC_LIBOBJ invocations from here...
12319         * modules/getaddrinfo (configure.ac): ... to here.
12320         (Depends-on): Add conditions.
12321
12322 2011-05-08  Bruno Haible  <bruno@clisp.org>
12323
12324         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
12325         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
12326         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
12327         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
12328         (gl_PREREQ_INET_PTON): ... from here.
12329         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
12330         gl_PREREQ_INET_PTON here.
12331         (Depends-on): Update condition.
12332
12333 2011-05-08  Bruno Haible  <bruno@clisp.org>
12334
12335         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
12336         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
12337         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
12338         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
12339         (gl_PREREQ_INET_NTOP): ... from here.
12340         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
12341         gl_PREREQ_INET_NTOP here.
12342         (Depends-on): Update condition.
12343
12344 2011-05-08  Bruno Haible  <bruno@clisp.org>
12345
12346         iconv_open: Move AC_LIBOBJ invocations to module description.
12347         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
12348         AC_LIBOBJ invocations from here...
12349         * modules/iconv_open (configure.ac): ... to here.
12350
12351 2011-05-08  Bruno Haible  <bruno@clisp.org>
12352
12353         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
12354         If module 'iconv_open' is among the main modules and module
12355         'iconv_open-utf' is among the tests dependencies, then
12356         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
12357         return the special iconv_t values. Therefore iconv() and iconv_close()
12358         must support these special iconv_t values, already in lib, not only in
12359         tests.
12360         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
12361         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
12362         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
12363         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
12364         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
12365         (Depends-on): Add the dependencies of iconv_open-utf.
12366         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
12367         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
12368         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
12369
12370 2011-05-08  Bruno Haible  <bruno@clisp.org>
12371
12372         group-member: Move AC_LIBOBJ invocations to module description.
12373         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
12374         gl_PREREQ_GROUP_MEMBER invocations from here...
12375         * modules/group-member (configure.ac): ... to here.
12376
12377 2011-05-08  Bruno Haible  <bruno@clisp.org>
12378
12379         grantpt: Move AC_LIBOBJ invocations to module description.
12380         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
12381         invocations from here...
12382         * modules/grantpt (configure.ac): ... to here.
12383
12384 2011-05-08  Bruno Haible  <bruno@clisp.org>
12385
12386         glob: Move AC_LIBOBJ invocations to module description.
12387         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
12388         from here...
12389         * modules/glob (configure.ac): ... to here.
12390
12391 2011-05-08  Bruno Haible  <bruno@clisp.org>
12392
12393         getusershell: Move AC_LIBOBJ invocations to module description.
12394         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
12395         Move AC_LIBOBJ invocation from here...
12396         * modules/getusershell (configure.ac): ... to here.
12397         (Depends-on): Update condition.
12398
12399 2011-05-08  Bruno Haible  <bruno@clisp.org>
12400
12401         gettimeofday: Move AC_LIBOBJ invocations to module description.
12402         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
12403         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
12404         gl_PREREQ_GETTIMEOFDAY invocations from here...
12405         * modules/gettimeofday (configure.ac): ... to here.
12406
12407 2011-05-08  Bruno Haible  <bruno@clisp.org>
12408
12409         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
12410         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
12411         just gl_FUNC_TZSET.
12412         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
12413         (gl_FUNC_TZSET_CLOBBER): Remove actions.
12414         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
12415         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
12416
12417 2011-05-08  Bruno Haible  <bruno@clisp.org>
12418
12419         getsubopt: Move AC_LIBOBJ invocations to module description.
12420         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
12421         gl_PREREQ_GETSUBOPT invocations from here...
12422         * modules/getsubopt (configure.ac): ... to here.
12423
12424 2011-05-08  Bruno Haible  <bruno@clisp.org>
12425
12426         getpass-gnu: Move AC_LIBOBJ invocations to module description.
12427         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
12428         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
12429         * modules/getpass-gnu (configure.ac): ... to here.
12430
12431 2011-05-08  Bruno Haible  <bruno@clisp.org>
12432
12433         getpass: Move AC_LIBOBJ invocations to module description.
12434         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
12435         gl_PREREQ_GETPASS invocations from here...
12436         * modules/getpass (configure.ac): ... to here.
12437
12438 2011-05-08  Bruno Haible  <bruno@clisp.org>
12439
12440         getpagesize: Move AC_LIBOBJ invocations to module description.
12441         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
12442         from here...
12443         * modules/getpagesize (configure.ac): ... to here.
12444
12445 2011-05-08  Bruno Haible  <bruno@clisp.org>
12446
12447         getopt: Move AC_LIBOBJ invocations to module description.
12448         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
12449         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
12450         invocations from here...
12451         * modules/getopt-gnu (configure.ac): ... to here.
12452         * modules/getopt-posix (configure.ac): ... and here.
12453         (Depends-on): Update condition.
12454
12455 2011-05-08  Bruno Haible  <bruno@clisp.org>
12456
12457         getopt, argp: Respect rules for use of AC_LIBOBJ.
12458         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
12459         (gl_REPLACE_GETOPT_ALWAYS): New macro.
12460         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
12461         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
12462
12463 2011-05-08  Bruno Haible  <bruno@clisp.org>
12464
12465         getlogin_r: Move AC_LIBOBJ invocations to module description.
12466         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
12467         gl_PREREQ_GETLOGIN_R invocations from here...
12468         * modules/getlogin_r (configure.ac): ... to here.
12469
12470 2011-05-08  Bruno Haible  <bruno@clisp.org>
12471
12472         getlogin: Move AC_LIBOBJ invocations to module description.
12473         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
12474         here...
12475         * modules/getlogin (configure.ac): ... to here.
12476
12477 2011-05-08  Bruno Haible  <bruno@clisp.org>
12478
12479         getloadavg: Move AC_LIBOBJ invocations to module description.
12480         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
12481         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
12482         * modules/getloadavg (configure.ac): ... to here.
12483
12484 2011-05-08  Bruno Haible  <bruno@clisp.org>
12485
12486         gethrxtime: Move AC_LIBOBJ invocations to module description.
12487         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
12488         LIB_GETHRXTIME from here...
12489         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
12490         invocations from here...
12491         * modules/gethrxtime (configure.ac): ... to here.
12492
12493 2011-05-08  Bruno Haible  <bruno@clisp.org>
12494
12495         gethostname: Move AC_LIBOBJ invocations to module description.
12496         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
12497         gl_PREREQ_GETHOSTNAME invocations from here...
12498         * modules/gethostname (configure.ac): ... to here.
12499
12500 2011-05-08  Bruno Haible  <bruno@clisp.org>
12501
12502         getgroups: Move AC_LIBOBJ invocations to module description.
12503         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
12504         here...
12505         * modules/getgroups (configure.ac): ... to here.
12506
12507 2011-05-08  Bruno Haible  <bruno@clisp.org>
12508
12509         getdtablesize: Move AC_LIBOBJ invocations to module description.
12510         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
12511         invocation from here...
12512         * modules/getdtablesize (configure.ac): ... to here.
12513
12514 2011-05-08  Bruno Haible  <bruno@clisp.org>
12515
12516         getdomainname: Move AC_LIBOBJ invocations to module description.
12517         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
12518         gl_PREREQ_GETDOMAINNAME invocations from here...
12519         * modules/getdomainname (configure.ac): ... to here.
12520
12521 2011-05-08  Bruno Haible  <bruno@clisp.org>
12522
12523         getline: Move AC_LIBOBJ invocations to module description.
12524         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
12525         invocations from here...
12526         * modules/getline (configure.ac): ... to here.
12527
12528 2011-05-08  Bruno Haible  <bruno@clisp.org>
12529
12530         getline: Simplify.
12531         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
12532         It's already handled through the module dependency.
12533
12534 2011-05-08  Bruno Haible  <bruno@clisp.org>
12535
12536         getdelim: Move AC_LIBOBJ invocations to module description.
12537         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
12538         and gl_PREREQ_GETDELIM invocations from here...
12539         * modules/getdelim (configure.ac): ... to here.
12540         (Depends-on): Fix condition.
12541
12542 2011-05-08  Bruno Haible  <bruno@clisp.org>
12543
12544         getcwd: Move AC_LIBOBJ invocations to module description.
12545         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
12546         invocations from here...
12547         * modules/getcwd (configure.ac): ... to here.
12548
12549 2011-05-08  Bruno Haible  <bruno@clisp.org>
12550
12551         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
12552         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
12553         here...
12554         * modules/getcwd-lgpl (configure.ac): ... to here.
12555
12556 2011-05-07  Bruno Haible  <bruno@clisp.org>
12557
12558         crypto/gc: Move AC_LIBOBJ invocations to module description.
12559         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
12560         * modules/crypto/gc (configure.ac): ... to here.
12561
12562 2011-05-07  Bruno Haible  <bruno@clisp.org>
12563
12564         fwriting: Move AC_LIBOBJ invocations to module description.
12565         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
12566         here...
12567         * modules/fwriting (configure.ac): ... to here.
12568
12569 2011-05-07  Bruno Haible  <bruno@clisp.org>
12570
12571         fwritable: Move AC_LIBOBJ invocations to module description.
12572         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
12573         here...
12574         * modules/fwritable (configure.ac): ... to here.
12575
12576 2011-05-07  Bruno Haible  <bruno@clisp.org>
12577
12578         futimens: Move AC_LIBOBJ invocations to module description.
12579         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
12580         here...
12581         * modules/futimens (configure.ac): ... to here.
12582
12583 2011-05-07  Bruno Haible  <bruno@clisp.org>
12584
12585         ftruncate: Move AC_LIBOBJ invocations to module description.
12586         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
12587         gl_PREREQ_FTRUNCATE invocations from here...
12588         * modules/ftruncate (configure.ac): ... to here.
12589
12590 2011-05-07  Bruno Haible  <bruno@clisp.org>
12591
12592         fsync: Move AC_LIBOBJ invocations to module description.
12593         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
12594         invocations from here...
12595         * modules/fsync (configure.ac): ... to here.
12596
12597 2011-05-07  Bruno Haible  <bruno@clisp.org>
12598
12599         fsusage: Move AC_LIBOBJ invocations to module description.
12600         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
12601         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
12602         * modules/fsusage (configure.ac): ... to here.
12603
12604 2011-05-07  Bruno Haible  <bruno@clisp.org>
12605
12606         freopen: Move AC_LIBOBJ invocations to module description.
12607         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
12608         invocations from here...
12609         * modules/freopen (configure.ac): ... to here.
12610
12611 2011-05-07  Bruno Haible  <bruno@clisp.org>
12612
12613         free: Move AC_LIBOBJ invocations to module description.
12614         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
12615         invocations from here...
12616         * modules/free (configure.ac): ... to here.
12617
12618 2011-05-07  Bruno Haible  <bruno@clisp.org>
12619
12620         freadable: Move AC_LIBOBJ invocations to module description.
12621         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
12622         here...
12623         * modules/freadable (configure.ac): ... to here.
12624
12625 2011-05-07  Bruno Haible  <bruno@clisp.org>
12626
12627         fpurge: Move AC_LIBOBJ invocations to module description.
12628         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
12629         invocations from here...
12630         * modules/fpurge (configure.ac): ... to here.
12631
12632 2011-05-07  Bruno Haible  <bruno@clisp.org>
12633
12634         fpending: Move AC_LIBOBJ invocations to module description.
12635         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
12636         gl_FUNC_FPENDING.
12637         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
12638         invocations from here...
12639         * modules/fpending (configure.ac): ... to here.
12640
12641 2011-05-07  Bruno Haible  <bruno@clisp.org>
12642
12643         fopen: Move AC_LIBOBJ invocations to module description.
12644         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
12645         invocations from here...
12646         * modules/fopen (configure.ac): ... to here.
12647
12648 2011-05-07  Bruno Haible  <bruno@clisp.org>
12649
12650         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
12651         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
12652         gl_FUNC_FNMATCH_POSIX.
12653         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
12654         invocations from here...
12655         * modules/fnmatch (configure.ac): ... to here.
12656         * modules/fnmatch-gnu (configure.ac): ... and here.
12657
12658 2011-05-07  Bruno Haible  <bruno@clisp.org>
12659
12660         flock: Move AC_LIBOBJ invocations to module description.
12661         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
12662         invocations from here...
12663         * modules/flock (configure.ac): ... to here.
12664
12665 2011-05-07  Bruno Haible  <bruno@clisp.org>
12666
12667         fileblocks: Move AC_LIBOBJ invocations to module description.
12668         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
12669         gl_PREREQ_FILEBLOCKS invocations from here...
12670         * modules/fileblocks (configure.ac): ... to here.
12671
12672 2011-05-06  Bruno Haible  <bruno@clisp.org>
12673
12674         fflush: Move AC_LIBOBJ invocations to module description.
12675         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
12676         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
12677         invocations from here...
12678         * modules/fflush (configure.ac): ... to here.
12679
12680 2011-05-06  Bruno Haible  <bruno@clisp.org>
12681
12682         fdopendir: Move AC_LIBOBJ invocations to module description.
12683         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
12684         here...
12685         * modules/fdopendir (configure.ac): ... to here.
12686         (Depends-on): Improve conditions.
12687
12688 2011-05-06  Bruno Haible  <bruno@clisp.org>
12689
12690         _Exit: Move AC_LIBOBJ invocations to module description.
12691         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
12692         invocations from here...
12693         * modules/_Exit (configure.ac): ... to here.
12694
12695 2011-05-21  Bruno Haible  <bruno@clisp.org>
12696
12697         euidaccess: Respect rules for use of AC_LIBOBJ.
12698         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12699         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
12700         from here...
12701         * modules/euidaccess (configure.ac): ... to here.
12702
12703 2011-05-06  Bruno Haible  <bruno@clisp.org>
12704
12705         error: Move AC_LIBOBJ invocations to module description.
12706         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
12707         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
12708         invocations from here...
12709         * modules/error (configure.ac): ... to here.
12710
12711 2011-05-06  Bruno Haible  <bruno@clisp.org>
12712
12713         duplocale: Move AC_LIBOBJ invocations to module description.
12714         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
12715         gl_PREREQ_DUPLOCALE invocations from here...
12716         * modules/duplocale (configure.ac): ... to here.
12717
12718 2011-05-05  Bruno Haible  <bruno@clisp.org>
12719
12720         dirfd: Move AC_LIBOBJ invocations to module description.
12721         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
12722         gl_FUNC_DIRFD.
12723         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
12724         here...
12725         * modules/dirfd (configure.ac): ... to here.
12726         (Depends-on): Fix condition.
12727
12728 2011-05-05  Bruno Haible  <bruno@clisp.org>
12729
12730         chown: Respect rules for use of AC_LIBOBJ.
12731         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
12732         * modules/chown (configure.ac): ... to here.
12733
12734 2011-05-05  Bruno Haible  <bruno@clisp.org>
12735
12736         chdir-long: Move AC_LIBOBJ invocations to module description.
12737         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
12738         gl_PREREQ_CHDIR_LONG invocations from here...
12739         * modules/chdir-long (configure.ac): ... to here.
12740
12741 2011-05-05  Bruno Haible  <bruno@clisp.org>
12742
12743         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
12744         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
12745         from here...
12746         * modules/canonicalize-lgpl (configure.ac): ... to here.
12747
12748 2011-05-05  Bruno Haible  <bruno@clisp.org>
12749
12750         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
12751         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
12752         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
12753         REPLACE_CALLOC.
12754         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
12755         * modules/calloc-gnu (configure.ac): Likewise.
12756
12757 2011-05-05  Bruno Haible  <bruno@clisp.org>
12758
12759         btowc: Move AC_LIBOBJ invocations to module description.
12760         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
12761         invocations from here...
12762         * modules/btowc (configure.ac): ... to here.
12763
12764 2011-05-21  Bruno Haible  <bruno@clisp.org>
12765
12766         atexit: Move AC_LIBOBJ invocations to module description.
12767         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
12768         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
12769         here...
12770         * modules/atexit (configure.ac): ... to here.
12771
12772 2011-05-05  Bruno Haible  <bruno@clisp.org>
12773
12774         atoll: Move AC_LIBOBJ invocations to module description.
12775         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
12776         invocations from here...
12777         * modules/atoll (configure.ac): ... to here.
12778
12779 2011-05-05  Bruno Haible  <bruno@clisp.org>
12780
12781         argz: Move AC_LIBOBJ invocations to module description.
12782         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
12783         * modules/argz (configure.ac): ... to here.
12784
12785 2011-05-05  Bruno Haible  <bruno@clisp.org>
12786
12787         alphasort: Move AC_LIBOBJ invocations to module description.
12788         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
12789         gl_PREREQ_ALPHASORT invocations from here...
12790         * modules/alphasort (configure.ac): ... to here.
12791
12792 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
12793
12794         verify: new macro verify_expr; verify_true deprecated
12795         * NEWS: Mention this.
12796         * doc/verify.texi (Compile-time Assertions): Document this.
12797         * lib/verify.h (verify_true): Deprecate.
12798         (verify_expr): New macro.
12799         * tests/test-verify.c (function): Test verify_expr.
12800
12801 2011-06-14  Jim Meyering  <meyering@redhat.com>
12802
12803         init.sh: give more portable redirection-related advice in a comment
12804         * tests/init.sh (stderr_fileno_): Update the advice in comments.
12805         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
12806         for lots of discussion.  Stefano Lattarini suggested the solution
12807         of putting "9>&2" after the command.  Reported by Bruno Haible.
12808
12809 2011-06-13  Bruno Haible  <bruno@clisp.org>
12810
12811         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
12812         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
12813         'none'.
12814
12815 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12816
12817         ftoastr: use strtof only if HAVE_STRTOF
12818         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
12819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
12820         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
12821         * modules/ftoastr (configure.ac): Check for strtof.
12822
12823 2011-06-13  Bruno Haible  <bruno@clisp.org>
12824
12825         gnulib-tool: Addendum to 2011-06-08 commit.
12826         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
12827         and --witness-c-macro have been given, augment AM_CPPFLAGS.
12828
12829 2011-06-13  Bruno Haible  <bruno@clisp.org>
12830
12831         fseeko: Provide a non-inline replacement of fseek().
12832         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
12833         * modules/fseeko (Depends-on): Add fseek.
12834         * modules/fseek (License): Change to LGPLv2+.
12835
12836 2011-06-13  Bruno Haible  <bruno@clisp.org>
12837
12838         ftello: Provide a non-inline replacement of ftell().
12839         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
12840         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
12841         not have ftello() (such as on mingw).
12842         * modules/ftello (Depends-on): Add ftell.
12843         * modules/ftell (License): Change to LGPLv2+.
12844
12845 2011-05-07  Bruno Haible  <bruno@clisp.org>
12846
12847         ftell: Move AC_LIBOBJ invocations to module description.
12848         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
12849         * modules/ftell (configure.ac): ... to here.
12850
12851 2011-05-07  Bruno Haible  <bruno@clisp.org>
12852
12853         ftello: Respect rules for use of AC_LIBOBJ.
12854         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
12855         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
12856         here...
12857         * modules/ftello (configure.ac): ... to here.
12858
12859 2011-05-07  Bruno Haible  <bruno@clisp.org>
12860
12861         fseeko: Simplify.
12862         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
12863         (gl_FUNC_FSEEKO): Inline it here.
12864
12865 2011-05-07  Bruno Haible  <bruno@clisp.org>
12866
12867         fseek: Move AC_LIBOBJ invocations to module description.
12868         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
12869         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12870         * modules/fseek (configure.ac): ... to here.
12871
12872 2011-05-07  Bruno Haible  <bruno@clisp.org>
12873
12874         fseek: Respect rules for use of AC_LIBOBJ.
12875         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
12876         here...
12877         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
12878
12879 2011-05-07  Bruno Haible  <bruno@clisp.org>
12880
12881         fseeko: Respect rules for use of AC_LIBOBJ.
12882         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
12883         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
12884         here...
12885         * modules/fseeko (configure.ac): ... to here.
12886
12887 2011-06-13  Bruno Haible  <bruno@clisp.org>
12888
12889         gnulib-tool: Allow comments in the 'Depends-on' section.
12890         * doc/gnulib.texi (Module description): Mention comment syntax in the
12891         Depends-on section.
12892         * gnulib-tool (func_get_dependencies): Filter out comment lines.
12893
12894 2011-06-13  Bruno Haible  <bruno@clisp.org>
12895
12896         file-set.h: guard __attibute__ use, now that it's not always defined
12897         * lib/file-set.h (record_file): Use __attribute__ only with compiler
12898         versions that support it.  This fixes a coreutils build failure with
12899         the vendor cc on HP-UX 11.31.
12900
12901 2011-06-12  Bruno Haible  <bruno@clisp.org>
12902
12903         acl: Add support for HP-UX >= 11.11 JFS ACLs.
12904         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
12905         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
12906         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
12907         (acl, aclsort): New declarations.
12908         (aclv_nontrivial): New declaration.
12909         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
12910         (file_has_acl): Read also the second kind of HP-UX ACLs.
12911         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
12912         kind of HP-UX ACLs if the first kind fails.
12913         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
12914         second kind of HP-UX ACLs.
12915         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
12916         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
12917         agree.
12918         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12919         hpuxjfs.
12920         Handle hpuxjfs.
12921         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
12922         hpuxjfs.
12923         Handle hpuxjfs.
12924         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12925         (func_test_same_acls): Use both lsacl and getacl.
12926         Handle hpuxjfs.
12927         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
12928         (func_test_same_acls): Use both lsacl and getacl.
12929         Handle hpuxjfs.
12930
12931 2011-06-12  Bruno Haible  <bruno@clisp.org>
12932
12933         acl: Complete the 2010-08-10 fix.
12934         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
12935         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
12936         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
12937         explicitly.
12938         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
12939         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
12940
12941 2011-06-12  Bruno Haible  <bruno@clisp.org>
12942
12943         spawn-pipe tests: Comments.
12944         * tests/test-spawn-pipe-child.c (main): Update comment.
12945         Reported by James Youngman <jay@gnu.org>.
12946
12947 2011-06-11  James Youngman  <jay@gnu.org>
12948
12949         New module 'stat-size'.
12950         * modules/stat-size: New module.  Provides macros for accessing
12951         file size information in instances of struct stat.  Depends on the
12952         fileblocks module because it calls st_blocks.
12953         * lib/stat-size.h: New file, adapted from coreutils' system.h.
12954         * doc/gnulib.texi: Include stat-size.texi.
12955         * doc/stat-size.texi: Documentation for this module.
12956         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
12957         * m4/fileblocks.m4: Mention that stat-size depends on the call to
12958         AC_STRUCT_ST_BLOCKS.
12959
12960 2011-06-09  Bruno Haible  <bruno@clisp.org>
12961
12962         thread: Support pthreads-win32.
12963         * lib/glthread/thread.h (gl_thread_self): Define differently on
12964         pthreads-win32.
12965         (gl_null_thread): New declaration.
12966         (gl_thread_self_pointer): New macro.
12967         * lib/glthread/thread.c (gl_null_thread): New constant.
12968         * tests/test-lock.c: Use gl_thread_self_pointer instead of
12969         gl_thread_self.
12970         * tests/test-tls.c: Likewise.
12971         Suggested by Paul Eggert. Reported by Eric Blake.
12972
12973 2011-06-09  Bruno Haible  <bruno@clisp.org>
12974
12975         thread: Fix confusion between NULL and 0.
12976         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
12977         Reported by Paul Eggert.
12978
12979 2011-06-09  Bruno Haible  <bruno@clisp.org>
12980
12981         spawn-pipe tests: Avoid test failure on HP-UX 11.
12982         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
12983         is closed.
12984
12985 2011-06-09  Bruno Haible  <bruno@clisp.org>
12986
12987         acl tests: Fix compilation error on HP-UX 11.
12988         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
12989
12990 2011-06-09  Bruno Haible  <bruno@clisp.org>
12991
12992         rmdir: Avoid test failure on HP-UX 10.20.
12993         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
12994         EEXIST.
12995
12996 2011-06-08  Eric Blake  <eblake@redhat.com>
12997
12998         perror: fix test on mingw
12999         * modules/perror-tests (Depends-on): Add dup2.
13000
13001         strerror_r-posix: fix on MacOS
13002         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
13003         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
13004         logic bug.
13005         * lib/strerror_r.c (strerror_r): Fix the bug.
13006         * lib/strerror.c (strerror): Likewise.
13007         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13008         problem.
13009         * doc/posix-functions/strerror.texi (strerror): Likewise.
13010         * doc/posix-functions/perror.texi (perror): Likewise.
13011         * tests/test-strerror.c (main): Enhance test.
13012         * tests/test-strerror_r.c (main): Likewise.
13013
13014 2011-06-08  Bruno Haible  <bruno@clisp.org>
13015
13016         gnulib-tool: Better isolation between different gnulib-tool invocations.
13017         * gnulib-tool: New option --witness-c-macro.
13018         (witness_c_macro): New variable.
13019         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
13020         AM_CPPFLAGS define it as a C macro.
13021         (func_emit_tests_Makefile_am): Likewise.
13022         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
13023         read it from there.
13024         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
13025         m4_define, not AC_DEFUN.
13026         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
13027         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
13028         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
13029         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
13030         s|...|...|, to substitute the values of the GNULIB_* module indicator
13031         variables.
13032         * modules/dirent (Makefile.am): Likewise.
13033         * modules/fcntl-h (Makefile.am): Likewise.
13034         * modules/iconv-h (Makefile.am): Likewise.
13035         * modules/langinfo (Makefile.am): Likewise.
13036         * modules/locale (Makefile.am): Likewise.
13037         * modules/math (Makefile.am): Likewise.
13038         * modules/netdb (Makefile.am): Likewise.
13039         * modules/poll-h (Makefile.am): Likewise.
13040         * modules/pty (Makefile.am): Likewise.
13041         * modules/search (Makefile.am): Likewise.
13042         * modules/signal (Makefile.am): Likewise.
13043         * modules/spawn (Makefile.am): Likewise.
13044         * modules/stdio (Makefile.am): Likewise.
13045         * modules/stdlib (Makefile.am): Likewise.
13046         * modules/string (Makefile.am): Likewise.
13047         * modules/sys_ioctl (Makefile.am): Likewise.
13048         * modules/sys_select (Makefile.am): Likewise.
13049         * modules/sys_socket (Makefile.am): Likewise.
13050         * modules/sys_stat (Makefile.am): Likewise.
13051         * modules/sys_times (Makefile.am): Likewise.
13052         * modules/sys_utsname (Makefile.am): Likewise.
13053         * modules/sys_wait (Makefile.am): Likewise.
13054         * modules/termios (Makefile.am): Likewise.
13055         * modules/time (Makefile.am): Likewise.
13056         * modules/unistd (Makefile.am): Likewise.
13057         * modules/wchar (Makefile.am): Likewise.
13058
13059 2011-06-08  Eric Blake  <eblake@redhat.com>
13060
13061         strerror: simplify replacement
13062         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
13063         * modules/strerror (configure.ac): No prereqs needed here...
13064         * modules/strerror-override (configure.ac): ...but this needs it.
13065         (Files): Add file for needed prereq macro.
13066
13067 2011-06-08  Bruno Haible  <bruno@clisp.org>
13068
13069         strerror_r-posix: Tweaks.
13070         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
13071         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
13072         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
13073         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
13074         (gl_FUNC_STRERROR_R): ... to here.
13075         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
13076
13077 2011-06-07  Eric Blake  <eblake@redhat.com>
13078
13079         perror: document fixed bugs
13080         * doc/posix-functions/perror.texi (perror): Document recent
13081         patches.
13082
13083 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13084
13085         stat-time: get_stat_birthtime failure is better-defined
13086         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
13087         return a timestamp whose tv_sec and tv_nsec values are both -1.
13088         Previously, the spec said only that the tv_nsec value was negative.
13089         This upward-compatible change simplifies GNU tar a bit.
13090
13091 2011-06-07  Eric Blake  <eblake@redhat.com>
13092
13093         strerror_r-posix: work around cygwin 1.7.9
13094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
13095         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
13096         bug without replacing strerror_r.
13097         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
13098         strerror_r is buggy, but without requiring strerror_r compilation.
13099         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
13100
13101         test-perror: relax test to ignore cygwin bug
13102         * tests/test-perror2.c (main): Relax test on requiring detection
13103         of stream errors, and use unbuffered stream.
13104         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
13105         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13106         * doc/posix-functions/fputc.texi (fputc): Likewise.
13107         * doc/posix-functions/fputs.texi (fputs): Likewise.
13108         * doc/posix-functions/fputws.texi (fputws): Likewise.
13109         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13110         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
13111         * doc/posix-functions/getopt.texi (getopt): Likewise.
13112         * doc/posix-functions/perror.texi (perror): Likewise.
13113         * doc/posix-functions/printf.texi (printf): Likewise.
13114         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
13115         * doc/posix-functions/psignal.texi (psignal): Likewise.
13116         * doc/posix-functions/putc.texi (putc): Likewise.
13117         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
13118         Likewise.
13119         * doc/posix-functions/putchar.texi (putchar): Likewise.
13120         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
13121         Likewise.
13122         * doc/posix-functions/puts.texi (puts): Likewise.
13123         * doc/posix-functions/putwc.texi (putwc): Likewise.
13124         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13125         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13126         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13127         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13128         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13129         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13130         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
13131         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13132
13133 2011-05-22  Bruno Haible  <bruno@clisp.org>
13134
13135         strerror: Move AC_LIBOBJ invocations to module description.
13136         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
13137         gl_PREREQ_STRERROR invocations from here...
13138         * modules/strerror (configure.ac): ... to here.
13139
13140 2011-05-21  Bruno Haible  <bruno@clisp.org>
13141
13142         perror: Use common idiom.
13143         * modules/perror (configure.ac): Reorder statements.
13144
13145 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13146
13147         tests: fix usage message in 'mktempd_'
13148         * tests/init.sh (mktempd_): In the usage message, use literal
13149         'mktempd_', not '$ME' (which is even undefined), as the name of
13150         the subroutine.
13151
13152 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13153
13154         tests init: new function 'fatal_', for hard errors
13155         Before this patch, the only way offered by tests/init.sh to
13156         properly signal a hard error was the `framework_failure_'
13157         function.  But the error message issued by that function,
13158         as its name would suggest, refers to a set-up failure in the
13159         testsuite, while hard errors can obviously also be due to
13160         other reasons.  The best way to fix this inconsistency is to
13161         introduce a new function with a more general error message.
13162         * tests/init.sh (fatal_): New function.
13163
13164 2011-06-06  Eric Blake  <eblake@redhat.com>
13165
13166         canonicalize-lgpl: use common idiom
13167         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
13168         over newer POSIX -Rf.
13169         Reported by Bruno Haible.
13170
13171         canonicalize-lgpl: work around AIX realpath bug
13172         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
13173         * doc/posix-functions/realpath.texi (realpath): Document it.
13174         Reported by Bruno Haible.
13175
13176         strerror: work around FreeBSD bug
13177         * lib/strerror.c (strerror): Special case 0.
13178         Reported by Bruno Haible.
13179
13180         strerror-override: avoid bloating errno module
13181         * modules/errno (Files, configure.ac): Move replacement strings...
13182         * modules/strerror-override: ...to new module.
13183         * modules/strerror (Depends-on): Add strerror-override.
13184         * modules/strerror_r-posix (Depends-on): Likewise.
13185         * MODULES.html.sh: Document new module.
13186         Reported by Bruno Haible.
13187
13188 2011-06-06  Bruno Haible  <bruno@clisp.org>
13189
13190         spawn-pipe tests: Rename program.
13191         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
13192         * tests/test-spawn-pipe-child.c: Update comment.
13193         * tests/test-spawn-pipe.sh: Update.
13194         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
13195
13196         spawn-pipe tests: Link the child program only against libc.
13197         * tests/test-spawn-pipe-child.c: New file, extracted from
13198         tests/test-spawn-pipe.c.
13199         (main): Expect only one argument.
13200         (is_open): New function, copied from tests/test-pipe.c.
13201         * tests/test-spawn-pipe.c: Don't include <errno.h>.
13202         (child_main): Remove function.
13203         (test_pipe): Pass only one argument to the child program.
13204         (main): Remove child process code. Expect the child program's name as
13205         first argument.
13206         * tests/test-spawn-pipe.sh: Pass the child program's name as first
13207         argument.
13208         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
13209         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
13210         test-spawn-pipe-child against no libraries.
13211
13212 2011-06-06  Bruno Haible  <bruno@clisp.org>
13213
13214         careadlinkat: Avoid mismatch between ssize_t and int.
13215         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
13216         * lib/careadlinkat.c (careadlinkatcwd): Define always.
13217
13218 2011-06-06  Jim Meyering  <meyering@redhat.com>
13219
13220         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
13221         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
13222         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
13223
13224 2011-06-05  Bruno Haible  <bruno@clisp.org>
13225
13226         ansi-c++-opt: Interoperability with libtool.
13227         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
13228         set the variable to "no", not to ":".
13229         * NEWS: Mention the change.
13230
13231 2011-06-05  Bruno Haible  <bruno@clisp.org>
13232
13233         acl: Fix test failure on AIX 7.
13234         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
13235         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
13236
13237 2011-06-05  Bruno Haible  <bruno@clisp.org>
13238
13239         pipe-filter-ii: Fix test failure on AIX and IRIX.
13240         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
13241         with EAGAIN, retry with a smaller buffer size.
13242
13243 2011-06-05  Bruno Haible  <bruno@clisp.org>
13244
13245         localename: Fix link dependencies.
13246         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
13247         * modules/localename-tests (Makefile.am): Link test-localename with
13248         $(LIBTHREAD).
13249
13250 2011-06-05  Bruno Haible  <bruno@clisp.org>
13251
13252         error: Avoid gcc warning.
13253         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
13254
13255 2011-06-05  Bruno Haible  <bruno@clisp.org>
13256
13257         unsetenv: Avoid gcc warning.
13258         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
13259
13260 2011-06-05  Bruno Haible  <bruno@clisp.org>
13261
13262         setenv: Avoid gcc warning.
13263         * lib/setenv.c (setenv): Provide declaration if system lacks it.
13264
13265 2011-06-05  Bruno Haible  <bruno@clisp.org>
13266
13267         sys_select: Ensure memset is declared also on AIX 7.
13268         * lib/sys_select.in.h: Include <string.h> also on AIX.
13269         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
13270         self-contained also on AIX 7.1.
13271
13272 2011-06-04  Jim Meyering  <meyering@redhat.com>
13273
13274         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
13275         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
13276         function name, "error".
13277         (_gl_translatable_diag_func_re): New configurable variable.
13278
13279 2011-06-04  Bruno Haible  <bruno@clisp.org>
13280
13281         getopt: Avoid gcc warning.
13282         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
13283
13284 2011-06-04  Bruno Haible  <bruno@clisp.org>
13285
13286         strerror_r: Fix comments.
13287         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
13288         commit.
13289
13290 2011-06-04  Bruno Haible  <bruno@clisp.org>
13291
13292         perror: Fix compilation error.
13293         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
13294         Undefine fprintf, not sprintf.
13295         * modules/perror (Depends-on): Remove intprops, verify.
13296
13297 2011-06-04  Bruno Haible  <bruno@clisp.org>
13298
13299         setlocale: Enable replacement on Cygwin 1.5.
13300         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
13301         Cygwin 1.5.x.
13302         * doc/posix-functions/setlocale.texi: Mention that the problem with the
13303         LC_CTYPE category also exists on Cygwin 1.5.x.
13304
13305 2011-06-04  Bruno Haible  <bruno@clisp.org>
13306
13307         strerror-override: Don't disable symbol renamings.
13308         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
13309         * lib/strerror-override.c: Include config.h.
13310         (strerror_override): Don't undefine.
13311
13312 2011-06-03  Bruno Haible  <bruno@clisp.org>
13313
13314         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
13315         * lib/localename.h: Update copyright header.
13316         * lib/localename.c: Likewise.
13317         * lib/relocatable.h: Likewise.
13318         * lib/relocatable.c: Likewise.
13319
13320 2011-06-02  Bruno Haible  <bruno@clisp.org>
13321
13322         doc: Fix a module name.
13323         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
13324
13325 2011-06-02  Bruno Haible  <bruno@clisp.org>
13326
13327         pipe2: Remove dependency on 'nonblocking' module.
13328         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
13329         O_NONBLOCK is defined by gnulib.
13330         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
13331         is zero.
13332         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
13333         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
13334         defined by gnulib.
13335         (get_nonblocking_flag): New function.
13336         (main): Test O_NONBLOCK flag only if it is nonzero.
13337         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
13338
13339 2011-06-03  Jim Meyering  <meyering@redhat.com>
13340
13341         maint: three new prohibit-header-without-use rules
13342         Prohibit use of cloexec.h, posixver.h, same.h without use.
13343         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
13344         (sc_prohibit_posixver_without_use): Likewise.
13345         (sc_prohibit_same_without_use): Likewise.
13346
13347 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13348
13349         allocator: 'die' routine is now given requested size
13350         * lib/allocator.h (struct allocator.die): New size arg.
13351         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
13352         If the actual problem is an ssize_t limitation, not a size_t or
13353         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
13354
13355 2011-06-01  Eric Blake  <eblake@redhat.com>
13356
13357         strerror: drop strerror_r dependency
13358         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
13359         * lib/strerror-override.c (strerror_override): ...to new file.
13360         * lib/strerror-override.h: Add prototype.
13361         * lib/strerror-impl.h: Delete.
13362         * lib/strerror.c (strerror): New implementation.
13363         * modules/errno (Files): Add new files.
13364         (configure.ac): Compile new file as appropriate.
13365         * modules/strerror (Files): Drop unused file.
13366         (Depends-on): Drop strerror_r-posix.
13367         * MODULES.html.sh: Document strerror_r-posix.
13368         Requested by Sam Steingold.
13369
13370         perror: call strerror_r directly
13371         * modules/perror (Files): Drop strerror-impl.h.
13372         * lib/perror.c (perror): Use our own stack buffer, rather than
13373         calling a wrapper that uses static storage.
13374         * doc/posix-functions/perror.texi (perror): Document a limitation
13375         of our replacement.
13376
13377         strerror_r: fix includes for FreeBSD
13378         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
13379         since we use abort on some platforms.
13380         Reported by Matthias Bolte.
13381
13382 2011-05-31  Bruno Haible  <bruno@clisp.org>
13383
13384         Fix link errors in tests: openat-die uses gettext-h.
13385         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
13386         against $(LIBINTL).
13387         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
13388         against $(LIBINTL).
13389         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
13390         $(LIBINTL).
13391         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
13392         against $(LIBINTL).
13393         * modules/linkat-tests (Makefile.am): Link test-linkat against
13394         $(LIBINTL).
13395         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
13396         $(LIBINTL).
13397         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
13398         against $(LIBINTL).
13399         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
13400         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
13401         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
13402         $(LIBINTL).
13403         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
13404         $(LIBINTL).
13405         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
13406         $(LIBINTL).
13407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13408
13409 2011-05-31  Bruno Haible  <bruno@clisp.org>
13410
13411         Fix link errors in tests: wait-process uses gettext-h.
13412         * modules/nonblocking-pipe-tests (Makefile.am): Set
13413         test_nonblocking_pipe_main_LDADD.
13414         * modules/nonblocking-socket-tests (Makefile.am): Link
13415         test-nonblocking-socket-main against $(LIBINTL).
13416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13417
13418 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13419
13420         assert-h: work around 'verify' incompatibility
13421         * lib/verify.h: Use @...@ directives, not ifdef.
13422         * modules/assert-h (assert.h): Implement the directives.
13423         (assert.h): Substitute the symbol-prefix more consistently.
13424
13425 2011-05-29  Jim Meyering  <meyering@redhat.com>
13426
13427         trim: remove three superfluous assignments
13428         * lib/trim.c (trim2): Remove three superfluous assignments
13429         and correct brace positioning.
13430
13431 2011-05-29  Bruno Haible  <bruno@clisp.org>
13432
13433         wctype-h: Avoid namespace pollution on Solaris 2.6.
13434         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
13435         identifiers.
13436         * doc/posix-headers/wctype.texi: Mention the problem.
13437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13438
13439 2011-05-28  Jim Meyering  <meyering@redhat.com>
13440
13441         parse-datetime.y: accommodate -Wstrict-overflow
13442         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
13443         placate -Wstrict-overflow.
13444
13445         trim: avoid a warning from -O2 -Wstrict-overflow
13446         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
13447
13448 2011-05-29  Bruno Haible  <bruno@clisp.org>
13449
13450         gnulib-tool: Fix bug in yesterday's commit.
13451         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
13452         twice.
13453
13454 2011-05-29  Bruno Haible  <bruno@clisp.org>
13455
13456         Allow multiple gnulib generated include files to be combined.
13457         * gnulib-tool (func_compute_include_guard_prefix): New function.
13458         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
13459         ${gl_include_guard_prefix} references.
13460         (func_import, func_create_testdir): Invoke
13461         func_compute_include_guard_prefix.
13462         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
13463         * lib/ctype.in.h: Likewise.
13464         * lib/dirent.in.h: Likewise.
13465         * lib/errno.in.h: Likewise.
13466         * lib/fcntl.in.h: Likewise.
13467         * lib/float.in.h: Likewise.
13468         * lib/getopt.in.h: Likewise.
13469         * lib/iconv.in.h: Likewise.
13470         * lib/langinfo.in.h: Likewise.
13471         * lib/locale.in.h: Likewise.
13472         * lib/math.in.h: Likewise.
13473         * lib/netdb.in.h: Likewise.
13474         * lib/netinet_in.in.h: Likewise.
13475         * lib/poll.in.h: Likewise.
13476         * lib/pthread.in.h: Likewise.
13477         * lib/pty.in.h: Likewise.
13478         * lib/sched.in.h: Likewise.
13479         * lib/se-selinux.in.h: Likewise.
13480         * lib/search.in.h: Likewise.
13481         * lib/signal.in.h: Likewise.
13482         * lib/spawn.in.h: Likewise.
13483         * lib/stdarg.in.h: Likewise.
13484         * lib/stddef.in.h: Likewise.
13485         * lib/stdint.in.h: Likewise.
13486         * lib/stdio.in.h: Likewise.
13487         * lib/stdlib.in.h: Likewise.
13488         * lib/string.in.h: Likewise.
13489         * lib/strings.in.h: Likewise.
13490         * lib/sys_file.in.h: Likewise.
13491         * lib/sys_ioctl.in.h: Likewise.
13492         * lib/sys_select.in.h: Likewise.
13493         * lib/sys_socket.in.h: Likewise.
13494         * lib/sys_stat.in.h: Likewise.
13495         * lib/sys_time.in.h: Likewise.
13496         * lib/sys_times.in.h: Likewise.
13497         * lib/sys_uio.in.h: Likewise.
13498         * lib/sys_utsname.in.h: Likewise.
13499         * lib/sys_wait.in.h: Likewise.
13500         * lib/sysexits.in.h: Likewise.
13501         * lib/termios.in.h: Likewise.
13502         * lib/time.in.h: Likewise.
13503         * lib/unistd.in.h: Likewise.
13504         * lib/wchar.in.h: Likewise.
13505         * lib/wctype.in.h: Likewise.
13506         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
13507         * modules/ctype (Makefile.am): Likewise.
13508         * modules/dirent (Makefile.am): Likewise.
13509         * modules/errno (Makefile.am): Likewise.
13510         * modules/fcntl-h (Makefile.am): Likewise.
13511         * modules/float (Makefile.am): Likewise.
13512         * modules/getopt-posix (Makefile.am): Likewise.
13513         * modules/iconv-h (Makefile.am): Likewise.
13514         * modules/langinfo (Makefile.am): Likewise.
13515         * modules/locale (Makefile.am): Likewise.
13516         * modules/math (Makefile.am): Likewise.
13517         * modules/netdb (Makefile.am): Likewise.
13518         * modules/netinet_in (Makefile.am): Likewise.
13519         * modules/poll-h (Makefile.am): Likewise.
13520         * modules/pthread (Makefile.am): Likewise.
13521         * modules/pty (Makefile.am): Likewise.
13522         * modules/sched (Makefile.am): Likewise.
13523         * modules/search (Makefile.am): Likewise.
13524         * modules/selinux-h (Makefile.am): Likewise.
13525         * modules/signal (Makefile.am): Likewise.
13526         * modules/spawn (Makefile.am): Likewise.
13527         * modules/stdarg (Makefile.am): Likewise.
13528         * modules/stddef (Makefile.am): Likewise.
13529         * modules/stdint (Makefile.am): Likewise.
13530         * modules/stdio (Makefile.am): Likewise.
13531         * modules/stdlib (Makefile.am): Likewise.
13532         * modules/string (Makefile.am): Likewise.
13533         * modules/strings (Makefile.am): Likewise.
13534         * modules/sys_file (Makefile.am): Likewise.
13535         * modules/sys_ioctl (Makefile.am): Likewise.
13536         * modules/sys_select (Makefile.am): Likewise.
13537         * modules/sys_socket (Makefile.am): Likewise.
13538         * modules/sys_stat (Makefile.am): Likewise.
13539         * modules/sys_time (Makefile.am): Likewise.
13540         * modules/sys_times (Makefile.am): Likewise.
13541         * modules/sys_uio (Makefile.am): Likewise.
13542         * modules/sys_utsname (Makefile.am): Likewise.
13543         * modules/sys_wait (Makefile.am): Likewise.
13544         * modules/sysexits (Makefile.am): Likewise.
13545         * modules/termios (Makefile.am): Likewise.
13546         * modules/time (Makefile.am): Likewise.
13547         * modules/unistd (Makefile.am): Likewise.
13548         * modules/wchar (Makefile.am): Likewise.
13549         * modules/wctype-h (Makefile.am): Likewise.
13550         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
13551
13552 2011-05-29  Bruno Haible  <bruno@clisp.org>
13553
13554         assert-h: Allow multiple gnulib generated replacements to coexist.
13555         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
13556
13557 2011-05-29  Bruno Haible  <bruno@clisp.org>
13558
13559         argp: Allow coexistence with strerror_r-posix module.
13560         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
13561         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
13562         by gnulib's <string.h> replacement), assume it has the POSIX signature,
13563         not the glibc signature.
13564
13565 2011-05-28  Bruno Haible  <bruno@clisp.org>
13566
13567         gnulib-tool: Alternative structure of testdirs, similar to --import.
13568         * gnulib-tool: New option --single-configure.
13569         (func_usage): Document it.
13570         (single_configure): New variable.
13571         (func_modules_transitive_closure_separately,
13572         func_modules_transitive_closure_separately,
13573         func_determine_use_libtests, func_modules_add_dummy_separately,
13574         func_modules_to_filelist_separately): New functions, extracted from
13575         func_import.
13576         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
13577         (func_import): Use the new functions.
13578         (func_create_testdir): Set final_modules. Handle $single_configure =
13579         true case.
13580
13581 2011-05-28  Bruno Haible  <bruno@clisp.org>
13582
13583         getloadavg: Remove an unreliable safety check.
13584         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
13585         getloadavg.c is in place.
13586         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
13587         Reported by Sam Steingold <sds@gnu.org>.
13588
13589 2011-05-28  Bruno Haible  <bruno@clisp.org>
13590
13591         doc: Cleanup yet another file produced by texinfo.tex.
13592         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
13593
13594 2011-05-28  Bruno Haible  <bruno@clisp.org>
13595
13596         Finish the conditional dependencies mechanism.
13597         * gnulib-tool: New option --no-conditional-dependencies.
13598         (func_usage): Document it. Don't mark --conditional-dependencies as
13599         experimental.
13600         (cond_dependencies): The possible values can now be true, false, empty.
13601         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
13602         (func_import): Store setting in gnulib-cache.m4 and read it from there.
13603         * doc/gnulib-tool.texi (Conditional dependencies): New section.
13604
13605 2011-05-28  Bruno Haible  <bruno@clisp.org>
13606
13607         doc: Use a recent texinfo.tex.
13608         * doc/Makefile (tex_opts): New variable.
13609         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
13610
13611 2011-05-28  Jim Meyering  <meyering@redhat.com>
13612
13613         intprops.h: adjust comment to match code change
13614         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
13615         only once, it *may* have side effects.  Also fix an unrelated typo.
13616         (_GL_INT_SIGNED): Likewise.
13617
13618 2011-05-26  Simon Josefsson  <simon@josefsson.org>
13619
13620         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
13621
13622 2011-05-26  Bruno Haible  <bruno@clisp.org>
13623
13624         mbsrchr: Avoid collision with system function on Interix.
13625         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
13626         Reported by Markus Duft <mduft@gentoo.org>.
13627
13628 2011-05-15  James Youngman  <jay@gnu.org>
13629
13630         getopt: for ambiguous options, enumerate the possibilities.
13631         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
13632         the ambiguous options when an ambiguous prefix is given. This was
13633         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
13634         glibc change was
13635         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
13636
13637 2011-05-25  Eric Blake  <eblake@redhat.com>
13638
13639         getcwd: work around mingw bug
13640         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
13641         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13642         Reported by Matthias Bolte.
13643
13644 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13645
13646         test-intprops: disable -Wtype-limits diagnostics
13647         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
13648         diagnostics.  Otherwise, the integer overflow macros generate many
13649         diagnostics.  Reported by Jim Meyering in
13650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
13651
13652         intprops: shorten, to pacify gcc -Woverlength-strings
13653         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
13654         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
13655         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
13656         likely to run afoul of C compiler limits for string constant lengths.
13657         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
13658
13659 2011-05-24  Eric Blake  <eblake@redhat.com>
13660
13661         docs: document recently fixed glibc printf bug
13662         * doc/posix-functions/fprintf.texi (fprintf): Document it.
13663         * doc/posix-functions/printf.texi (printf): Likewise.
13664         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13665         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13666
13667         closein-tests: convert to init.sh
13668         * modules/closein-tests (Files): Add init.sh
13669         * tests/test-closein.sh Use it.
13670
13671         yesno-tests: convert to init.sh
13672         * modules/yesno-tests (Files): Add init.sh.
13673         * tests/test-yesno.sh: Use it.
13674
13675         atexit-tests: ensure reliable exit status
13676         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
13677         Reported by Bruno Haible.
13678
13679 2011-05-24  Bruno Haible  <bruno@clisp.org>
13680
13681         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
13682         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
13683         gl_PREREQ_STRERROR_R invocations from here...
13684         * modules/strerror_r-posix (configure.ac): ... to here.
13685
13686 2011-05-24  Eric Blake  <eblake@redhat.com>
13687
13688         strerror_r: fix missing header
13689         * lib/strerror_r.c: Avoid compiler warning about snprintf.
13690
13691         strerror_r: fix AIX test failures
13692         * lib/strerror_r.c (strerror_r): Convert silent truncation to
13693         ERANGE failure.
13694
13695         strerror_r: fix Solaris test failures
13696         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
13697         failures.
13698         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
13699
13700         strerror_r: enforce POSIX recommendations
13701         * lib/strerror_r.c (safe_copy): New helper method.
13702         (strerror_r): Guarantee a non-empty string.
13703         * tests/test-strerror_r.c (main): Enhance tests to incorporate
13704         recent POSIX rulings and to match our strerror guarantees.
13705         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
13706
13707 2011-05-24  Jim Meyering  <meyering@redhat.com>
13708
13709         test-perror2.c: avoid warning about unused variable
13710         * tests/test-perror2.c (main): Remove declaration of unused "fp".
13711
13712 2011-05-24  Eric Blake  <eblake@redhat.com>
13713
13714         perror: avoid spurious test failure on HP-UX
13715         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
13716
13717         tests: fix logic bug in init.sh
13718         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
13719         shell.
13720
13721 2011-05-24  Jim Meyering  <meyering@redhat.com>
13722
13723         utimensat: do not reference an out-of-scope buffer
13724         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
13725         declared in an inner scope, yet "times" would be dereferenced outside
13726         the scope in which "ts" was valid.
13727         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
13728         of ts[2] "out/up", so that the use of aliased "times" (via
13729         "times = ts;") does not end up referencing an out-of-scope "ts"
13730
13731         opendir-safer.c: don't clobber errno; don't close negative FD
13732         * lib/opendir-safer.c (opendir_safer):
13733         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
13734         file descriptor, and more importantly, don't clobber the
13735         offending errno value with EINVAL.  Before, upon failure
13736         of dup_safer, we would pass the negative file descriptor to
13737         fdopendir, which would clobber errno.
13738
13739 2011-05-23  Bruno Haible  <bruno@clisp.org>
13740
13741         idcache: Fix module description.
13742         * modules/idcache (Include): Set to "idcache.h".
13743
13744 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
13745
13746         gnulib-tool: fix portability problem with MacOS sed
13747         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
13748         before the "}".  Problem reported by Leo in
13749         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
13750         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
13751         sed_extract_condition1, sed_extract_condition2.
13752
13753 2011-05-23  Bruno Haible  <bruno@clisp.org>
13754
13755         hash: Simplify autoconf macro.
13756         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
13757
13758 2011-05-23  Bruno Haible  <bruno@clisp.org>
13759
13760         getugroups: Fix module description.
13761         * modules/getugroups (Include): Set to "getugroups.h".
13762
13763 2011-05-23  Bruno Haible  <bruno@clisp.org>
13764
13765         linkat: Simplify autoconf macro.
13766         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
13767
13768 2011-05-23  Bruno Haible  <bruno@clisp.org>
13769             Eric Blake  <eblake@redhat.com>
13770
13771         linkat, renameat: Update dependencies.
13772         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
13773         * modules/linkat (Depends-on): Likewise. Remove also readlink,
13774         symlinkat.
13775
13776 2011-05-23  Jim Meyering  <meyering@redhat.com>
13777
13778         maint.mk: more tight_scope improvements
13779         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
13780         (_gl_TS_headers): Define only in if-0'd block.
13781         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
13782         sometimes we must *not* use it.  Adjust uses accordingly.
13783         (sc_tight_scope): Use much simpler grep-based test to determine
13784         whether we skip this rule.
13785
13786         maint.mk: generalize/improve the tight-scope rule
13787         * top/maint.mk: Emit a warning when the test is skipped.
13788         (_gl_TS_dir): Add $(srcdir)/ prefix.
13789         (_gl_TS_function_match): Simplify, rather than trying
13790         to enumerate common types.  Otherwise, it would fail to match an
13791         "extern unsigned char const *" declaration in idutils.
13792         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
13793         a way to support use of that type of macro.
13794         (_gl_TS_var_match): Simplify regexp.
13795         (_gl_TS_obj_files): New configurable variable.
13796         (_gl_TS_headers): Likewise.
13797
13798 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13799
13800         verify: fix bug when gnulib <assert.h> is also included
13801         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
13802         is defined, not if _GL_STATIC_ASSERT_H is not defined.
13803         Perhaps there's a better way, but this fixes the immediate problem.
13804         Problem reported by Bruno Haible in
13805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
13806
13807 2011-05-22  Bruno Haible  <bruno@clisp.org>
13808
13809         xgetcwd: Simplify autoconf macro.
13810         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
13811
13812 2011-05-22  Bruno Haible  <bruno@clisp.org>
13813
13814         New module 'mktime-internal'.
13815         * modules/mktime-internal: New file.
13816         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
13817         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
13818         mktime_internal as a C macro if libc has __mktime_internal.
13819         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
13820         conditions.
13821         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
13822
13823 2011-05-22  Bruno Haible  <bruno@clisp.org>
13824
13825         timegm: Correct mktime replacement statements.
13826         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
13827         defining mktime as a C macro. This completes a 2009-07-28 commit.
13828
13829 2011-05-22  Bruno Haible  <bruno@clisp.org>
13830
13831         timegm: Simplify autoconf macro.
13832         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
13833
13834 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
13835
13836         clock-time: change to LGPLv2+.
13837         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
13838         BSD-like but we have no mark for that; this is good enough for now.
13839
13840 2011-05-21  Bruno Haible  <bruno@clisp.org>
13841
13842         strerror_r: Fix comments.
13843         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
13844
13845 2011-05-21  Bruno Haible  <bruno@clisp.org>
13846
13847         relocatable-prog-wrapper: Fix possible link error.
13848         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
13849         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
13850         (gl_FUNC_SETENV): ... to here.
13851         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
13852         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
13853
13854 2011-05-21  Bruno Haible  <bruno@clisp.org>
13855
13856         relocatable-prog-wrapper: Assume strerror() exists.
13857         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
13858         m4/strerror.m4.
13859         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
13860         * lib/relocwrapper.c: Remove mention of strerror module.
13861         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
13862         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
13863         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
13864         C macro.
13865
13866 2011-05-21  Bruno Haible  <bruno@clisp.org>
13867
13868         select: Simplify replacement idiom.
13869         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
13870         Win32 platforms.
13871         * lib/sys_select.in.h (select): Simplify accordingly.
13872         * modules/select (Depends-on): Likewise.
13873
13874 2011-05-21  Bruno Haible  <bruno@clisp.org>
13875
13876         mkdir-p: Simplify autoconf macro.
13877         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
13878         gl_FUNC_LCHOWN.
13879
13880 2011-05-21  Eric Blake  <eblake@redhat.com>
13881
13882         strerror_r: avoid clobbering strerror on cygwin
13883         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
13884         fall back instead to sys_errlist.
13885         * modules/strerror (configure.ac): Add witness.
13886         * tests/test-strerror_r.c (main): Enhance test.
13887         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13888         * tests/test-perror2.c (main): Free memory before exit.
13889
13890 2011-05-21  Bruno Haible  <bruno@clisp.org>
13891
13892         mkdtemp: Use gnulib naming conventions.
13893         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
13894         * modules/mkdtemp (configure.ac): Update.
13895
13896 2011-05-20  Eric Blake  <eblake@redhat.com>
13897
13898         strerror_r: avoid corrupting errno on Solaris
13899         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
13900         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13901
13902         strerror_r: avoid compiler warning
13903         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
13904
13905         strerror_r: simplify AIX code
13906         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
13907
13908         test-perror: avoid spurious failure on FreeBSD
13909         * modules/perror-tests (Depends-on): Add strerror, now that
13910         strerror_r no longer pulls it in.
13911
13912 2011-05-20  Bruno Haible  <bruno@clisp.org>
13913
13914         strerror_r-posix: Remove unused dependencies.
13915         * modules/strerror_r-posix (Depends-on): Remove strerror.
13916         Reported by Eric Blake.
13917
13918 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13919
13920         intprops: remove assumption about A|B representation
13921         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
13922         is a valid integer if both A and B are.  Although this is true for
13923         all known practical hosts, the C standard doesn't guarantee it,
13924         and the code need not assume it.  Also, this change may work around
13925         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
13926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
13927
13928 2011-05-20  Eric Blake  <eblake@redhat.com>
13929
13930         perror: work around FreeBSD bug
13931         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
13932         is broken.  Move AC_LIBOBJ...
13933         * modules/perror (configure.ac): Here.
13934         * doc/posix-functions/perror.texi (perror): Document this.
13935         * tests/test-perror2.c (main): Enhance test.
13936
13937         test-perror: check for strerror interactions
13938         * tests/macros.h (STREQ): Add macro.
13939         * modules/perror-tests (Files): Add second test.
13940         * tests/test-perror2.c (main): New file.
13941         * doc/posix-functions/perror.texi (perror): Document glibc bug.
13942
13943         test-perror: rewrite to use init script
13944         * modules/perror-tests (Files): Add init.sh.
13945         * tests/test-perror.sh: Use temporary directory.
13946
13947 2011-05-20  Jim Meyering  <meyering@redhat.com>
13948
13949         maint: replace misused "a" with "an"
13950         * doc/intprops.texi: "a integer"
13951         * doc/regex.texi: "a explanation"
13952         * lib/alignof.h: "a object"
13953         * lib/argmatch.h: "a explanation"
13954         * lib/argp-help.c: "a option" and "a OPTION_DOC"
13955         * lib/stdint.in.h: "a integer"
13956         * lib/userspec.c: "a owner"
13957         * doc/gnulib.texi: Fix "a idea", and reword.
13958
13959 2011-05-19  Jim Meyering  <meyering@redhat.com>
13960
13961         maint: correct misuse of "a" and "an"
13962         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
13963         * lib/argp-help.c: "an docum...": s/an/a/
13964         * lib/argp-parse.c: "An vector": s/An/A/
13965         * lib/execute.c: "an native": s/an/a/
13966         * lib/spawn-pipe.c: Likewise.
13967         * lib/gc.h: "an Gc_rc": s/an/a/
13968         * lib/unigbrk.in.h: "an grapheme": s/an/a/
13969         * lib/fts.c: "an stat.st_dev": s/an/a/
13970
13971 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13972
13973         intprops-tests: work around HP-UX 11.23 cc bug with constants
13974         * tests/test-intprops.c (VERIFY): New macro.
13975         (main): Use it, instead of verify, to work around the compiler bug; see
13976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13977
13978         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
13979         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
13980         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
13981         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
13982         (_GL_REMAINDER_OVERFLOW): Use it.
13983
13984         intprops-tests: revert unsigned part of previous change
13985         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
13986         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
13987         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
13988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
13989
13990 2011-05-19  Bruno Haible  <bruno@clisp.org>
13991
13992         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
13993         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
13994         strerror_r() returned without filling the buffer.
13995         Reported by Eric Blake.
13996
13997 2011-05-19  Eric Blake  <eblake@redhat.com>
13998
13999         strerror_r: guarantee unchanged errno
14000         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
14001         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
14002         failure.
14003         * tests/test-strerror_r.c (main): Enhance test.
14004
14005 2011-05-19  Bruno Haible  <bruno@clisp.org>
14006
14007         strerror_r: Reorder #if blocks.
14008         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
14009         for consistency with the previous commit.
14010
14011 2011-05-19  Bruno Haible  <bruno@clisp.org>
14012
14013         perror: Avoid clobbering the strerror buffer when possible.
14014         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
14015         * lib/strerror.c: Include it.
14016         * modules/strerror (Files): Add lib/strerror-impl.h.
14017         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
14018         (my_strerror): New function, defined through lib/strerror-impl.h.
14019         (perror): Use it instead of strerror.
14020         * modules/perror (Files): Add lib/strerror-impl.h.
14021         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
14022
14023 2011-05-19  Eric Blake  <eblake@redhat.com>
14024
14025         strerror_r: fix on newer cygwin
14026         * lib/strerror_r.c (strerror_r): Cygwin now has
14027         __xpg_strerror_r, use it.
14028
14029 2011-05-19  Bruno Haible  <bruno@clisp.org>
14030
14031         strerror_r: Avoid clobbering the strerror buffer when possible.
14032         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
14033         (sys_nerr, sys_errlist): New declarations.
14034         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
14035         HP-UX, native Win32, IRIX, and 32-bit Solaris.
14036         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
14037
14038 2011-05-19  Bruno Haible  <bruno@clisp.org>
14039
14040         strerror_r: Fix test failure on mingw.
14041         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
14042         EXTEND_STRERROR_R.
14043         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
14044         macros from errno.in.h instead.
14045
14046 2011-05-19  Eric Blake  <eblake@redhat.com>
14047
14048         strerror: relax test for Solaris
14049         * tests/test-strerror.c (main): Permit Solaris behavior.
14050         * tests/test-strerror_r.c (main): Likewise.
14051
14052         strerror: enforce POSIX ruling on strerror(0)
14053         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
14054         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14055         * lib/strerror_r.c (rpl_strerror_r): Work around it.
14056         * doc/posix-functions/strerror.texi (strerror): Document it.
14057         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
14058         * tests/test-strerror.c (main): Strengthen test.
14059         * tests/test-strerror_r.c (main): Likewise.
14060
14061 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14062
14063         intprop-tests: port to older and more-pedantic compilers
14064         * modules/intprops-tests (Files): Add tests/macros.h.
14065         * tests/test-intprops.c: Include macros.h.
14066         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
14067         it's no longer documented to expand to an integer constant expression.
14068         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
14069         argument is floating point, as it's no longer documented to expand
14070         to an integer constant expression in that case.
14071         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
14072         compiler bugs reported by Bruno Haible.  See
14073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14074         (U0, U1): New constants, to work around the same bugs.  Also,
14075         in tests, use e.g., "(unsigned int) 39" rather than "39u".
14076
14077         intprops: work around C compiler bugs
14078         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
14079         bug in Sun C 5.11 2010/08/13 and other compilers; see
14080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14081
14082         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
14083         * doc/intprops.texi (Integer Type Determination): Fix
14084         documentation for TYPE_IS_INTEGER: it returns an constant
14085         expression, not an integer constant expression.  Fix doc for
14086         TYPE_SIGNED: it returns an integer constant expression only if its
14087         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
14088         hardly worth documented that way....)
14089
14090 2011-05-18  Bruno Haible  <bruno@clisp.org>
14091
14092         strerror_r: Avoid clobbering the strerror buffer when possible.
14093         * lib/strerror_r.c (strerror_r): Merge the three implementations.
14094         Handle gnulib defined errno values here. When strerror() returns NULL
14095         or an empty string, return EINVAL.
14096         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
14097         gnulib defined errno values here.
14098         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
14099
14100 2011-05-18  Eric Blake  <eblake@redhat.com>
14101
14102         fnmatch: avoid compiler warning
14103         * lib/fnmatch_loop.c (FCT): Use correct type.
14104         Reported by Matthias Bolte.
14105
14106 2011-05-13  Jim Meyering  <meyering@redhat.com>
14107
14108         maint.mk: three new prohibit_<HDR>_without_use rules
14109         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
14110         (sc_prohibit_stdio-safer_without_use): Likewise.
14111         (sc_prohibit_xfreopen_without_use): Likewise.
14112
14113 2011-05-17  Jim Meyering  <meyering@redhat.com>
14114
14115         announce-gen: fail if the NEWS delta is empty
14116         If there's nothing noteworthy in NEWS, then either you forgot
14117         or you shouldn't be releasing.
14118         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
14119
14120 2011-05-17  Pádraig Brady <P@draigBrady.com>
14121
14122         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
14123         reserved symbols starting with double underscore from the check.
14124
14125 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14126
14127         intprops: add doc
14128         * doc/intprops.texi: New file, documenting intprops.
14129         * doc/gnulib.texi (Particular Modules): Include it.
14130
14131         verify: add doc to gnulib manual and fix example
14132         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
14133         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
14134         (Compile-time Assertions): Fix example so it can't overflow.
14135
14136 2011-05-17  Jim Meyering  <meyering@redhat.com>
14137
14138         warnings.m4: don't usurp save_CPPFLAGS variable name
14139         * m4/warnings.m4: Prefix local temporary variable name with gl_.
14140
14141         doc: fix typo
14142         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
14143
14144 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14145             Bruno Haible  <bruno@clisp.org>
14146
14147         doc: Tweak recent change.
14148         * README (Portability guidelines): Tweak new text.
14149         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
14150         Interix 6.1.
14151
14152 2011-05-16  Eric Blake  <eblake@redhat.com>
14153
14154         inttypes: avoid autoconf warning
14155         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
14156         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14157
14158 2011-05-16  Sam Steingold <sds@gnu.org>
14159         and Eric Blake  <eblake@redhat.com>
14160
14161         vc-list-files: accept multiple directory operands
14162         * build-aux/vc-list-files: Iterate over all remaining operands.
14163
14164 2011-05-16  Bruno Haible  <bruno@clisp.org>
14165
14166         Fix confusion regarding deprecated modules.
14167         * modules/calloc (Status, Notice): Mark module as deprecated, not
14168         obsolete.
14169         * modules/fnmatch-posix (Status, Notice): Likewise.
14170         * modules/getdate (Status, Notice): Likewise.
14171         * modules/getopt (Status, Notice): Likewise.
14172         * modules/malloc (Status, Notice): Likewise.
14173         * modules/pipe (Status, Notice): Likewise.
14174         * modules/realloc (Status, Notice): Likewise.
14175         * modules/rename-dest-slash (Status, Notice): Likewise.
14176         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
14177         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
14178         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
14179         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
14180         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
14181
14182 2011-05-16  Bruno Haible  <bruno@clisp.org>
14183
14184         doc: List the target platforms.
14185         * doc/gnulib-intro.texi (Target Platforms): New section.
14186         * doc/gnulib.texi (Introduction): Update menu.
14187         * README (Portability guidelines): Refer to the new section. Update
14188         statement about oldest supported environment. Remove rationale why
14189         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
14190         unportable C89 function.
14191         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
14192         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
14193
14194 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14195
14196         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
14197
14198 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
14199
14200         intprops-tests: new module
14201         * modules/intprops-tests, tests/test-intprops.c: New files.
14202
14203         intprops: add safe, portable integer overflow checking
14204         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
14205         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
14206         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
14207         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
14208         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
14209         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
14210         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
14211         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
14212         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
14213         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
14214         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
14215
14216 2011-05-12  James Youngman  <jay@gnu.org>
14217
14218         Add a test for glibc's Bugzilla bug #12378.
14219         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
14220         doesn't allow the literal matching of a lone "[" (which is
14221         required by POSIX).
14222         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
14223
14224 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14225
14226         Sync glibc change fixing Bugzilla bug #12378.
14227         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
14228         beginning and fall back to matching as normal character if the
14229         string ends before the matching ']' is found.  This is what POSIX
14230         requires.
14231
14232 2011-05-13  Eric Blake  <eblake@redhat.com>
14233
14234         getcwd-lgpl: relax test for FreeBSD
14235         * doc/posix-functions/getcwd.texi (getcwd): Document portability
14236         issue.
14237         * tests/test-getcwd-lgpl.c (main): Relax test.
14238         Reported by Matthias Bolte.
14239
14240 2011-05-11  Eric Blake  <eblake@redhat.com>
14241
14242         test-fflush: silence compiler warning
14243         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
14244
14245 2011-05-11  Bruno Haible  <bruno@clisp.org>
14246
14247         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
14248         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
14249         * modules/canonicalize (Depends-on): Add 'nocrash'.
14250         * modules/canonicalize-lgpl (Depends-on): Likewise.
14251         * doc/posix-functions/realpath.texi: Update platforms list.
14252         Reported by Ryan Schmidt <ryandesign@macports.org>.
14253
14254 2011-05-11  Bruno Haible  <bruno@clisp.org>
14255
14256         group-member: Declare function in <unistd.h>.
14257         * lib/unistd.in.h (group_member): New declaration.
14258         * lib/group-member.h: Remove file.
14259         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
14260         * tests/test-unistd-c++.cc: Check signature of group_member.
14261         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
14262         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
14263         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
14264         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
14265         HAVE_GROUP_MEMBER.
14266         * modules/group-member (Files): Remove lib/group-member.h.
14267         (Depends-on): Add unistd. Specify conditions.
14268         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14269         (Include): Change to <unistd.h>.
14270         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
14271         HAVE_GROUP_MEMBER.
14272         * NEWS: Mention the change.
14273         * lib/euidaccess.c: Don't include group-member.h.
14274
14275 2011-05-11  Bruno Haible  <bruno@clisp.org>
14276
14277         group-member: Document module.
14278         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
14279         module.
14280
14281 2011-05-11  Bruno Haible  <bruno@clisp.org>
14282
14283         fclose: Fix mistake earlier today.
14284         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
14285
14286 2011-05-11  Eric Blake  <eblake@redhat.com>
14287
14288         fclose: preserve fflush errors
14289         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
14290         Reported by Jim Meyering.
14291
14292         bootstrap: support a prereq of 'rpcgen -' on RHEL5
14293         * build-aux/bootstrap (check_versions): When no specific version
14294         is required, merely check that the app produces an exit status
14295         that indicates its existence.
14296
14297         maint.mk: drop redundant check
14298         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
14299         the same but better.
14300
14301 2011-05-11  Bruno Haible  <bruno@clisp.org>
14302
14303         fclose: Fix possible link error.
14304         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
14305         unregister_shadow_fd. Improve comments.
14306         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
14307         Eric Blake.
14308
14309 2011-05-11  Jim Meyering  <meyering@redhat.com>
14310
14311         maint.mk: improve "can not" detection and generalize rule name
14312         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
14313         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
14314         Use the same technique as in sc_prohibit_doubled_word, so that
14315         we recognize "can not" also when the words are separated by a newline.
14316         Suggested by Eric Blake.
14317         (perl_filename_lineno_text_): Define.  Factored out of...
14318         (prohibit_doubled_word_): ...here.  Use the new definition.
14319         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
14320         (prohibit_undesirable_word_seq_RE_): New overridable variable.
14321         (ignore_undesirable_word_sequence_RE_): New overridable variable.
14322
14323 2011-05-10  Eric Blake  <eblake@redhat.com>
14324
14325         fclose: avoid double close race when possible
14326         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
14327         all but WINDOWS_SOCKETS.
14328
14329 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
14330
14331         openat: correct new comment
14332         * lib/openat-proc.c (openat_proc_name): Correct the comment.
14333
14334 2011-05-10  Jim Meyering  <meyering@redhat.com>
14335
14336         openat: add comments
14337         * lib/openat-proc.c (openat_proc_name): Add comments,
14338         mostly from Eric Blake.
14339
14340 2011-05-09  Eric Blake  <eblake@redhat.com>
14341
14342         openat: reduce syscalls in first probe of /proc
14343         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
14344         be a directory.  Simplify the probe for .. bugs.
14345         * modules/openat (Depends-on): Drop same-inode.
14346         Reported by Bastien ROUCARIES.
14347
14348 2011-05-09  Jim Meyering  <meyering@redhat.com>
14349
14350         maint.mk: change semantics/name of tight_scope variables
14351         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
14352         Rename variables to align with semantics that make them more useful.
14353
14354         maint.mk: tweak new rule's name not to impinge
14355         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
14356         (sc_tight_scope): Use new rule name rather than $@-0.
14357
14358         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
14359         * top/maint.mk (sc_tight_scope): New rule.
14360         (sc_tight_scope-0): New rule, ifdef'd out.
14361         (_gl_TS_dir): Default.
14362         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
14363         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
14364
14365 2011-05-09  Simon Josefsson  <simon@josefsson.org>
14366
14367         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
14368         Haible <bruno@clisp.org>.
14369
14370 2011-05-08  Bruno Haible  <bruno@clisp.org>
14371
14372         Comments.
14373         * m4/isnanf.m4: Add comment.
14374         * m4/isnanl.m4: Likewise.
14375
14376 2011-05-08  Bruno Haible  <bruno@clisp.org>
14377
14378         glob: Remove obsolete macro.
14379         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
14380
14381 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14382
14383         intprops: Sun C 5.11 supports __typeof__
14384         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
14385         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
14386         which is new.
14387         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
14388
14389         intprops: switch to usual gnulib indenting and naming
14390         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
14391         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
14392
14393         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
14394
14395 2011-05-08  Jim Meyering  <meyering@redhat.com>
14396
14397         maint.mk: suppress "Entering/Leaving directory" diag in announcement
14398         * top/maint.mk (release-prep): Use make's --no-print-directory
14399         option when generating the announcement.  This eliminates the
14400         pesky "make[2]: Entering/Leaving directory" diagnostics in the
14401         generated announcement template.
14402
14403 2011-05-08  Bruno Haible  <bruno@clisp.org>
14404
14405         tzset: Fix gettimeofday wrapper on Solaris 2.6.
14406         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
14407         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
14408
14409 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
14410
14411         ignore-value, verify: Omit include files from lib_SOURCES.
14412         * modules/ignore-value, modules/verify (Makefile.am):
14413         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
14414         that leads Automake to duplicate use of am__objects_... variables
14415         in Makefile.in.  See
14416         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
14417
14418 2011-05-07  Bruno Haible  <bruno@clisp.org>
14419
14420         fclose: Simplify autoconf macro.
14421         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
14422         defined.
14423
14424 2011-05-07  Bruno Haible  <bruno@clisp.org>
14425
14426         canonicalize-lgpl: Fix autoconf macro ordering bug.
14427         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
14428         gl_STDLIB_H_DEFAULTS.
14429
14430 2011-05-06  Eric Blake  <eblake@redhat.com>
14431
14432         maintainer-makefile: make sc_po_check easier to tune
14433         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
14434         to probe for strings, such as an alternate location for gnulib.
14435
14436         fclose: guarantee behavior on seekable stdin
14437         * modules/fclose (Depends-on): Add fflush.
14438         * doc/posix-functions/fclose.texi (fclose): Document this.
14439         * tests/test-fclose.c (main): Make test for this unconditional.
14440
14441 2011-05-06  Bruno Haible  <bruno@clisp.org>
14442
14443         fflush, fpurge: Relicense under LGPLv2+.
14444         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
14445         * modules/fpurge (License): Likewise.
14446         With permission from Eric Blake and Jim Meyering.
14447         Suggested by Eric Blake.
14448
14449 2011-05-06  Karl Berry  <karl@gnu.org>
14450
14451         * MODULES.html.sh (func_all_modules): remove exit.
14452
14453 2011-05-06  Jim Meyering  <meyering@redhat.com>
14454
14455         maint.mk: use info-gnu@ as the default only for a stable release
14456         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
14457         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
14458         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
14459         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
14460
14461 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14462
14463         assert-h: new module, which supports C1X-style static_assert
14464         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
14465         * lib/verify.h: Revamp so that this can be copied into assert.h,
14466         while retaining the ability to use it standalone as before.
14467         Rename private identifiers so as not to encroach on the
14468         standard C namespace, since this is now used by assert.h.
14469         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
14470         the old verify_true.
14471         (_GL_VERIFY_TRUE): New macro, with much of the contents of
14472         the old verify_true.  Use _GL_VERIFY_TYPE.
14473         (_GL_VERIFY): New macro, with much of the contents of the old verify.
14474         (static_assert): New macro, if _GL_STATIC_ASSERT_H
14475         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
14476         defined when this file is copied into the replacement assert.h.
14477         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
14478         and _Static_assert is not built in.
14479         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
14480         defined, and use the new macros mentioned above.
14481         * doc/posix-headers/assert.texi: Document this.
14482
14483 2011-05-05  Bruno Haible  <bruno@clisp.org>
14484
14485         fclose, fflush: Respect rules for use of AC_LIBOBJ.
14486         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
14487         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
14488         gl_REPLACE_FCLOSE here.
14489         * modules/fflush (Depends-on): Remove fclose.
14490         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
14491         combination with module 'fclose'.
14492
14493 2011-05-05  Bruno Haible  <bruno@clisp.org>
14494
14495         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
14496         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
14497         gl_FUNC_FFLUSH.
14498         (gl_FUNC_FFLUSH): Use it.
14499         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
14500         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
14501         gl_REPLACE_FSEEKO here.
14502
14503 2011-05-05  Bruno Haible  <bruno@clisp.org>
14504
14505         tzset: Relicense under LGPL.
14506         * modules/tzset (License): Change to LGPL.
14507         No agreement needed; it's a no-op.
14508
14509         strtoimax, strtoumax: Relicense under LGPL.
14510         * modules/strtoimax (License): Change to LGPL.
14511         * modules/strtoumax (License): Likewise.
14512         With permission from Jim Meyering, Paul Eggert:
14513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
14514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
14515
14516         getgroups: Relicense under LGPL.
14517         * modules/getgroups (License): Change to LGPL.
14518         With permission from Jim Meyering, Paul Eggert, Eric Blake:
14519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
14520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
14521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14522
14523         nanosleep: Relicense under LGPL.
14524         * modules/nanosleep (License): Change to LGPL.
14525         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
14526         Haible:
14527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
14528         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
14529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
14531
14532         futimens: Relicense under LGPL.
14533         * modules/futimens (License): Change to LGPL.
14534         With permission from Eric Blake:
14535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14536
14537         fflush: Relicense under LGPL.
14538         * modules/fflush (License): Change to LGPL.
14539         With permission from Eric Blake, Bruno Haible, Jim Meyering:
14540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
14541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
14542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
14543
14544         tmpfile: Relicense under LGPL.
14545         * modules/tmpfile (License): Change to LGPL.
14546         With permission from Ben Pfaff:
14547         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
14548
14549         isfinite: Relicense under LGPL.
14550         * modules/isfinite (License): Change to LGPL.
14551         With permission from Ben Pfaff, Bruno Haible:
14552         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
14553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
14554
14555         acosl..tanl: Relicense under LGPL.
14556         * modules/acosl (License): Change to LGPL.
14557         * modules/asinl (License): Likewise.
14558         * modules/atanl (License): Likewise.
14559         * modules/cosl (License): Likewise.
14560         * modules/expl (License): Likewise.
14561         * modules/logl (License): Likewise.
14562         * modules/sinl (License): Likewise.
14563         * modules/sqrtl (License): Likewise.
14564         * modules/tanl (License): Likewise.
14565         Source code originally from glibc and Paolo Bonzini. Agreements:
14566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
14567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
14568
14569 2011-05-05  Bruno Haible  <bruno@clisp.org>
14570
14571         signal: Define sighandler_t.
14572         * lib/signal.in.h (sighandler_t): New type.
14573         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
14574         whether sighandler_t is defined.
14575         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
14576         * modules/signal (Depends-on): Add extensions.
14577         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
14578         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
14579         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
14580
14581 2011-05-05  Eric Blake  <eblake@redhat.com>
14582
14583         maint: remove useless REPLACE_*_H macros
14584         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
14585         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
14586         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
14587         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
14588         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
14589         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
14590         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
14591         * m4/btowc.m4: Update callers.
14592         * m4/dirfd.m4: Likewise.
14593         * m4/duplocale.m4: Likewise.
14594         * m4/fchdir.m4: Likewise.
14595         * m4/fdopendir.m4: Likewise.
14596         * m4/inet_ntop.m4: Likewise.
14597         * m4/inet_pton.m4: Likewise.
14598         * m4/ioctl.m4: Likewise.
14599         * m4/mbrlen.m4: Likewise.
14600         * m4/mbrtowc.m4: Likewise.
14601         * m4/mbsinit.m4: Likewise.
14602         * m4/mbsnrtowcs.m4: Likewise.
14603         * m4/mbsrtowcs.m4: Likewise.
14604         * m4/poll.m4: Likewise.
14605         * m4/setlocale.m4: Likewise.
14606         * m4/wcrtomb.m4: Likewise.
14607         * m4/wcsnrtombs.m4: Likewise.
14608         * m4/wcsrtombs.m4: Likewise.
14609         * m4/wctob.m4: Likewise.
14610         * m4/wcwidth.m4: Likewise.
14611         * modules/posix_spawn: Likewise.
14612         * modules/posix_spawn_file_actions_addclose: Likewise.
14613         * modules/posix_spawn_file_actions_adddup2: Likewise.
14614         * modules/posix_spawn_file_actions_addopen: Likewise.
14615         * modules/posix_spawn_file_actions_destroy: Likewise.
14616         * modules/posix_spawn_file_actions_init: Likewise.
14617         * modules/posix_spawnattr_destroy: Likewise.
14618         * modules/posix_spawnattr_getflags: Likewise.
14619         * modules/posix_spawnattr_getpgroup: Likewise.
14620         * modules/posix_spawnattr_getschedparam: Likewise.
14621         * modules/posix_spawnattr_getschedpolicy: Likewise.
14622         * modules/posix_spawnattr_getsigdefault: Likewise.
14623         * modules/posix_spawnattr_getsigmask: Likewise.
14624         * modules/posix_spawnattr_init: Likewise.
14625         * modules/posix_spawnattr_setflags: Likewise.
14626         * modules/posix_spawnattr_setpgroup: Likewise.
14627         * modules/posix_spawnattr_setschedparam: Likewise.
14628         * modules/posix_spawnattr_setschedpolicy: Likewise.
14629         * modules/posix_spawnattr_setsigdefault: Likewise.
14630         * modules/posix_spawnattr_setsigmask: Likewise.
14631         * modules/posix_spawnp: Likewise.
14632
14633 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
14634
14635         Add option to do-release-commit-and-tag to specify branch.
14636         * build-aux/do-release-commit-and-tag: Add --branch.
14637
14638 2011-05-03  Bruno Haible  <bruno@clisp.org>
14639
14640         Avoid unnecessary compilation units, through conditional dependencies.
14641         * modules/accept (Depends-on): Add conditions to the dependencies.
14642         * modules/acosl (Depends-on): Likewise.
14643         * modules/argz (Depends-on): Likewise.
14644         * modules/asinl (Depends-on): Likewise.
14645         * modules/atanl (Depends-on): Likewise.
14646         * modules/atoll (Depends-on): Likewise.
14647         * modules/bind (Depends-on): Likewise.
14648         * modules/btowc (Depends-on): Likewise.
14649         * modules/canonicalize-lgpl (Depends-on): Likewise.
14650         * modules/ceil (Depends-on): Likewise.
14651         * modules/ceilf (Depends-on): Likewise.
14652         * modules/ceill (Depends-on): Likewise.
14653         * modules/chdir-long (Depends-on): Likewise.
14654         * modules/chown (Depends-on): Likewise.
14655         * modules/close (Depends-on): Likewise.
14656         * modules/connect (Depends-on): Likewise.
14657         * modules/cosl (Depends-on): Likewise.
14658         * modules/dirfd (Depends-on): Likewise.
14659         * modules/dprintf (Depends-on): Likewise.
14660         * modules/dprintf-posix (Depends-on): Likewise.
14661         * modules/error (Depends-on): Likewise.
14662         * modules/euidaccess (Depends-on): Likewise.
14663         * modules/expl (Depends-on): Likewise.
14664         * modules/faccessat (Depends-on): Likewise.
14665         * modules/fchdir (Depends-on): Likewise.
14666         * modules/fclose (Depends-on): Likewise.
14667         * modules/fcntl (Depends-on): Likewise.
14668         * modules/fdopendir (Depends-on): Likewise.
14669         * modules/fflush (Depends-on): Likewise.
14670         * modules/floor (Depends-on): Likewise.
14671         * modules/floorf (Depends-on): Likewise.
14672         * modules/floorl (Depends-on): Likewise.
14673         * modules/fnmatch (Depends-on): Likewise.
14674         * modules/fopen (Depends-on): Likewise.
14675         * modules/fprintf-posix (Depends-on): Likewise.
14676         * modules/frexp (Depends-on): Likewise.
14677         * modules/frexp-nolibm (Depends-on): Likewise.
14678         * modules/frexpl (Depends-on): Likewise.
14679         * modules/frexpl-nolibm (Depends-on): Likewise.
14680         * modules/fseek (Depends-on): Likewise.
14681         * modules/fsusage (Depends-on): Likewise.
14682         * modules/ftell (Depends-on): Likewise.
14683         * modules/ftello (Depends-on): Likewise.
14684         * modules/futimens (Depends-on): Likewise.
14685         * modules/getcwd (Depends-on): Likewise.
14686         * modules/getcwd-lgpl (Depends-on): Likewise.
14687         * modules/getdelim (Depends-on): Likewise.
14688         * modules/getdomainname (Depends-on): Likewise.
14689         * modules/getgroups (Depends-on): Likewise.
14690         * modules/gethostname (Depends-on): Likewise.
14691         * modules/getline (Depends-on): Likewise.
14692         * modules/getlogin_r (Depends-on): Likewise.
14693         * modules/getopt-posix (Depends-on): Likewise.
14694         * modules/getpeername (Depends-on): Likewise.
14695         * modules/getsockname (Depends-on): Likewise.
14696         * modules/getsockopt (Depends-on): Likewise.
14697         * modules/getsubopt (Depends-on): Likewise.
14698         * modules/getusershell (Depends-on): Likewise.
14699         * modules/glob (Depends-on): Likewise.
14700         * modules/grantpt (Depends-on): Likewise.
14701         * modules/iconv_open (Depends-on): Likewise.
14702         * modules/iconv_open-utf (Depends-on): Likewise.
14703         * modules/inet_ntop (Depends-on): Likewise.
14704         * modules/inet_pton (Depends-on): Likewise.
14705         * modules/ioctl (Depends-on): Likewise.
14706         * modules/isapipe (Depends-on): Likewise.
14707         * modules/isfinite (Depends-on): Likewise.
14708         * modules/isinf (Depends-on): Likewise.
14709         * modules/lchown (Depends-on): Likewise.
14710         * modules/ldexpl (Depends-on): Likewise.
14711         * modules/link (Depends-on): Likewise.
14712         * modules/linkat (Depends-on): Likewise.
14713         * modules/listen (Depends-on): Likewise.
14714         * modules/logl (Depends-on): Likewise.
14715         * modules/lstat (Depends-on): Likewise.
14716         * modules/mbrlen (Depends-on): Likewise.
14717         * modules/mbrtowc (Depends-on): Likewise.
14718         * modules/mbsinit (Depends-on): Likewise.
14719         * modules/mbsnrtowcs (Depends-on): Likewise.
14720         * modules/mbsrtowcs (Depends-on): Likewise.
14721         * modules/mbtowc (Depends-on): Likewise.
14722         * modules/memcmp (Depends-on): Likewise.
14723         * modules/mkdir (Depends-on): Likewise.
14724         * modules/mkdtemp (Depends-on): Likewise.
14725         * modules/mkfifo (Depends-on): Likewise.
14726         * modules/mkfifoat (Depends-on): Likewise.
14727         * modules/mknod (Depends-on): Likewise.
14728         * modules/mkostemp (Depends-on): Likewise.
14729         * modules/mkostemps (Depends-on): Likewise.
14730         * modules/mkstemp (Depends-on): Likewise.
14731         * modules/mkstemps (Depends-on): Likewise.
14732         * modules/mktime (Depends-on): Likewise.
14733         * modules/nanosleep (Depends-on): Likewise.
14734         * modules/open (Depends-on): Likewise.
14735         * modules/openat (Depends-on): Likewise.
14736         * modules/perror (Depends-on): Likewise.
14737         * modules/poll (Depends-on): Likewise.
14738         * modules/popen (Depends-on): Likewise.
14739         * modules/posix_spawn (Depends-on): Likewise.
14740         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
14741         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
14742         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
14743         * modules/posix_spawnp (Depends-on): Likewise.
14744         * modules/pread (Depends-on): Likewise.
14745         * modules/printf-posix (Depends-on): Likewise.
14746         * modules/ptsname (Depends-on): Likewise.
14747         * modules/putenv (Depends-on): Likewise.
14748         * modules/pwrite (Depends-on): Likewise.
14749         * modules/readline (Depends-on): Likewise.
14750         * modules/readlink (Depends-on): Likewise.
14751         * modules/readlinkat (Depends-on): Likewise.
14752         * modules/recv (Depends-on): Likewise.
14753         * modules/recvfrom (Depends-on): Likewise.
14754         * modules/regex (Depends-on): Likewise.
14755         * modules/remove (Depends-on): Likewise.
14756         * modules/rename (Depends-on): Likewise.
14757         * modules/renameat (Depends-on): Likewise.
14758         * modules/rmdir (Depends-on): Likewise.
14759         * modules/round (Depends-on): Likewise.
14760         * modules/roundf (Depends-on): Likewise.
14761         * modules/roundl (Depends-on): Likewise.
14762         * modules/rpmatch (Depends-on): Likewise.
14763         * modules/select (Depends-on): Likewise.
14764         * modules/send (Depends-on): Likewise.
14765         * modules/sendto (Depends-on): Likewise.
14766         * modules/setenv (Depends-on): Likewise.
14767         * modules/setlocale (Depends-on): Likewise.
14768         * modules/setsockopt (Depends-on): Likewise.
14769         * modules/shutdown (Depends-on): Likewise.
14770         * modules/sigaction (Depends-on): Likewise.
14771         * modules/signbit (Depends-on): Likewise.
14772         * modules/sigprocmask (Depends-on): Likewise.
14773         * modules/sinl (Depends-on): Likewise.
14774         * modules/sleep (Depends-on): Likewise.
14775         * modules/snprintf (Depends-on): Likewise.
14776         * modules/snprintf-posix (Depends-on): Likewise.
14777         * modules/socket (Depends-on): Likewise.
14778         * modules/sprintf-posix (Depends-on): Likewise.
14779         * modules/sqrtl (Depends-on): Likewise.
14780         * modules/stat (Depends-on): Likewise.
14781         * modules/strchrnul (Depends-on): Likewise.
14782         * modules/strdup-posix (Depends-on): Likewise.
14783         * modules/strerror (Depends-on): Likewise.
14784         * modules/strerror_r-posix (Depends-on): Likewise.
14785         * modules/strndup (Depends-on): Likewise.
14786         * modules/strnlen (Depends-on): Likewise.
14787         * modules/strptime (Depends-on): Likewise.
14788         * modules/strsep (Depends-on): Likewise.
14789         * modules/strsignal (Depends-on): Likewise.
14790         * modules/strstr-simple (Depends-on): Likewise.
14791         * modules/strtod (Depends-on): Likewise.
14792         * modules/strtoimax (Depends-on): Likewise.
14793         * modules/strtok_r (Depends-on): Likewise.
14794         * modules/strtoumax (Depends-on): Likewise.
14795         * modules/symlink (Depends-on): Likewise.
14796         * modules/symlinkat (Depends-on): Likewise.
14797         * modules/tanl (Depends-on): Likewise.
14798         * modules/tcgetsid (Depends-on): Likewise.
14799         * modules/tmpfile (Depends-on): Likewise.
14800         * modules/trunc (Depends-on): Likewise.
14801         * modules/truncf (Depends-on): Likewise.
14802         * modules/truncl (Depends-on): Likewise.
14803         * modules/uname (Depends-on): Likewise.
14804         * modules/unlink (Depends-on): Likewise.
14805         * modules/unlockpt (Depends-on): Likewise.
14806         * modules/unsetenv (Depends-on): Likewise.
14807         * modules/usleep (Depends-on): Likewise.
14808         * modules/utimensat (Depends-on): Likewise.
14809         * modules/vasprintf (Depends-on): Likewise.
14810         * modules/vdprintf (Depends-on): Likewise.
14811         * modules/vdprintf-posix (Depends-on): Likewise.
14812         * modules/vfprintf-posix (Depends-on): Likewise.
14813         * modules/vprintf-posix (Depends-on): Likewise.
14814         * modules/vsnprintf (Depends-on): Likewise.
14815         * modules/vsnprintf-posix (Depends-on): Likewise.
14816         * modules/vsprintf-posix (Depends-on): Likewise.
14817         * modules/wcrtomb (Depends-on): Likewise.
14818         * modules/wcscasecmp (Depends-on): Likewise.
14819         * modules/wcscspn (Depends-on): Likewise.
14820         * modules/wcsdup (Depends-on): Likewise.
14821         * modules/wcsncasecmp (Depends-on): Likewise.
14822         * modules/wcsnrtombs (Depends-on): Likewise.
14823         * modules/wcspbrk (Depends-on): Likewise.
14824         * modules/wcsrtombs (Depends-on): Likewise.
14825         * modules/wcsspn (Depends-on): Likewise.
14826         * modules/wcsstr (Depends-on): Likewise.
14827         * modules/wcstok (Depends-on): Likewise.
14828         * modules/wcswidth (Depends-on): Likewise.
14829         * modules/wctob (Depends-on): Likewise.
14830         * modules/wctomb (Depends-on): Likewise.
14831         * modules/wctype (Depends-on): Likewise.
14832         * modules/wcwidth (Depends-on): Likewise.
14833         * modules/write (Depends-on): Likewise.
14834
14835 2011-05-03  Bruno Haible  <bruno@clisp.org>
14836
14837         Support for conditional dependencies.
14838         * doc/gnulib.texi (Module description): Document the syntax of
14839         conditional dependencies.
14840         * gnulib-tool: New option --conditional-dependencies.
14841         (func_usage): Document it.
14842         (cond_dependencies): New variable.
14843         (func_get_automake_snippet_conditional,
14844         func_get_automake_snippet_unconditional): New functions, extracted from
14845         func_get_automake_snippet.
14846         (func_get_automake_snippet): Use them.
14847         (sed_first_32_chars): New variable.
14848         (func_module_shellfunc_name): New function.
14849         (func_module_shellvar_name): New function.
14850         (func_module_conditional_name): New function.
14851         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
14852         func_cond_module_condition): New functions.
14853         (func_modules_transitive_closure): Add support for conditional
14854         dependencies.
14855         (func_emit_lib_Makefile_am): For a conditional module, enclose the
14856         conditional automake snippet in an automake conditional.
14857         (func_emit_autoconf_snippets): Emit shell functions that contain the
14858         code for conditional modules.
14859         (func_import, func_create_testdir): Update specification.
14860
14861 2011-05-03  Eric Blake  <eblake@redhat.com>
14862
14863         test-getaddrinfo: report error information
14864         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
14865
14866 2011-05-03  Jim Meyering  <meyering@redhat.com>
14867
14868         bootstrap: avoid build failure when $GZIP is set
14869         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
14870         program name.  If defined at all, it is supposed to list gzip options.
14871         Reported by Alan Curry in http://debbugs.gnu.org/8609
14872
14873 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
14874
14875         readme-release: new module with release instructions
14876         * modules/readme-release: New module.
14877         * top/README-release: New file, from coreutils, grep, diffutils.
14878         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14879
14880 2011-05-02  Eric Blake  <eblake@redhat.com>
14881
14882         fflush: also replace fclose when fixing fflush
14883         * modules/fflush (Depends-on): Add fclose.
14884         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
14885         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
14886         memstreams with no backing fd.
14887         * doc/posix-functions/fclose.texi (fclose): Document the use of
14888         fflush module to fix the bug.
14889         * tests/test-fclose.c (main): Relax test when fclose is used in
14890         isolation.
14891
14892         fclose: add some tests
14893         * modules/fclose-tests: New test module.
14894         * tests/test-fclose.c: New file.
14895         * doc/posix-functions/fclose.texi (fclose): Document the bug.
14896
14897         fclose: reduced dependencies
14898         * modules/fclose (Depends-on): Switch from fflush/fseeko to
14899         simpler lseek.
14900         * lib/fclose.c (rpl_fclose): Likewise.
14901         Reported by Simon Josefsson.
14902
14903         exit: drop remaining clients
14904         * modules/argmatch (Depends-on): Replace exit with stdlib.
14905         * modules/copy-file (Depends-on): Likewise.
14906         * modules/execute (Depends-on): Likewise.
14907         * modules/exitfail (Depends-on): Likewise.
14908         * modules/obstack (Depends-on): Likewise.
14909         * modules/pagealign_alloc (Depends-on): Likewise.
14910         * modules/pipe-filter-gi (Depends-on): Likewise.
14911         * modules/pipe-filter-ii (Depends-on): Likewise.
14912         * modules/savewd (Depends-on): Likewise.
14913         * modules/spawn-pipe (Depends-on): Likewise.
14914         * modules/wait-process (Depends-on): Likewise.
14915         * modules/xsetenv (Depends-on): Likewise.
14916         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
14917         * modules/git-merge-changelog (Depends-on): Likewise.
14918         * modules/long-options (Depends-on): Likewise.
14919         * modules/pt_chown (Depends-on): Likewise.
14920         * modules/sysexits (Depends-on): Likewise.
14921
14922         freading: relax license from LGPLv3+ to LGPLv2+
14923         * modules/freading (License): Relax LGPL version.
14924
14925 2011-05-02  Bruno Haible  <bruno@clisp.org>
14926
14927         fchdir: Remove unused dependencies.
14928         * modules/fchdir (Depends-on): Remove include_next.
14929
14930 2011-05-02  Bruno Haible  <bruno@clisp.org>
14931
14932         gnulib-tool: Refactor.
14933         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
14934         from func_emit_autoconf_snippets.
14935         (func_emit_autoconf_snippets): Use it.
14936
14937 2011-05-02  Simon Josefsson  <simon@josefsson.org>
14938
14939         * NEWS: Document removal of 'exit'.
14940         * modules/exit: Remove file.
14941
14942 2011-05-01  Bruno Haible  <bruno@clisp.org>
14943
14944         Update DEPENDENCIES.
14945         * DEPENDENCIES (gettext): Recommend the newest release.
14946         Reported by Simon Josefsson.
14947
14948 2011-05-01  Bruno Haible  <bruno@clisp.org>
14949
14950         gnulib-tool: Reduce code duplication.
14951         * gnulib-tool (func_emit_autoconf_snippets): New function.
14952         (func_import, func_create_testdir): Use it.
14953
14954 2011-04-30  Eric Blake  <eblake@redhat.com>
14955
14956         fclose: don't fail on non-seekable input stream
14957         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
14958         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
14959         since fflush is allowed to fail in that case.
14960
14961 2011-04-30  Bruno Haible  <bruno@clisp.org>
14962
14963         dup3: cleanup
14964         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
14965
14966 2011-04-30  Bruno Haible  <bruno@clisp.org>
14967
14968         netdb: Make it work in C++ mode.
14969         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
14970         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
14971         module.
14972         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
14973         gl_MODULE_INDICATOR_FOR_TESTS.
14974         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
14975         * modules/netdb-c++-tests: New file.
14976         * tests/test-netdb-c++.cc: New file.
14977
14978 2011-04-30  Bruno Haible  <bruno@clisp.org>
14979
14980         New modules 'vfscanf', 'vscanf'.
14981         * modules/vfscanf: New file.
14982         * modules/vscanf: New file.
14983         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
14984         here.
14985         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
14986         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
14987
14988 2011-04-30  Bruno Haible  <bruno@clisp.org>
14989
14990         passfd: Add comments.
14991         * lib/passfd.c: Add comments about platforms.
14992
14993 2011-04-30  Bruno Haible  <bruno@clisp.org>
14994
14995         sys_uio: Make <sys/uio.h> self-contained.
14996         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
14997         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
14998
14999 2011-04-30  Bruno Haible  <bruno@clisp.org>
15000
15001         sys_socket: Ensure 'struct iovec' definition.
15002         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
15003         <sys/socket.h>.
15004         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
15005
15006 2011-04-30  Bruno Haible  <bruno@clisp.org>
15007
15008         sys_uio: Protect definition of 'struct iovec'.
15009         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
15010         it as a C struct.
15011
15012 2011-04-30  Bruno Haible  <bruno@clisp.org>
15013
15014         manywarnings: fix indentation
15015         * m4/manywarnings.m4: Indent by 2 spaces consistently.
15016
15017 2011-04-30  Pádraig Brady <P@draigBrady.com>
15018
15019         manywarnings: add -Wno-missing-field-initializers if needed.
15020         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
15021         option if it's needed to allow initialization with { 0, }
15022
15023 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
15024
15025         announce-gen: cosmetic improvement
15026         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
15027
15028 2011-04-29  Jim Meyering  <meyering@redhat.com>
15029
15030         vc-list-files: indent with spaces, not TABs
15031         * build-aux/vc-list-files: Convert leading TABs to spaces,
15032         to match the style of most other files in gnulib.
15033
15034         announce-gen: indent with spaces, not TABs
15035         * build-aux/announce-gen: Convert all TABs to spaces, to match
15036         the style of most other files in gnulib.
15037
15038 2011-04-29  Eric Blake  <eblake@redhat.com>
15039
15040         quotearg: avoid uninitialized variable use
15041         * lib/quotearg.c (quoting_options_from_style): Initialize
15042         remaining fields, and ensure that custom styles are only used via
15043         quoting_options rather than quoting_style.
15044
15045 2011-04-29  Jim Meyering  <meyering@redhat.com>
15046
15047         maint.mk: remove unused VC-tag variable
15048         * top/maint.mk (VC-tag): Remove unused variable.
15049
15050 2011-04-29  Bruno Haible  <bruno@clisp.org>
15051
15052         netdb: fix gai_strerror replacements
15053         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
15054         * modules/netdb: Substitute it.
15055
15056 2011-04-29  Jim Meyering  <meyering@redhat.com>
15057
15058         test-getcwd.c: avoid new set-but-not-used warning
15059         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
15060         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
15061         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
15062         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
15063
15064         test-hash.c: avoid a new shadowing warning
15065         * tests/test-hash.c (main): Don't shadow "dup".
15066
15067 2011-04-28  Eric Blake  <eblake@redhat.com>
15068
15069         getaddrinfo: fix gai_strerror signature
15070         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
15071         and work around mingw with UNICODE defined.
15072         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
15073         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
15074         * modules/netdb (Makefile.am): Substitute it.
15075         * lib/netdb.in.h (gai_strerror): Declare replacement.
15076         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
15077         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
15078         the fix.
15079
15080         getsockopt: avoid compiler warning
15081         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
15082         Reported by Matthias Bolte.
15083
15084         tests: drop unused link dependency
15085         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
15086         * modules/dirent-safer-tests (Makefile.am): Likewise.
15087         * modules/fdopendir-tests (Makefile.am): Likewise.
15088         * modules/mkfifoat-tests (Makefile.am): Likewise.
15089         * modules/openat-safer-tests (Makefile.am): Likewise.
15090         * modules/openat-tests (Makefile.am): Likewise.
15091         * modules/readlinkat-tests (Makefile.am): Likewise.
15092         * modules/symlinkat-tests (Makefile.am): Likewise.
15093         * modules/linkat-tests (Makefile.am): Likewise.
15094         (Depends-on): Switch to filenamecat-lgpl.
15095         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
15096         LIBINTL.
15097         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
15098         * tests/test-linkat.c (main): Don't require xalloc.
15099
15100         hash, mgetgroups: drop xalloc dependency
15101         * lib/hash.c (includes): Adjust includes.
15102         * lib/mgetgroups.c (includes): Likewise.
15103         (xgetgroups): Move...
15104         * lib/xgetgroups.c: ...to new file.
15105         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
15106         * modules/xgetgroups: New file, split from...
15107         * modules/mgetgroups: ...here.
15108         (Depends-on): Add xalloc-oversized.
15109         * modules/hash (Depends-on): Likewise.
15110         * modules/hash-tests (Depends-on): Drop xalloc.
15111         (test_hash_LDADD): Drop unused library.
15112         * tests/test-hash.c (main): Break xalloc dependency.
15113         (includes): Drop unused include.
15114
15115         xalloc-oversized: new module
15116         * modules/xalloc-oversized: New module.
15117         * modules/xalloc (Depends-on): Add it.
15118         * lib/xalloc.h (xalloc_oversized): Move...
15119         * lib/xalloc-oversized.h: ...into new file.
15120
15121         utimecmp: drop dependency on xmalloc
15122         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
15123         due to memory pressure.
15124         * modules/utimecmp (Depends-on): Drop xalloc.
15125
15126 2011-04-27  Eric Blake  <eblake@redhat.com>
15127
15128         getcwd: fix mingw bugs
15129         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
15130         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
15131         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
15132
15133 2011-04-27  Bruno Haible  <bruno@clisp.org>
15134
15135         mkstemps: Ensure declaration on MacOS X 10.5.
15136         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
15137         * doc/glibc-functions/mkstemps.texi: Document header file problem on
15138         MacOS X.
15139
15140 2011-04-27  Bruno Haible  <bruno@clisp.org>
15141
15142         mkstemp: More documentation.
15143         * doc/posix-functions/mkstemp.texi: Document header file problem on
15144         MacOS X.
15145
15146 2011-04-27  Bruno Haible  <bruno@clisp.org>
15147
15148         mkstemp: Tweak configure message when cross-compiling.
15149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
15150         result as a guess.
15151
15152 2011-04-27  Bruno Haible  <bruno@clisp.org>
15153
15154         clean-temp: Clarify what it does.
15155         * lib/clean-temp.h: Add more comments.
15156         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
15157         module.
15158         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
15159         * doc/glibc-functions/mkstemps.texi: Likewise.
15160         * doc/glibc-functions/mkostemps.texi: Likewise.
15161
15162 2011-04-27  Eric Blake  <eblake@redhat.com>
15163
15164         fchdir: avoid extra chdir and fix test
15165         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
15166         getcwd-lgpl.
15167         * lib/fchdir.c (get_name): Any absolute name will do; it does not
15168         have to be canonical.
15169         (canonicalize_file_name): Drop unused macro.
15170         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
15171
15172         filenamecat-lgpl: fix licence
15173         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
15174         when it was first created.
15175
15176         linkat, renameat: add missing dependency
15177         * modules/linkat (Depends-on): Require getcwd-lgpl.
15178         * modules/renameat (Depends-on): Likewise.
15179
15180         tests: reduce dependencies
15181         * tests/test-linkat.c (main): Use lighter-weight getcwd.
15182         * tests/test-renameat.c (main): Likewise.
15183         * modules/linkat-tests (Depends-on): Relax dependency.
15184         * modules/renameat-tests (Depends-on): Likewise.
15185         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
15186         dependency explicit.
15187
15188         save-cwd: reduce default dependency
15189         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
15190         * lib/save-cwd.c: Update comments.
15191         * NEWS: Document the semantic change.
15192
15193         getcwd: enhance tests
15194         * tests/test-getcwd-lgpl.c: New file, taken from...
15195         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
15196         repeat long path stress tests from m4 probe.
15197         * modules/getcwd-lgpl-tests: New module.
15198         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
15199         * m4/getcwd-abort-bug.m4: Update comment.
15200         * m4/getcwd-path-max.m4: Likewise.
15201
15202         getcwd-lgpl: new module
15203         * modules/getcwd-lgpl: New module.
15204         * lib/getcwd-lgpl.c: New file.
15205         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15206         * MODULES.html.sh (lacking POSIX:2008): Likewise.
15207         * modules/getcwd (configure.ac): Set C witness.
15208         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
15209
15210         getcwd: tweak comments
15211         * m4/getcwd-abort-bug.m4: Fix comments.
15212         * m4/getcwd-path-max.m4: Likewise.
15213         * m4/getcwd.m4: Likewise.
15214
15215 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15216         and Eric Blake  <eblake@redhat.com>
15217
15218         mkstemp: replace if system version uses wrong permissions
15219         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
15220         read/write mode bits set in file created by mkstemp.
15221         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
15222
15223 2011-04-27  Eric Blake  <eblake@redhat.com>
15224
15225         passfd: avoid compiler warning
15226         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
15227         Reported by Laine Stump.
15228
15229 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
15230
15231         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
15232         required by the NetBSD (and perhaps other 4.4BSD derived) join.
15233
15234 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15235         and Eric Blake  <eblake@redhat.com>
15236
15237         mkstemp: mention clean-temp module
15238         * lib/mkstemp.c: Add comment.
15239         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
15240
15241 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
15242
15243         inttypes: also provide default values for 32-bit tests
15244         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
15245         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
15246
15247 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15248
15249         strtoumax: remove dependency on strtoimax
15250         This is like the strtoull change of yesterday.
15251         * modules/strtoumax (Files): Add lib/strtoimax.c.
15252         (Depends-on): Remove strtoimax and add verify.
15253
15254         inttypes-incomplete: new module
15255         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
15256         all but the PRI* and SCN* parts of gl_INTTYPES_H.
15257         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
15258         of gl_INTTYPES_H.
15259         (gl_INTTYPES_H): Rewrite in terms of these new macros.
15260         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
15261         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
15262         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
15263         * modules/strtoumax, modules/xstrtol (Depends-on):
15264         Depend on inttypes-incomplete, not inttypes.
15265         * modules/inttypes-incomplete: New module, containing the contents
15266         of the old modules/inttypes module, except that the Files: section
15267         omits m4/inttypes-pri.m4, and the configure.ac section invokes
15268         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
15269         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
15270         (Depends-on): Depend only on inttypes-incomplete.
15271         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
15272
15273         inttypes: omit now-redundant strtoimax and strtoumax work
15274         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
15275         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
15276
15277         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
15278         This supports apps that need pointers to strtoimax and strtoumax,
15279         and ports to HP-UX 11.00 64.bit, which has macros that expand to
15280         nonexistent functions.  See
15281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
15282         et seq.
15283         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
15284         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
15285         a macro.
15286         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15287
15288 2011-04-25  Simon Josefsson  <simon@josefsson.org>
15289
15290         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
15291
15292 2011-04-25  Bruno Haible  <bruno@clisp.org>
15293
15294         strtol, strtoul: Mark modules as obsolete.
15295         * modules/strtol (Status, Notice): New sections.
15296         * modules/strtoul (Status, Notice): New sections.
15297
15298 2011-04-25  Bruno Haible  <bruno@clisp.org>
15299
15300         strtod: Remove check for strtod, unless supporting old platforms.
15301         * modules/strtod-obsolete: New file.
15302         * m4/strtod-obsolete.m4: New file.
15303         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
15304         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
15305         * modules/strtod (Depends-on): Add strtod-obsolete.
15306         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
15307
15308 2011-04-25  Bruno Haible  <bruno@clisp.org>
15309
15310         strcase: Make module obsolete.
15311         * modules/strcase (Status, Notice): New sections.
15312
15313 2011-04-25  Bruno Haible  <bruno@clisp.org>
15314
15315         dup2: Remove check for dup2, unless supporting old obsolete platforms.
15316         * modules/dup2-obsolete: New file.
15317         * m4/dup2-obsolete.m4: New file.
15318         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
15319         gl_FUNC_DUP2_OBSOLETE is not also defined.
15320         * modules/dup2 (Depends-on): Add dup2-obsolete.
15321         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
15322
15323 2011-04-25  Bruno Haible  <bruno@clisp.org>
15324
15325         strnlen: Avoid memchr related link error on old obsolete platforms.
15326         * modules/memchr-obsolete: New file.
15327         * m4/memchr-obsolete.m4: New file.
15328         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
15329         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
15330         * modules/memchr (Depends-on): Add memchr-obsolete.
15331         * modules/strnlen (Depends-on): Likewise.
15332         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
15333
15334 2011-04-25  Jim Meyering  <meyering@redhat.com>
15335
15336         maint.mk: makefile_at_at_check extend and clean up
15337         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
15338         in addition to */Makefile.am.
15339         Exempt legitimate uses of @VAR@ notation, e.g.,
15340         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
15341         Remove obsolete coreutils-specific comment.
15342         Prompted by discussion here:
15343         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
15344
15345 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15346
15347         strtoul: remove dependency on strtol
15348         This is so that 'configure' need not check for strtol merely because
15349         the application needs strtoul.
15350         * modules/strtoul (Files): Add lib/strtol.c.
15351         (Depends-on): Remove strtol.
15352
15353         strtoull: remove dependency on strtoul
15354         This is like the strtoll change.
15355         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
15356         (Depends-on): Remove strtoul.
15357
15358         strtoll: remove dependency on strtol
15359         This is so that 'configure' need not check for strtol merely because
15360         the application needs strtoll.
15361         * modules/strtoll (Files): Add lib/strtol.c.
15362         (Depends-on): Remove strtol.
15363
15364 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15365
15366         inttypes: Move some configure check to module 'imaxdiv'.
15367         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
15368         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
15369         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
15370
15371 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15372
15373         inttypes: Move some configure check to module 'imaxabs'.
15374         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
15375         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
15376         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
15377
15378 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15379
15380         inttypes: Remove configure tests that are not needed since 2009-12-31.
15381         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
15382         gl_cv_header_working_inttypes_h.
15383
15384 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15385
15386         * modules/strnlen (Depends-on): Remove memchr.
15387         The strnlen implementation doesn't need the memchr module's fixes; see
15388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
15389
15390         strtol: remove dependency on wchar
15391         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
15392         * modules/strtol (Depends-on): Remove wchar.
15393
15394 2011-04-21  Eric Blake  <eblake@redhat.com>
15395
15396         passfd: fix test regression on Linux
15397         * modules/passfd-tests (configure.ac): Correct socketpair check.
15398
15399         passfd: speed up configure and drop unused code
15400         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
15401         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
15402         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
15403         Instead of probing at configure for unix_scm_rights_bsd44_way,
15404         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
15405         check to a struct member probe.
15406         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
15407         (sendfd, recvfd): Update preprocessor checks.
15408         * modules/passfd (Files): Reflect rename, and drop unused file.
15409         (Depends-on): Drop unused dependency.
15410
15411         passfd: allow compilation on mingw
15412         * modules/sys_socket (Depends-on): Add sys_uio.
15413         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
15414         iovec and a minimal struct msghdr.
15415         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
15416         * tests/test-sys_socket.c (main): Enhance test.
15417         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
15418         guaranteed to provide what we need.
15419         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
15420         * modules/passfd-tests (Depends-on): Add sys_wait.
15421         * tests/test-passfd.c (main): Skip test on mingw, for now.
15422         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
15423         partial 'struct msghdr' implementation.
15424
15425         sys_uio: new module
15426         * modules/sys_uio: New module.
15427         * modules/sys_uio-tests: Likewise.
15428         * lib/sys_uio.in.h: New file.
15429         * m4/sys_uio_h.m4: Likewise.
15430         * tests/test-sys_uio.c: Likewise.
15431         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
15432         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
15433
15434 2011-04-20  Jim Meyering  <meyering@redhat.com>
15435
15436         useless-if-before-free: avoid false-positive
15437         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
15438         disjunct so that it too requires a terminating ";".  Without that,
15439         this script would identify as useless one statement from gcc that
15440         was not:
15441           if (aligned_ptr)
15442             free (((void **) aligned_ptr) [-1]);
15443
15444 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
15445
15446         doc: update users.txt.
15447         * users.txt: Add barcode.
15448
15449 2011-04-19  Bruno Haible  <bruno@clisp.org>
15450
15451         ioctl: Remove link dependency on native Windows.
15452         * lib/fd-hook.h: Renamed from lib/close-hook.h.
15453         (gl_close_fn, gl_ioctl_fn): New types.
15454         (struct fd_hook): Renamed from struct close_hook. Change type of
15455         private_close_fn field. Add private_ioctl_fn field.
15456         (close_hook_fn): Add parameter for primary close method.
15457         (execute_close_hooks, execute_all_close_hooks): Likewise.
15458         (ioctl_hook_fn): New type.
15459         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
15460         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
15461         argument.
15462         (unregister_fd_hook): Renamed from unregister_close_hook.
15463         * lib/fd-hook.c: Renamed from lib/close-hook.c.
15464         Don't include <unistd.h>.
15465         (close): Remove undef.
15466         (anchor): Update.
15467         (execute_close_hooks): Add argument for primary close method.
15468         (execute_all_close_hooks): Likewise.
15469         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
15470         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
15471         argument. Allow each argument to be NULL.
15472         (unregister_fd_hook): Renamed from unregister_close_hook.
15473         * lib/close.c (rpl_close): Pass 'close' function pointer to
15474         execute_all_close_hooks.
15475         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
15476         (primary_ioctl): New function.
15477         (ioctl): Don't call ioctlsocket here. Instead, call
15478         execute_all_ioctl_hooks.
15479         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
15480         close method.
15481         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
15482         (fd_sockets_hook): Renamed from close_sockets_hook.
15483         (gl_sockets_startup, gl_sockets_cleanup): Update.
15484         * modules/fd-hook: Renamed from modules/close-hook. Update.
15485         * modules/close (Depends-on): Add fd-hook, remove close-hook.
15486         * modules/sockets (Depends-on): Likewise.
15487         * modules/ioctl (Depends-on): Add fd-hook.
15488         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
15489         GNULIB_SOCKET.
15490
15491 2011-04-19  Bruno Haible  <bruno@clisp.org>
15492
15493         Move the support of O_NONBLOCK in open() to the 'open' module.
15494         * modules/nonblocking (Depends-on): Remove 'open'.
15495         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
15496         gl_cv_have_open_O_NONBLOCK.
15497         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
15498         O_NONBLOCK support.
15499         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
15500
15501 2011-04-17  Bruno Haible  <bruno@clisp.org>
15502
15503         pipe2: Simplify code.
15504         * lib/pipe2.c (pipe2): Reduce code duplication.
15505
15506 2011-04-17  Bruno Haible  <bruno@clisp.org>
15507
15508         nonblocking: Add comment.
15509         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
15510
15511 2011-04-17  Bruno Haible  <bruno@clisp.org>
15512
15513         nonblocking: Add tests for sockets.
15514         * tests/test-nonblocking-socket.sh: New file.
15515         * tests/test-nonblocking-socket-main.c: New file.
15516         * tests/test-nonblocking-socket-child.c: New file.
15517         * tests/test-nonblocking-socket.h: New file.
15518         * tests/socket-server.h: New file.
15519         * tests/socket-client.h: New file.
15520         * modules/nonblocking-socket-tests: New file.
15521         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
15522
15523 2011-04-17  Bruno Haible  <bruno@clisp.org>
15524
15525         nonblocking: Add tests for pipes.
15526         * tests/test-nonblocking-pipe.sh: New file.
15527         * tests/test-nonblocking-pipe-main.c: New file.
15528         * tests/test-nonblocking-pipe-child.c: New file.
15529         * tests/test-nonblocking-pipe.h: New file.
15530         * tests/test-nonblocking-writer.h: New file.
15531         * tests/test-nonblocking-reader.h: New file.
15532         * tests/test-nonblocking-misc.h: New file.
15533         * modules/nonblocking-pipe-tests: New file.
15534         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
15535
15536 2011-04-16  Bruno Haible  <bruno@clisp.org>
15537
15538         gettext: Clarify the needed programmer actions.
15539         * modules/gettext (Notice): New field.
15540         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
15541
15542 2011-04-16  Bruno Haible  <bruno@clisp.org>
15543
15544         strchrnul: Tweak last commit.
15545         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
15546         bug.
15547         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
15548         as in _GL_FUNCDECL_SYS.
15549         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
15550         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
15551
15552 2011-04-15  Eric Blake  <eblake@redhat.com>
15553
15554         strchrnul: work around cygwin bug
15555         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
15556         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
15557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
15558         * modules/string (Makefile.am): Substitute it.
15559         * lib/string.in.h (strchrnul): Use it.
15560
15561 2011-04-15  Bruno Haible  <bruno@clisp.org>
15562
15563         Don't require lib/stdio-write.c when only module 'stdio' is used.
15564         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
15565         invocation.
15566         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
15567
15568 2011-04-14  Bruno Haible  <bruno@clisp.org>
15569
15570         Support non-blocking pipe I/O in read() on native Windows.
15571         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
15572         (read): New declaration.
15573         * lib/read.c: New file.
15574         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
15575         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
15576         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
15577         vscanf): New declarations.
15578         * lib/stdio-read.c: New file.
15579         * m4/read.m4: New file.
15580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
15581         REPLACE_READ.
15582         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
15583         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15584         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
15585         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
15586         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
15587         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15588         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
15589         * modules/read: New file.
15590         * modules/nonblocking (Files): Add lib/stdio-read.c.
15591         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
15592         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
15593         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
15594         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
15595         * modules/pread (Depends-on): Add read.
15596         * modules/safe-read (Depends-on): Likewise.
15597         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
15598         gets, scanf, vfscanf, vscanf): Verify signatures.
15599         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
15600         problem with non-blocking pipes.
15601         * doc/posix-functions/fgetc.texi: Likewise.
15602         * doc/posix-functions/fgets.texi: Likewise.
15603         * doc/posix-functions/fread.texi: Likewise.
15604         * doc/posix-functions/fscanf.texi: Likewise.
15605         * doc/posix-functions/getc.texi: Likewise.
15606         * doc/posix-functions/getchar.texi: Likewise.
15607         * doc/posix-functions/gets.texi: Likewise.
15608         * doc/posix-functions/scanf.texi: Likewise.
15609         * doc/posix-functions/vfscanf.texi: Likewise.
15610         * doc/posix-functions/vscanf.texi: Likewise.
15611
15612 2011-04-14  Bruno Haible  <bruno@clisp.org>
15613
15614         Support non-blocking pipe I/O in write() on native Windows.
15615         * lib/write.c (rpl_write): Split a write request that failed merely
15616         because the byte count was larger than the pipe buffer's size.
15617         * doc/posix-functions/write.texi: Mention the problem with large byte
15618         counts.
15619
15620 2011-04-14  Bruno Haible  <bruno@clisp.org>
15621
15622         wchar: Ensure that wchar_t gets defined on uClibc.
15623         * lib/wchar.in.h: On uClibc, include <stddef.h>.
15624         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
15625
15626 2011-04-13  Bruno Haible  <bruno@clisp.org>
15627
15628         safe-write, full-read: Avoid unnecessary compilation units.
15629         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
15630         (Depends-on): Remove safe-read. Add ssize_t.
15631         * modules/full-read (Files): Add lib/full-write.c.
15632         (Depends-on): Add full-write.
15633
15634 2011-04-13  Bruno Haible  <bruno@clisp.org>
15635
15636         Support non-blocking pipe I/O and SIGPIPE in pwrite().
15637         * modules/pwrite (Depends-on): Add 'write'.
15638
15639 2011-04-13  Bruno Haible  <bruno@clisp.org>
15640
15641         Support non-blocking pipe I/O in write() on native Windows.
15642         * lib/unistd.in.h (write): Enable replacement also if
15643         GNULIB_UNISTD_H_NONBLOCKING is 1.
15644         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
15645         (rpl_write): When failing to write on a non-blocking pipe, change
15646         errno from ENOSPC to EAGAIN.
15647         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
15648         putchar, puts, vfprintf, vprintf): Enable replacement also if
15649         GNULIB_STDIO_H_NONBLOCKING is 1.
15650         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
15651         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
15652         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
15653         CALL_WITH_SIGPIPE_EMULATION.
15654         (CALL_WITH_SIGPIPE_EMULATION): Use them.
15655         * m4/nonblocking.m4: New file.
15656         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
15657         for non-blocking I/O support.
15658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15659         GNULIB_UNISTD_H_NONBLOCKING.
15660         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
15661         required for non-blocking I/O support.
15662         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
15663         * modules/nonblocking (Files): Add m4/nonblocking.m4,
15664         lib/stdio-write.c, m4/asm-underscore.m4.
15665         (Depends-on): Add stdio, unistd.
15666         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
15667         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
15668         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
15669         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
15670         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
15671         problem with non-blocking pipes.
15672         * doc/posix-functions/fputc.texi: Likewise.
15673         * doc/posix-functions/fputs.texi: Likewise.
15674         * doc/posix-functions/fwrite.texi: Likewise.
15675         * doc/posix-functions/printf.texi: Likewise.
15676         * doc/posix-functions/putc.texi: Likewise.
15677         * doc/posix-functions/putchar.texi: Likewise.
15678         * doc/posix-functions/puts.texi: Likewise.
15679         * doc/posix-functions/vfprintf.texi: Likewise.
15680         * doc/posix-functions/vprintf.texi: Likewise.
15681         * doc/posix-functions/write.texi: Likewise.
15682
15683 2011-04-10  Jim Meyering  <meyering@redhat.com>
15684
15685         maint.mk: prohibit doubled words
15686         Detect them also when they're separated by a newline.
15687         There are 3 ways to customize it:
15688           - disable the test on a per file basis, as usual with rules using
15689             $(VC_LIST_EXCEPT)
15690           - replace the default doubled-word-selecting regexp (affects all files)
15691           - ignore a particular file-vs-doubled-word match
15692         I nearly used that last one to ignore the "is is" match in
15693         coreutils' NEWS file, since the text was "ls -is is ..."
15694         To do that, I would have added this line to cfg.mk:
15695           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
15696         but it would have ignored any "is is" match in NEWS.
15697         Low probability, but still...
15698         Instead, I changed the text, slightly:
15699           -  ls -is is now consistent with ls -lis in ignoring values returned
15700           +  "ls -is" is now consistent with ls -lis in ignoring values returned
15701         * top/maint.mk (prohibit_double_word_RE_): Provide default.
15702         (prohibit_doubled_word_): Define.
15703         (sc_prohibit_doubled_word): New rule.
15704         (sc_prohibit_the_the): Remove.  Subsumed by the above.
15705
15706 2011-04-10  Jim Meyering  <meyering@redhat.com>
15707
15708         maint: fix doubled-word typo in comment
15709         * m4/gethostname.m4: s/is is/it is/
15710         * m4/getdomainname.m4: Likewise.
15711
15712 2011-04-10  Jim Meyering  <meyering@redhat.com>
15713
15714         maint: remove doubled word: s/it it/it/
15715         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
15716
15717 2011-04-10  Jim Meyering  <meyering@redhat.com>
15718
15719         maint.mk: remove useless semicolon and backslash
15720         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
15721         semicolon and backslash.
15722
15723 2011-04-10  Bruno Haible  <bruno@clisp.org>
15724
15725         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
15726         * modules/stdint-tests (Depends-on): Add wchar.
15727
15728 2011-04-10  Jim Meyering  <meyering@redhat.com>
15729
15730         maint: remove doubled words in comments, e.g., s/a a/a/
15731         * lib/strptime.c (day_of_the_week): s/the the/the/
15732         * tests/test-chown.h (test_chown): s/a a/a/
15733
15734         test-chown.h: correct a cast
15735         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
15736         when the destination is a stat.st_gid.
15737
15738 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
15739
15740         getaddrinfo: Fix test for sa_len member.
15741         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
15742         include <sys/types.h> before <sys/socket.h>.
15743
15744 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15745
15746         maint: change "can not" to "cannot"
15747         * doc/posix-functions/iconv.texi (iconv): This one crossed line
15748         boundaries.
15749
15750 2011-04-09  Jim Meyering  <meyering@redhat.com>
15751
15752         maint: change "a a" to "a"
15753         * tests/test-lchown.h (test_lchown): s/a a/a/
15754
15755         maint.mk: prohibit \<the the\>
15756         * top/maint.mk (sc_prohibit_the_the): New rule.
15757
15758         maint: fix "the the" in comment
15759         * lib/count-one-bits.h: s/the the/the/
15760
15761         maint: change "can not" to "cannot"
15762         But do not change the occurrences in maintain.texi or in
15763         build-aux/po/Makefile.in.in, which I presume comes from gettext.
15764         * doc/gnulib-tool.texi: s/can not/cannot/
15765         * doc/posix-functions/accept.texi (accept): Likewise.
15766         * doc/posix-functions/socket.texi (socket): Likewise.
15767         * lib/mbrtowc.c: Likewise.
15768
15769         maint.mk: prohibit use of "can not"
15770         * top/maint.mk (sc_prohibit_can_not): New rule.
15771         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
15772
15773 2011-04-09  Bruno Haible  <bruno@clisp.org>
15774
15775         careadlinkat: Guard against misuse of careadlinkatcwd.
15776         * lib/careadlinkat.c: Include <stdlib.h>.
15777         (careadlinkatcwd): Check that the fd argument is as expected.
15778
15779 2011-04-09  Bruno Haible  <bruno@clisp.org>
15780
15781         careadlinkat: Use common coding style.
15782         * lib/careadlinkat.c: Move gnulib includes after system includes.
15783
15784 2011-04-09  Bruno Haible  <bruno@clisp.org>
15785
15786         careadlinkat: Clarify specification.
15787         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
15788         (careadlinkatcwd): Add comment.
15789         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
15790
15791 2011-04-09  Bruno Haible  <bruno@clisp.org>
15792
15793         areadlinkat: Avoid link error on many platforms.
15794         * modules/areadlinkat (Depends-on): Add areadlink.
15795
15796 2011-04-09  Bruno Haible  <bruno@clisp.org>
15797
15798         allocator, careadlinkat: Fix double-inclusion guard.
15799         * lib/allocator.h: Fix double-inclusion guard.
15800         * lib/careadlinkat.h: Likewise.
15801
15802 2011-04-09  Bruno Haible  <bruno@clisp.org>
15803
15804         relocatable-prog-wrapper: Update after module 'areadlink' changed.
15805         * lib/relocwrapper.c: Update dependencies hierarchy.
15806         * build-aux/install-reloc: Update list of files to be compiled.
15807         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
15808         lib/allocator.[hc].
15809
15810 2011-04-08  Eric Blake  <eblake@redhat.com>
15811
15812         strftime: silence gnulib-tool warning
15813         * modules/strftime-tests (Depends-on): Drop automatic dependency.
15814
15815 2011-04-08  Bruno Haible  <bruno@clisp.org>
15816
15817         verify: Fix syntax error with GCC 4.6 in C++ mode.
15818         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
15819         (HAVE_STATIC_ASSERT): New macro.
15820         (verify_true, verify): Use 'static_assert' if it is supported and
15821         '_Static_assert' is not supported.
15822
15823 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
15824
15825         allocator: New module.
15826         * modules/allocator, lib/allocator.c: New files.
15827         * lib/allocator.h (stdlib_allocator): New decl.
15828         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
15829         Remove.  Do not include <stdlib.h>.
15830         (careadlinkat): Use stdlib_allocator instead of rolling our own.
15831         * modules/careadlinkat (Files): Remove lib/allocator.h.
15832         (Depends-on): Add allocator.
15833
15834         stdlib: let modules use system malloc, realloc
15835         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
15836         if !_GL_USE_STDLIB_ALLOC.
15837         (malloc, realloc): Limit this change to a smaller scope.
15838
15839         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
15840         (malloc, realloc): Don't #undef; no longer needed.
15841         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15842         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15843         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15844         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15845         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15846         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15847         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
15848         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
15849
15850         careadlinkat: rename members to avoid problem
15851         * lib/allocator.h (struct allocator): Rename members from
15852         malloc/realloc to allocate/reallocate, to avoid problems if malloc
15853         and realloc are #define'd.  Reported by Eric Blake in
15854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
15855         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
15856
15857 2011-04-08  Eric Blake  <eblake@redhat.com>
15858
15859         nonblocking: reduce dependency
15860         * tests/test-nonblocking.c: Only test sockets when in use.
15861         * modules/nonblocking-tests (Depends-on): Drop socket.
15862         (Makefile.am): Link even if sockets are not present.
15863         * modules/pipe2-tests (Makefile.am): Likewise.
15864         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
15865
15866         pipe2: fix O_NONBLOCK support on mingw
15867         * modules/pipe2 (Depends-on): Add nonblocking.
15868         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
15869         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
15870         * tests/test-nonblocking.c (main): Likewise.
15871         * modules/pipe2-tests (Makefile.am): Avoid link failure.
15872
15873         fcntl-h: fix O_ACCMODE on cygwin
15874         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
15875         * lib/fcntl.in.h (O_ACCMODE): Fix it.
15876
15877         pipe-filter: drop O_NONBLOCK workarounds
15878         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
15879         * modules/pipe-filter-ii (Depends-on): Likewise.
15880         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
15881
15882         nonblocking: provide O_NONBLOCK for mingw
15883         * modules/nonblocking (Depends-on): Add open.
15884         (configure.ac): Set new witness macro.
15885         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
15886         * modules/fcntl-h (Makefile.am): Substitute it.
15887         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
15888         nonblocking module is in use.
15889         * lib/nonblocking.c: Adjust portability test.
15890         * lib/open.c (open): Don't let native open see gnulib flag.
15891         * tests/test-fcntl-h.c (main): Enhance test.
15892         * tests/test-open.h (test_open): Likewise.
15893         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
15894
15895         careadlinkat: fix compilation error on mingw
15896         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
15897         within struct allocator.
15898
15899 2011-04-06  Eric Blake  <eblake@redhat.com>
15900
15901         binary-io: relicense under LGPLv2+
15902         * modules/binary-io (License): Relax to LGPLv2+.
15903         Requested for libvirt, and required by pipe2.
15904
15905 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
15906
15907         verify: use _Static_assert if available
15908         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
15909         (verify_true, verify): Use it if available.  This generates better
15910         diagnostics with GCC 4.6.0 and later.
15911
15912 2011-04-05  Bruno Haible  <bruno@clisp.org>
15913
15914         Remove leftover generated .h files after config.status changed.
15915
15916         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
15917         GL_GENERATE_ALLOCA_H.
15918         * modules/alloca-opt (Makefile.am): Remove alloca.h if
15919         GL_GENERATE_ALLOCA_H evaluates to false.
15920
15921         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
15922         GL_GENERATE_ARGZ_H.
15923         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
15924         evaluates to false.
15925
15926         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
15927         GL_GENERATE_BYTESWAP_H.
15928         * modules/byteswap (Makefile.am): Remove byteswap.h if
15929         GL_GENERATE_BYTESWAP_H evaluates to false.
15930
15931         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
15932         GL_GENERATE_ERRNO_H.
15933         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
15934         evaluates to false.
15935
15936         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
15937         GL_GENERATE_FLOAT_H.
15938         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
15939         evaluates to false.
15940
15941         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
15942         GL_GENERATE_FNMATCH_H.
15943         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
15944         GL_GENERATE_FNMATCH_H evaluates to false.
15945
15946         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
15947         GL_GENERATE_GLOB_H.
15948         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
15949         evaluates to false.
15950
15951         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
15952         automake conditional GL_GENERATE_ICONV_H.
15953         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
15954         evaluates to false.
15955
15956         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
15957         GL_GENERATE_NETINET_IN_H.
15958         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
15959         GL_GENERATE_NETINET_IN_H evaluates to false.
15960
15961         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
15962         conditional GL_GENERATE_PTHREAD_H.
15963         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
15964         * modules/pthread (Makefile.am): Remove pthread.h if
15965         GL_GENERATE_PTHREAD_H evaluates to false.
15966
15967         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
15968         GL_GENERATE_SCHED_H.
15969         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
15970         evaluates to false.
15971
15972         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
15973         conditional GL_GENERATE_SELINUX_CONTEXT_H.
15974         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
15975         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
15976
15977         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
15978         GL_GENERATE_STDARG_H.
15979         * modules/stdarg (Makefile.am): Remove stdarg.h if
15980         GL_GENERATE_STDARG_H evaluates to false.
15981
15982         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
15983         GL_GENERATE_STDBOOL_H.
15984         * modules/stdbool (Makefile.am): Remove stdbool.h if
15985         GL_GENERATE_STDBOOL_H evaluates to false.
15986
15987         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
15988         conditional GL_GENERATE_STDDEF_H.
15989         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
15990         * modules/stddef (Makefile.am): Remove stddef.h if
15991         GL_GENERATE_STDDEF_H evaluates to false.
15992
15993         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
15994         GL_GENERATE_STDINT_H.
15995         * modules/stdint (Makefile.am): Remove stdint.h if
15996         GL_GENERATE_STDINT_H evaluates to false.
15997
15998         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
15999         GL_GENERATE_SYSEXITS_H.
16000         * modules/sysexits (Makefile.am): Remove sysexits.h if
16001         GL_GENERATE_SYSEXITS_H evaluates to false.
16002
16003         Reported by Karl Berry and Ralf Wildenhues.
16004
16005 2011-04-05  Bruno Haible  <bruno@clisp.org>
16006
16007         Ensure to rebuild generated .h files when config.status has changed.
16008         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
16009         config.status.
16010         * modules/ctype (Makefile.am): Likewise.
16011         * modules/dirent (Makefile.am): Likewise.
16012         * modules/errno (Makefile.am): Likewise.
16013         * modules/fcntl-h (Makefile.am): Likewise.
16014         * modules/float (Makefile.am): Likewise.
16015         * modules/getopt-posix (Makefile.am): Likewise.
16016         * modules/glob (Makefile.am): Likewise.
16017         * modules/iconv-h (Makefile.am): Likewise.
16018         * modules/inttypes (Makefile.am): Likewise.
16019         * modules/langinfo (Makefile.am): Likewise.
16020         * modules/locale (Makefile.am): Likewise.
16021         * modules/math (Makefile.am): Likewise.
16022         * modules/netdb (Makefile.am): Likewise.
16023         * modules/netinet_in (Makefile.am): Likewise.
16024         * modules/poll-h (Makefile.am): Likewise.
16025         * modules/pthread (Makefile.am): Likewise.
16026         * modules/pty (Makefile.am): Likewise.
16027         * modules/sched (Makefile.am): Likewise.
16028         * modules/search (Makefile.am): Likewise.
16029         * modules/selinux-h (Makefile.am): Likewise.
16030         * modules/signal (Makefile.am): Likewise.
16031         * modules/spawn (Makefile.am): Likewise.
16032         * modules/stdarg (Makefile.am): Likewise.
16033         * modules/stdbool (Makefile.am): Likewise.
16034         * modules/stddef (Makefile.am): Likewise.
16035         * modules/stdint (Makefile.am): Likewise.
16036         * modules/stdio (Makefile.am): Likewise.
16037         * modules/stdlib (Makefile.am): Likewise.
16038         * modules/string (Makefile.am): Likewise.
16039         * modules/strings (Makefile.am): Likewise.
16040         * modules/sys_file (Makefile.am): Likewise.
16041         * modules/sys_ioctl (Makefile.am): Likewise.
16042         * modules/sys_select (Makefile.am): Likewise.
16043         * modules/sys_socket (Makefile.am): Likewise.
16044         * modules/sys_stat (Makefile.am): Likewise.
16045         * modules/sys_time (Makefile.am): Likewise.
16046         * modules/sys_times (Makefile.am): Likewise.
16047         * modules/sys_utsname (Makefile.am): Likewise.
16048         * modules/sys_wait (Makefile.am): Likewise.
16049         * modules/sysexits (Makefile.am): Likewise.
16050         * modules/termios (Makefile.am): Likewise.
16051         * modules/time (Makefile.am): Likewise.
16052         * modules/unistd (Makefile.am): Likewise.
16053         * modules/wchar (Makefile.am): Likewise.
16054         * modules/wctype-h (Makefile.am): Likewise.
16055         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
16056
16057 2011-04-05  Bruno Haible  <bruno@clisp.org>
16058
16059         pipe2: Relicense under LGPLv2+.
16060         * modules/pipe2 (License): Change to LGPLv2+.
16061         Requested by Eric Blake, for libvirt.
16062
16063 2011-04-05  Bruce Korb  <bkorb@gnu.org>
16064
16065         bootstrap: compute gnulib_extra_files after updating build_aux
16066         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
16067         change build_aux or also supply gnulib_extra_files.  Handle correctly.
16068
16069 2011-04-05  Eric Blake  <eblake@redhat.com>
16070
16071         bootstrap: preserve git whitelist item sorting
16072         * build-aux/bootstrap (sort_patterns): New function.
16073         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
16074
16075 2011-04-05  Simon Josefsson  <simon@josefsson.org>
16076
16077         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
16078         sc_space_tab check.
16079
16080 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16081
16082         areadlink, areadlinkat: rewrite in terms of careadlinkat
16083         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
16084         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
16085         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
16086         (malloc, realloc): Remove #undefs.
16087         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
16088         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
16089         readlink, ssize_t, stdint, unistd.
16090         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
16091         areadlink, stdint.
16092
16093         careadlinkat: new module
16094         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
16095         * modules/careadlinkat: New files, written by me with
16096         a review and feedback from Ben Pfaff in
16097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
16098
16099 2011-04-01  Bruno Haible  <bruno@clisp.org>
16100
16101         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
16102         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
16103         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
16104         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
16105         Reported by Bruce Korb <bruce.korb@gmail.com>.
16106
16107 2011-04-01  Bruno Haible  <bruno@clisp.org>
16108
16109         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
16110         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
16111         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
16112         * modules/wcpcpy (Depends-on): Add extensions.
16113         * modules/wcpncpy (Depends-on): Likewise.
16114         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
16115         systems.
16116         * doc/posix-functions/wcpncpy.texi: Likewise.
16117         * doc/posix-functions/wcwidth.texi: Likewise.
16118
16119 2011-03-31  Eric Blake  <eblake@redhat.com>
16120
16121         nonblocking: fix mingw test failures
16122         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
16123         non-blocking flag on regular file.
16124         (get_nonblocking_flag): Set errno on invalid fd.
16125         * tests/test-nonblocking.c (main): Avoid test failure on
16126         directories if fchdir is not active.
16127         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
16128
16129 2011-03-31  Bruno Haible  <bruno@clisp.org>
16130
16131         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
16132         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
16133         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
16134         Reported by Simon Josefsson <simon@josefsson.org>.
16135
16136 2011-03-31  Bruno Haible  <bruno@clisp.org>
16137         and Eric Blake  <eblake@redhat.com>
16138
16139         nonblocking: new module
16140         * modules/nonblocking: New module.
16141         * modules/nonblocking-tests: Likewise.
16142         * lib/nonblocking.h: New file.
16143         * lib/nonblocking.c: Likewise.
16144         * tests/test-nonblocking.c: New test.
16145         * lib/ioctl.c (ioctl) [mingw]: Update comment.
16146
16147 2011-03-30  Bruno Haible  <bruno@clisp.org>
16148
16149         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
16150         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
16151         instead of 'printf' format for GCC >= 4.4.
16152         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
16153         (fprintf, printf, vfprintf, vprintf): Declare with
16154         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
16155         the system's vfprintf() function.
16156         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
16157
16158 2011-03-30  Eric Blake  <eblake@redhat.com>
16159
16160         passfd: fix scoping bug
16161         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
16162         before sendmsg/recvmsg.
16163
16164         passfd: standardize coding conventions
16165         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
16166         can be learned at compile time.
16167         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
16168         ifdefs.
16169         (sendfd, recvfd): Follow gnulib code conventions.
16170
16171         passfd: fix incorrect sendmsg arguments
16172         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
16173         incorrect msg_controllen value.
16174         * modules/passfd-tests (Depends-on): Check for alarm.
16175         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
16176         Reported by Bastien ROUCARIES.
16177
16178 2011-03-30  Bruno Haible  <bruno@clisp.org>
16179
16180         c-strcasestr: Relicense under LGPLv2+.
16181         * modules/c-strcasestr (License): Change to LGPLv2+.
16182         Requested by Eric Blake, for libvirt.
16183
16184 2011-03-30  Simon Josefsson  <simon@josefsson.org>
16185
16186         * users.txt: Add libidn2.  Fix libtasn1 link.
16187
16188 2011-03-30  Jim Meyering  <meyering@redhat.com>
16189
16190         tests: readlink* ("",... fails with EINVAL on newer kernels
16191         readlink and readlinkat have typically failed with ENOENT for
16192         the invalid, empty file name,  "".  However, with the advent
16193         of linux-2.6.39, they fail with EINVAL.
16194         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
16195         when operating on the empty file name.
16196         * tests/test-readlink.h (test_readlink): Likewise.
16197
16198 2011-03-29  Bruno Haible  <bruno@clisp.org>
16199
16200         Relicense some modules under LGPLv2+, for libidn2.
16201         * modules/array-mergesort (License): Change to LGPLv2+.
16202         * modules/c-strcaseeq (License): Likewise.
16203         * modules/striconveh (License): Likewise.
16204         * modules/striconveha (License): Likewise.
16205         * modules/uniconv/base (License): Likewise.
16206         * modules/uniconv/u8-conv-from-enc (License): Likewise.
16207         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
16208         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
16209         * modules/unictype/base (License): Likewise.
16210         * modules/unictype/bidiclass-of (License): Likewise.
16211         * modules/unictype/category-M (License): Likewise.
16212         * modules/unictype/category-none (License): Likewise.
16213         * modules/unictype/category-of (License): Likewise.
16214         * modules/unictype/category-test (License): Likewise.
16215         * modules/unictype/category-test-withtable (License): Likewise.
16216         * modules/unictype/combining-class (License): Likewise.
16217         * modules/unictype/joiningtype-of (License): Likewise.
16218         * modules/unictype/scripts (License): Likewise.
16219         * modules/uninorm/base (License): Likewise.
16220         * modules/uninorm/canonical-decomposition (License): Likewise.
16221         * modules/uninorm/composition (License): Likewise.
16222         * modules/uninorm/decompose-internal (License): Likewise.
16223         * modules/uninorm/decomposition-table (License): Likewise.
16224         * modules/uninorm/nfc (License): Likewise.
16225         * modules/uninorm/nfd (License): Likewise.
16226         * modules/uninorm/u32-normalize (License): Likewise.
16227         * modules/unistr/base (License): Likewise.
16228         * modules/unistr/u32-cpy (License): Likewise.
16229         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
16230         * modules/unistr/u32-to-u8 (License): Likewise.
16231         * modules/unistr/u32-uctomb (License): Likewise.
16232         * modules/unistr/u8-check (License): Likewise.
16233         * modules/unistr/u8-mblen (License): Likewise.
16234         * modules/unistr/u8-mbtouc (License): Likewise.
16235         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
16236         * modules/unistr/u8-mbtoucr (License): Likewise.
16237         * modules/unistr/u8-prev (License): Likewise.
16238         * modules/unistr/u8-strlen (License): Likewise.
16239         * modules/unistr/u8-to-u32 (License): Likewise.
16240         * modules/unistr/u8-uctomb (License): Likewise.
16241         * modules/unitypes (License): Likewise.
16242         Requested by Simon Josefsson.
16243
16244 2011-03-29  Simon Josefsson  <simon@josefsson.org>
16245
16246         lib-symbol-visibility: Add a notice.
16247         * modules/lib-symbol-visibility (Notice): New field.
16248
16249 2011-03-29  Bruno Haible  <bruno@clisp.org>
16250
16251         getaddrinfo: Doc fix.
16252         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
16253         section "fixed in Gnulib".
16254
16255 2011-03-28  Simon Josefsson  <simon@josefsson.org>
16256
16257         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
16258         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
16259
16260 2011-03-26  Bruno Haible  <bruno@clisp.org>
16261
16262         unictype/property-byname: Reduce the number of load-time relocations.
16263         * lib/unictype/pr_byname.c: Include <stdlib.h>.
16264         (UC_PROPERTY_INDEX_*): New enumeration values.
16265         (uc_property_byname): Convert an index from the lookup table to an
16266         uc_property_t.
16267         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
16268         values.
16269
16270 2011-03-26  Bruno Haible  <bruno@clisp.org>
16271
16272         unictype/property-byname: Allow omitted word separators and aliases.
16273         * lib/unictype/pr_byname.gperf: Add property names without word
16274         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
16275         for 'space'.
16276
16277 2011-03-26  Bruno Haible  <bruno@clisp.org>
16278
16279         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
16280         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
16281         also hyphens to space.
16282         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
16283         without spaces.
16284         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
16285
16286 2011-03-26  Bruno Haible  <bruno@clisp.org>
16287
16288         unictype/joiningtype-byname: Recognize long names as well.
16289         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
16290         a long name.
16291         * lib/unictype/joiningtype_byname.c: Include <string.h>,
16292         unictype/joiningtype_byname.h.
16293         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
16294         * lib/unictype/joiningtype_byname.gperf: New file.
16295         * modules/unictype/joiningtype-byname (Files): Add
16296         lib/unictype/joiningtype_byname.gperf.
16297         (Depends-on): Add gperf.
16298         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
16299         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
16300         long names.
16301
16302         Tests for module 'unictype/joiningtype-longname'.
16303         * modules/unictype/joiningtype-longname-tests: New file.
16304         * tests/unictype/test-joiningtype_longname.c: New file.
16305
16306         New module 'unictype/joiningtype-longname'.
16307         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
16308         * lib/unictype/joiningtype_longname.c: New file.
16309         * modules/unictype/joiningtype-longname: New file.
16310         * modules/unictype/joiningtype-all (Depends-on): Add
16311         unictype/joiningtype-longname.
16312
16313 2011-03-26  Bruno Haible  <bruno@clisp.org>
16314
16315         unictype/bidiclass-byname: Recognize long names as well.
16316         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
16317         name.
16318         * lib/unictype/bidi_byname.c: Include <string.h>,
16319         unictype/bidi_byname.h.
16320         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
16321         * lib/unictype/bidi_byname.gperf: New file.
16322         * modules/unictype/bidiclass-byname (Files): Add
16323         lib/unictype/bidi_byname.gperf.
16324         (Depends-on): Add gperf.
16325         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
16326         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
16327         long names.
16328
16329         Tests for module 'unictype/bidiclass-longname'.
16330         * modules/unictype/bidiclass-longname-tests: New file.
16331         * tests/unictype/test-bidi_longname.c: New file.
16332
16333         New module 'unictype/bidiclass-longname'.
16334         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
16335         * lib/unictype/bidi_longname.c: New file.
16336         * modules/unictype/bidiclass-longname: New file.
16337         * modules/unictype/bidiclass-all (Depends-on): Add
16338         unictype/bidiclass-longname.
16339
16340 2011-03-26  Bruno Haible  <bruno@clisp.org>
16341
16342         unictype/bidi*: Rename modules.
16343         * modules/unictype/bidiclass-all: Renamed from
16344         modules/unictype/bidicategory-all.
16345         * modules/unictype/bidiclass-name: Renamed from
16346         modules/unictype/bidiclass-name.
16347         (Description): Update.
16348         * modules/unictype/bidiclass-name-tests: Renamed from
16349         modules/unictype/bidicategory-name-tests.
16350         * modules/unictype/bidiclass-byname: Renamed from
16351         modules/unictype/bidicategory-byname.
16352         (Description): Update.
16353         * modules/unictype/bidiclass-byname-tests: Renamed from
16354         modules/unictype/bidicategory-byname-tests.
16355         * modules/unictype/bidiclass-of: Renamed from
16356         modules/unictype/bidicategory-of.
16357         (Description): Update.
16358         * modules/unictype/bidiclass-of-tests: Renamed from
16359         modules/unictype/bidicategory-of-tests.
16360         * modules/unictype/bidiclass-test: Renamed from
16361         modules/unictype/bidicategory-test.
16362         (Description): Update.
16363         * modules/unictype/bidiclass-test-tests: Renamed from
16364         modules/unictype/bidicategory-test-tests.
16365         * modules/unictype/bidicategory-all: New file, a simple redirection.
16366         * modules/unictype/bidicategory-name: Likewise.
16367         * modules/unictype/bidicategory-byname: Likewise.
16368         * modules/unictype/bidicategory-of: Likewise.
16369         * modules/unictype/bidicategory-test: Likewise.
16370         * modules/unictype/property-bidi-* (Dependencies): Update.
16371         * lib/unictype/bidi_*.c: Update comment.
16372
16373 2011-03-26  Bruno Haible  <bruno@clisp.org>
16374
16375         unictype/bidi*: Rename functions, part 2.
16376         * modules/unictype/bidicategory-name (configure.ac): Update required
16377         libunistring version.
16378         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
16379
16380 2011-03-25  Bruno Haible  <bruno@clisp.org>
16381
16382         New module 'unictype/combining-class-all'.
16383         * modules/unictype/combining-class-all: New file.
16384
16385         Tests for module 'unictype/combining-class-byname'.
16386         * modules/unictype/combining-class-byname-tests: New file.
16387         * tests/unictype/test-combiningclass_byname.c: New file.
16388
16389         New module 'unictype/combining-class-byname'.
16390         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
16391         * lib/unictype/combiningclass_byname.c: New file.
16392         * lib/unictype/combiningclass_byname.gperf: New file.
16393         * modules/unictype/combining-class-byname: New file.
16394
16395         Tests for module 'unictype/combining-class-longname'.
16396         * modules/unictype/combining-class-longname-tests: New file.
16397         * tests/unictype/test-combiningclass_longname.c: New file.
16398
16399         New module 'unictype/combining-class-longname'.
16400         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
16401         * lib/unictype/combiningclass_longname.c: New file.
16402         * modules/unictype/combining-class-longname: New file.
16403
16404         Tests for module 'unictype/combining-class-name'.
16405         * modules/unictype/combining-class-name-tests: New file.
16406         * tests/unictype/test-combiningclass_name.c: New file.
16407
16408         New module 'unictype/combining-class-name'.
16409         * lib/unictype.in.h (uc_combining_class_name): New declaration.
16410         * lib/unictype/combiningclass_name.c: New file.
16411         * modules/unictype/combining-class-name: New file.
16412
16413 2011-03-25  Bruno Haible  <bruno@clisp.org>
16414
16415         unictype/combining-class: Rename source files.
16416         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
16417         of unictype/combining.h.
16418         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
16419         Update.
16420         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
16421         * modules/unictype/combining-class (Description): Fix.
16422         (Files, Makefile.am): Update.
16423         * tests/unictype/test-combiningclass.c: Renamed from
16424         tests/unictype/test-combining.c.
16425         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
16426
16427 2011-03-25  Bruno Haible  <bruno@clisp.org>
16428
16429         unictype: Update list of canonical combining classes.
16430         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
16431
16432 2011-03-25  Bruno Haible  <bruno@clisp.org>
16433
16434         unictype/category-byname: Recognize long names as well.
16435         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
16436         a long name.
16437         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
16438         unictype/categ_byname.h.
16439         (UC_CATEGORY_INDEX_*): New enumeration values.
16440         (uc_general_category_byname): Use uc_general_category_lookup and
16441         convert from index to value.
16442         * lib/unictype/categ_byname.gperf: New file.
16443         * modules/unictype/category-byname (Files): Add
16444         lib/unictype/categ_byname.gperf.
16445         (Depends-on): Add gperf.
16446         (Makefile.am): Add rule for generating unictype/categ_byname.h.
16447         * tests/unictype/test-categ_byname.c (main): Test the recognition of
16448         long names.
16449
16450         Tests for module 'unictype/category-longname'.
16451         * modules/unictype/category-longname-tests: New file.
16452         * tests/unictype/test-categ_longname.c: New file.
16453
16454         New module 'unictype/category-longname'.
16455         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
16456         * lib/unictype/categ_longname.c: New file.
16457         * modules/unictype/category-longname: New file.
16458         * modules/unictype/category-all (Depends-on): Add it.
16459
16460 2011-03-25  Bruno Haible  <bruno@clisp.org>
16461
16462         Tests for module 'unictype/category-LC'.
16463         * modules/unictype/category-LC-tests: New file.
16464         * tests/unictype/test-categ_LC.c: New file, automatically generated.
16465
16466         New module 'unictype/category-LC'.
16467         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
16468         (UC_CATEGORY_LC): New declaration.
16469         (UC_CASED_LETTER): New macro.
16470         * lib/gen-uni-tables.c (is_category_LC): New function.
16471         (output_categories): Also handle category LC.
16472         (UC_CATEGORY_MASK_LC): New enumeration value.
16473         (general_category_byname): Also handle category LC.
16474         * lib/unictype/categ_LC.c: New file.
16475         * lib/unictype/categ_LC.h: New file, automatically generated.
16476         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
16477         category LC.
16478         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
16479         * modules/unictype/category-LC: New file.
16480         * modules/unictype/category-byname (Depends-on): Add
16481         unictype/category-LC.
16482         * modules/unictype/category-all (Depends-on): Likewise.
16483
16484 2011-03-25  Eric Blake  <eblake@redhat.com>
16485
16486         xmalloc: revert yesterday's regression
16487         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
16488         realloc's underlying behavior (allowing allocation of zero-size
16489         objects, especially if malloc-gnu is also in use).
16490
16491 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
16492
16493         maint.mk: add missing version to VC-tag
16494         * top/maint.mk: git tag was missing actual tag name; add it.
16495
16496         valgrind: do leak checking, and exit with code 1 on error (not 0)
16497         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
16498         to VALGRIND.
16499
16500 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
16501
16502         posix-modules: say what it does.
16503         * posix-modules: Add a line to the --help output saying what it does.
16504
16505 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
16506
16507         xmalloc: Do not leak if underlying realloc is C99 compatible.
16508         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
16509         This avoids a leak on C99-based systems.  See
16510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
16511
16512 2011-03-24  Eric Blake  <eblake@redhat.com>
16513
16514         realloc: document portability problem
16515         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
16516         passing 0 size to realloc.
16517
16518 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
16519
16520         doc: update users.txt
16521         * users.txt: Add cvsps, tmpwatch
16522
16523 2011-03-23  Matt Rice  <ratmice@gmail.com>
16524
16525         doc: update users.txt
16526         * users.txt: Add gdb.
16527
16528 2011-03-23  Jim Meyering  <meyering@redhat.com>
16529
16530         doc: update users.txt
16531         Looking through matches up to the following URL (there are still
16532         several more pages), I found several projects that use gnulib:
16533         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
16534         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
16535         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
16536
16537 2011-03-22  Bruno Haible  <bruno@clisp.org>
16538
16539         unictype/bidi*: Rename functions.
16540         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
16541         uc_bidi_class, uc_is_bidi_class): New declarations.
16542         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
16543         uc_bidi_category_byname.
16544         (uc_bidi_category_byname): New function.
16545         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
16546         u_bidi_category_name.
16547         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
16548         (uc_bidi_category_name): New function.
16549         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
16550         uc_bidi_category.
16551         (uc_bidi_category): New function.
16552         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
16553         uc_is_bidi_category. Invoke uc_bidi_class.
16554         (uc_is_bidi_category): New function.
16555         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
16556         instead of uc_bidi_category_byname.
16557         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
16558         instead of uc_bidi_category_name.
16559         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
16560         uc_bidi_category.
16561         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
16562         instead of uc_is_bidi_category.
16563
16564 2011-03-21  Bruno Haible  <bruno@clisp.org>
16565
16566         New module 'unictype/joininggroup-all'.
16567         * modules/unictype/joininggroup-all: New file.
16568
16569         Tests for module 'unictype/joininggroup-of'.
16570         * modules/unictype/joininggroup-of-tests: New file.
16571         * tests/unictype/test-joininggroup_of.c: New file.
16572         * tests/unictype/test-joininggroup_of.h: New file, automatically
16573         generated by gen-uni-tables.
16574
16575         New module 'unictype/joininggroup-of'.
16576         * modules/unictype/joininggroup-of: New file.
16577         * lib/unictype/joininggroup_of.c: New file.
16578         * lib/unictype/joininggroup_of.h: New file, automatically generated by
16579         gen-uni-tables.
16580
16581         Tests for module 'unictype/joininggroup-byname'.
16582         * modules/unictype/joininggroup-byname-tests: New file.
16583         * tests/unictype/test-joininggroup_byname.c: New file.
16584
16585         New module 'unictype/joininggroup-byname'.
16586         * modules/unictype/joininggroup-byname: New file.
16587         * lib/unictype/joininggroup_byname.c: New file.
16588         * lib/unictype/joininggroup_byname.gperf: New file.
16589
16590         Tests for module 'unictype/joininggroup-name'.
16591         * modules/unictype/joininggroup-name-tests: New file.
16592         * tests/unictype/test-joininggroup_name.c: New file.
16593
16594         New module 'unictype/joininggroup-name'.
16595         * modules/unictype/joininggroup-name: New file.
16596         * lib/unictype/joininggroup_name.c: New file.
16597         * lib/unictype/joininggroup_name.h: New file.
16598
16599         New module 'unictype/joiningtype-all'.
16600         * modules/unictype/joiningtype-all: New file.
16601
16602         Tests for module 'unictype/joiningtype-of'.
16603         * modules/unictype/joiningtype-of-tests: New file.
16604         * tests/unictype/test-joiningtype_of.c: New file.
16605         * tests/unictype/test-joiningtype_of.h: New file, automatically
16606         generated by gen-uni-tables.
16607
16608         New module 'unictype/joiningtype-of'.
16609         * modules/unictype/joiningtype-of: New file.
16610         * lib/unictype/joiningtype_of.c: New file.
16611         * lib/unictype/joiningtype_of.h: New file, automatically generated by
16612         gen-uni-tables.
16613
16614         Tests for module 'unictype/joiningtype-byname'.
16615         * modules/unictype/joiningtype-byname-tests: New file.
16616         * tests/unictype/test-joiningtype_byname.c: New file.
16617
16618         New module 'unictype/joiningtype-byname'.
16619         * modules/unictype/joiningtype-byname: New file.
16620         * lib/unictype/joiningtype_byname.c: New file.
16621
16622         Tests for module 'unictype/joiningtype-name'.
16623         * modules/unictype/joiningtype-name-tests: New file.
16624         * tests/unictype/test-joiningtype_name.c: New file.
16625
16626         New module 'unictype/joiningtype-name'.
16627         * modules/unictype/joiningtype-name: New file.
16628         * lib/unictype/joiningtype_name.c: New file.
16629
16630         unictype: Add support for Arabic shaping properties.
16631         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
16632         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
16633         declarations.
16634         (UC_JOINING_GROUP_*): New enumeration values.
16635         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
16636         declarations.
16637         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
16638         (unicode_joining_type): New variable.
16639         (UC_JOINING_GROUP_*): New enumeration values.
16640         (unicode_joining_group): New variable.
16641         (fill_arabicshaping, joining_type_as_c_identifier,
16642         output_joining_type_test, output_joining_type,
16643         joining_group_as_c_identifier, output_joining_group_test,
16644         output_joining_group): New functions.
16645         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
16646         fill_arabicshaping and output_joining_type_test, output_joining_type,
16647         output_joining_group_test, output_joining_group.
16648         Reported by Simon Josefsson.
16649
16650 2011-03-21  Jim Meyering  <meyering@redhat.com>
16651
16652         strftime: fix a bug in yesterday's change
16653         * lib/strftime.c (add): Accommodate width's initial value of -1.
16654         Otherwise, nstrftime would copy uninitialized data into
16655         the result buffer.
16656
16657 2011-03-21  Jim Meyering  <meyering@redhat.com>
16658
16659         tests: add strftime-tests module
16660         * tests/test-strftime.c: New file.
16661         * modules/strftime-tests: New module.
16662
16663 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16664
16665         strftime: don't assume a byte count fits in 'int'
16666         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
16667         found this problem by static analysis, using gcc -Wstrict-overflow
16668         (GCC 4.5.2, x86-64).  This reported an optimization that depended
16669         on an integer overflow having undefined behavior, but it turns out
16670         that the argument is a size, which might not fit in 'int' anyway,
16671
16672 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16673
16674         stdio: don't require ignore_value around fwrite
16675
16676         This patch works around libc bug 11959
16677         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
16678         Without this patch, applications must often write
16679         ignore_value (fwrite (...)) even though the ignore_value is
16680         not helpful here.  It's common to write many objects, using
16681         fwrite/printf/etc., and then use ferror to detect output error.
16682
16683         I considered making this patch optional, but decided against it,
16684         because libc is obviously being inconsistent here: there is no
16685         reason libc should insist that user code must inspect fwrite
16686         return's value without also insisting that it inspect printf's,
16687         putchar's, etc.  If user code wants to have a strict style where
16688         all these functions' values are checked (so that ferror need not
16689         be checked), we could add support for that style in a new gnulib
16690         module, but in the meantime it's better to be consistent and to
16691         support common usage.
16692
16693         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
16694         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
16695         that we are compiling in checking mode, and if not C++, and
16696         if not already wrapping fwrite for some other reason.
16697         (fwrite): #define to rpl_fwrite if the latter is defined.
16698
16699 2011-03-20  Bruno Haible  <bruno@clisp.org>
16700
16701         verror: Fix compilation error introduced on 2011-02-13.
16702         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
16703         instead of __attribute__.
16704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16705
16706 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
16707             Bruno Haible  <bruno@clisp.org>
16708
16709         socklen: do not depend on sys_socket
16710         While trying to modify Emacs to use gnulib's socklen module,
16711         I discovered a circular dependency: socklen depends on sys_socket
16712         and vice versa.  Emacs can use socklen, but it does not need
16713         sys_socket because it has its own substitute for sys/socket.h.
16714         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
16715         gl_TYPE_SOCKLEN_T.
16716         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
16717         gl_PREREQ_SYS_H_SOCKET.
16718         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
16719         gl_PREREQ_SYS_H_SOCKET.
16720         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
16721         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
16722         * modules/socklen (Depends-on): Do not depend on sys_socket.
16723         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
16724
16725 2011-03-20  Jim Meyering  <meyering@redhat.com>
16726
16727         maint.mk: sort file names *after* new transformation
16728         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
16729         prefix would have led to an unwarranted failure in GNU parted.
16730         Sort after that transformation.
16731
16732 2011-03-19  Jim Meyering  <meyering@redhat.com>
16733
16734         maint.mk: fix po-file syntax-check rule
16735         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
16736         Patch by Bruno Haible.
16737
16738 2011-03-19  Bruno Haible  <bruno@clisp.org>
16739
16740         socklen: Update comment.
16741         * m4/socklen.m4: Update comment about platforms.
16742
16743 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16744             Bruno Haible  <bruno@clisp.org>
16745
16746         inet_ntop, inet_pton: Simplify.
16747         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
16748         documented to provide socklen_t and we already depend on sys_socket.
16749         * modules/inet_pton (Depends-on): Likewise.
16750         * lib/arpa_inet.in.h: Adjust comment.
16751
16752 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
16753             Bruno Haible  <bruno@clisp.org>
16754
16755         netdb: Simplify.
16756         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
16757         documented to provide socklen_t and we already depend on sys_socket.
16758         * lib/netdb.in.h: Adjust comment.
16759
16760 2011-03-19  Bruno Haible  <bruno@clisp.org>
16761
16762         sys_socket, netdb: Document problem with socklen_t.
16763         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
16764         platforms.
16765         * doc/posix-headers/netdb.texi: Likewise.
16766
16767 2011-03-18  Eric Blake  <eblake@redhat.com>
16768
16769         maint.mk: let po check work in VPATH build
16770         * top/maint.mk (po_file): Allow cfg.mk override.
16771         (sc_po_check): Allow VPATH use.
16772         Reported by Jiri Denemark.
16773
16774 2011-03-16  Jim Meyering  <meyering@redhat.com>
16775
16776         maint.mk: allow fine-grained syntax-check exclusion via Make variables
16777         Before, you would have had to create one .x-sc_ file per rule in order
16778         to exempt offending files.  Now, you may instead use a Make variable --
16779         usually defined in cfg.mk -- whose name identifies the affected rule.
16780         * top/maint.mk (_sc_excl): Define.
16781         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
16782         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
16783
16784 2011-03-13  Bruno Haible  <bruno@clisp.org>
16785
16786         ignore-value tests: Avoid warnings.
16787         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
16788         empty for gcc < 3.4.
16789
16790 2011-03-13  Bruno Haible  <bruno@clisp.org>
16791
16792         passfd: Fix link error on Solaris.
16793         * modules/passfd (Description): Correct.
16794         (Depends-on): Add socketlib.
16795         (Link): New section.
16796         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
16797
16798 2011-03-13  Bruno Haible  <bruno@clisp.org>
16799
16800         passfd: Fix link error on AIX 5.2.
16801         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
16802
16803 2011-03-13  Bruno Haible  <bruno@clisp.org>
16804
16805         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
16806         * lib/sys_socket.in.h: Include <stddef.h>.
16807         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
16808         CMSG_FIRSTHDR. Remove unused variable.
16809
16810 2011-03-13  Bruno Haible  <bruno@clisp.org>
16811
16812         passfd: Fix compilation error on OpenBSD.
16813         * lib/passfd.c: Include <sys/uio.h>.
16814
16815 2011-03-13  Bruno Haible  <bruno@clisp.org>
16816
16817         passfd test: Fix warnings.
16818         * tests/test-passfd.c: Include <sys/wait.h>.
16819         (main): Fix typo.
16820
16821 2011-03-13  Bruno Haible  <bruno@clisp.org>
16822
16823         passfd module, part 4, tweaks.
16824         * tests/test-passfd.c: Reorder includes.
16825         (main): Fix perror and printf calls.
16826
16827 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16828
16829         passfd module, part 4.
16830         * modules/passfd-tests: New file.
16831         * tests/test-passfd.c: New file.
16832
16833 2011-03-13  Jim Meyering  <meyering@redhat.com>
16834
16835         Makefile: rely on GNU make; derive syntax-check rule names
16836         Rather than requiring that each sc_ rule be listed as a dependent
16837         of "check", use features of GNU make to derive the list.
16838         * Makefile (syntax-check-rules): Define.
16839         (check): Depend on the new variable, not the hard-coded list.
16840
16841 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
16842             Bruno Haible  <bruno@clisp.org>
16843
16844         passfd module, part 3.
16845         * lib/passfd.h (recvfd): Add a flags argument.
16846         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
16847         (recvfd): Add a flags argument.
16848         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
16849         exists.
16850         * modules/passfd (Depends-on): Add cloexec.
16851         Suggested by Eric Blake.
16852
16853 2011-03-13  Bruno Haible  <bruno@clisp.org>
16854
16855         passfd module, part 2, tweaks.
16856         * modules/passfd (Files): Reorder.
16857         (Depends-on): Remove errno.
16858         (Include): Remove <sys/socket.h>, <sys/un.h>.
16859         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
16860         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
16861         specification header. Include <sys/socket.h> always. Don't include
16862         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
16863         (sendfd): Clarify that it sets errno when it fails.
16864         (recvfd): Fix specification.
16865
16866 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16867
16868         passfd module, part 2.
16869         * modules/passfd: New file.
16870         * lib/passfd.h: New file.
16871         * lib/passfd.c: New file.
16872
16873 2011-03-12  Bruno Haible  <bruno@clisp.org>
16874
16875         wcswidth, mbswidth: Avoid integer overflow.
16876         * lib/wcswidth.c: Include <limits.h>.
16877         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
16878         * lib/mbswidth.c: Include <limits.h>.
16879         (mbsnwidth): Avoid 'int' overflow.
16880         Reported by Jim Meyering.
16881
16882 2011-03-12  Bruno Haible  <bruno@clisp.org>
16883
16884         futimens, utimensat: Avoid endless recursion on Solaris 10.
16885         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
16886         Solaris.
16887         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
16888         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
16889
16890 2011-03-11  Jim Meyering  <meyering@redhat.com>
16891
16892         maint.mk: relax a regexp to accommodate other formatting styles
16893         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
16894         between "ngettext" and the following "(".
16895
16896 2011-03-11  Pádraig Brady <P@draigBrady.com>
16897
16898         maint.mk: suppress a false positive warning
16899         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
16900         diagnostics are marked with ngettext.
16901
16902 2011-03-10  Eric Blake  <eblake@redhat.com>
16903
16904         wchar: add explicit dependencies, for Tru64
16905         * modules/mbmemcasecoll (Depends-on): Add wchar.
16906         * modules/mbtowc (Depends-on): Likewise.
16907         * modules/vasnprintf (Depends-on): Likewise.
16908         * modules/unistdio/u-printf-args (Depends-on): Likewise.
16909         * modules/wctomb (Depends-on): Likewise.
16910         Reported by Peter O'Gorman.
16911
16912 2011-03-08  Bruno Haible  <bruno@clisp.org>
16913
16914         passfd module, part 1, tweaks.
16915         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
16916         Improve indentation. Improve AC_MSG_CHECKING messages.
16917         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
16918         gl_SOCKET_FAMILIES.
16919
16920 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
16921
16922         passfd module, part 1.
16923         * m4/afunix.m4: New file.
16924         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
16925         sockets.
16926
16927 2011-03-08  Bruno Haible  <bruno@clisp.org>
16928
16929         regex-quote: New API.
16930         * lib/regex-quote.h: Include <stdbool.h>.
16931         (struct regex_quote_spec): New type.
16932         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16933         New declarations.
16934         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16935         'const struct regex_quote_spec *' argument.
16936         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
16937         (pcre_special): New constant.
16938         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
16939         New functions.
16940         (regex_quote_length, regex_quote_copy, regex_quote): Take a
16941         'const struct regex_quote_spec *' argument.
16942         * modules/regex-quote (Depends-on): Add stdbool.
16943         * tests/test-regex-quote.c (check): Update for new API. Add test for
16944         anchored results.
16945         * NEWS: Mention the API change.
16946         Reported by Reuben Thomas and Eric Blake.
16947
16948 2011-03-06  Bruno Haible  <bruno@clisp.org>
16949
16950         regex-quote: Fix creation of POSIX extended regular expressions.
16951         * lib/regex-quote.c (ere_special): Add grouping and alternation
16952         operators.
16953
16954 2011-03-05  Bruno Haible  <bruno@clisp.org>
16955
16956         doc: Improve doc regarding autopoint vs. gnulib.
16957         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
16958         disable autopoint while running autoreconf.
16959         Suggested by Ralf Wildenhues.
16960
16961 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16962
16963         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
16964         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
16965
16966 2011-03-03  Bruce Korb  <bkorb@gnu.org>
16967
16968         parse-duration: remove xalloc.h dependency
16969         * lib/parse-duration.c (parse_period): handle NULL return from
16970         strdup instead of calling xstrdup().
16971         * modules/parse-duration: remove "xalloc" dependency
16972
16973 2011-03-03  Matthew Booth  <mbooth@redhat.com>
16974
16975         bootstrap: honor m4_base when running aclocal
16976         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
16977
16978 2011-03-02  Jim Meyering  <meyering@redhat.com>
16979
16980         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
16981         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
16982         on request from Matt Booth.
16983
16984 2011-03-01  Eric Blake  <eblake@redhat.com>
16985
16986         test-link: work on Hurd
16987         * tests/test-link.h (test_link): Hurd rejects linking directories
16988         with EISDIR instead of the POSIX-mandated EPERM.
16989
16990 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
16991
16992         stdio: simplify by moving files to printf-posix, sigpipe
16993         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
16994         since this symbol is needed only if printf is replaced.
16995         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
16996         Require gl_ASM_SYMBOL_PREFIX.
16997         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
16998         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
16999         (Depends-on): Add 'raise'.
17000         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
17001         * modules/stdio (Files): Remove lib/stdio-write.c,
17002         m4/asm-underscore.m4.
17003         (Depends-on): Remove 'raise'.
17004
17005         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
17006         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
17007         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
17008         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
17009
17010 2011-02-28  Bruno Haible  <bruno@clisp.org>
17011
17012         localcharset: Assume ANSI C behaviour of free().
17013         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
17014         calling free().
17015         Suggested by Simon Josefsson <simon@josefsson.org>.
17016
17017 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
17018             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
17019             Bruno Haible  <bruno@clisp.org>  (tiny change)
17020
17021         On Cygwin, use /proc file system instead of win32 API.
17022         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
17023         Win32 file names.
17024         (DllMain): Simplify by removing Cygwin specific code.
17025         (find_shared_library_fullname): Use Linux specific implementation also
17026         for Cygwin.
17027         (get_shared_library_fullname): Update accordingly.
17028         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
17029         Win32 file names.
17030         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
17031         Cygwin specific code.
17032
17033 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
17034             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
17035
17036         Fix OpenMP flag detection for various Fortran compilers.
17037         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
17038         OpenMP-conditional compilation construct, to force compile
17039         failure with missing OpenMP flag.
17040         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
17041
17042 2011-02-25  Eric Blake  <eblake@redhat.com>
17043
17044         strstr: expand test coverage
17045         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
17046         compilation.
17047         * tests/test-memmem.c (main): Duplicate tests.
17048         * tests/test-strcasestr.c (main): Likewise.
17049         * tests/test-c-strcasestr.c (main): Likewise.
17050
17051 2011-02-25  Jim Meyering  <meyering@redhat.com>
17052
17053         maint.mk: detect missing-NL-at-EOF, too
17054         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
17055         it also detects when a file lacks a newline at EOF.
17056         (require_exactly_one_NL_at_EOF_): Renamed from
17057         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
17058         since people may well have .x-sc_... file names tied to the
17059         existing name.  Suggested by Eric Blake.
17060
17061 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17062
17063         dirname: move m4/dos.m4 functionality into lib/dosname.h
17064
17065         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
17066         extracts symbols from it, puts them into config.h; but it's much
17067         easier to use the symbols directly.  filename.h already does this,
17068         but it disagrees with dos.m4 in some respects.  This patch
17069         introduces a different include file dosname.h that packages up
17070         dos.m4, and then later we can work on merging filename.h and
17071         dosname.h.  Applications that need only the easy-to-configure
17072         symbols should consider including dosname.h rather than dirname.h.
17073         * NEWS: Mention incompatible changes.
17074         * m4/dos.m4: Remove.
17075         * lib/dosname.h, modules/dosname: New files.
17076         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
17077         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
17078         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
17079         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
17080         Include dosname.h, not dirname.h.
17081         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
17082         Include dosname.h, for definitions of symbols like ISSLASH
17083         that used to be in config.h.
17084         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
17085         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17086         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17087         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17088         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
17089         * modules/rmdir (Files): Likewise.
17090         * modules/stat (Files): Likewise.
17091         * modules/unlink (Files): Likewise.
17092         * modules/dirname-lgpl (Depends-on): Add dosname.
17093         * modules/lstat (Depends-on): Likewise.
17094         * modules/openat (Depends-on): Likewise.
17095         * modules/rmdir (Depends-on): Likewise.
17096         * modules/savewd (Depends-on): Likewise.
17097         * modules/stat (Depends-on): Likewise.
17098         * modules/unlink (Depends-on): Likewise.
17099         * modules/openat (Depends-on): Remove dirname-lgpl.
17100         * modules/savewd (Depends-on): Likewise.
17101         * tests/test-dirname.c: Do not use removed symbols like
17102         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
17103         the remaining symbols, e.g., ISSLASH ('\\').
17104
17105 2011-02-25  Eric Blake  <eblake@redhat.com>
17106
17107         strstr: revert patches that introduced bug and pessimization
17108         * lib/str-two-way.h: Add another reference.
17109         (two_way_short_needle, two_way_long_needle): Revert changes from
17110         2011-02-24; they pessimize search speed.
17111         (critical_factorization): Partially revert changes from
17112         2010-06-22; they violate the requirement that the left half of the
17113         needle be smaller than the period of the needle.
17114
17115 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17116
17117         filenamecat: remove unnecessary dependency on dirname-lgpl
17118         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
17119         is no direct dependency, just an indirect one via filenamecat-lgpl.
17120
17121         remove: remove unnecessary use of m4/dos.m4
17122         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
17123         * modules/remove (FILES): Remove m4/dos.m4.
17124
17125         * lib/openat-proc.c: Don't include dirname.h; not needed.
17126
17127         backupfile: remove unnecessary use of m4/dos.m4
17128         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
17129         of its symbols are used by the backupfile code.  backupfile.c does
17130         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
17131         for the rare case of programs that want all their backup file
17132         names to live within 8+3 limits, and dos.m4 doesn't address that.
17133         * modules/backupfile (Files): Remove m4/dos.m4.
17134
17135 2011-02-24  Jim Meyering  <meyering@redhat.com>
17136
17137         strstr: fix a bug whereby strstr would mistakenly return NULL
17138         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
17139         in period calculation.
17140         (two_way_long_needle): Likewise.
17141         The original problem was reported by Mike Stump in
17142         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
17143         Ralf Wildenhues provided the short needle and haystack.
17144         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
17145         Add a more involved test to trigger the bug in two_way_long_needle.
17146
17147 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17148
17149         gnulib-tool: remove use of bold display in help screen
17150         * gnulib-tool (func_usage): Do not use bold display anymore in the
17151         help screen.  That was just meant to be a temporary emphasis for a
17152         backward-incompatible change.
17153
17154 2011-02-23  Bruno Haible  <bruno@clisp.org>
17155
17156         Fix misindentation of preprocessor directives.
17157         * lib/argp-namefrob.h: Reindent preprocessor directives.
17158         * lib/getopt_int.h (struct _getopt_data): Likewise.
17159         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
17160         * lib/vasnprintf.c (decode_long_double): Likewise.
17161         * tests/test-argmatch.c: Insert blank lines, for clarity.
17162         * tests/test-exclude.c: Likewise.
17163
17164 2011-02-22  Bruno Haible  <bruno@clisp.org>
17165
17166         ioctl: Fix for MacOS X in 64-bit mode.
17167         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
17168         value.
17169         Suggested by Eric Blake.
17170         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
17171
17172 2011-02-22  Jim Meyering  <meyering@redhat.com>
17173
17174         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
17175         * Makefile (sc_cpp_indent_check): Don't limit the check to files
17176         in lib/.
17177
17178 2011-02-22  Eric Blake  <eblake@redhat.com>
17179
17180         maint: avoid any CDPATH issue
17181         * Makefile (sc_cpp_indent_check): Anchor cd argument.
17182
17183         maint: adjust cpp indentation for my modules, as well
17184         * Makefile (sc_cpp_indent_check): Add my name.
17185         * lib/fbufmode.c: Filter through cppi.
17186         * lib/fpurge.c: Likewise.
17187         * lib/freadable.c: Likewise.
17188         * lib/freading.c: Likewise.
17189         * lib/fwritable.c: Likewise.
17190         * lib/fwriting.c: Likewise.
17191         * lib/sigaction.c: Likewise.
17192
17193 2011-02-22  Jim Meyering  <meyering@redhat.com>
17194
17195         maint: adjust cpp indentation to reflect nesting depth
17196         I.e., in a block of code that begins with an unnested "#if",
17197         put one space between the "#" in column 1 and following token.
17198         For example,
17199         -#include <sys/vfs.h>
17200         +# include <sys/vfs.h>
17201         Do this only in .c files that are part of a module I maintain.
17202         * lib/linkat.c: Filter through cppi.
17203         * lib/nanosleep.c: Likewise.
17204         * lib/openat.c: Likewise.
17205         * lib/openat-die.c: Likewise.
17206         * lib/dup3.c: Likewise.
17207         * lib/fchownat.c: Likewise.
17208         * lib/flock.c: Likewise.
17209         * lib/fsync.c: Likewise.
17210         * lib/fts.c: Likewise.
17211         * lib/getpass.c: Likewise.
17212         * lib/gettimeofday.c: Likewise.
17213         * lib/userspec.c: Likewise.
17214         * Makefile (sc_cpp_indent_check): New rule, to check this.
17215
17216 2011-02-22  Bruno Haible  <bruno@clisp.org>
17217
17218         New module 'wctomb'.
17219         * lib/stdlib.in.h (wctomb): New declaration.
17220         * lib/wctomb.c: New file.
17221         * lib/wctomb-impl.h: New file.
17222         * m4/wctomb.m4: New file.
17223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
17224         REPLACE_WCTOMB.
17225         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
17226         REPLACE_WCTOMB.
17227         * modules/wctomb: New file.
17228         * tests/test-stdlib-c++.cc: Test signature of wctomb.
17229         * doc/posix-functions/wctomb.texi: Mention the new module.
17230         * modules/wctob (Depends-on): Add wctomb.
17231
17232 2011-02-22  Bruno Haible  <bruno@clisp.org>
17233
17234         New module 'mbtowc'.
17235         * lib/stdlib.in.h (mbtowc): New declaration.
17236         * lib/mbtowc.c: New file.
17237         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
17238         * m4/mbtowc.m4: New file.
17239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
17240         REPLACE_MBTOWC.
17241         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
17242         REPLACE_MBTOWC.
17243         * modules/mbtowc: New file.
17244         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
17245         * doc/posix-functions/mbtowc.texi: Mention the new module.
17246         * modules/btowc (Depends-on): Add mbtowc.
17247
17248 2011-02-22  Bruno Haible  <bruno@clisp.org>
17249
17250         wcrtomb: Add more tests for native Windows platforms.
17251         * tests/test-wcrtomb-w32-1.sh: New file.
17252         * tests/test-wcrtomb-w32-2.sh: New file.
17253         * tests/test-wcrtomb-w32-3.sh: New file.
17254         * tests/test-wcrtomb-w32-4.sh: New file.
17255         * tests/test-wcrtomb-w32-5.sh: New file.
17256         * tests/test-wcrtomb-w32.c: New file.
17257         * modules/wcrtomb-tests (Files): Add them.
17258         (Makefile.am): Arrange to run these tests.
17259         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
17260         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
17261
17262 2011-02-20  Bruno Haible  <bruno@clisp.org>
17263
17264         wcrtomb: Enhance test.
17265         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
17266
17267 2011-02-20  Bruno Haible  <bruno@clisp.org>
17268
17269         mbrtowc: Tiny optimization.
17270         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
17271
17272 2011-02-20  Jim Meyering  <meyering@redhat.com>
17273
17274         test-exclude.c: remove unmatched #endif
17275         * tests/test-exclude.c: Remove stray #endif, left over from
17276         the change of a week ago.
17277
17278 2011-02-19  Jim Meyering  <meyering@redhat.com>
17279
17280         git-version-gen: skip "-dirty" check when appropriate
17281         * build-aux/git-version-gen: Don't run any git commands when the
17282         version string comes from .tarball-version.  Prior to this, we
17283         would run git update-index --refresh even from a just-unpacked
17284         tarball directory, and that could affect a .git/ directory in a
17285         parent of the build directory.  Reported by Mike Frysinger.
17286
17287 2011-02-19  Bruno Haible  <bruno@clisp.org>
17288
17289         unictype/property-byname: Reduce the size of the 'data' segment.
17290         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
17291
17292 2011-02-19  Bruno Haible  <bruno@clisp.org>
17293
17294         unictype/scripts: Reduce the size of the 'data' segment.
17295         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
17296         '%pic'.
17297         * lib/unictype/scripts_byname.gperf: Regenerated.
17298
17299 2011-02-19  Bruno Haible  <bruno@clisp.org>
17300
17301         stdint: Update documentation.
17302         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
17303
17304 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
17305
17306         stdint: omit redundant check for wchar.h
17307         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
17308         always tests whether wchar.h exists, so remove the now-redundant test.
17309
17310 2011-02-18  Bruno Haible  <bruno@clisp.org>
17311
17312         stdint: Cut dependency to module 'wchar'.
17313         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
17314         include the necessary prerequisites.
17315         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
17316         * modules/stdint (Depends-on): Remove wchar.
17317         (Makefile.am): Substitute HAVE_WCHAR_H.
17318         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
17319
17320 2011-02-18  Eric Blake  <eblake@redhat.com>
17321
17322         longlong: skip, rather than fail, on cross-compilation
17323         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
17324         when cross-compiling; regression from 2011-02-16.
17325
17326 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
17327
17328         * NEWS: Mention 2011-02-08 change to stdlib.
17329
17330 2011-02-17  Bruno Haible  <bruno@clisp.org>
17331
17332         getloadavg: Add comments about platforms.
17333         * m4/getloadavg.m4: Add comment.
17334         * lib/getloadavg.c: Likewise.
17335
17336 2011-02-17  Bruno Haible  <bruno@clisp.org>
17337
17338         getloadavg: Fix link error on Solaris 2.6.
17339         * modules/getloadavg (Link): New section.
17340         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
17341         linking test-getloadavg.
17342         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
17343         getloadavg.
17344
17345 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
17346
17347         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
17348         It was 'int', but this doesn't match the IRIX 6.5 manual.
17349         Suggested by Bruno Haible in
17350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
17351
17352 2011-02-17  Bruno Haible  <bruno@clisp.org>
17353
17354         havelib: Fix comments.
17355         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
17356         change.
17357
17358 2011-02-17  Bruno Haible  <bruno@clisp.org>
17359
17360         havelib: Update config.rpath.
17361         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
17362
17363 2011-02-17  Bruno Haible  <bruno@clisp.org>
17364
17365         getloadavg test: Add some plausibility checks.
17366         * tests/test-getloadavg.c (check_avg): Print a warning when the value
17367         is improbable.
17368
17369 2011-02-16  Eric Blake  <eblake@redhat.com>
17370
17371         maintainer-makefile: make syntax-check a no-op from tarballs
17372         * top/maint.mk (no-vc-detected): New rule.
17373         (local-checks-available): Use it to avoid hanging if someone tries
17374         'make syntax-check' from a tarball.  Also append to any non-syntax
17375         checks already defined in cfg.mk.
17376
17377 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
17378
17379         longlong: tune, particularly for common case of c99
17380
17381         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
17382         or running anything if c99, or if unsigned long long int does not
17383         work.  In either case, we know the answer without further tests.
17384         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
17385         it at most once, and use its results for both long long int and
17386         unsigned long long int.  This is more likely to be efficient in
17387         the common case where the program wants to check for both long
17388         long int and unsigned long long int.
17389         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
17390         since the answer is already known.
17391
17392 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
17393
17394         getloadavg: set errno
17395         * lib/getloadavg.c: Set errno when returning -1.  If no other
17396         error number looks appropriate, set it to ENOSYS if the getloadavg
17397         looks like it can't possibly ever work, ENOTSUP otherwise.
17398         Suggested by Bruno Haible in
17399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
17400
17401         getloadavg: trim unused parts and speed up 'configure'
17402         * NEWS: Document this.
17403         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
17404         always compiled if getloadavg is absent.
17405         Move test code to ...
17406         * tests/test-getloadavg.c: New file, containing previous
17407         contents of test from lib/getloadavg.c.  It also contains
17408         suggestions by Bruno Haible in
17409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
17410         * modules/getloadavg-tests: New file.
17411         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
17412         Do tests in the same order as they're needed for getloadavg.c.
17413         Omit setgid-related tests that generate symbols KMEM_GROUP,
17414         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
17415         Do only the tests that are needed to see whether the system has
17416         getloadavg, moving the other tests into ...
17417         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
17418         NLIST_NAME_UNION; nobody should be using it.  Do not define
17419         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
17420         relevant, as the user of this module shouldn't care how getloadavg
17421         is implemented.
17422
17423         getloadavg: omit unused var
17424         * lib/getloadavg.c (getloadavg): Omit unused local variable.
17425
17426 2011-02-15  Jim Meyering  <meyering@redhat.com>
17427
17428         doc: update users.txt
17429         * users.txt: Update iwhd's URL.
17430
17431 2011-02-13  Bruno Haible  <bruno@clisp.org>
17432
17433         Consistent macro naming for macros that use GCC __attribute__.
17434         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
17435         _ATTRIBUTE_NONNULL_.
17436         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
17437         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
17438         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
17439         ATTRIBUTE_DEPRECATED.
17440         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
17441         ATTRIBUTE_NORETURN.
17442         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17443         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17444         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17445         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
17446         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
17447         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
17448         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
17449         ATTRIBUTE_SENTINEL.
17450         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
17451         ATTRIBUTE_RETURN_CHECK.
17452         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
17453         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
17454         ATTRIBUTE_NORETURN.
17455         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
17456         Reported by Paul Eggert.
17457
17458 2011-02-13  Bruno Haible  <bruno@clisp.org>
17459
17460         Don't interfere with a program's definition of __attribute__.
17461         * lib/argp.h (__attribute__): Remove definition.
17462         (_GL_ATTRIBUTE_FORMAT): New macro.
17463         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
17464         * lib/argp-fmtstream.h (__attribute__): Remove definition.
17465         (_GL_ATTRIBUTE_FORMAT): New macro.
17466         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
17467         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
17468         GCC 3 or newer.
17469         * lib/error.h (__attribute__): Remove definition.
17470         (_GL_ATTRIBUTE_FORMAT): New macro.
17471         (error, error_at_line): Use it.
17472         * lib/hash.h (__attribute__): Remove definition.
17473         (ATTRIBUTE_WUR): Update definition. Define always.
17474         * lib/openat.h (__attribute__): Remove definition.
17475         (ATTRIBUTE_NORETURN): Update definition. Define always.
17476         * lib/sigpipe-die.h (__attribute__): Remove definition.
17477         (ATTRIBUTE_NORETURN): Update definition. Define always.
17478         * lib/vasnprintf.h (__attribute__): Remove definition.
17479         (_GL_ATTRIBUTE_FORMAT): New macro.
17480         (asnprintf, vasnprintf): Use it.
17481         * lib/xalloc.h (__attribute__): Remove definition.
17482         (ATTRIBUTE_NORETURN): Update definition. Define always.
17483         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
17484         * lib/xmemdup0.h (__attribute__): Remove definition.
17485         (ATTRIBUTE_NORETURN): Update definition. Define always.
17486         * lib/xprintf.h (__attribute__): Remove definition.
17487         (_GL_ATTRIBUTE_FORMAT): New macro.
17488         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
17489         * lib/xstrtol.h (__attribute__): Remove definition.
17490         (ATTRIBUTE_NORETURN): Update definition. Define always.
17491         * lib/xvasprintf.h (__attribute__): Remove definition.
17492         (_GL_ATTRIBUTE_FORMAT): New macro.
17493         (xasprintf, xvasprintf): Use it.
17494         * tests/test-argmatch.c (__attribute__): Remove definition.
17495         (ATTRIBUTE_NORETURN): Update definition. Define always.
17496         * tests/test-exclude.c (__attribute__): Remove definition.
17497         (ATTRIBUTE_NORETURN): Update definition. Define always.
17498         Reported by Paul Eggert.
17499
17500 2011-02-13  Bruno Haible  <bruno@clisp.org>
17501
17502         mbrtowc: Add more tests for native Windows platforms.
17503         * tests/test-mbrtowc-w32-1.sh: New file.
17504         * tests/test-mbrtowc-w32-2.sh: New file.
17505         * tests/test-mbrtowc-w32-3.sh: New file.
17506         * tests/test-mbrtowc-w32-4.sh: New file.
17507         * tests/test-mbrtowc-w32-5.sh: New file.
17508         * tests/test-mbrtowc-w32.c: New file.
17509         * modules/mbrtowc-tests (Files): Add them.
17510         (Makefile.am): Arrange to run these tests.
17511         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
17512         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
17513
17514 2011-02-13  Bruno Haible  <bruno@clisp.org>
17515
17516         mbrtowc: Work around native Windows bug.
17517         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
17518         guess when no suitable locale for testing was found.
17519         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
17520
17521 2011-02-13  Bruno Haible  <bruno@clisp.org>
17522
17523         mbsinit: Work around mingw bug.
17524         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
17525         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
17526         Windows.
17527         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
17528
17529 2011-02-13  Bruno Haible  <bruno@clisp.org>
17530
17531         mbsinit: Don't crash for a NULL argument.
17532         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
17533         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
17534
17535 2011-02-13  Bruno Haible  <bruno@clisp.org>
17536
17537         Don't interfere with a program's definition of __attribute__.
17538         * lib/stdio.in.h (__attribute__): Remove definition.
17539         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
17540         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
17541         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
17542         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
17543         * lib/string.in.h (__attribute__): Remove definition.
17544         Reported by Paul Eggert.
17545
17546 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17547
17548         stdlib: don't get in the way of non-GCC __attribute__
17549         See thread starting at
17550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
17551         Revert previous stdlib change, installing the following instead:
17552         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
17553         to get in the way of a non-GCC compiler that supports __attribute__.
17554         (_GL_ATTRIBUTE_RETURN): New macro.
17555         (_Exit): Use it instead of __attribute__.
17556
17557 2011-02-12  Bruno Haible  <bruno@clisp.org>
17558
17559         quotearg test: Avoid test failure on mingw.
17560         * tests/test-quotearg.sh: Convert the locale identifier from native
17561         Windows syntax to Unix syntax.
17562
17563 2011-02-12  Bruno Haible  <bruno@clisp.org>
17564
17565         setlocale: Prefer gnulib's override over libintl's override.
17566         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
17567         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
17568         GNULIB_defined_setlocale is set.
17569
17570 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
17571
17572         stdlib: support non-GCC __attribute__
17573
17574         Fix a serious and tricky problem encountered when attempting to
17575         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
17576         5.5, but it crashed due to memory corruption on Solaris 10 with
17577         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
17578         bits that are otherwise zero.  This tagging is optional inside
17579         Emacs but is preferred and is used when __attribute__ ((__aligned
17580         (8))) works, as it does with both recent-enough GCC and with Sun C
17581         5.11.  However, Sun C 5.11 is not GCC and does not #define
17582         __GNUC__ and __GNUC_MINOR__.
17583
17584         When I added the getloadavg module to Emacs, it brought in
17585         stdlib.in.h, which contained this fragment:
17586
17587            #ifndef __attribute__
17588            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
17589            #  define __attribute__(Spec)   /* empty */
17590            # endif
17591            #endif
17592
17593         When files that include <stdlib.h> were compiled with Sun C 5.11,
17594         the above code disabled __attribute__ ((__aligned (8))), which
17595         caused variables to not be properly aligned, which eventually led
17596         to the pointer corruption mentioned above.  (This was a bit hard
17597         to diagnose, unfortunately.)
17598
17599         Several "#define __attribute__(X) /* empty */" code snippets need
17600         to be eradicated from Gnulib to work with non-GCC compilers that
17601         support __attribute__.  The Autoconf way to do this is to test for
17602         each kind of attribute that we want support for, and selectively
17603         enable that in source code.
17604
17605         Fix this problem just for stdlib.h, by adding a test for the
17606         __noreturn__ attribute, and change stdlib.in.h to use that test
17607         when needed.  This technique can be easily generalized to the
17608         other *.in.h files and attributes, and a similar technique can be
17609         used for *.h and *.c files.  This patch is enough to solve the
17610         problem for Emacs + getloadavg, and I thought I'd publish it for
17611         feedback before undertaking further, similar fixes in other
17612         modules.
17613
17614         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
17615         because it's not needed for stdlib.h.  It merely substitutes the
17616         value directly into stdlib.h.  We may well need to #define it, or
17617         similar symbols, for other modules, but it's nice to also have an
17618         option to not #define it for applications like Emacs that do not
17619         need it.
17620
17621         * lib/stdlib.in.h (__attribute__): Do not #define.
17622         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
17623         be defined only if the _Exit module is also used.
17624         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
17625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
17626         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
17627         platforms.
17628         * modules/_Exit (Files): Add m4/attribute.m4.
17629         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
17630         * m4/attribute.m4: New file.
17631
17632 2011-02-12  Bruno Haible  <bruno@clisp.org>
17633
17634         wcsrtombs: Work around bug on native Windows.
17635         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
17636         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
17637         instead of len.
17638         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
17639
17640 2011-02-12  Bruno Haible  <bruno@clisp.org>
17641
17642         mbsrtowcs: Work around bug on native Windows.
17643         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
17644         against mingw bug.
17645         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
17646
17647 2011-02-12  Bruno Haible  <bruno@clisp.org>
17648
17649         Avoid setlocale bugs in tests.
17650         * modules/btowc (Dependencies): Add setlocale.
17651         * modules/c-strcase (Dependencies): Likewise.
17652         * modules/mbmemcasecmp (Dependencies): Likewise.
17653         * modules/mbmemcasecoll (Dependencies): Likewise.
17654         * modules/mbrtowc (Dependencies): Likewise.
17655         * modules/mbscasecmp (Dependencies): Likewise.
17656         * modules/mbscasestr (Dependencies): Likewise.
17657         * modules/mbschr (Dependencies): Likewise.
17658         * modules/mbscspn (Dependencies): Likewise.
17659         * modules/mbsinit (Dependencies): Likewise.
17660         * modules/mbsncasecmp (Dependencies): Likewise.
17661         * modules/mbsnrtowcs (Dependencies): Likewise.
17662         * modules/mbspbrk (Dependencies): Likewise.
17663         * modules/mbspcasecmp (Dependencies): Likewise.
17664         * modules/mbsrchr (Dependencies): Likewise.
17665         * modules/mbsrtowcs (Dependencies): Likewise.
17666         * modules/mbsspn (Dependencies): Likewise.
17667         * modules/mbsstr (Dependencies): Likewise.
17668         * modules/nl_langinfo (Dependencies): Likewise.
17669         * modules/quotearg (Dependencies): Likewise.
17670         * modules/unicase/locale-language (Dependencies): Likewise.
17671         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
17672         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
17673         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
17674         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
17675         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
17676         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
17677         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
17678         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
17679         * modules/vasnprintf-posix (Dependencies): Likewise.
17680         * modules/wcrtomb (Dependencies): Likewise.
17681         * modules/wcsnrtombs (Dependencies): Likewise.
17682         * modules/wcsrtombs (Dependencies): Likewise.
17683
17684 2011-02-12  Bruno Haible  <bruno@clisp.org>
17685
17686         setlocale: Workaround native Windows bug.
17687         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
17688         succeeds but sets LC_CTYPE to "C", report a failure.
17689         * tests/test-setlocale2.sh: New file.
17690         * tests/test-setlocale2.c: New file.
17691         * modules/setlocale-tests (Files): Add the new files.
17692         (Makefile.am): Enable test-setlocale2.sh test.
17693         * doc/posix-functions/setlocale.texi: Mention workaround.
17694
17695 2011-02-11  Bruno Haible  <bruno@clisp.org>
17696
17697         Tests for module 'setlocale'.
17698         * modules/setlocale-tests: New file.
17699         * tests/test-setlocale1.sh: New file.
17700         * tests/test-setlocale1.c: New file.
17701
17702         New module 'setlocale'.
17703         * lib/locale.in.h (setlocale): New declaration.
17704         * lib/setlocale.c: New file, based on
17705         gettext/gettext-runtime/intl/setlocale.c.
17706         * m4/setlocale.m4: New file.
17707         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
17708         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
17709         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
17710         REPLACE_SETLOCALE.
17711         * modules/setlocale: New file.
17712         * tests/test-locale-c++.cc: Test the declaration of setlocale.
17713         * doc/posix-functions/setlocale.texi: Mention the new module.
17714
17715 2011-02-11  Bruno Haible  <bruno@clisp.org>
17716
17717         Prepare for locale dependent tests on mingw.
17718         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
17719         because it has the wrong locale encoding.
17720         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
17721         French_France.1252 instead of "fr".
17722         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
17723         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
17724         because it has the wrong locale encoding.
17725         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
17726         native Windows, try Turkish_Turkey.65001.
17727         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
17728         Chinese_China.54936.
17729
17730         Prepare for locale dependent tests on mingw.
17731         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
17732         differently.
17733         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
17734         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
17735         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17736         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17737
17738 2011-02-11  Eric Blake  <eblake@redhat.com>
17739
17740         strptime: avoid compiler warnings
17741         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
17742         compiler warnings about dead code.
17743         Reported by Daniel P. Berrange.
17744
17745 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
17746
17747         doc: update users.txt
17748         * users.txt: Add rcs.
17749
17750 2011-02-10  John W. Eaton  <jwe@gnu.org>
17751
17752         doc: update users.txt
17753         * users.txt: Add octave.
17754
17755 2011-02-10  Jim Meyering  <meyering@redhat.com>
17756
17757         doc: update users.txt
17758         * users.txt: Add iwhd.
17759
17760 2011-02-09  Bruno Haible  <bruno@clisp.org>
17761
17762         gnulib-tool: Make copyright notice adjustment more robust.
17763         * gnulib-tool (func_import): In sed_transform_main_lib_file,
17764         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
17765         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
17766         License".
17767         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
17768
17769 2011-02-06  Bruno Haible  <bruno@clisp.org>
17770
17771         New module 'towctrans'.
17772         * modules/towctrans: New file.
17773         * lib/wctype.in.h (towctrans): New declaration.
17774         * lib/towctrans.c: New file.
17775         * lib/towctrans-impl.h: New file.
17776         * m4/towctrans.m4: New file.
17777         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
17778         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
17779         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
17780         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
17781         * doc/posix-functions/towctrans.texi: Mention the new module.
17782
17783 2011-02-06  Bruno Haible  <bruno@clisp.org>
17784
17785         New module 'wctrans'.
17786         * modules/wctrans: New file.
17787         * lib/wctype.in.h (wctrans): New declaration.
17788         * lib/wctrans.c: New file.
17789         * lib/wctrans-impl.h: New file.
17790         * m4/wctrans.m4: New file.
17791         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
17792         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
17793         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
17794         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
17795         * doc/posix-functions/wctrans.texi: Mention the new module.
17796
17797 2011-02-06  Bruno Haible  <bruno@clisp.org>
17798
17799         New module 'iswctype'.
17800         * modules/iswctype: New file.
17801         * lib/wctype.in.h (iswctype): New declaration.
17802         * lib/iswctype.c: New file.
17803         * lib/iswctype-impl.h: New file.
17804         * m4/iswctype.m4: New file.
17805         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
17806         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
17807         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
17808         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
17809         * doc/posix-functions/iswctype.texi: Mention the new module and the
17810         HP-UX 11.00 problem.
17811
17812 2011-02-06  Bruno Haible  <bruno@clisp.org>
17813
17814         New module 'wctype'.
17815         * modules/wctype: Change to represent the wctype() substitute.
17816         * lib/wctype.in.h (wctype): New declaration.
17817         * lib/wctype.c: New file.
17818         * lib/wctype-impl.h: New file.
17819         * m4/wctype.m4: New file.
17820         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
17821         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
17822         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
17823         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
17824         * doc/posix-functions/wctype.texi: Mention the new module and the
17825         HP-UX 11.00 problem.
17826
17827 2011-02-06  Bruno Haible  <bruno@clisp.org>
17828
17829         wctype-h: Ensure wctype_t and wctrans_t are defined.
17830         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
17831         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17832         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
17833         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
17834         HAVE_WCTRANS_T.
17835         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
17836
17837 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17838
17839         flock: fix license typo
17840
17841         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
17842         omitted.
17843
17844 2011-02-08  Bruno Haible  <bruno@clisp.org>
17845
17846         Split large sed scripts, for HP-UX sed.
17847         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
17848         to avoid HP-UX limit of 99 commands, in the near future.
17849         * modules/stdlib (Makefile.am): Likewise.
17850         * modules/unistd (Makefile.am): Likewise.
17851         * modules/wchar (Makefile.am): Likewise.
17852         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17853         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
17854         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
17855
17856 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17857             Bruno Haible  <bruno@clisp.org>
17858
17859         stdlib: improve random_r modularization
17860         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
17861         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
17862         you also need the random_r module to get this material right.
17863         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
17864         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
17865         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
17866
17867 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17868
17869         stdlib: don't depend on stdint
17870         * lib/stdlib.in.h: Don't include <stdint.h> merely because
17871         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
17872         be independent of whether stdint.h is needed.
17873         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
17874         here, instead of ...
17875         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
17876         struct random_data should be using the random_r module, not just
17877         the stdlib module (which wouldn't make sense: what package needs
17878         just struct random_data without also needing random_r?).
17879         * modules/stdlib (Depends-on): Remove stdint.
17880
17881         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
17882         See the thread rooted at
17883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
17884         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
17885         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
17886         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
17887         __VMS)); previously it was always included (via fcntl--.h).
17888         (getloadavg): Do not use c_strtod.  Instead, approximate it by
17889         hand; this is good enough for load averages.  Also, do not use
17890         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
17891         flags directly if available and don't bother otherwise.  (Packages
17892         that need the extra reliability should use the modules that define
17893         these flags on older platforms that lack them.)
17894         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
17895         fcntl-safer.
17896
17897 2011-02-08  Jim Meyering  <meyering@redhat.com>
17898
17899         di-set.h, ino-map.h: add multiple-inclusion guard
17900         Technically, the guard is required only for ino-map.h, due to its
17901         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
17902         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
17903         * lib/ino-map.h: Likewise.
17904
17905 2011-02-06  Bruno Haible  <bruno@clisp.org>
17906
17907         iswblank: Ensure declaration on glibc systems.
17908         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
17909         * modules/iswblank (Dependencies): Add 'extensions'.
17910         * doc/posix-functions/iswblank.texi: Document the glibc problem.
17911
17912 2011-02-06  Bruno Haible  <bruno@clisp.org>
17913
17914         New module 'iswblank'.
17915         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
17916         * modules/iswblank: New file.
17917         * modules/wctype-h (Files): Remove lib/iswblank.c.
17918         (Makefile.am): Substitute GNULIB_ISWBLANK.
17919         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
17920         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
17921         (gl_WCTYPE_H_DEFAULTS): New macro.
17922         (gl_WCTYPE_H): Require it. Remove iswblank related code.
17923         * modules/iswblank-tests: New file.
17924         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
17925         * tests/test-wctype-h.c (main): Remove iswblank tests.
17926         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
17927         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
17928         of 'wctype-h'.
17929         * NEWS: Mention the change.
17930         * modules/mbchar (Depends-on): Add iswblank.
17931
17932 2011-02-08  Bruno Haible  <bruno@clisp.org>
17933
17934         di-set tests: Refactor.
17935         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
17936         unnecessary includes.
17937         (ASSERT): Remove macro.
17938         (main): Make C90 compliant by avoiding variable declaration after
17939         statement.
17940         * modules/di-set-tests (Files): Add tests/macros.h.
17941
17942 2011-02-08  Bruno Haible  <bruno@clisp.org>
17943
17944         ino-map tests: Refactor.
17945         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
17946         unnecessary includes.
17947         (ASSERT): Remove macro.
17948         (main): Make C90 compliant by avoiding variable declaration after
17949         statement.
17950         * modules/ino-map-tests (Files): Add tests/macros.h.
17951
17952 2011-02-08  Jim Meyering  <meyering@redhat.com>
17953
17954         di-set: add "const" to a cast
17955         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
17956         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
17957
17958 2011-02-06  Bruno Haible  <bruno@clisp.org>
17959
17960         Rename module 'wctype' to 'wctype-h'.
17961         * modules/wctype-h: Renamed from modules/wctype.
17962         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
17963         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
17964         (Files, Depends-on, Makefile.am): Update.
17965         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
17966         (Files, Makefile.am): Update.
17967         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
17968         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
17969         * doc/posix-headers/wctype.texi: Update.
17970         * doc/posix-functions/iswalnum.texi: Update.
17971         * doc/posix-functions/iswalpha.texi: Update.
17972         * doc/posix-functions/iswblank.texi: Update.
17973         * doc/posix-functions/iswcntrl.texi: Update.
17974         * doc/posix-functions/iswdigit.texi: Update.
17975         * doc/posix-functions/iswgraph.texi: Update.
17976         * doc/posix-functions/iswlower.texi: Update.
17977         * doc/posix-functions/iswprint.texi: Update.
17978         * doc/posix-functions/iswpunct.texi: Update.
17979         * doc/posix-functions/iswspace.texi: Update.
17980         * doc/posix-functions/iswupper.texi: Update.
17981         * doc/posix-functions/iswxdigit.texi: Update.
17982         * doc/posix-functions/towlower.texi: Update.
17983         * doc/posix-functions/towupper.texi: Update.
17984         * NEWS: Mention the change.
17985         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
17986         * modules/mbchar (Dependencies): Likewise.
17987         * modules/mbswidth (Dependencies): Likewise.
17988         * modules/quotearg (Dependencies): Likewise.
17989         * modules/regex (Dependencies): Likewise.
17990         * modules/wcscasecmp (Dependencies): Likewise.
17991         * modules/wcsncasecmp (Dependencies): Likewise.
17992         * modules/wcwidth (Dependencies): Likewise.
17993
17994 2011-02-06  Bruno Haible  <bruno@clisp.org>
17995
17996         New module 'wcswidth'.
17997         * modules/wcswidth: New file.
17998         * lib/wchar.in.h (wcswidth): New declaration.
17999         * lib/wcswidth.c: New file.
18000         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
18001         * m4/wcswidth.m4: New file.
18002         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
18003         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
18004         REPLACE_WCSWIDTH.
18005         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
18006         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
18007         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
18008         * doc/posix-functions/wcswidth.texi: Mention the new module.
18009
18010 2011-02-06  Bruno Haible  <bruno@clisp.org>
18011
18012         New module 'wcstok'.
18013         * modules/wcstok: New file.
18014         * lib/wchar.in.h (wcstok): New declaration.
18015         * lib/wcstok.c: New file.
18016         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
18017         * m4/wcstok.m4: New file.
18018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
18019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
18020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
18021         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
18022         * doc/posix-functions/wcstok.texi: Mention the new module.
18023
18024 2011-02-06  Bruno Haible  <bruno@clisp.org>
18025
18026         New module 'wcsstr'.
18027         * modules/wcsstr: New file.
18028         * lib/wchar.in.h (wcsstr): New declaration.
18029         * lib/wcsstr.c: New file.
18030         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
18031         * m4/wcsstr.m4: New file.
18032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
18033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
18034         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
18035         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
18036         * doc/posix-functions/wcsstr.texi: Mention the new module.
18037
18038 2011-02-06  Bruno Haible  <bruno@clisp.org>
18039
18040         New module 'wcspbrk'.
18041         * modules/wcspbrk: New file.
18042         * lib/wchar.in.h (wcspbrk): New declaration.
18043         * lib/wcspbrk.c: New file.
18044         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
18045         * m4/wcspbrk.m4: New file.
18046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
18047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
18048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
18049         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
18050         * doc/posix-functions/wcspbrk.texi: Mention the new module.
18051
18052 2011-02-06  Bruno Haible  <bruno@clisp.org>
18053
18054         New module 'wcsspn'.
18055         * modules/wcsspn: New file.
18056         * lib/wchar.in.h (wcsspn): New declaration.
18057         * lib/wcsspn.c: New file.
18058         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
18059         * m4/wcsspn.m4: New file.
18060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
18061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
18062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
18063         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
18064         * doc/posix-functions/wcsspn.texi: Mention the new module.
18065
18066 2011-02-06  Bruno Haible  <bruno@clisp.org>
18067
18068         New module 'wcscspn'.
18069         * modules/wcscspn: New file.
18070         * lib/wchar.in.h (wcscspn): New declaration.
18071         * lib/wcscspn.c: New file.
18072         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
18073         * m4/wcscspn.m4: New file.
18074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
18075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
18076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
18077         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
18078         * doc/posix-functions/wcscspn.texi: Mention the new module.
18079
18080 2011-02-06  Bruno Haible  <bruno@clisp.org>
18081
18082         New module 'wcsrchr'.
18083         * modules/wcsrchr: New file.
18084         * lib/wchar.in.h (wcsrchr): New declaration.
18085         * lib/wcsrchr.c: New file.
18086         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
18087         * m4/wcsrchr.m4: New file.
18088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
18089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
18090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
18091         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
18092         * doc/posix-functions/wcsrchr.texi: Mention the new module.
18093
18094 2011-02-06  Bruno Haible  <bruno@clisp.org>
18095
18096         New module 'wcschr'.
18097         * modules/wcschr: New file.
18098         * lib/wchar.in.h (wcschr): New declaration.
18099         * lib/wcschr.c: New file.
18100         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
18101         * m4/wcschr.m4: New file.
18102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
18103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
18104         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
18105         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
18106         * doc/posix-functions/wcschr.texi: Mention the new module.
18107
18108 2011-02-06  Bruno Haible  <bruno@clisp.org>
18109
18110         New module 'wcsdup'.
18111         * modules/wcsdup: New file.
18112         * lib/wchar.in.h (wcsdup): New declaration.
18113         * lib/wcsdup.c: New file.
18114         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
18115         * m4/wcsdup.m4: New file.
18116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
18117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
18118         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
18119         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
18120         * doc/posix-functions/wcsdup.texi: Mention the new module.
18121
18122 2011-02-06  Bruno Haible  <bruno@clisp.org>
18123
18124         New module 'wcsxfrm'.
18125         * modules/wcsxfrm: New file.
18126         * lib/wchar.in.h (wcsxfrm): New declaration.
18127         * lib/wcsxfrm.c: New file.
18128         * lib/wcsxfrm-impl.h: New file.
18129         * m4/wcsxfrm.m4: New file.
18130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
18131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
18132         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
18133         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
18134         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
18135
18136 2011-02-06  Bruno Haible  <bruno@clisp.org>
18137
18138         New module 'wcscoll'.
18139         * modules/wcscoll: New file.
18140         * lib/wchar.in.h (wcscoll): New declaration.
18141         * lib/wcscoll.c: New file.
18142         * lib/wcscoll-impl.h: New file.
18143         * m4/wcscoll.m4: New file.
18144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
18145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
18146         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
18147         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
18148         * doc/posix-functions/wcscoll.texi: Mention the new module.
18149
18150 2011-02-06  Bruno Haible  <bruno@clisp.org>
18151
18152         New module 'wcsncasecmp'.
18153         * modules/wcsncasecmp: New file.
18154         * lib/wchar.in.h (wcsncasecmp): New declaration.
18155         * lib/wcsncasecmp.c: New file.
18156         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
18157         * m4/wcsncasecmp.m4: New file.
18158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
18159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
18160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
18161         HAVE_WCSNCASECMP.
18162         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
18163         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
18164
18165 2011-02-06  Bruno Haible  <bruno@clisp.org>
18166
18167         New module 'wcscasecmp'.
18168         * modules/wcscasecmp: New file.
18169         * lib/wchar.in.h (wcscasecmp): New declaration.
18170         * lib/wcscasecmp.c: New file.
18171         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
18172         * m4/wcscasecmp.m4: New file.
18173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
18174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
18175         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
18176         HAVE_WCSCASECMP.
18177         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
18178         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
18179
18180 2011-02-05  Bruno Haible  <bruno@clisp.org>
18181
18182         New module 'wcsncmp'.
18183         * modules/wcsncmp: New file.
18184         * lib/wchar.in.h (wcsncmp): New declaration.
18185         * lib/wcsncmp.c: New file.
18186         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
18187         * m4/wcsncmp.m4: New file.
18188         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
18189         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
18190         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
18191         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
18192         * doc/posix-functions/wcsncmp.texi: Mention the new module.
18193
18194 2011-02-05  Bruno Haible  <bruno@clisp.org>
18195
18196         New module 'wcscmp'.
18197         * modules/wcscmp: New file.
18198         * lib/wchar.in.h (wcscmp): New declaration.
18199         * lib/wcscmp.c: New file.
18200         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
18201         * m4/wcscmp.m4: New file.
18202         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
18203         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
18204         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
18205         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
18206         * doc/posix-functions/wcscmp.texi: Mention the new module.
18207
18208 2011-02-05  Bruno Haible  <bruno@clisp.org>
18209
18210         New module 'wcsncat'.
18211         * modules/wcsncat: New file.
18212         * lib/wchar.in.h (wcsncat): New declaration.
18213         * lib/wcsncat.c: New file.
18214         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
18215         * m4/wcsncat.m4: New file.
18216         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
18217         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
18218         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
18219         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
18220         * doc/posix-functions/wcsncat.texi: Mention the new module.
18221
18222 2011-02-05  Bruno Haible  <bruno@clisp.org>
18223
18224         New module 'wcscat'.
18225         * modules/wcscat: New file.
18226         * lib/wchar.in.h (wcscat): New declaration.
18227         * lib/wcscat.c: New file.
18228         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
18229         * m4/wcscat.m4: New file.
18230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
18231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
18232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
18233         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
18234         * doc/posix-functions/wcscat.texi: Mention the new module.
18235
18236 2011-02-05  Bruno Haible  <bruno@clisp.org>
18237
18238         New module 'wcpncpy'.
18239         * modules/wcpncpy: New file.
18240         * lib/wchar.in.h (wcpncpy): New declaration.
18241         * lib/wcpncpy.c: New file.
18242         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
18243         * m4/wcpncpy.m4: New file.
18244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
18245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
18246         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
18247         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
18248         * doc/posix-functions/wcpncpy.texi: Mention the new module.
18249
18250 2011-02-05  Bruno Haible  <bruno@clisp.org>
18251
18252         New module 'wcsncpy'.
18253         * modules/wcsncpy: New file.
18254         * lib/wchar.in.h (wcsncpy): New declaration.
18255         * lib/wcsncpy.c: New file.
18256         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
18257         * m4/wcsncpy.m4: New file.
18258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
18259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
18260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
18261         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
18262         * doc/posix-functions/wcsncpy.texi: Mention the new module.
18263
18264 2011-02-05  Bruno Haible  <bruno@clisp.org>
18265
18266         New module 'wcpcpy'.
18267         * modules/wcpcpy: New file.
18268         * lib/wchar.in.h (wcpcpy): New declaration.
18269         * lib/wcpcpy.c: New file.
18270         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
18271         * m4/wcpcpy.m4: New file.
18272         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
18273         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
18274         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
18275         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
18276         * doc/posix-functions/wcpcpy.texi: Mention the new module.
18277
18278 2011-02-05  Bruno Haible  <bruno@clisp.org>
18279
18280         New module 'wcscpy'.
18281         * modules/wcscpy: New file.
18282         * lib/wchar.in.h (wcscpy): New declaration.
18283         * lib/wcscpy.c: New file.
18284         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
18285         * m4/wcscpy.m4: New file.
18286         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
18287         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
18288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
18289         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
18290         * doc/posix-functions/wcscpy.texi: Mention the new module.
18291
18292 2011-02-05  Bruno Haible  <bruno@clisp.org>
18293
18294         New module 'wcsnlen'.
18295         * modules/wcsnlen: New file.
18296         * lib/wchar.in.h (wcsnlen): New declaration.
18297         * lib/wcsnlen.c: New file.
18298         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
18299         * m4/wcsnlen.m4: New file.
18300         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
18301         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
18302         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
18303         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
18304         * doc/posix-functions/wcsnlen.texi: Mention the new module.
18305
18306 2011-02-05  Bruno Haible  <bruno@clisp.org>
18307
18308         New module 'wcslen'.
18309         * modules/wcslen: New file.
18310         * lib/wchar.in.h (wcslen): New declaration.
18311         * lib/wcslen.c: New file.
18312         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
18313         * m4/wcslen.m4: New file.
18314         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
18315         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
18316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
18317         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
18318         * doc/posix-functions/wcslen.texi: Mention the new module.
18319
18320 2011-02-05  Bruno Haible  <bruno@clisp.org>
18321
18322         New module 'wmemset'.
18323         * modules/wmemset: New file.
18324         * lib/wchar.in.h (wmemset): New declaration.
18325         * lib/wmemset.c: New file.
18326         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
18327         * m4/wmemset.m4: New file.
18328         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
18329         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
18330         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
18331         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
18332         * doc/posix-functions/wmemset.texi: Mention the new module.
18333
18334 2011-02-05  Bruno Haible  <bruno@clisp.org>
18335
18336         New module 'wmemmove'.
18337         * modules/wmemmove: New file.
18338         * lib/wchar.in.h (wmemmove): New declaration.
18339         * lib/wmemmove.c: New file.
18340         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
18341         * m4/wmemmove.m4: New file.
18342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
18343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
18344         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
18345         HAVE_WMEMMOVE.
18346         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
18347         * doc/posix-functions/wmemmove.texi: Mention the new module.
18348
18349 2011-02-05  Bruno Haible  <bruno@clisp.org>
18350
18351         New module 'wmemcpy'.
18352         * modules/wmemcpy: New file.
18353         * lib/wchar.in.h (wmemcpy): New declaration.
18354         * lib/wmemcpy.c: New file.
18355         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
18356         * m4/wmemcpy.m4: New file.
18357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
18358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
18359         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
18360         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
18361         * doc/posix-functions/wmemcpy.texi: Mention the new module.
18362
18363 2011-02-05  Bruno Haible  <bruno@clisp.org>
18364
18365         New module 'wmemcmp'.
18366         * modules/wmemcmp: New file.
18367         * lib/wchar.in.h (wmemcmp): New declaration.
18368         * lib/wmemcmp.c: New file.
18369         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
18370         * m4/wmemcmp.m4: New file.
18371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
18372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
18373         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
18374         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
18375         * doc/posix-functions/wmemcmp.texi: Mention the new module.
18376
18377 2011-02-07  Jim Meyering  <meyering@redhat.com>
18378
18379         di-set, ino-map: new modules, from coreutils
18380         * lib/di-set.c: New file.
18381         * lib/di-set.h: Likewise.
18382         * lib/ino-map.c: Likewise.
18383         * lib/ino-map.h: Likewise.
18384         * modules/di-set: Likewise.
18385         * modules/di-set-tests: Likewise.
18386         * modules/ino-map: Likewise.
18387         * modules/ino-map-tests: Likewise.
18388         * tests/test-di-set.c: Likewise.
18389         * tests/test-ino-map.c: Likewise.
18390
18391 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
18392
18393         getloadavg: merge minor changes from Emacs
18394
18395         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
18396         (getloadavg): Use memset, not bzero.
18397
18398         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
18399         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18400         clash (bug#86).
18401
18402 2010-11-14  Bruno Haible  <bruno@clisp.org>
18403
18404         Allow multiple gnulib generated replacements to coexist.
18405         * lib/getopt.in.h (struct option): Avoid identical redefinition.
18406         * lib/inttypes.in.h (imaxdiv_t): Likewise.
18407         * lib/langinfo.in.h (nl_item): Likewise.
18408         * lib/math.in.h (_NaN, NAN): Likewise.
18409         * lib/netdb.in.h (struct addrinfo): Likewise.
18410         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
18411         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
18412         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
18413         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
18414         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
18415         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
18416         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
18417         pthread_mutexattr_init, pthread_mutexattr_settype,
18418         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
18419         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
18420         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
18421         pthread_spin_trylock, pthread_spin_unlock): Likewise.
18422         * lib/sched.in.h (struct sched_param): Likewise.
18423         * lib/se-selinux.in.h (security_class_t, security_context_t,
18424         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
18425         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
18426         lsetfilecon, fsetfilecon, security_check_context,
18427         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
18428         Likewise.
18429         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
18430         Likewise.
18431         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
18432         _gl_function_taking_int_returning_void_t, union sigval,
18433         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
18434         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
18435         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18436         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
18437         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
18438         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
18439         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
18440         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
18441         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
18442         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
18443         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
18444         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
18445         socklen_t, rpl_fd_isset): Likewise.
18446         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
18447         * lib/sys_time.in.h (struct timeval): Likewise.
18448         * lib/sys_times.in.h (struct tms): Likewise.
18449         * lib/sys_utsname.in.h (struct utsname):
18450         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
18451         * lib/unistd.in.h (getpagesize): Likewise.
18452         * lib/wchar.in.h (mbstate_t): Likewise.
18453         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
18454         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
18455         towlower, towupper): Likewise.
18456         Reported by Sam Steingold <sds@gnu.org>.
18457
18458 2011-02-05  Eric Blake  <eblake@redhat.com>
18459
18460         unsetenv: work around Haiku issues
18461         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
18462         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
18463
18464 2010-12-30  Bruce Korb  <bkorb@gnu.org>
18465
18466         libposix: avoid calling error() within libposix
18467         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
18468         is defined.
18469
18470 2011-02-05  Eric Blake  <eblake@redhat.com>
18471
18472         strerror_r-posix: port to cygwin
18473         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
18474         implementation.
18475         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
18476         * tests/test-strerror_r.c (main): Fix test.
18477         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18478         issue.
18479
18480 2011-02-05  Bruno Haible  <bruno@clisp.org>
18481
18482         New module 'wmemchr'.
18483         * modules/wmemchr: New file.
18484         * lib/wchar.in.h (wmemchr): New declaration.
18485         * lib/wmemchr.c: New file.
18486         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
18487         * m4/wmemchr.m4: New file.
18488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
18489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
18490         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
18491         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
18492         * doc/posix-functions/wmemchr.texi: Mention the new module.
18493
18494 2011-02-04  Eric Blake  <eblake@redhat.com>
18495
18496         fdopendir: detect FreeBSD bug
18497         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
18498         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
18499
18500 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
18501
18502         stdbool: do not define HAVE_STDBOOL_H
18503         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
18504         AC_HEADER_STDBOOL.  All uses changed.  Do not define
18505         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
18506         imported from the latest Autoconf git.  It was motivated by Emacs,
18507         which uses gnulib but does not need HAVE_STDBOOL_H.
18508
18509 2011-02-04  Bruno Haible  <bruno@clisp.org>
18510
18511         wcsnrtombs: Prepare for new module wwcsnrtombs.
18512         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
18513         * lib/wcsnrtombs.c: Include it.
18514         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
18515
18516         wcsrtombs: Prepare for new module wwcsrtombs.
18517         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
18518         * lib/wcsrtombs.c: Include it.
18519         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
18520
18521         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
18522         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
18523         * lib/mbsnrtowcs.c: Include it.
18524         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
18525
18526         mbsrtowcs: Prepare for new module mbsrtowwcs.
18527         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
18528         * lib/mbsrtowcs.c: Include it.
18529         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
18530
18531 2011-02-04  Bruno Haible  <bruno@clisp.org>
18532
18533         vasnprintf: Reduce use of malloc for small format strings.
18534         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
18535         (arguments): Add room for the first 7 arguments.
18536         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
18537         (char_directives, u8_directives, u16_directives, u32_directives): Add
18538         room for the first 7 directives.
18539         * lib/printf-parse.c: Include <string.h>.
18540         (PRINTF_PARSE): Change memory handling code so that it uses the first
18541         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
18542         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
18543         Reported by Pádraig Brady <P@draigbrady.com>.
18544
18545 2011-01-31  Eric Blake  <eblake@redhat.com>
18546
18547         dup2: work around Haiku bug
18548         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
18549         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
18550         * doc/posix-functions/dup2.texi (dup2): Document the bug.
18551         * tests/test-dup2.c (main): Enhance test.
18552
18553 2011-01-31  Simon Josefsson  <simon@josefsson.org>
18554
18555         doc: off_t is not available in eglibc 2.11.2 stdio.h.
18556         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
18557         declared by eglibc 2.11.2.
18558         * lib/stdio.in.h: Likewise.
18559
18560 2011-01-31  Eric Blake  <eblake@redhat.com>
18561
18562         ignore-value: add missing test dependency
18563         * tests/test-ignore-value.c: Revert previous change; stdio.h
18564         provides off_t.
18565         * modules/ignore-value-tests (Depends-on): Add missing dependency.
18566
18567 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
18568
18569         mktime: clarify long_int width checking
18570         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
18571         the top level, to make it clearer that the assumption about
18572         long_int width is being checked.  See
18573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
18574
18575 2011-01-30  Simon Josefsson  <simon@josefsson.org>
18576
18577         ignore-value: Fix self-test.
18578         * tests/test-ignore-value.c: Include sys/types.h for off_t.
18579
18580 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
18581
18582         TYPE_MAXIMUM: avoid theoretically undefined behavior
18583         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
18584         negative number, which the C Standard says has undefined behavior.
18585         In practice this is not a problem, but might as well do it by the book.
18586         Reported by Rich Felker and Eric Blake; see
18587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
18588         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
18589         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18591         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
18592         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18593         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
18594
18595         mktime: #undef mktime before #defining it
18596         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
18597
18598         mktime: systematically normalize tm_isdst comparisons
18599         * lib/mktime.c (isdst_differ): New function.
18600         (__mktime_internal): Use it systematically for all isdst comparisons.
18601         This completes the fix for libc BZ #6723, and removes the need for
18602         normalizing tm_isdst.  See
18603         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
18604         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
18605
18606         mktime: fix some integer overflow issues and sidestep the rest
18607
18608         This was prompted by a bug report by Benjamin Lindner for MinGW
18609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
18610         His bug is due to signed integer overflow (0 - INT_MIN), and I
18611         I scanned through mktime.c looking for other integer overflow
18612         problems, fixing all the bugs I found.
18613
18614         Although the C Standard says the resulting code is still not safe
18615         in the presence of integer overflow, in practice it should be good
18616         enough for all real-world two's-complement implementations, except
18617         for debugging environments that deliberately trap on integer
18618         overflow (e.g., gcc -ftrapv).
18619
18620         * lib/mktime.c (WRAPV): New macro.
18621         (SHR): Also check that long_int and time_t shift right in the
18622         usual way, before using the fast-but-unportable method.
18623         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
18624         used.  The code already assumed two's complement, so there's
18625         no need to test for alternatives.  All uses removed.
18626         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
18627         the C standard.  Problem reported by Rich Felker in
18628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
18629         (twos_complement_arithmetic): Also check long_int and time_t.
18630         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
18631         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
18632         (__mktime_internal): Avoid integer overflow with unary subtraction
18633         in two instances where -1 - X is an adequate replacement for -X,
18634         since the calculations are approximate.
18635
18636 2011-01-29  Eric Blake  <eblake@redhat.com>
18637
18638         mktime: avoid infinite loop
18639         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
18640         type; behavior is still undefined but portable to all known targets.
18641         Reported by Rich Felker.
18642
18643 2011-01-29  Simon Josefsson  <simon@josefsson.org>
18644
18645         rename, unlink, same-inode: Relicense.
18646         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
18647         * modules/unlink (License): Likewise.
18648         * modules/same-inode (License): Likewise.
18649
18650 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18651
18652         mktime: avoid problems on NetBSD 5 / i386
18653         * lib/mktime.c (long_int): New type.  This works around a problem
18654         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
18655         but time_t is 64 bits, and where I expect the existing code is
18656         wrong in some cases.
18657         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
18658         (ydhms_diff): Bring back the compile-time check for wide-enough
18659         year and yday.
18660
18661         mktime: fix misspelling in comment
18662         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
18663         This merges all recent glibc changes of importance.
18664
18665 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18666
18667         move-if-change: cope with concurrent mv of identical file.
18668         * build-aux/move-if-change (CMPPROG): Accept environment
18669         variable as an override for `cmp'.
18670         (usage): Document CMPPROG.
18671         Adjust comparison to drop stdout.  Cope with failure of mv if
18672         the target file exists and is identical to the source, for
18673         parallel builds.
18674         Report from H.J. Lu against binutils in PR binutils/12283.
18675
18676 2011-01-28  Bruce Korb  <bkorb@gnu.org>
18677
18678         * users.txt: Mention sharutils.
18679
18680 2011-01-28  Simon Josefsson  <simon@josefsson.org>
18681
18682         * users.txt: Mention OATH Toolkit.
18683
18684 2011-01-27  Bruno Haible  <bruno@clisp.org>
18685
18686         Prepare for supporting FreeBSD 10.
18687         * build-aux/config.libpath: Remove handling of freebsd1*.
18688
18689 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
18690
18691         Prepare for supporting FreeBSD 10.
18692         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
18693         match FreeBSD 10.0.
18694
18695 2011-01-27  Bruno Haible  <bruno@clisp.org>
18696
18697         vma-iter, get-rusage-as: Add OpenBSD support.
18698         * modules/vma-iter (configure.ac): Test for mquery.
18699         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
18700         * lib/vma-iter.c: Include <sys/mman.h>.
18701         (vma_iterate): Add an implementation based on mquery().
18702         * lib/resource-ext.h (get_rusage_as): Update comments.
18703         * lib/get-rusage-as.c: Likewise.
18704         * lib/get-rusage-data.c: Likewise.
18705
18706 2011-01-26  Karl Berry  <karl@gnu.org>
18707
18708         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
18709         variables to make it easier to override the makeinfo program used.
18710
18711 2011-01-26  Eric Blake  <eblake@redhat.com>
18712
18713         fcntl: work around Haiku F_DUPFD bugs
18714         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
18715         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
18716         cloexec bit on duplication.
18717         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
18718
18719 2011-01-26  Bruno Haible  <bruno@clisp.org>
18720
18721         Enable memory leak tests on AIX.
18722         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
18723         * tests/test-fprintf-posix3.c (main): Likewise.
18724
18725 2011-01-26  Bruno Haible  <bruno@clisp.org>
18726
18727         Tests for module 'get-rusage-data'.
18728         * modules/get-rusage-data-tests: New file.
18729         * tests/test-get-rusage-data.c: New file.
18730
18731         New module 'get-rusage-data'.
18732         * lib/resource-ext.h (get_rusage_data): New declaration.
18733         * lib/get-rusage-data.c: New file.
18734         * modules/get-rusage-data: New file.
18735
18736 2011-01-25  Bruno Haible  <bruno@clisp.org>
18737
18738         get-rusage-as: Allow for easier testing.
18739         * lib/resource-ext.h (get_rusage_as): Add comment.
18740         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
18741         (main): New function for interactive testing.
18742
18743 2011-01-25  Bruno Haible  <bruno@clisp.org>
18744
18745         vma-iter: Treat Haiku like BeOS.
18746         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
18747         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
18748
18749 2011-01-25  Eric Blake  <eblake@redhat.com>
18750
18751         c-stack: fix regression on cygwin when libsigsegv is present
18752         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
18753
18754 2011-01-24  Bruno Haible  <bruno@clisp.org>
18755
18756         vma-iter: Avoid empty intervals.
18757         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
18758         on an empty interval.
18759
18760 2011-01-24  Jim Meyering  <meyering@redhat.com>
18761
18762         u64: remove unnecessary #include
18763         * lib/u64.h: Don't include <stddef.h>.  It was not used.
18764
18765 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18766
18767         Allow the user to avoid the HAVE_RAW_DECL_* macros.
18768         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
18769
18770 2011-01-23  Bruno Haible  <bruno@clisp.org>
18771
18772         New module 'vma-iter'.
18773         * lib/vma-iter.h: New file.
18774         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
18775         * modules/vma-iter: New file.
18776         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
18777         for get_rusage_as_via_iterator.
18778         (vma_iterate_callback): New function.
18779         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
18780         * modules/get-rusage-as (Depends-on): Add vma-iter.
18781
18782 2011-01-23  Bruno Haible  <bruno@clisp.org>
18783
18784         uninorm: Tweak includes.
18785         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
18786         Reported by Jim Meyering.
18787
18788 2011-01-23  Bruno Haible  <bruno@clisp.org>
18789
18790         get-rusage-as: Improve on NetBSD.
18791         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
18792         /proc, like on FreeBSD.
18793
18794 2011-01-23  Jim Meyering  <meyering@redhat.com>
18795
18796         xreadlink.h: remove unnecessary #include
18797         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
18798
18799         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
18800         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
18801
18802 2011-01-23  Bruno Haible  <bruno@clisp.org>
18803
18804         get-rusage-as: Fix bug.
18805         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
18806         original limit when aborting the first loop.
18807
18808 2011-01-23  Bruno Haible  <bruno@clisp.org>
18809
18810         wctype: Ensure valid C syntax.
18811         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
18812         unconditionally, instead of gl_NEXT_HEADERS conditionally.
18813
18814 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18815
18816         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
18817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
18818         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
18819         as they are needed only for configure's test case.
18820         This removes two unnecessary symbols from config.h.
18821
18822         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
18823         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
18824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
18825         AC_CHECK_HEADERS_ONCE on a header that we also invoke
18826         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
18827         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
18828         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
18829         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
18830         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18831         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18832         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18833         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18834         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18835         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18836         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
18837         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18838         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18839         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18840
18841 2011-01-21  Eric Blake  <eblake@redhat.com>
18842
18843         maintainer-makefile: work with older git for submodule check
18844         * top/maint.mk (public-submodule-commit): Rewrite to avoid
18845         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
18846         Reported by Matthias Bolte.
18847
18848         bootstrap: minor portability fixes
18849         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
18850         (usage): Omit leading capital and trailing . on help phrases, per
18851         GNU Coding Standards.
18852         (check_versions, top level): Prefix messages with script name.
18853
18854 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
18855
18856         bootstrap: support --no-git option
18857         * build-aux/bootstrap: Add --no-git option, to be used when
18858         --gnulib-srcdir points to the exact desired checkout.
18859
18860 2011-01-21  Eric Blake  <eblake@redhat.com>
18861
18862         strerror_r-posix: work with glibc 2.13
18863         * lib/strerror_r.c (strerror_r): Fix return type.
18864
18865 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18866             Bruno Haible  <bruno@clisp.org>
18867
18868         uN_strstr: New unit tests.
18869         * modules/unistr/u8-strstr-tests: New file.
18870         * modules/unistr/u16-strstr-tests: New file.
18871         * modules/unistr/u32-strstr-tests: New file.
18872         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
18873         * tests/unistr/test-u8-strstr.c: New file.
18874         * tests/unistr/test-u16-strstr.c: New file.
18875         * tests/unistr/test-u32-strstr.c: New file.
18876
18877 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18878             Bruno Haible  <bruno@clisp.org>
18879
18880         Make uN_strstr functions O(n) worst-case.
18881         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
18882         16-bit and 32-bit unit cases, use the unibyte algorithm from
18883         lib/mbsstr.c.
18884         * lib/unistr/u8-strstr.c: Include <string.h>.
18885         (UNIT_IS_UINT8_T): New macro.
18886         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
18887         (U_STRLEN, U_STRNLEN): New macros.
18888         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
18889         (U_STRLEN, U_STRNLEN): New macros.
18890         * modules/unistr/u8-strstr (Depends-on): Add strstr.
18891         (configure.ac): Update required libunistring version.
18892         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
18893         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
18894         malloca.
18895         (configure.ac): Update required libunistring version.
18896         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
18897         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
18898         malloca.
18899         (configure.ac): Update required libunistring version.
18900
18901 2011-01-21  Pádraig Brady  <P@draigBrady.com>
18902             Bruno Haible  <bruno@clisp.org>
18903
18904         Prepare for faster uN_strstr functions.
18905         * lib/str-kmp.h: Support definable UNITs.
18906         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
18907         needle_len argument.
18908         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
18909         * lib/mbscasestr.c (mbscasestr): Likewise.
18910
18911 2011-01-21  Pádraig Brady <P@draigBrady.com>
18912
18913         malloca-tests: make faster by unsetting MALLOC_PERTURB_
18914         * tests/test-malloca.c (main): Unset the environment variable
18915         to greatly speed up the test.
18916         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
18917         * modules/malloca-tests: Depend on unsetenv.
18918
18919 2011-01-21  Pádraig Brady <P@draigBrady.com>
18920
18921         ignore-value: remove stdint dependency
18922         * lib/ignore-value.h: Remove <stdint.h>
18923         * modules/ignore-value: Remove stdint dependency.
18924
18925 2011-01-21  Jim Meyering  <meyering@redhat.com>
18926
18927         maint.mk: adjust variable name to be consistent with other gl_ vars
18928         * top/maint.mk (gl_public_submodule_commit): Rename the variable
18929         to be lower case.
18930
18931 2011-01-20  Jim Meyering  <meyering@redhat.com>
18932
18933         maint.mk: make "check" depend on public-submodule-commit by default
18934         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
18935
18936 2011-01-20  Bruno Haible  <bruno@clisp.org>
18937
18938         mbfile, mbiter: Complete change from 2008-12-21.
18939         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
18940         * m4/mbiter.m4 (gl_MBITER): Likewise.
18941
18942 2011-01-20  Jim Meyering  <meyering@redhat.com>
18943
18944         init.sh: insert space between each function name and "()"
18945         * tests/init.sh: Make it a little easier to see that a function's
18946         name is "warn_", and not "warn" when looking at the first part of
18947         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
18948
18949 2011-01-20  Jim Meyering  <meyering@redhat.com>
18950
18951         mountlist: clean up code formatting
18952         * lib/mountlist.c (read_file_system_list): Split a long line,
18953         correct bracing style, use NULL in place of "(struct statfs *)0",
18954         don't parenthesize return value, add spaces around "=" and after
18955         ";-in-for-stmt".
18956
18957 2011-01-14  Markus Duft <mduft@gentoo.org>
18958
18959         mountlist: add support for Interix
18960         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
18961         Apply statvfs to all entries of /dev/fs.
18962         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
18963         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
18964
18965 2011-01-20  Jim Meyering  <meyering@redhat.com>
18966
18967         maint.mk: improve the public-submodule-commit rule
18968         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
18969         to suppress printing of its commands... unless V=1.
18970         Add git submodule's --quiet option to suppress printing of e.g.,
18971         "Entering gnulib" output.
18972         "cd" into $(srcdir) before running git submodule.
18973
18974 2011-01-20  Bruno Haible  <bruno@clisp.org>
18975
18976         include_next: Fix bug introduced on 2011-01-18.
18977         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
18978         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
18979         ac_cv_header_... variable if the second argument is not 'check'.
18980         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
18981         gl_NEXT_HEADERS_INTERNAL.
18982
18983 2011-01-20  Bruno Haible  <bruno@clisp.org>
18984
18985         Allow the user to avoid the GNULIB_TEST_* macros.
18986         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
18987         Suggested by Paul Eggert.
18988
18989 2011-01-14  Jim Meyering  <meyering@redhat.com>
18990
18991         bootstrap: avoid failure when there is no .gitmodules file
18992         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
18993         has been assigned to, even when its value is the empty string.
18994         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
18995         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
18996         Reported by John W. Eaton <jwe@gnu.org>.
18997
18998 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18999
19000         assume <ctype.h>, ..., <time.h> exist
19001         For years gnulib has been assuming the existence of the headers
19002         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
19003         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
19004         them, since they don't appear to be needed.
19005         * README (Portability guidelines): Document this.
19006         * lib/flock.c: Assume <fcntl.h> exists.
19007         * lib/regex_internal.h: Assume <locale.h> exists.
19008         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
19009         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
19010         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
19011         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
19012         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
19013         * m4/regex.m4 (gl_REGEX): Likewise.
19014         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
19015         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
19016         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
19017         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
19018         * tests/test-argp.c: Likewise.
19019         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
19020
19021         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
19022         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
19023         AA_APPLE_UNIVERSAL_BUILD.  See
19024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
19025         * NEWS: Document this.
19026
19027 2011-01-19  Eric Blake  <eblake@redhat.com>
19028
19029         c-stack: assume stack overflow if SA_SIGINFO unsupported
19030         * lib/c-stack.c (SIGACTION_WORKS): Rename...
19031         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
19032         sigaction will work.
19033         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
19034         behavior match Linux.
19035         * tests/test-c-stack.c (main): Prefer NULL for pointers.
19036
19037         stdbool-tests: accomodate Haiku
19038         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
19039
19040         binary-io: fix O_TEXT on Haiku
19041         * modules/binary-io (Depends-on): Add fcntl-h.
19042         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
19043         than blindly undefining O_TEXT.
19044         Reported by Scott McCreary.
19045
19046 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19047
19048         include_next: do not check for standard headers like stddef.h
19049
19050         I found this problem when modifying Emacs to use gnulib.
19051         I noticed that it added HAVE_STDDEF_H to config.h, even though
19052         gnulib always assumes <stddef.h> exists as per README and this
19053         symbol is unnecessary.
19054         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
19055         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
19056         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
19057         faster for headers like stddef.h that are known to exist.
19058         (gl_CHECK_NEXT_HEADERS): Use it.
19059         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
19060         rather than gl_CHECK_NEXT_HEADERS.
19061         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
19062         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
19063
19064 2011-01-18  Eric Blake  <eblake@redhat.com>
19065
19066         ansi-c++-opt: skip C++ dependency style if C++ is unused
19067         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
19068         tests when we know C++ compilation is not desired.
19069         Reported by Scott McCreary.
19070
19071 2011-01-18  Bruno Haible  <bruno@clisp.org>
19072
19073         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
19074         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
19075         (main): Perform test also when getrlimit and setrlimit don't exist or
19076         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
19077         limiting the address space size using setrlimit, compare the address
19078         space size before and after the the test.
19079         * tests/test-dprintf-posix2.c: Likewise.
19080         * tests/test-fprintf-posix3.sh: Update skip messages.
19081         * tests/test-dprintf-posix2.sh: Likewise.
19082         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
19083         * modules/dprintf-posix-tests (Depends-on): Likewise.
19084         Reported by Bruce Korb <bkorb@gnu.org> and
19085         Gary V. Vaughan <gary@gnu.org>.
19086
19087 2011-01-18  Bruno Haible  <bruno@clisp.org>
19088
19089         get-rusage-as: Improvement for Cygwin.
19090         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
19091         areas that are merely reserved.
19092
19093 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19094
19095         strftime: remove dependencies on multibyte modules
19096
19097         strftime depended on mbrlen, mbsinit, and wchar, but these modules
19098         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
19099         only if __osf__ is defined, and I suspect OSF doesn't need these
19100         other modules.  If my guess is wrong, we'll need to come up with a
19101         variant of strftime that doesn't need the multibyte modules.
19102
19103         I discovered this problem when attempting modify Emacs to use the
19104         strftime module.  With the previous gnulib, this caused Emacs to
19105         need 31 new files, ranging from lib/config.charset to
19106         m4/wint_t.m4.  This was overkill and I expect would be offputting
19107         to the Emacs maintainers.  After this change, only 6 new files are
19108         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
19109         stdbool.m4, and tm_gmtoff.m4.
19110
19111         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
19112         Suggested by Bruno Haible in
19113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
19114         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
19115         and do not check for wchar.h.
19116         * modules/strftime (Files): Remove m4/mbstate_t.m4.
19117         (Depends-on): Remove mbrlen, mbsinit, wchar.
19118
19119 2011-01-18  Bruno Haible  <bruno@clisp.org>
19120
19121         Tests for module 'get-rusage-as'.
19122         * modules/get-rusage-as-tests: New file.
19123         * tests/test-get-rusage-as.c: New file.
19124
19125         New module 'get-rusage-as'.
19126         * modules/get-rusage-as: New file.
19127         * lib/resource-ext.h: New file.
19128         * lib/get-rusage-as.c: New file.
19129
19130 2011-01-17  Eric Blake  <eblake@redhat.com>
19131
19132         sigaction: relax license from LGPLv3+ to LGPLv2+
19133         * modules/sigaction (License): Relax to LGPLv2+.
19134
19135 2011-01-14  Bruno Haible  <bruno@clisp.org>
19136
19137         filemode: Make function declarations usable in C++ mode.
19138         * lib/filemode.h: Enclose function declarations in extern "C" block.
19139         Reported by John W. Eaton <jwe@gnu.org>.
19140
19141 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
19142
19143         save-cwd: no longer include "xgetcwd.h"
19144         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
19145         This avoids a compilation failure in projects that use save-cwd
19146         without also using the xgetcwd module.
19147
19148 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19149
19150         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
19151         This is so that a program like Emacs, which needs only dtoastr,
19152         does not have to bother with distributing and compiling ftoastr
19153         and ldtoastr.
19154         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
19155         * modules/dtoastr, modules/ldtoastr: New files.
19156         * modules/ftoastr: Now works just for 'float'.
19157         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
19158         (Makefile.am): Remove ftoastr.h (not needed and no effect),
19159         dtoastr.c, ldtoastr.c.
19160
19161 2011-01-11  Jim Meyering  <meyering@redhat.com>
19162
19163         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
19164         There is no need to work around the lack of the fchdir function,
19165         since gnulib can now provide a replacement when required.
19166         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
19167         * modules/save-cwd (Depends-on): Add fchdir.
19168
19169 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19170
19171         openat, save-cwd: avoid xmalloc
19172
19173         This removes a direct (but undocumented) dependency of openat on
19174         xalloc, along with an indirect dependency via save-cwd.  It also
19175         removes a dependency of save-cwd on xgetcwd, and thereby
19176         indirectly on xalloc.  This change causes the openat substitute
19177         to fall back on save_cwd when memory is tight, and for save_cwd to
19178         fail instead of dying when memory is tight, but that's good enough.
19179         Problem and initial idea for fix reported by Bastien Roucaries in
19180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
19181
19182         * lib/openat-proc.c: Include stdlib.h (for malloc), not
19183         xalloc.h (for xmalloc).
19184         (openat_proc_name): Use malloc, not xmalloc.
19185         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
19186         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
19187
19188         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
19189         This avoids heap allocation for file names whose lengths are in
19190         the range 512..1023, with the upper bound increasing to at most
19191         4031 depending on the platform's PATH_MAX.  (We do not want
19192         pathmax.h here as it might supply a non-constant PATH_MAX.)
19193         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
19194         Perhaps they should be moved to malloca.h?
19195         (OPENAT_BUFFER_SIZE): Use them.
19196
19197 2011-01-10  Bruno Haible  <bruno@clisp.org>
19198
19199         doc: Update users.txt.
19200         * users.txt: Add recutils.
19201
19202 2011-01-09  Karl Berry  <karl@gnu.org>
19203
19204         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
19205
19206         * doc/configmake.texi: New file.
19207         * doc/gnulib.texi: Include it.
19208         * modules/configmake: Move documentation from here.
19209
19210 2011-01-09  Bruno Haible  <bruno@clisp.org>
19211
19212         Update to Unicode 6.0.0.
19213         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
19214         (get_lbp): Update for Unicode 6.0.0.
19215         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
19216         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
19217         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
19218         U+11001, U+11038..U+11046. Remove U+06DE.
19219         (uc_width): Fix bounds of planes.
19220         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19221         lib/uniwidth/width.c.
19222         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
19223         trailing whitespace removed.
19224         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
19225         without comments, but with the original copyright notice.
19226         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
19227         * lib/unicase/ignorable.h: Likewise.
19228         * lib/unicase/tocasefold.h: Likewise.
19229         * lib/unicase/tolower.h: Likewise.
19230         * lib/unicase/totitle.h: Likewise.
19231         * lib/unicase/toupper.h: Likewise.
19232         * lib/unictype/bidi_of.h: Likewise.
19233         * lib/unictype/blocks.h: Likewise.
19234         * lib/unictype/categ_C.h: Likewise.
19235         * lib/unictype/categ_Cn.h: Likewise.
19236         * lib/unictype/categ_L.h: Likewise.
19237         * lib/unictype/categ_Ll.h: Likewise.
19238         * lib/unictype/categ_Lm.h: Likewise.
19239         * lib/unictype/categ_Lo.h: Likewise.
19240         * lib/unictype/categ_Lu.h: Likewise.
19241         * lib/unictype/categ_M.h: Likewise.
19242         * lib/unictype/categ_Mc.h: Likewise.
19243         * lib/unictype/categ_Me.h: Likewise.
19244         * lib/unictype/categ_Mn.h: Likewise.
19245         * lib/unictype/categ_N.h: Likewise.
19246         * lib/unictype/categ_Nd.h: Likewise.
19247         * lib/unictype/categ_No.h: Likewise.
19248         * lib/unictype/categ_P.h: Likewise.
19249         * lib/unictype/categ_Po.h: Likewise.
19250         * lib/unictype/categ_S.h: Likewise.
19251         * lib/unictype/categ_Sc.h: Likewise.
19252         * lib/unictype/categ_Sk.h: Likewise.
19253         * lib/unictype/categ_Sm.h: Likewise.
19254         * lib/unictype/categ_So.h: Likewise.
19255         * lib/unictype/categ_of.h: Likewise.
19256         * lib/unictype/combining.h: Likewise.
19257         * lib/unictype/ctype_alnum.h: Likewise.
19258         * lib/unictype/ctype_alpha.h: Likewise.
19259         * lib/unictype/ctype_graph.h: Likewise.
19260         * lib/unictype/ctype_lower.h: Likewise.
19261         * lib/unictype/ctype_print.h: Likewise.
19262         * lib/unictype/ctype_punct.h: Likewise.
19263         * lib/unictype/ctype_upper.h: Likewise.
19264         * lib/unictype/decdigit.h: Likewise.
19265         * lib/unictype/digit.h: Likewise.
19266         * lib/unictype/numeric.h: Likewise.
19267         * lib/unictype/pr_alphabetic.h: Likewise.
19268         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19269         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19270         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19271         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19272         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19273         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19274         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19275         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19276         * lib/unictype/pr_case_ignorable.h: Likewise.
19277         * lib/unictype/pr_cased.h: Likewise.
19278         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
19279         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
19280         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
19281         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
19282         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
19283         * lib/unictype/pr_combining.h: Likewise.
19284         * lib/unictype/pr_composite.h: Likewise.
19285         * lib/unictype/pr_currency_symbol.h: Likewise.
19286         * lib/unictype/pr_decimal_digit.h: Likewise.
19287         * lib/unictype/pr_deprecated.h: Likewise.
19288         * lib/unictype/pr_format_control.h: Likewise.
19289         * lib/unictype/pr_grapheme_base.h: Likewise.
19290         * lib/unictype/pr_grapheme_extend.h: Likewise.
19291         * lib/unictype/pr_grapheme_link.h: Likewise.
19292         * lib/unictype/pr_id_continue.h: Likewise.
19293         * lib/unictype/pr_id_start.h: Likewise.
19294         * lib/unictype/pr_ideographic.h: Likewise.
19295         * lib/unictype/pr_lowercase.h: Likewise.
19296         * lib/unictype/pr_math.h: Likewise.
19297         * lib/unictype/pr_numeric.h: Likewise.
19298         * lib/unictype/pr_other_alphabetic.h: Likewise.
19299         * lib/unictype/pr_other_id_continue.h: Likewise.
19300         * lib/unictype/pr_other_math.h: Likewise.
19301         * lib/unictype/pr_punctuation.h: Likewise.
19302         * lib/unictype/pr_sentence_terminal.h: Likewise.
19303         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19304         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19305         * lib/unictype/pr_unified_ideograph.h: Likewise.
19306         * lib/unictype/pr_uppercase.h: Likewise.
19307         * lib/unictype/pr_xid_continue.h: Likewise.
19308         * lib/unictype/pr_xid_start.h: Likewise.
19309         * lib/unictype/scripts.h: Likewise.
19310         * lib/unictype/scripts_byname.gperf: Likewise.
19311         * lib/unictype/sy_java_ident.h: Likewise.
19312         * lib/unigbrk/gbrkprop.h: Likewise.
19313         * lib/unilbrk/lbrkprop1.h: Likewise.
19314         * lib/unilbrk/lbrkprop2.h: Likewise.
19315         * lib/uninorm/decomposition-table2.h: Likewise.
19316         * lib/uniwbrk/wbrkprop.h: Likewise.
19317         * tests/unicase/test-cased.c: Likewise.
19318         * tests/unicase/test-ignorable.c: Likewise.
19319         * tests/unicase/test-uc_tolower.c: Likewise.
19320         * tests/unicase/test-uc_totitle.c: Likewise.
19321         * tests/unicase/test-uc_toupper.c: Likewise.
19322         * tests/unictype/test-categ_C.c: Likewise.
19323         * tests/unictype/test-categ_Cn.c: Likewise.
19324         * tests/unictype/test-categ_L.c: Likewise.
19325         * tests/unictype/test-categ_Ll.c: Likewise.
19326         * tests/unictype/test-categ_Lm.c: Likewise.
19327         * tests/unictype/test-categ_Lo.c: Likewise.
19328         * tests/unictype/test-categ_Lu.c: Likewise.
19329         * tests/unictype/test-categ_M.c: Likewise.
19330         * tests/unictype/test-categ_Mc.c: Likewise.
19331         * tests/unictype/test-categ_Me.c: Likewise.
19332         * tests/unictype/test-categ_Mn.c: Likewise.
19333         * tests/unictype/test-categ_N.c: Likewise.
19334         * tests/unictype/test-categ_Nd.c: Likewise.
19335         * tests/unictype/test-categ_No.c: Likewise.
19336         * tests/unictype/test-categ_P.c: Likewise.
19337         * tests/unictype/test-categ_Po.c: Likewise.
19338         * tests/unictype/test-categ_S.c: Likewise.
19339         * tests/unictype/test-categ_Sc.c: Likewise.
19340         * tests/unictype/test-categ_Sk.c: Likewise.
19341         * tests/unictype/test-categ_Sm.c: Likewise.
19342         * tests/unictype/test-categ_So.c: Likewise.
19343         * tests/unictype/test-ctype_alnum.c: Likewise.
19344         * tests/unictype/test-ctype_alpha.c: Likewise.
19345         * tests/unictype/test-ctype_graph.c: Likewise.
19346         * tests/unictype/test-ctype_lower.c: Likewise.
19347         * tests/unictype/test-ctype_print.c: Likewise.
19348         * tests/unictype/test-ctype_punct.c: Likewise.
19349         * tests/unictype/test-ctype_upper.c: Likewise.
19350         * tests/unictype/test-decdigit.h: Likewise.
19351         * tests/unictype/test-digit.h: Likewise.
19352         * tests/unictype/test-numeric.h: Likewise.
19353         * tests/unictype/test-pr_alphabetic.c: Likewise.
19354         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19355         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
19356         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
19357         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19358         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19359         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19360         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19361         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19362         * tests/unictype/test-pr_case_ignorable.c: Likewise.
19363         * tests/unictype/test-pr_cased.c: Likewise.
19364         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
19365         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
19366         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
19367         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
19368         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
19369         * tests/unictype/test-pr_combining.c: Likewise.
19370         * tests/unictype/test-pr_composite.c: Likewise.
19371         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19372         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19373         * tests/unictype/test-pr_deprecated.c: Likewise.
19374         * tests/unictype/test-pr_format_control.c: Likewise.
19375         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19376         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19377         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19378         * tests/unictype/test-pr_id_continue.c: Likewise.
19379         * tests/unictype/test-pr_id_start.c: Likewise.
19380         * tests/unictype/test-pr_ideographic.c: Likewise.
19381         * tests/unictype/test-pr_lowercase.c: Likewise.
19382         * tests/unictype/test-pr_math.c: Likewise.
19383         * tests/unictype/test-pr_numeric.c: Likewise.
19384         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19385         * tests/unictype/test-pr_other_id_continue.c: Likewise.
19386         * tests/unictype/test-pr_other_math.c: Likewise.
19387         * tests/unictype/test-pr_punctuation.c: Likewise.
19388         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19389         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19390         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19391         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19392         * tests/unictype/test-pr_uppercase.c: Likewise.
19393         * tests/unictype/test-pr_xid_continue.c: Likewise.
19394         * tests/unictype/test-pr_xid_start.c: Likewise.
19395         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19396         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19397         changes.
19398         * lib/unictype/categ_Cc.h: Likewise.
19399         * lib/unictype/categ_Cf.h: Likewise.
19400         * lib/unictype/categ_Co.h: Likewise.
19401         * lib/unictype/categ_Cs.h: Likewise.
19402         * lib/unictype/categ_Lt.h: Likewise.
19403         * lib/unictype/categ_Nl.h: Likewise.
19404         * lib/unictype/categ_Pc.h: Likewise.
19405         * lib/unictype/categ_Pd.h: Likewise.
19406         * lib/unictype/categ_Pe.h: Likewise.
19407         * lib/unictype/categ_Pf.h: Likewise.
19408         * lib/unictype/categ_Pi.h: Likewise.
19409         * lib/unictype/categ_Ps.h: Likewise.
19410         * lib/unictype/categ_Z.h: Likewise.
19411         * lib/unictype/categ_Zl.h: Likewise.
19412         * lib/unictype/categ_Zp.h: Likewise.
19413         * lib/unictype/categ_Zs.h: Likewise.
19414         * lib/unictype/ctype_blank.h: Likewise.
19415         * lib/unictype/ctype_cntrl.h: Likewise.
19416         * lib/unictype/ctype_digit.h: Likewise.
19417         * lib/unictype/ctype_space.h: Likewise.
19418         * lib/unictype/ctype_xdigit.h: Likewise.
19419         * lib/unictype/mirror.h: Likewise.
19420         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19421         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19422         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19423         * lib/unictype/pr_bidi_control.h: Likewise.
19424         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19425         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19426         * lib/unictype/pr_bidi_european_digit.h: Likewise.
19427         * lib/unictype/pr_bidi_pdf.h: Likewise.
19428         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19429         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19430         * lib/unictype/pr_dash.h: Likewise.
19431         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19432         * lib/unictype/pr_diacritic.h: Likewise.
19433         * lib/unictype/pr_extender.h: Likewise.
19434         * lib/unictype/pr_hex_digit.h: Likewise.
19435         * lib/unictype/pr_hyphen.h: Likewise.
19436         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19437         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19438         * lib/unictype/pr_ignorable_control.h: Likewise.
19439         * lib/unictype/pr_iso_control.h: Likewise.
19440         * lib/unictype/pr_join_control.h: Likewise.
19441         * lib/unictype/pr_left_of_pair.h: Likewise.
19442         * lib/unictype/pr_line_separator.h: Likewise.
19443         * lib/unictype/pr_logical_order_exception.h: Likewise.
19444         * lib/unictype/pr_non_break.h: Likewise.
19445         * lib/unictype/pr_not_a_character.h: Likewise.
19446         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19447         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19448         * lib/unictype/pr_other_id_start.h: Likewise.
19449         * lib/unictype/pr_other_lowercase.h: Likewise.
19450         * lib/unictype/pr_other_uppercase.h: Likewise.
19451         * lib/unictype/pr_paired_punctuation.h: Likewise.
19452         * lib/unictype/pr_paragraph_separator.h: Likewise.
19453         * lib/unictype/pr_pattern_syntax.h: Likewise.
19454         * lib/unictype/pr_pattern_white_space.h: Likewise.
19455         * lib/unictype/pr_private_use.h: Likewise.
19456         * lib/unictype/pr_quotation_mark.h: Likewise.
19457         * lib/unictype/pr_radical.h: Likewise.
19458         * lib/unictype/pr_soft_dotted.h: Likewise.
19459         * lib/unictype/pr_space.h: Likewise.
19460         * lib/unictype/pr_titlecase.h: Likewise.
19461         * lib/unictype/pr_variation_selector.h: Likewise.
19462         * lib/unictype/pr_white_space.h: Likewise.
19463         * lib/unictype/pr_zero_width.h: Likewise.
19464         * lib/unictype/sy_c_ident.h: Likewise.
19465         * lib/unictype/sy_c_whitespace.h: Likewise.
19466         * lib/unictype/sy_java_whitespace.h: Likewise.
19467         * lib/uninorm/composition-table.gperf: Likewise.
19468         * lib/uninorm/decomposition-table1.h: Likewise.
19469         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
19470         LB8.
19471         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19472         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19473         * modules/unictype/*: Bump version number of expected libunistring
19474         version.
19475
19476 2011-01-09  Bruno Haible  <bruno@clisp.org>
19477
19478         Update to Unicode 5.2.0.
19479         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
19480         trailing whitespace removed.
19481
19482 2011-01-09  Bruno Haible  <bruno@clisp.org>
19483
19484         New Unicode character properties, from Unicode 5.2.0.
19485         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
19486         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
19487         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
19488         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
19489         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
19490         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
19491         uc_is_property_cased, uc_is_property_case_ignorable,
19492         uc_is_property_changes_when_lowercased,
19493         uc_is_property_changes_when_uppercased,
19494         uc_is_property_changes_when_titlecased,
19495         uc_is_property_changes_when_casefolded,
19496         uc_is_property_changes_when_casemapped): New declarations.
19497         * lib/unictype/pr_byname.gperf: Add the new properties.
19498         * modules/unictype/property-byname (Depends-on): Depend on the new
19499         properties modules.
19500         * modules/unictype/property-all (Depends-on): Likewise.
19501         * MODULES.html.sh (Unicode string functions): Add
19502         unictype/property-case-ignorable, unictype/property-cased,
19503         unictype/property-changes-when-casefolded,
19504         unictype/property-changes-when-casemapped,
19505         unictype/property-changes-when-lowercased,
19506         unictype/property-changes-when-titlecased,
19507         unictype/property-changes-when-uppercased.
19508
19509         New module 'unictype/property-changes-when-casemapped'.
19510         * modules/unictype/property-changes-when-casemapped: New file.
19511         * lib/unictype/pr_changes_when_casemapped.c: New file.
19512         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
19513         generated by gen-uni-tables.
19514         * modules/unictype/property-changes-when-casemapped-tests: New file.
19515         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
19516         automatically generated by gen-uni-tables.
19517
19518         New module 'unictype/property-changes-when-casefolded'.
19519         * modules/unictype/property-changes-when-casefolded: New file.
19520         * lib/unictype/pr_changes_when_casefolded.c: New file.
19521         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
19522         generated by gen-uni-tables.
19523         * modules/unictype/property-changes-when-casefolded-tests: New file.
19524         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
19525         automatically generated by gen-uni-tables.
19526
19527         New module 'unictype/property-changes-when-titlecased'.
19528         * modules/unictype/property-changes-when-titlecased: New file.
19529         * lib/unictype/pr_changes_when_titlecased.c: New file.
19530         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
19531         generated by gen-uni-tables.
19532         * modules/unictype/property-changes-when-titlecased-tests: New file.
19533         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
19534         automatically generated by gen-uni-tables.
19535
19536         New module 'unictype/property-changes-when-uppercased'.
19537         * modules/unictype/property-changes-when-uppercased: New file.
19538         * lib/unictype/pr_changes_when_uppercased.c: New file.
19539         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
19540         generated by gen-uni-tables.
19541         * modules/unictype/property-changes-when-uppercased-tests: New file.
19542         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
19543         automatically generated by gen-uni-tables.
19544
19545         New module 'unictype/property-changes-when-lowercased'.
19546         * modules/unictype/property-changes-when-lowercased: New file.
19547         * lib/unictype/pr_changes_when_lowercased.c: New file.
19548         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
19549         generated by gen-uni-tables.
19550         * modules/unictype/property-changes-when-lowercased-tests: New file.
19551         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
19552         automatically generated by gen-uni-tables.
19553
19554         New module 'unictype/property-case-ignorable'.
19555         * modules/unictype/property-case-ignorable: New file.
19556         * lib/unictype/pr_case_ignorable.c: New file.
19557         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
19558         by gen-uni-tables.
19559         * modules/unictype/property-case-ignorable-tests: New file.
19560         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
19561         generated by gen-uni-tables.
19562
19563         New module 'unictype/property-cased'.
19564         * modules/unictype/property-cased: New file.
19565         * lib/unictype/pr_cased.c: New file.
19566         * lib/unictype/pr_cased.h: New file, automatically generated by
19567         gen-uni-tables.
19568         * modules/unictype/property-cased-tests: New file.
19569         * tests/unictype/test-pr_cased.c: New file, automatically generated by
19570         gen-uni-tables.
19571
19572 2011-01-09  Bruno Haible  <bruno@clisp.org>
19573
19574         Update to Unicode 5.2.0.
19575         * lib/gen-uni-tables.c (output_predicate, output_category,
19576         output_combclass, output_bidi_category, output_decimal_digit_test,
19577         output_decimal_digit, output_digit_test, output_digit,
19578         output_numeric_test, output_numeric, output_mirror, output_scripts,
19579         output_scripts_byname, output_blocks, output_ident_category): Fix
19580         comment header.
19581         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
19582         get_wbp.
19583         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
19584         items.
19585         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
19586         Changes_When_Lowercased, Changes_When_Uppercased,
19587         Changes_When_Titlecased, Changes_When_Casefolded,
19588         Changes_When_Casemapped.
19589         (is_property_alphabetic, is_property_default_ignorable_code_point):
19590         Update for Unicode 5.2.0.
19591         (is_property_cased, is_property_case_ignorable,
19592         is_property_changes_when_lowercased,
19593         is_property_changes_when_uppercased,
19594         is_property_changes_when_titlecased,
19595         is_property_changes_when_casefolded,
19596         is_property_changes_when_casemapped): New functions.
19597         (output_properties): Output also the properties cased, case_ignorable,
19598         changes_when_lowercased, changes_when_uppercased,
19599         changes_when_titlecased, changes_when_casefolded,
19600         changes_when_casemapped.
19601         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
19602         Unicode TR#11 revision 17 -> 19.
19603         (LBP_CP): New enumeration value.
19604         (LBP_*): Adjust values accordingly.
19605         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
19606         TR#14 revision 22 -> 24.
19607         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
19608         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
19609         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
19610         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
19611         is_WBP_MIDLETTER.
19612         (output_composition_tables): Allow for 24 bits instead of 16 bits in
19613         the code1 and code2 of each composition rule.
19614         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
19615         * lib/unicase/ignorable.h: Likewise.
19616         * lib/unicase/tocasefold.h: Likewise.
19617         * lib/unicase/tolower.h: Likewise.
19618         * lib/unicase/totitle.h: Likewise.
19619         * lib/unicase/toupper.h: Likewise.
19620         * lib/unictype/bidi_of.h: Likewise.
19621         * lib/unictype/blocks.h: Likewise.
19622         * lib/unictype/categ_C.h: Likewise.
19623         * lib/unictype/categ_Cf.h: Likewise.
19624         * lib/unictype/categ_Cn.h: Likewise.
19625         * lib/unictype/categ_L.h: Likewise.
19626         * lib/unictype/categ_Ll.h: Likewise.
19627         * lib/unictype/categ_Lm.h: Likewise.
19628         * lib/unictype/categ_Lo.h: Likewise.
19629         * lib/unictype/categ_Lu.h: Likewise.
19630         * lib/unictype/categ_M.h: Likewise.
19631         * lib/unictype/categ_Mc.h: Likewise.
19632         * lib/unictype/categ_Mn.h: Likewise.
19633         * lib/unictype/categ_N.h: Likewise.
19634         * lib/unictype/categ_Nd.h: Likewise.
19635         * lib/unictype/categ_Nl.h: Likewise.
19636         * lib/unictype/categ_No.h: Likewise.
19637         * lib/unictype/categ_P.h: Likewise.
19638         * lib/unictype/categ_Pd.h: Likewise.
19639         * lib/unictype/categ_Po.h: Likewise.
19640         * lib/unictype/categ_S.h: Likewise.
19641         * lib/unictype/categ_Sc.h: Likewise.
19642         * lib/unictype/categ_So.h: Likewise.
19643         * lib/unictype/categ_of.h: Likewise.
19644         * lib/unictype/combining.h: Likewise.
19645         * lib/unictype/ctype_alnum.h: Likewise.
19646         * lib/unictype/ctype_alpha.h: Likewise.
19647         * lib/unictype/ctype_graph.h: Likewise.
19648         * lib/unictype/ctype_lower.h: Likewise.
19649         * lib/unictype/ctype_print.h: Likewise.
19650         * lib/unictype/ctype_punct.h: Likewise.
19651         * lib/unictype/ctype_upper.h: Likewise.
19652         * lib/unictype/decdigit.h: Likewise.
19653         * lib/unictype/digit.h: Likewise.
19654         * lib/unictype/numeric.h: Likewise.
19655         * lib/unictype/pr_alphabetic.h: Likewise.
19656         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19657         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19658         * lib/unictype/pr_bidi_european_digit.h: Likewise.
19659         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19660         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19661         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19662         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19663         * lib/unictype/pr_combining.h: Likewise.
19664         * lib/unictype/pr_composite.h: Likewise.
19665         * lib/unictype/pr_currency_symbol.h: Likewise.
19666         * lib/unictype/pr_dash.h: Likewise.
19667         * lib/unictype/pr_decimal_digit.h: Likewise.
19668         * lib/unictype/pr_deprecated.h: Likewise.
19669         * lib/unictype/pr_diacritic.h: Likewise.
19670         * lib/unictype/pr_extender.h: Likewise.
19671         * lib/unictype/pr_grapheme_base.h: Likewise.
19672         * lib/unictype/pr_grapheme_extend.h: Likewise.
19673         * lib/unictype/pr_grapheme_link.h: Likewise.
19674         * lib/unictype/pr_id_continue.h: Likewise.
19675         * lib/unictype/pr_id_start.h: Likewise.
19676         * lib/unictype/pr_ideographic.h: Likewise.
19677         * lib/unictype/pr_ignorable_control.h: Likewise.
19678         * lib/unictype/pr_logical_order_exception.h: Likewise.
19679         * lib/unictype/pr_lowercase.h: Likewise.
19680         * lib/unictype/pr_numeric.h: Likewise.
19681         * lib/unictype/pr_other_alphabetic.h: Likewise.
19682         * lib/unictype/pr_punctuation.h: Likewise.
19683         * lib/unictype/pr_sentence_terminal.h: Likewise.
19684         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19685         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19686         * lib/unictype/pr_unified_ideograph.h: Likewise.
19687         * lib/unictype/pr_uppercase.h: Likewise.
19688         * lib/unictype/pr_xid_continue.h: Likewise.
19689         * lib/unictype/pr_xid_start.h: Likewise.
19690         * lib/unictype/pr_zero_width.h: Likewise.
19691         * lib/unictype/scripts.h: Likewise.
19692         * lib/unictype/scripts_byname.gperf: Likewise.
19693         * lib/unictype/sy_java_ident.h: Likewise.
19694         * lib/unigbrk/gbrkprop.h: Likewise.
19695         * lib/unilbrk/lbrkprop1.h: Likewise.
19696         * lib/unilbrk/lbrkprop2.h: Likewise.
19697         * lib/unilbrk/lbrktables.h: Likewise.
19698         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
19699         LBP_CP. Implement rule LB30.
19700         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
19701         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
19702         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
19703         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
19704         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
19705         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
19706         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
19707         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
19708         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
19709         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
19710         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
19711         bits instead of 16 bits in the code1 and code2 of each composition
19712         rule.
19713         (uc_composition): Update for Unicode 5.2.0.
19714         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
19715         * lib/uninorm/decomposition-table2.h: Likewise.
19716         * lib/uniwbrk/wbrkprop.h: Likewise.
19717         * tests/unicase/test-cased.c: Likewise.
19718         * tests/unicase/test-ignorable.c: Likewise.
19719         * tests/unicase/test-uc_tolower.c: Likewise.
19720         * tests/unicase/test-uc_totitle.c: Likewise.
19721         * tests/unicase/test-uc_toupper.c: Likewise.
19722         * tests/unictype/test-categ_C.c: Likewise.
19723         * tests/unictype/test-categ_Cf.c: Likewise.
19724         * tests/unictype/test-categ_Cn.c: Likewise.
19725         * tests/unictype/test-categ_L.c: Likewise.
19726         * tests/unictype/test-categ_Ll.c: Likewise.
19727         * tests/unictype/test-categ_Lm.c: Likewise.
19728         * tests/unictype/test-categ_Lo.c: Likewise.
19729         * tests/unictype/test-categ_Lu.c: Likewise.
19730         * tests/unictype/test-categ_M.c: Likewise.
19731         * tests/unictype/test-categ_Mc.c: Likewise.
19732         * tests/unictype/test-categ_Mn.c: Likewise.
19733         * tests/unictype/test-categ_N.c: Likewise.
19734         * tests/unictype/test-categ_Nd.c: Likewise.
19735         * tests/unictype/test-categ_Nl.c: Likewise.
19736         * tests/unictype/test-categ_No.c: Likewise.
19737         * tests/unictype/test-categ_P.c: Likewise.
19738         * tests/unictype/test-categ_Pd.c: Likewise.
19739         * tests/unictype/test-categ_Po.c: Likewise.
19740         * tests/unictype/test-categ_S.c: Likewise.
19741         * tests/unictype/test-categ_Sc.c: Likewise.
19742         * tests/unictype/test-categ_So.c: Likewise.
19743         * tests/unictype/test-ctype_alnum.c: Likewise.
19744         * tests/unictype/test-ctype_alpha.c: Likewise.
19745         * tests/unictype/test-ctype_graph.c: Likewise.
19746         * tests/unictype/test-ctype_lower.c: Likewise.
19747         * tests/unictype/test-ctype_print.c: Likewise.
19748         * tests/unictype/test-ctype_punct.c: Likewise.
19749         * tests/unictype/test-ctype_upper.c: Likewise.
19750         * tests/unictype/test-decdigit.h: Likewise.
19751         * tests/unictype/test-digit.h: Likewise.
19752         * tests/unictype/test-numeric.h: Likewise.
19753         * tests/unictype/test-pr_alphabetic.c: Likewise.
19754         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19755         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19756         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19757         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19758         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19759         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19760         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19761         * tests/unictype/test-pr_combining.c: Likewise.
19762         * tests/unictype/test-pr_composite.c: Likewise.
19763         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19764         * tests/unictype/test-pr_dash.c: Likewise.
19765         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19766         * tests/unictype/test-pr_deprecated.c: Likewise.
19767         * tests/unictype/test-pr_diacritic.c: Likewise.
19768         * tests/unictype/test-pr_extender.c: Likewise.
19769         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19770         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19771         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19772         * tests/unictype/test-pr_id_continue.c: Likewise.
19773         * tests/unictype/test-pr_id_start.c: Likewise.
19774         * tests/unictype/test-pr_ideographic.c: Likewise.
19775         * tests/unictype/test-pr_ignorable_control.c: Likewise.
19776         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19777         * tests/unictype/test-pr_lowercase.c: Likewise.
19778         * tests/unictype/test-pr_numeric.c: Likewise.
19779         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19780         * tests/unictype/test-pr_punctuation.c: Likewise.
19781         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19782         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19783         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19784         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19785         * tests/unictype/test-pr_uppercase.c: Likewise.
19786         * tests/unictype/test-pr_xid_continue.c: Likewise.
19787         * tests/unictype/test-pr_xid_start.c: Likewise.
19788         * tests/unictype/test-pr_zero_width.c: Likewise.
19789         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
19790         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
19791         changed behaviour: line breaking is now disallowed between a letter
19792         or '=' and '('.
19793         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19794         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19795         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
19796         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
19797         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19798         lib/uniwidth/width.c.
19799         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
19800         without comments, but with the original copyright notice.
19801         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
19802         changes.
19803         * lib/unictype/categ_Cc.h: Likewise.
19804         * lib/unictype/categ_Co.h: Likewise.
19805         * lib/unictype/categ_Cs.h: Likewise.
19806         * lib/unictype/categ_Lt.h: Likewise.
19807         * lib/unictype/categ_Me.h: Likewise.
19808         * lib/unictype/categ_Pc.h: Likewise.
19809         * lib/unictype/categ_Pe.h: Likewise.
19810         * lib/unictype/categ_Pf.h: Likewise.
19811         * lib/unictype/categ_Pi.h: Likewise.
19812         * lib/unictype/categ_Ps.h: Likewise.
19813         * lib/unictype/categ_Sk.h: Likewise.
19814         * lib/unictype/categ_Sm.h: Likewise.
19815         * lib/unictype/categ_Z.h: Likewise.
19816         * lib/unictype/categ_Zl.h: Likewise.
19817         * lib/unictype/categ_Zp.h: Likewise.
19818         * lib/unictype/categ_Zs.h: Likewise.
19819         * lib/unictype/ctype_blank.h: Likewise.
19820         * lib/unictype/ctype_cntrl.h: Likewise.
19821         * lib/unictype/ctype_digit.h: Likewise.
19822         * lib/unictype/ctype_space.h: Likewise.
19823         * lib/unictype/ctype_xdigit.h: Likewise.
19824         * lib/unictype/mirror.h: Likewise.
19825         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19826         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19827         * lib/unictype/pr_bidi_block_separator.h: Likewise.
19828         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19829         * lib/unictype/pr_bidi_common_separator.h: Likewise.
19830         * lib/unictype/pr_bidi_control.h: Likewise.
19831         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19832         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19833         * lib/unictype/pr_bidi_pdf.h: Likewise.
19834         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19835         * lib/unictype/pr_bidi_whitespace.h: Likewise.
19836         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19837         * lib/unictype/pr_format_control.h: Likewise.
19838         * lib/unictype/pr_hex_digit.h: Likewise.
19839         * lib/unictype/pr_hyphen.h: Likewise.
19840         * lib/unictype/pr_ids_binary_operator.h: Likewise.
19841         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19842         * lib/unictype/pr_iso_control.h: Likewise.
19843         * lib/unictype/pr_join_control.h: Likewise.
19844         * lib/unictype/pr_left_of_pair.h: Likewise.
19845         * lib/unictype/pr_line_separator.h: Likewise.
19846         * lib/unictype/pr_math.h: Likewise.
19847         * lib/unictype/pr_non_break.h: Likewise.
19848         * lib/unictype/pr_not_a_character.h: Likewise.
19849         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19850         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19851         * lib/unictype/pr_other_id_continue.h: Likewise.
19852         * lib/unictype/pr_other_id_start.h: Likewise.
19853         * lib/unictype/pr_other_lowercase.h: Likewise.
19854         * lib/unictype/pr_other_math.h: Likewise.
19855         * lib/unictype/pr_other_uppercase.h: Likewise.
19856         * lib/unictype/pr_paired_punctuation.h: Likewise.
19857         * lib/unictype/pr_paragraph_separator.h: Likewise.
19858         * lib/unictype/pr_pattern_syntax.h: Likewise.
19859         * lib/unictype/pr_pattern_white_space.h: Likewise.
19860         * lib/unictype/pr_private_use.h: Likewise.
19861         * lib/unictype/pr_quotation_mark.h: Likewise.
19862         * lib/unictype/pr_radical.h: Likewise.
19863         * lib/unictype/pr_soft_dotted.h: Likewise.
19864         * lib/unictype/pr_space.h: Likewise.
19865         * lib/unictype/pr_titlecase.h: Likewise.
19866         * lib/unictype/pr_variation_selector.h: Likewise.
19867         * lib/unictype/pr_white_space.h: Likewise.
19868         * lib/unictype/sy_c_ident.h: Likewise.
19869         * lib/unictype/sy_c_whitespace.h: Likewise.
19870         * lib/unictype/sy_java_whitespace.h: Likewise.
19871         * modules/uni*/*: Bump version number of expected libunistring version.
19872         Reported by Simon Josefsson.
19873
19874 2011-01-09  Karl Heuer  <kwzh@gnu.org>
19875
19876         useless-if-before-free: fix typo in --help and make the internal,
19877         automatic version date update process work once again.
19878         --help output contained a NUL character instead of the
19879         backslash-zero that was intended.  Also, the "must lie within
19880         the first 8 lines" line is on line 9, and hence not getting
19881         automatically updated.
19882         * build-aux/useless-if-before-free: Fix the former by adding a
19883         backslash, and the latter by condensing the three lines of what-it-does
19884         to a single line, leaving one line of slack for the future.
19885
19886 2011-01-09  Bruno Haible  <bruno@clisp.org>
19887
19888         uniwidth/width: Fix width of U+1D173..U+1D17A.
19889         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
19890         symbolic_width, output_width_property_test): New functions.
19891         (main): Invoke output_nonspacing_property, output_width_property_test.
19892         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
19893         U+1D173..U+1D17A.
19894         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
19895         1.
19896         * modules/uniwidth/*: Bump version number of expected libunistring
19897         version.
19898         * modules/unilbrk/*: Likewise.
19899
19900 2011-01-08  Bruno Haible  <bruno@clisp.org>
19901
19902         uninorm tests: Preserve copyright of Unicode data file.
19903         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
19904         Mention modifications.
19905
19906 2011-01-08  Bruno Haible  <bruno@clisp.org>
19907
19908         gen-uni-tables: Prepare for Unicode 5.2.0.
19909         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
19910         (debug_output_lbp, output_lbp): Update.
19911
19912 2011-01-08  Bruno Haible  <bruno@clisp.org>
19913
19914         unilbrk: Clarify gen-uni-tables.c code.
19915         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
19916         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
19917         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
19918
19919 2011-01-07  Bruno Haible  <bruno@clisp.org>
19920
19921         strtod: Restore errno when successfully parsing Infinity or NaN.
19922         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
19923         restore the original errno.
19924
19925 2011-01-07  Bruno Haible  <bruno@clisp.org>
19926
19927         remove test: Avoid failure on HP-UX 11.
19928         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
19929
19930 2011-01-07  Bruno Haible  <bruno@clisp.org>
19931
19932         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
19933         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
19934         error code.
19935
19936 2011-01-07  Pádraig Brady <P@draigBrady.com>
19937
19938         ignore-value: fixup comments, and add Eric Blake
19939         as an author since he rewrote the macros.
19940         * lib/ignore-value.h (ignore_value):  State that
19941         we now support aggregates.  Also specify exactly
19942         when the GCC warn_unused_result feature was added.
19943
19944 2011-01-06  Eric Blake  <eblake@redhat.com>
19945
19946         ignore-value: support aggregate types
19947         * lib/ignore-value.h (ignore_value): Provide separate gcc
19948         definition.
19949         * modules/ignore-value-tests: New test module.
19950         * tests/test-ignore-value.c: New test.
19951
19952         maint.mk: improve sc_prohibit_strcmp regex
19953         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
19954         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
19955         definition of STRNEQ.
19956
19957         signal: work around Haiku issue with SIGBUS
19958         * lib/siglist.h: Add comment.
19959         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
19960         strsignal's favoring of SIGSEGV.
19961         * tests/test-signal.c (main): Avoid test failure.
19962         * doc/posix-headers/signal.texi (signal.h): Document the issue.
19963         Reported by Scott McCreary.
19964
19965         maint.mk: add pre-release check to ensure submodule commits are public
19966         * top/maint.mk (public-submodule-commit): New rule.
19967         (submodule-checks): New variable.
19968         (alpha beta stable): Depend on the variable.
19969
19970 2011-01-05  Pádraig Brady <P@draigBrady.com>
19971         and Jim Meyering  <meyering@redhat.com>
19972
19973         ignore-value: make ignore_value more generic; deprecate ignore_ptr
19974         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
19975         (ATTRIBUTE_DEPRECATED): Define.
19976         (_ignore_case): New function.
19977         (ignore_value): New macro, to replace the old function.
19978         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
19979         * modules/ignore-value (Depends-on): Add stdint.
19980
19981 2011-01-04  Eric Blake  <eblake@redhat.com>
19982
19983         doc: regenerate INSTALL
19984         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
19985         @firstparagraphindent support, now that autoconf dropped it.
19986         (INSTALL_PRELUDE): Reinstate old macro.
19987         * doc/install.texi: Resync from autoconf.
19988         * doc/INSTALL: Reflect recent autoconf update.
19989         * doc/INSTALL.ISO: Likewise.
19990         * doc/INSTALL.UTF-8: Likewise.
19991         Reported by Karl Berry.
19992
19993 2011-01-04  Bruce Korb  <address@hidden>
19994
19995         git-version-gen: avoid a sub-shell
19996         * build-aux/git-version-gen: Redirect stderr in `...` via
19997         "exec 2>...", rather than via an added sub-shell.
19998
19999 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
20000
20001         git-version-gen: use (...) rather than sh -c '...'
20002         * build-aux/git-version-gen: Rather than hard-coding a shell's name
20003         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
20004
20005 2011-01-03  Jim Meyering  <meyering@redhat.com>
20006
20007         git-version-gen: convert leading TABs to spaces
20008         * build-aux/git-version-gen: Expand leading TABs.
20009
20010         git-version-gen: handle failed "git rev-list"
20011         * build-aux/git-version-gen: Rather than leaking a "fatal" error
20012         from git and proceeding as if it had succeeded but printed no SHA1
20013         checksums, suppress the diagnostic and handle the failure.
20014         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
20015
20016         git-version-gen: include command name in one more diagnostic
20017         * build-aux/git-version-gen: When the required .tarball-version file
20018         was missing or unreadable, you might see the diagnostic from "cat",
20019         but no trace of the name of the invoking script.  Now, you still see
20020         the diagnostic from cat, but also get one from "git-version-gen: ".
20021         Inspired by a patch from Bruce Korb.
20022
20023         update-copyright: adjust test to match changed code
20024         * tests/test-update-copyright.sh: Change test's expected output
20025         to match new actual output.
20026
20027 2011-01-02  Bruno Haible  <bruno@clisp.org>
20028
20029         getlogin_r: Avoid test failure on HP-UX 11.
20030         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
20031         ERANGE when the second argument is zero.
20032         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
20033         portability problem.
20034
20035 2011-01-02  Bruce Korb  <bkorb@gnu.org>
20036
20037         * build-aux/update-copyright: doc Simon's changes
20038
20039 2011-01-02  Simon Josefsson  <simon@josefsson.org>
20040
20041         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
20042         environment variable.
20043
20044 2011-01-02  Bruno Haible  <bruno@clisp.org>
20045
20046         unigbrk: Avoid gcc warnings.
20047         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
20048         unused variable.
20049         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
20050         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
20051         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
20052         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
20053         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
20054         Change type of first argument to 'const char *'.
20055         (main): Remove unused variable.
20056         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
20057         type of first argument to 'const char *'.
20058         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
20059         Likewise.
20060         (main): Change type of variable 's'.
20061         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
20062         to 'int'.
20063
20064 2011-01-02  Bruno Haible  <bruno@clisp.org>
20065
20066         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
20067         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
20068         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
20069         bug.
20070         * lib/pwrite.c: Undo 2010-12-31 patch.
20071         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
20072
20073 2011-01-02  Bruno Haible  <bruno@clisp.org>
20074
20075         pread: Fix test whether it works.
20076         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
20077
20078 2011-01-02  Bruno Haible  <bruno@clisp.org>
20079
20080         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
20081         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
20082         ends in "6". Don't require a specific month name. Try also the locale
20083         names found on HP-UX 11 and Solaris 7.
20084
20085 2011-01-02  Bruno Haible  <bruno@clisp.org>
20086
20087         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
20088         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
20089         C linkage.
20090         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
20091
20092 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20093
20094         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
20095         for consistency, since the "cluster" term is not used elsewhere.
20096         * lib/unigbrk.in.h: Update name.
20097         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
20098         * lib/unigbrk/u16-grapheme-next.c: Update name.
20099         * lib/unigbrk/u16-grapheme-prev.c: Update name.
20100         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
20101         * lib/unigbrk/u32-grapheme-next.c: Update name.
20102         * lib/unigbrk/u32-grapheme-prev.c: Update name.
20103         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
20104         * lib/unigbrk/u8-grapheme-next.c: Update name.
20105         * lib/unigbrk/u8-grapheme-prev.c: Update name.
20106         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
20107         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
20108         Suggested by Bruno Haible.
20109
20110 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20111
20112         Remove module 'u8-grapheme-len' as too redundant with
20113         'u8-grapheme-next'.
20114         * modules/unigbrk/u8-grapheme-len: Delete file.
20115         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
20116         * lib/unigbrk.in.h: Remove prototype for deleted function.
20117         * lib/unigbrk/u8-grapheme-len.c: Delete file.
20118         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
20119
20120         Remove module 'u16-grapheme-len' as too redundant with
20121         'u16-grapheme-next'.
20122         * modules/unigbrk/u16-grapheme-len: Delete file.
20123         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
20124         * lib/unigbrk.in.h: Remove prototype for deleted function.
20125         * lib/unigbrk/u16-grapheme-len.c: Delete file.
20126         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
20127
20128         Remove module 'u32-grapheme-len' as too redundant with
20129         'u32-grapheme-next'.
20130         * modules/unigbrk/u32-grapheme-len: Delete file.
20131         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
20132         * lib/unigbrk.in.h: Remove prototype for deleted function.
20133         * lib/unigbrk/u32-grapheme-len.c: Delete file.
20134         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
20135
20136         Suggested by Bruno Haible.
20137
20138 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20139
20140         * unigbrk.in.h: Fix typo: "ben" => "been".
20141         Reported by Bruno Haible.
20142
20143 2011-01-01  Jim Meyering  <meyering@redhat.com>
20144
20145         maint: update almost all copyright ranges to include 2011
20146         Run the new "make update-copyright" rule.
20147
20148 2011-01-01  Jim Meyering  <meyering@redhat.com>
20149
20150         maint: update-copyright: exempt doc/INSTALL*
20151         * Makefile (update-copyright): Also exclude doc/INSTALL*,
20152         since they are generated.  Suggested by Bruno Haible.
20153
20154 2011-01-01  Jim Meyering  <meyering@redhat.com>
20155
20156         maint: refine the update-copyright rule
20157         * Makefile (update-copyright): Also exclude any file that includes
20158         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
20159         code that merely generates the comment.
20160
20161 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20162
20163         New module 'u8-grapheme-len'.
20164         * modules/unigbrk/u8-grapheme-len: New file.
20165         * modules/unigbrk/u8-grapheme-len-tests: New file.
20166         * lib/unigbrk.in.h: Add prototype for new function.
20167         * lib/unigbrk/u8-grapheme-len.c: New file.
20168         * tests/unigbrk/test-u8-grapheme-len.c: New file.
20169
20170         New module 'u16-grapheme-len'.
20171         * modules/unigbrk/u16-grapheme-len: New file.
20172         * modules/unigbrk/u16-grapheme-len-tests: New file.
20173         * lib/unigbrk.in.h: Add prototype for new function.
20174         * lib/unigbrk/u16-grapheme-len.c: New file.
20175         * tests/unigbrk/test-u16-grapheme-len.c: New file.
20176
20177         New module 'u32-grapheme-len'.
20178         * modules/unigbrk/u32-grapheme-len: New file.
20179         * modules/unigbrk/u32-grapheme-len-tests: New file.
20180         * lib/unigbrk.in.h: Add prototype for new function.
20181         * lib/unigbrk/u32-grapheme-len.c: New file.
20182         * tests/unigbrk/test-u32-grapheme-len.c: New file.
20183
20184         New module 'u8-grapheme-next'.
20185         * modules/unigbrk/u8-grapheme-next: New file.
20186         * modules/unigbrk/u8-grapheme-next-tests: New file.
20187         * lib/unigbrk.in.h: Add prototype for new function.
20188         * lib/unigbrk/u8-grapheme-next.c: New file.
20189         * tests/unigbrk/test-u8-grapheme-next.c: New file.
20190
20191         New module 'u16-grapheme-next'.
20192         * modules/unigbrk/u16-grapheme-next: New file.
20193         * modules/unigbrk/u16-grapheme-next-tests: New file.
20194         * lib/unigbrk.in.h: Add prototype for new function.
20195         * lib/unigbrk/u16-grapheme-next.c: New file.
20196         * tests/unigbrk/test-u16-grapheme-next.c: New file.
20197
20198         New module 'u32-grapheme-next'.
20199         * modules/unigbrk/u32-grapheme-next: New file.
20200         * modules/unigbrk/u32-grapheme-next-tests: New file.
20201         * lib/unigbrk.in.h: Add prototype for new function.
20202         * lib/unigbrk/u32-grapheme-next.c: New file.
20203         * tests/unigbrk/test-u32-grapheme-next.c: New file.
20204
20205         New module 'u8-grapheme-prev'.
20206         * modules/unigbrk/u8-grapheme-prev: New file.
20207         * modules/unigbrk/u8-grapheme-prev-tests: New file.
20208         * lib/unigbrk.in.h: Add prototype for new function.
20209         * lib/unigbrk/u8-grapheme-prev.c: New file.
20210         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
20211
20212         New module 'u16-grapheme-prev'.
20213         * modules/unigbrk/u16-grapheme-prev: New file.
20214         * modules/unigbrk/u16-grapheme-prev-tests: New file.
20215         * lib/unigbrk.in.h: Add prototype for new function.
20216         * lib/unigbrk/u16-grapheme-prev.c: New file.
20217         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
20218
20219         New module 'u32-grapheme-prev'.
20220         * modules/unigbrk/u32-grapheme-prev: New file.
20221         * modules/unigbrk/u32-grapheme-prev-tests: New file.
20222         * lib/unigbrk.in.h: Add prototype for new function.
20223         * lib/unigbrk/u32-grapheme-prev.c: New file.
20224         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
20225
20226         New module 'u8-grapheme-breaks'.
20227         * modules/unigbrk/u8-grapheme-breaks: New file.
20228         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
20229         * lib/unigbrk.in.h: Add prototype for new function.
20230         * lib/unigbrk/u8-grapheme-breaks.c: New file.
20231         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
20232
20233         New module 'u16-grapheme-breaks'.
20234         * modules/unigbrk/u16-grapheme-breaks: New file.
20235         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
20236         * lib/unigbrk.in.h: Add prototype for new function.
20237         * lib/unigbrk/u16-grapheme-breaks.c: New file.
20238         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
20239
20240         New module 'u32-grapheme-breaks'.
20241         * modules/unigbrk/u32-grapheme-breaks: New file.
20242         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
20243         * lib/unigbrk.in.h: Add prototype for new function.
20244         * lib/unigbrk/u32-grapheme-breaks.c: New file.
20245         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
20246
20247         New module 'ulc-grapheme-breaks'.
20248         * modules/unigbrk/ulc-grapheme-breaks: New file.
20249         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
20250         * m4/locale-ar.m4: New file.
20251         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
20252         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
20253         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
20254
20255 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20256
20257         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
20258         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
20259         modified how this file was generated before I initially submitted
20260         the module, but failed to regenerate it.  This meant that several
20261         of the level2 entries were wrong.
20262         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
20263         Remove the division-by-2 that is folded into the table now that
20264         gbrkprop.h has been regenerated properly.  Now -1 entries are
20265         handled correctly.
20266
20267         New module 'unigbrk/uc-gbrk-prop-tests'.
20268         * modules/unigbrk/uc-gbrk-prop-tests: New file.
20269         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
20270         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
20271         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
20272
20273 2011-01-01  Bruno Haible  <bruno@clisp.org>
20274
20275         Avoid use of hexadecimal escapes.
20276         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
20277         instead of hexadecimal escapes.
20278
20279 2011-01-01  Jim Meyering  <meyering@redhat.com>
20280
20281         maint: new rule to update copyright year ranges
20282         * Makefile (update-copyright): New rule.
20283
20284         maint: indent with TABs in Makefile
20285         * Makefile: Expand leading sequences of spaces to TABs
20286
20287         version-etc: update the copyright year it reports
20288         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
20289
20290 2010-12-31  Bruno Haible  <bruno@clisp.org>
20291
20292         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
20293         * lib/isfinite.c (zerof, zerod, zerol): New variables.
20294         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
20295         zero.
20296
20297 2010-12-31  Bruno Haible  <bruno@clisp.org>
20298
20299         pwrite: Work around HP-UX 11.11 bug.
20300         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
20301         works and set REPLACE_PWRITE if not.
20302         * lib/pwrite.c (pwrite): Add an implementation that uses the system
20303         function.
20304         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
20305
20306 2010-12-31  Bruno Haible  <bruno@clisp.org>
20307
20308         pread: Work around HP-UX 11 bugs.
20309         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
20310         and set REPLACE_PREAD if not.
20311         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
20312
20313 2010-12-31  Eric Blake  <eblake@redhat.com>
20314
20315         nl_langinfo: fix YESEXPR on Irix 6.5
20316         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
20317         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
20318         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
20319         it.
20320
20321 2010-12-31  Bruno Haible  <bruno@clisp.org>
20322
20323         iconv: Document HP-UX 11 bug.
20324         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
20325
20326 2010-12-31  Bruno Haible  <bruno@clisp.org>
20327
20328         ldexpl: Fix link error on HP-UX 11.
20329         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
20330         LDEXPL_LIBM, using $ISNANL_LIBM.
20331
20332 2010-12-31  Eric Blake  <eblake@redhat.com>
20333
20334         ftello: avoid compilation failure with SunStudio c89
20335         * lib/ftello.c (ftello): Use lseek, not llseek.
20336
20337         tests: avoid failing coreutils tests on cygwin
20338         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
20339         (create_exe_shims_): Return 0 when skipping.
20340
20341 2010-12-31  Bruno Haible  <bruno@clisp.org>
20342
20343         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
20344         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
20345
20346 2010-12-31  Bruno Haible  <bruno@clisp.org>
20347
20348         waitpid: Fix link error in C++ mode.
20349         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
20350
20351 2010-12-31  Bruno Haible  <bruno@clisp.org>
20352
20353         isnan: Use GCC built-ins when possible.
20354         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
20355         __builtin_isnan.
20356         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
20357         (isnan): Define using GCC built-ins for GCC >= 4.0.
20358
20359 2010-12-31  Bruno Haible  <bruno@clisp.org>
20360
20361         isnand: Fix mistake.
20362         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
20363         __builtin_isnand.
20364
20365 2010-12-31  Bruno Haible  <bruno@clisp.org>
20366
20367         open: Avoid C++ error on HP-UX 11.
20368         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
20369
20370 2010-12-31  Bruno Haible  <bruno@clisp.org>
20371
20372         time_r: Add missing declarations on HP-UX 11.
20373         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
20374         instead of HAVE_LOCALTIME_R.
20375         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
20376         HAVE_LOCALTIME_R always.
20377         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
20378         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
20379         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
20380         HAVE_LOCALTIME_R.
20381         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
20382         * doc/posix-functions/localtime_r.texi: Likewise.
20383
20384 2010-12-29  Eric Blake  <eblake@redhat.com>
20385
20386         mountlist: tweak previous commit
20387         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
20388         Reported by Paul Eggert.
20389
20390         mountlist: fix local drive detection on cygwin
20391         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
20392         that works for cygwin.
20393
20394 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20395
20396         ftoastr, snprintf: ftoastr + snprintf module
20397         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
20398         since the snprintf module now should be good enough here.
20399         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
20400         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
20401         and gl_MODULE_INDICATOR([snprintf]), but the former enables
20402         GNULIB_SNPRINTF only for the test directory, and the latter
20403         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
20404         seems to suffice by itself.
20405
20406 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
20407
20408         alloca: one step towards thread-safety
20409         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
20410         need for a static variable.  All callers changed.  This does not
20411         make the alloca replacement thread-safe, but it's one step.
20412
20413         tests: minor indenting change
20414         * tests/init.sh: Sync from coreutils housekeeping patch
20415         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
20416         to keep lines within 80 columns.
20417
20418 2010-12-28  Jim Meyering  <meyering@redhat.com>
20419
20420         regex: don't infloop on persistent failing calloc
20421         * lib/regexec.c (build_trtable): Return failure indication upon
20422         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
20423         In glibc, this was fixed for version 2.13:
20424         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
20425
20426 2010-12-28  Bruno Haible  <bruno@clisp.org>
20427             Paul Eggert <eggert@cs.ucla.edu>
20428
20429         linkat: Make implementation robust against system behaviour variations.
20430         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
20431         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
20432         way, and to -2 if it needs a generic runtime test.
20433         * lib/linkat.c (solaris_optimized_link_immediate,
20434         solaris_optimized_link_follow): New functions.
20435         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
20436         (check_same_link): Use it.
20437
20438 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
20439
20440         New module 'unigbrk/base'.
20441         * modules/unigbrk/base: New file.
20442         * lib/unigbrk.in.h: New file.
20443
20444         New module 'unigbrk/uc-gbrk-prop'.
20445         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
20446         * modules/unigbrk/uc-gbrk-prop: New file.
20447         * lib/unigbrk/gbrkprop.h: New file.
20448         * lib/unigbrk/uc-gbrk-prop.c: New file.
20449
20450         New module 'unigbrk/uc-is-grapheme-break'.
20451         * modules/unigbrk/uc-is-grapheme-break: New file.
20452         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
20453         * lib/unigbrk/uc-is-grapheme-break.c: New file.
20454         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
20455         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
20456         * tests/unigbrk/GraphemeBreakTest.txt: New file.
20457
20458         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
20459
20460 2010-12-27  Bruno Haible  <bruno@clisp.org>
20461
20462         linkat test: Avoid failure on Solaris 11 2010-11.
20463         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
20464
20465 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20466
20467         utimens: work around glibc rounding bug on more platforms
20468         * lib/utimens.c (fdutimens): Work around rounding bug even if
20469         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
20470         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
20471
20472 2010-12-27  Bruno Haible  <bruno@clisp.org>
20473
20474         select tests: Improve comments.
20475         * tests/test-select.c (do_select): Add comments.
20476
20477 2010-12-27  Bruno Haible  <bruno@clisp.org>
20478
20479         select tests: Safer way of handling timeout.
20480         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
20481         at every invocation.
20482
20483 2010-12-27  Bruno Haible  <bruno@clisp.org>
20484
20485         select tests: Use 'bool' where appropriate.
20486         * tests/test-select.c (connect_to_socket): Change argument type to
20487         'bool'.
20488
20489 2010-12-27  Bruno Haible  <bruno@clisp.org>
20490
20491         select tests: Use existing modules.
20492         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
20493         (configure.ac): Don't test for unistd.h.
20494         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
20495         declared in <unistd.h>.
20496
20497 2010-12-27  Bruno Haible  <bruno@clisp.org>
20498
20499         mbrtowc: Work around a Solaris 7 bug.
20500         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
20501         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
20502         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
20503         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
20504         MBRTOWC_NULL_ARG1_BUG.
20505         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
20506         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
20507         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
20508         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
20509
20510 2010-12-27  Jim Meyering  <meyering@redhat.com>
20511
20512         read-file.c: tweak syntax
20513         * lib/read-file.c (fread_file): Remove space after "*" in function
20514         definitions.
20515
20516 2010-12-27  Bruno Haible  <bruno@clisp.org>
20517
20518         times test: Avoid gcc warnings on OSF/1.
20519         * tests/test-times.c (main): Cast printf arguments from clock_t to
20520         'long int'.
20521
20522 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20523
20524         utimens: work around glibc rounding bug on older Linux kernels
20525         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
20526         on Linux with a glibc whose utimes might not work, then work
20527         around a longstanding glibc bug involving rounding rather than
20528         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
20529         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
20530
20531 2010-12-26  Bruno Haible  <bruno@clisp.org>
20532
20533         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
20534         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
20535         _GL_CXXALIAS_SYS.
20536         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20537
20538 2010-12-26  Bruno Haible  <bruno@clisp.org>
20539
20540         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
20541         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
20542         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20543         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
20544         looking for the declaration.
20545         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
20546         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
20547         problem.
20548         * doc/posix-functions/inet_pton.texi: Likewise.
20549
20550 2010-12-26  Bruno Haible  <bruno@clisp.org>
20551
20552         arpa_inet: Use the common idioms with C++ support.
20553         * lib/arpa_inet.in.h: Include c++defs.h.
20554         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
20555         support.
20556         * modules/arpa_inet (Depends-on): Add c++defs.
20557         (Makefile.am): Substitute the contents of c++defs.h.
20558         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
20559         * modules/arpa_inet-c++-tests: New file.
20560         * tests/test-arpa_inet-c++.cc: New file.
20561
20562 2010-12-25  Bruno Haible  <bruno@clisp.org>
20563
20564         Fix more C++ link errors on Solaris 8.
20565         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
20566         $(LIB_EACCESS).
20567         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
20568         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
20569         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
20570         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
20571         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
20572
20573 2010-12-25  Bruno Haible  <bruno@clisp.org>
20574
20575         printf-posix: Fix link error when a non-GCC compiler is used.
20576         * lib/stdio.in.h (printf): When not using GCC, override printf
20577         correctly.
20578         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20579
20580 2010-12-25  Bruno Haible  <bruno@clisp.org>
20581
20582         strerror_r-posix: Update doc.
20583         * doc/posix-functions/strerror_r.texi: Update doc about the return
20584         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
20585
20586 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20587
20588         utimens: simplify the logic of the previous change
20589         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
20590         This should not affect whether the test succeeds or fails.
20591
20592         utimens: configure better on hosts with NFS clock skew
20593         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
20594         uses the clock of the local host.  It might use the clock of the
20595         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
20596         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
20597
20598 2010-12-25  Bruno Haible  <bruno@clisp.org>
20599
20600         ptsname test: Avoid failure on Solaris.
20601         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
20602         open a pseudo-terminal; don't use BSD-style ptys.
20603         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
20604
20605 2010-12-25  Bruno Haible  <bruno@clisp.org>
20606
20607         ptsname: Avoid ERANGE failure on some systems.
20608         * lib/ptsname.c (buffer): Increase size.
20609
20610 2010-12-25  Bruno Haible  <bruno@clisp.org>
20611
20612         rename, renameat: Avoid test failures at NFS mounted locations.
20613         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
20614         so that subsequent mkdir calls succeed.
20615
20616 2010-12-25  Bruno Haible  <bruno@clisp.org>
20617
20618         iswblank: Fix C++ link error on Solaris 8.
20619         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
20620         _GL_FUNCDECL_SYS.
20621
20622 2010-12-25  Bruno Haible  <bruno@clisp.org>
20623
20624         unistd: Fix C++ link error on Solaris 8.
20625         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
20626
20627 2010-12-25  Bruno Haible  <bruno@clisp.org>
20628
20629         readlink doc: Mention an old glibc bug.
20630         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
20631
20632 2010-12-25  Bruno Haible  <bruno@clisp.org>
20633
20634         fcntl-h: Fix for use of C++ on glibc systems.
20635         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20636         also on glibc systems in C++ mode.
20637         Reported by Gary V. Vaughan <gary@gnu.org>.
20638
20639 2010-12-25  Bruno Haible  <bruno@clisp.org>
20640
20641         roundl-ieee: Make it work on OSF/1 5.1 with cc.
20642         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
20643
20644 2010-12-25  Bruno Haible  <bruno@clisp.org>
20645
20646         truncl-ieee: Make it work on OSF/1 5.1 with cc.
20647         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
20648         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
20649         test whether truncl works according to ISO C 99 with IEC 60559.
20650         * m4/truncl-ieee.m4: New file.
20651         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
20652         m4/signbit.m4.
20653         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
20654
20655 2010-12-25  Bruno Haible  <bruno@clisp.org>
20656
20657         ceill-ieee: Make it work on OSF/1 5.1 with cc.
20658         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
20659         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
20660         test whether ceill works according to ISO C 99 with IEC 60559.
20661         * m4/ceill-ieee.m4: New file.
20662         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
20663         m4/signbit.m4.
20664         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
20665
20666 2010-12-25  Bruno Haible  <bruno@clisp.org>
20667
20668         Ensure all prerequisites of <wchar.h> are included.
20669         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
20670         before <wchar.h>.
20671         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20672         gl_MBRLEN_NUL_RETVAL): Likewise.
20673         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20674         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
20675         AC_FUNC_MBRTOWC): Likewise.
20676         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20677         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
20678         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20679         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20680         Likewise.
20681         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20682         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
20683         (gl_WCHAR_H): Improve comments.
20684         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20685
20686 2010-12-25  Bruno Haible  <bruno@clisp.org>
20687
20688         strtok_r: Fix C syntax error in autoconf macro.
20689         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
20690         characters in test program.
20691
20692 2010-12-24  Bruno Haible  <bruno@clisp.org>
20693
20694         ceil, trunc, round: Fix gcc warnings.
20695         * lib/ceil.c (MIN): Undefine before redefining.
20696         * lib/trunc.c (MIN): Likewise.
20697         * lib/round.c (MIN): Likewise.
20698         Include <math.h> first.
20699
20700 2010-12-24  Bruno Haible  <bruno@clisp.org>
20701
20702         select tests: Avoid failures on OSF/1 5.1.
20703         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
20704         failure of closing the last socket; it may fail with ECONNRESET.
20705
20706 2010-12-24  Eric Blake  <eblake@redhat.com>
20707
20708         stdint: avoid HP-UX 10.20 preprocessor bug
20709         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
20710         than #if.
20711         * tests/test-floor2.c (main): Likewise.
20712         Reported by Peter O'Gorman.
20713
20714         pipe: make obsoletion transition easier
20715         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
20716         * modules/pipe (Files): Include revived file.
20717         (Include): Drop reference, to mirror getdate's behavior.
20718
20719 2010-12-24  Bruno Haible  <bruno@clisp.org>
20720
20721         sys_socket: Hide mismatch of declarations on NonStop Kernel.
20722         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
20723         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
20724         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20725
20726 2010-12-24  Bruno Haible  <bruno@clisp.org>
20727
20728         gethostname: Ensure declaration on NonStop Kernel.
20729         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
20730         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20731
20732 2010-12-24  Bruno Haible  <bruno@clisp.org>
20733
20734         sys_select: Ensure all necessary types on NonStop Kernel.
20735         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
20736         include <sys/time.h>.
20737         * doc/posix-headers/sys_select.texi: Mention that it's missing on
20738         NonStop Kernel.
20739         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20740
20741 2010-12-24  Bruno Haible  <bruno@clisp.org>
20742
20743         sys_select: Remove unneeded include.
20744         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
20745         have <sys/select.h>.
20746
20747 2010-12-24  Bruno Haible  <bruno@clisp.org>
20748
20749         gethostname: Provide a fallback for HOST_NAME_MAX.
20750         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
20751         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
20752         instead.
20753         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20754
20755 2010-12-24  Bruno Haible  <bruno@clisp.org>
20756
20757         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
20758         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
20759         (SA_RESTART): Likewise.
20760         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20761
20762 2010-12-24  Bruno Haible  <bruno@clisp.org>
20763
20764         signal: Define NSIG.
20765         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
20766         * tests/test-signal.c (nsig): New variable.
20767         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20768
20769 2010-12-24  Bruno Haible  <bruno@clisp.org>
20770
20771         rename, renameat: Avoid test failures on OSF/1 5.1.
20772         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
20773         alternative error codes.
20774         * tests/test-renameat.c (main): Likewise.
20775
20776 2010-12-24  Bruno Haible  <bruno@clisp.org>
20777
20778         *printf: Detect large precisions bug on Solaris 10/SPARC.
20779         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
20780         by Paul Eggert.
20781         * tests/test-snprintf-posix.h (test_function): Add this test code here
20782         too.
20783         * tests/test-sprintf-posix.h (test_function): Likewise.
20784         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20785         * tests/test-vasprintf-posix.c (test_function): Likewise.
20786         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
20787         around by gnulib.
20788         * doc/posix-functions/printf.texi: Likewise.
20789         * doc/posix-functions/snprintf.texi: Likewise.
20790         * doc/posix-functions/sprintf.texi: Likewise.
20791         * doc/posix-functions/vfprintf.texi: Likewise.
20792         * doc/posix-functions/vprintf.texi: Likewise.
20793         * doc/posix-functions/vsnprintf.texi: Likewise.
20794         * doc/posix-functions/vsprintf.texi: Likewise.
20795         * doc/posix-functions/dprintf.texi: Undo last commit.
20796         * doc/posix-functions/vdprintf.texi: Likewise.
20797
20798 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20799
20800         tests: port test-fdutimensat.c to Solaris 8
20801         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
20802         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
20803         On Solaris 8, it fails with errno == ENOSYS, because there is no
20804         futimens (so it can't use the fd), and there is no lutimens (so it
20805         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
20806
20807         vsnprintf: make more consistent with snprintf; doc fixes
20808
20809         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
20810         the byte count return problem was promoted from the snprintf-posix
20811         to the snprintf module.
20812         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20813         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
20814         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
20815         * tests/test-snprintf.c (main): Check the byte count returned.
20816         * tests/test-vsnprintf.c (main): Likewise.
20817
20818 2010-12-23  Eric Blake  <eblake@redhat.com>
20819
20820         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
20821         * modules/sigpipe (License): Relax license.
20822
20823 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20824
20825         doc: document Solaris printf bug with large float precisions
20826         * doc/posix-functions/dprintf.texi (dprintf):
20827         * doc/posix-functions/fprintf.texi (fprintf):
20828         * doc/posix-functions/printf.texi (printf):
20829         * doc/posix-functions/snprintf.texi (snprintf):
20830         * doc/posix-functions/sprintf.texi (sprintf):
20831         * doc/posix-functions/vdprintf.texi (vdprintf):
20832         * doc/posix-functions/vfprintf.texi (vfprintf):
20833         * doc/posix-functions/vprintf.texi (vprintf):
20834         * doc/posix-functions/vsnprintf.texi (vsnprintf):
20835         * doc/posix-functions/vsprintf.texi (vsprintf):
20836         Mention that these functions mishandle large floating point
20837         precisions on Solaris 10.  The same bug is also present in Solaris
20838         8, and I assume earlier.  This causes "cd gnulib-tests; make
20839         check" to fail on Solaris 8 (and I assume, later) when building
20840         the latest coreutils, in test-vasprintf-posix's call to
20841         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
20842         the wide flavors (e.g., wprintf) so this patch just updates the
20843         documentation for the narrow ones.
20844
20845         test-posixtm.c: add two tests
20846         * tests/test-posixtm.c: Add two tests, to highlight the
20847         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
20848         around this bug; this is merely to document it.
20849
20850 2010-12-22  Bruno Haible  <bruno@clisp.org>
20851
20852         getlogin_r: Work around portability problem on OSF/1.
20853         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
20854         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
20855         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
20856         test for a truncated result.
20857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
20858         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
20859         * modules/getlogin_r (Depends-on): Add memchr.
20860         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
20861
20862 2010-12-22  Bruno Haible  <bruno@clisp.org>
20863
20864         ptsname: Avoid test failure on OSF/1 5.1.
20865         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
20866         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
20867         (same_slave): New function.
20868         (main): Use it to compare ptsname's result with the expected file name.
20869
20870 2010-12-22  Bruno Haible  <bruno@clisp.org>
20871
20872         Port extended stdio modules to HP NonStop Kernel.
20873         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
20874         macros.
20875         * lib/fbufmode.c: Update comments.
20876         * lib/fflush.c: Likewise.
20877         * lib/fpurge.c: Likewise.
20878         * lib/freadable.c: Likewise.
20879         * lib/freadahead.c: Likewise.
20880         * lib/freading.c: Likewise.
20881         * lib/freadptr.c: Likewise.
20882         * lib/freadseek.c: Likewise.
20883         * lib/fseeko.c: Likewise.
20884         * lib/fseterr.c: Likewise.
20885         * lib/fwritable.c: Likewise.
20886         * lib/fwriting.c: Likewise.
20887         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
20888
20889 2010-12-22  Bruno Haible  <bruno@clisp.org>
20890
20891         ttyname_r: Work around bug on OSF/1 5.1.
20892         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
20893         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
20894         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
20895         present.
20896         * lib/ttyname_r.c (ttyname_r): Update comments.
20897
20898 2010-12-22  Bruno Haible  <bruno@clisp.org>
20899
20900         round: Implement result sign according to IEEE 754.
20901         * lib/round.c (MIN, MINUS_ZERO): New macros.
20902         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
20903         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
20904         * tests/test-round-ieee.c (main): Likewise.
20905         * tests/test-roundl-ieee.c (main): Likewise.
20906
20907         trunc: Implement result sign according to IEEE 754.
20908         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
20909         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
20910         * tests/test-trunc2.c: Include minus-zero.h.
20911         (MINUS_ZERO): New macro.
20912         (trunc_reference): Keep in sync with lib/trunc.c.
20913         * tests/test-truncf2.c: Include minus-zero.h.
20914         (MINUS_ZERO): New macro.
20915         (truncf_reference): Keep in sync with lib/trunc.c.
20916         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
20917         * tests/test-trunc-ieee.c (main): Likewise.
20918         * tests/test-truncl-ieee.c (main): Likewise.
20919
20920         ceil: Implement result sign according to IEEE 754.
20921         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
20922         (FUNC): Return -0.0 for -1 < x < 0.
20923         * tests/test-ceil2.c: Include minus-zero.h.
20924         (MINUS_ZERO): New macro.
20925         (ceil_reference): Keep in sync with lib/ceil.c.
20926         * tests/test-ceilf2.c: Include minus-zero.h.
20927         (MINUS_ZERO): New macro.
20928         (ceilf_reference): Keep in sync with lib/ceil.c.
20929         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
20930         * tests/test-ceil-ieee.c (main): Likewise.
20931         * tests/test-ceill-ieee.c (main): Likewise.
20932
20933         floor: Implement result sign according to IEEE 754.
20934         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
20935         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
20936         * tests/test-floorf2.c (floorf_reference): Likewise.
20937         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
20938         * tests/test-floor-ieee.c (main): Likewise.
20939         * tests/test-floorl-ieee.c (main): Likewise.
20940
20941 2010-12-22  Bruno Haible  <bruno@clisp.org>
20942
20943         getaddrinfo: Update doc.
20944         * doc/posix-functions/gai_strerror.texi: Return type is also different
20945         on AIX and HP-UX.
20946
20947 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20948
20949         getaddrinfo, inet_ntop: Update doc for Solaris.
20950         * doc/posix-functions/gai_strerror.texi: Return type is also an
20951         issue on Solaris 9 and earlier.
20952         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
20953         on Solaris 10 and earlier.
20954
20955 2010-12-21  Bruno Haible  <bruno@clisp.org>
20956
20957         New module 'roundl-ieee'.
20958         * modules/roundl-ieee: New file.
20959         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
20960         test whether roundl works according to ISO C 99 with IEC 60559.
20961         * m4/roundl-ieee.m4: New file.
20962         * modules/roundl-ieee-tests: New file.
20963         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
20964         * tests/test-roundl.c (main): Remove signbit tests.
20965         * modules/roundl-tests (Depends-on): Remove signbit.
20966         * doc/posix-functions/roundl.texi: Mention the new module.
20967
20968 2010-12-21  Bruno Haible  <bruno@clisp.org>
20969
20970         New module 'truncl-ieee'.
20971         * modules/truncl-ieee: New file.
20972         * modules/truncl-ieee-tests: New file.
20973         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
20974         * tests/test-truncl.c (main): Remove signbit tests.
20975         * modules/truncl-tests (Depends-on): Remove signbit.
20976         * doc/posix-functions/truncl.texi: Mention the new module.
20977
20978 2010-12-21  Bruno Haible  <bruno@clisp.org>
20979
20980         New module 'ceill-ieee'.
20981         * modules/ceill-ieee: New file.
20982         * modules/ceill-ieee-tests: New file.
20983         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
20984         * tests/test-ceill.c (main): Remove signbit tests.
20985         * modules/ceill-tests (Depends-on): Remove signbit.
20986         * doc/posix-functions/ceill.texi: Mention the new module.
20987
20988 2010-12-21  Bruno Haible  <bruno@clisp.org>
20989
20990         New module 'floorl-ieee'.
20991         * modules/floorl-ieee: New file.
20992         * modules/floorl-ieee-tests: New file.
20993         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
20994         * tests/test-floorl.c (main): Remove signbit tests.
20995         * modules/floorl-tests (Depends-on): Remove signbit.
20996         * doc/posix-functions/floorl.texi: Mention the new module.
20997
20998 2010-12-21  Bruno Haible  <bruno@clisp.org>
20999
21000         New module 'round-ieee'.
21001         * modules/round-ieee: New file.
21002         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
21003         whether round works according to ISO C 99 with IEC 60559.
21004         * m4/round-ieee.m4: New file.
21005         * modules/round-ieee-tests: New file.
21006         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
21007         * tests/test-round1.c (main): Remove signbit tests.
21008         * modules/round-tests (Depends-on): Remove 'signbit'.
21009         * doc/posix-functions/round.texi: Mention the new module.
21010
21011 2010-12-21  Bruno Haible  <bruno@clisp.org>
21012
21013         New module 'trunc-ieee'.
21014         * modules/trunc-ieee: New file.
21015         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
21016         whether trunc works according to ISO C 99 with IEC 60559.
21017         * m4/trunc-ieee.m4: New file.
21018         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
21019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
21020         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
21021         * modules/trunc-ieee-tests: New file.
21022         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
21023         * tests/test-trunc1.c (main): Remove signbit tests.
21024         * modules/trunc-tests (Depends-on): Remove 'signbit'.
21025         * doc/posix-functions/trunc.texi: Mention the new module.
21026
21027 2010-12-21  Bruno Haible  <bruno@clisp.org>
21028
21029         New module 'ceil-ieee'.
21030         * modules/ceil-ieee: New file.
21031         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
21032         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
21033         ISO C 99 with IEC 60559.
21034         * m4/ceil-ieee.m4: New file.
21035         * modules/ceil (Files): Add lib/ceil.c.
21036         (Depends-on): Add 'float'.
21037         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21038         * lib/math.in.h (ceil): New declaration.
21039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
21040         REPLACE_CEIL.
21041         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
21042         * modules/ceil-ieee-tests: New file.
21043         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
21044         * tests/test-math-c++.cc: Check the signature of 'ceil'.
21045         * doc/posix-functions/ceil.texi: Mention the new module.
21046
21047 2010-12-21  Bruno Haible  <bruno@clisp.org>
21048
21049         New module 'floor-ieee'.
21050         * modules/floor-ieee: New file.
21051         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
21052         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
21053         ISO C 99 with IEC 60559.
21054         * m4/floor-ieee.m4: New file.
21055         * modules/floor (Files): Add lib/floor.c.
21056         (Depends-on): Add 'float'.
21057         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21058         * lib/math.in.h (floor): New declaration.
21059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
21060         REPLACE_FLOOR.
21061         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
21062         * modules/floor-ieee-tests: New file.
21063         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
21064         * tests/test-math-c++.cc: Check the signature of 'floor'.
21065         * doc/posix-functions/floor.texi: Mention the new module.
21066
21067 2010-12-21  Bruno Haible  <bruno@clisp.org>
21068
21069         New module 'roundf-ieee'.
21070         * modules/roundf-ieee: New file.
21071         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
21072         test whether roundf works according to ISO C 99 with IEC 60559.
21073         * m4/roundf-ieee.m4: New file.
21074         * modules/roundf-ieee-tests: New file.
21075         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
21076         * tests/test-roundf1.c (main): Remove signbit tests.
21077         * modules/roundf-tests (Depends-on): Remove 'signbit'.
21078         * doc/posix-functions/roundf.texi: Mention the new module.
21079
21080 2010-12-21  Bruno Haible  <bruno@clisp.org>
21081
21082         New module 'truncf-ieee'.
21083         * modules/truncf-ieee: New file.
21084         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
21085         test whether truncf works according to ISO C 99 with IEC 60559.
21086         * m4/truncf-ieee.m4: New file.
21087         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
21088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
21089         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
21090         * modules/truncf-ieee-tests: New file.
21091         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
21092         * tests/test-truncf1.c (main): Remove signbit tests.
21093         * modules/truncf-tests (Depends-on): Remove 'signbit'.
21094         * doc/posix-functions/truncf.texi: Mention the new module.
21095
21096 2010-12-21  Bruno Haible  <bruno@clisp.org>
21097
21098         New module 'ceilf-ieee'.
21099         * modules/ceilf-ieee: New file.
21100         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
21101         test whether ceilf works according to ISO C 99 with IEC 60559.
21102         * m4/ceilf-ieee.m4: New file.
21103         * modules/ceilf-ieee-tests: New file.
21104         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
21105         * tests/test-ceilf1.c (main): Remove signbit tests.
21106         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
21107         * doc/posix-functions/ceilf.texi: Mention the new module.
21108
21109 2010-12-21  Bruno Haible  <bruno@clisp.org>
21110
21111         New module 'floorf-ieee'.
21112         * modules/floorf-ieee: New file.
21113         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
21114         test whether floorf works according to ISO C 99 with IEC 60559.
21115         * m4/floorf-ieee.m4: New file.
21116         * modules/floorf-ieee-tests: New file.
21117         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
21118         * tests/test-floorf1.c (main): Remove signbit tests.
21119         * modules/floorf-tests (Depends-on): Remove 'signbit'.
21120         * doc/posix-functions/floorf.texi: Mention the new module.
21121
21122 2010-12-21  Bruno Haible  <bruno@clisp.org>
21123
21124         Support for minus zero in autoconf macros.
21125         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
21126         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
21127         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
21128         * tests/minus-zero.h: Update comments.
21129
21130 2010-12-21  Bruno Haible  <bruno@clisp.org>
21131
21132         Tests for module 'ceil'.
21133         * modules/ceil-tests: New file.
21134         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
21135         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
21136
21137 2010-12-21  Bruno Haible  <bruno@clisp.org>
21138
21139         Tests for module 'floor'.
21140         * modules/floor-tests: New file.
21141         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
21142         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
21143
21144 2010-12-21  Bruno Haible  <bruno@clisp.org>
21145
21146         math: Fix indentation.
21147         * lib/math.in.h (floorf): Fix indentation.
21148
21149 2010-12-21  Bruno Haible  <bruno@clisp.org>
21150
21151         Fix cross-compilation guesses on Solaris.
21152         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
21153         not match "solaris2.10".
21154         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21155         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
21156         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
21157
21158 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21159
21160         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
21161         This fixes a problem observed with the latest coreutils snapshot
21162         that caused a test to fail on Solaris 8.  src/csplit.c's call
21163         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
21164         earlier, instead of returning the number of bytes that would have
21165         been generated; this causes csplit to incorrectly report memory
21166         exhaustion.
21167         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
21168         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
21169         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
21170         comments to match.
21171         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
21172         Fix typo in matching older versions of Solaris: "solaris2.10"
21173         is matched by the shell pattern "solaris2.[0-9]*".  This matters
21174         only for guessing while cross-compiling.
21175         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
21176
21177 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
21178
21179         ftoastr: fix comment again
21180         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21181         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
21182         Also, simplify example a bit by using flags = 0.
21183
21184 2010-12-20  Bruno Haible  <bruno@clisp.org>
21185
21186         round*, trunc*: Update documentation regarding glibc.
21187         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
21188         * doc/posix-functions/round.texi: Likewise.
21189         * doc/posix-functions/roundl.texi: Likewise.
21190         * doc/posix-functions/truncf.texi: Likewise.
21191         * doc/posix-functions/trunc.texi: Likewise.
21192         * doc/posix-functions/truncl.texi: Likewise.
21193
21194 2010-12-20  Bruno Haible  <bruno@clisp.org>
21195
21196         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
21197         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
21198         * doc/posix-functions/round.texi: Likewise.
21199         * doc/posix-functions/roundl.texi: Likewise.
21200
21201 2010-12-20  Bruno Haible  <bruno@clisp.org>
21202
21203         ttyname_r: Add missing declaration on HP-UX 11.
21204         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
21205         HAVE_TTYNAME_R.
21206         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
21207         declared. Set HAVE_TTYNAME_R always.
21208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21209         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
21210         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
21211         HAVE_TTYNAME_R.
21212         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
21213
21214 2010-12-20  Bruno Haible  <bruno@clisp.org>
21215
21216         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
21217         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
21218         * doc/posix-functions/getlogin_r.texi: Likewise.
21219         * tests/test-getlogin.c: Include <errno.h>.
21220         (main): Avoid test failure on HP-UX 11.11.
21221         * tests/test-getlogin_r.c (main): Likewise.
21222
21223 2010-12-20  Bruno Haible  <bruno@clisp.org>
21224
21225         getlogin_r: Add missing declaration on HP-UX 11.
21226         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
21227         declared also when it exists as a function.
21228         * doc/posix-functions/getlogin_r.texi: Document this workaround.
21229
21230 2010-12-20  Bruno Haible  <bruno@clisp.org>
21231
21232         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
21233         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
21234         through wcrtomb.
21235
21236 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21237
21238         ftoastr: fix comment
21239         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21240         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
21241
21242 2010-12-19  Bruno Haible  <bruno@clisp.org>
21243
21244         isnan: Ensure it is a macro.
21245         * lib/math.in.h (isnan): Define as a macro if not already a macro.
21246         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
21247         Solaris.
21248
21249 2010-12-19  Bruno Haible  <bruno@clisp.org>
21250
21251         ldexpl test: Fix link error on OSF/1 5.1.
21252         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
21253
21254 2010-12-19  Bruno Haible  <bruno@clisp.org>
21255
21256         wctype: Make it work in C++ mode on OSF/1 5.1.
21257         * lib/wctype.in.h (iswblank): Declare but not define here.
21258         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
21259         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
21260         * modules/wctype (Files): Add lib/iswblank.c.
21261
21262 2010-12-19  Bruno Haible  <bruno@clisp.org>
21263
21264         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
21265         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
21266         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
21267
21268 2010-12-19  Bruno Haible  <bruno@clisp.org>
21269
21270         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
21271         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
21272         _POSIX_PII_SOCKET.
21273         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
21274         * doc/posix-functions/recvfrom.texi: Likewise.
21275         * doc/posix-functions/send.texi: Likewise.
21276         * doc/posix-functions/sendto.texi: Likewise.
21277
21278 2010-12-19  Bruno Haible  <bruno@clisp.org>
21279
21280         tcgetsid: Add missing declaration on OSF/1 5.1.
21281         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
21282         HAVE_TCGETSID.
21283         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
21284         Don't set HAVE_TCGETSID.
21285         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
21286         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
21287         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
21288         HAVE_TCGETSID.
21289         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
21290
21291 2010-12-19  Bruno Haible  <bruno@clisp.org>
21292
21293         stdio: Fix problem with popen() declaration on OSF/1 5.1.
21294         * lib/stdio.in.h: During the include_next statement, let recursive
21295         includes of this file include only the system header file.
21296
21297 2010-12-19  Bruno Haible  <bruno@clisp.org>
21298
21299         iconv_open: Fix regression from 2010-12-04.
21300         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
21301         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
21302
21303 2010-12-19  Bruno Haible  <bruno@clisp.org>
21304
21305         stdbool test: Avoid a gcc warning.
21306         * tests/test-stdbool.c (main): Fail if e1 is false.
21307         Reported by Jim Meyering.
21308
21309 2010-12-19  Jim Meyering  <meyering@redhat.com>
21310
21311         setenv: restore to working order
21312         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
21313         mistakenly removed.
21314         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
21315         HAVE_SETENV.
21316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
21317         HAVE_SETENV.
21318
21319 2010-12-19  Bruno Haible  <bruno@clisp.org>
21320
21321         Document some different function declarations on OSF/1 5.1.
21322         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
21323         * doc/posix-functions/inet_ntop.texi: Likewise.
21324         * doc/posix-functions/gethostname.texi: Likewise.
21325         * lib/unistd.in.h (gethostname): Update comment.
21326
21327 2010-12-19  Bruno Haible  <bruno@clisp.org>
21328
21329         doc: Mention vasprintf-posix module.
21330         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
21331         the 'vasprintf-posix' module.
21332         * doc/glibc-functions/vasprintf.texi: Likewise.
21333
21334 2010-12-19  Bruno Haible  <bruno@clisp.org>
21335
21336         unsetenv: Add missing declaration on OSF/1 5.1.
21337         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
21338         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
21339         Don't set HAVE_UNSETENV. In the test program, set _BSD.
21340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
21341         not HAVE_UNSETENV.
21342         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
21343         HAVE_UNSETENV.
21344         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
21345
21346 2010-12-19  Bruno Haible  <bruno@clisp.org>
21347
21348         setenv: Add missing declaration on OSF/1 5.1.
21349         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
21350         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
21351         declared. Don't set HAVE_SETENV.
21352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
21353         not HAVE_SETENV.
21354         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
21355         HAVE_SETENV.
21356         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
21357
21358 2010-12-19  Bruno Haible  <bruno@clisp.org>
21359
21360         nl_langinfo tests: Avoid gcc warning.
21361         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
21362
21363 2010-12-19  Bruno Haible  <bruno@clisp.org>
21364
21365         mknod: Avoid error in C++ mode on OSF/1 with GCC.
21366         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
21367         _GL_CXXALIAS_SYS.
21368
21369 2010-12-19  Bruno Haible  <bruno@clisp.org>
21370
21371         stdbool: Relax test.
21372         * tests/test-stdbool.c (e): Don't require that casts from a variable's
21373         address to 'bool' work in static initializer, for compilers other than
21374         GCC.
21375
21376 2010-12-19  Bruno Haible  <bruno@clisp.org>
21377
21378         ftello: Add missing declaration on OSF/1 5.1.
21379         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
21380         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
21381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
21382         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
21383         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
21384
21385 2010-12-19  Bruno Haible  <bruno@clisp.org>
21386
21387         fseeko: Add missing declaration on OSF/1 5.1.
21388         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
21389         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
21390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
21391         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
21392         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
21393
21394 2010-12-19  Bruno Haible  <bruno@clisp.org>
21395
21396         fchdir: Add missing declaration on OSF/1 5.1.
21397         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
21398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
21399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
21400         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
21401         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
21402
21403 2010-12-19  Bruno Haible  <bruno@clisp.org>
21404
21405         relocatable-prog-wrapper: Separate from relocatable-prog.
21406         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
21407         uninstall-relocwrapper rule here.
21408         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
21409         Reported by Ian Beckwith <ianb@erislabs.net>.
21410
21411 2010-12-19  Bruno Haible  <bruno@clisp.org>
21412
21413         unistr/u8-mbsnlen: Add missing dependency.
21414         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
21415         Reported by Ian Beckwith <ianb@erislabs.net>.
21416
21417 2010-12-19  Bruno Haible  <bruno@clisp.org>
21418
21419         iconv: Make it possible again to use this module without 'iconv-h'.
21420         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
21421         if it is not defined.
21422         Reported by Ian Beckwith <ianb@erislabs.net>.
21423
21424 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21425
21426         acl: port to Solaris 8 when copying from tmpfs to ufs
21427         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
21428         error number.  Problem observed on Solaris 8 with latest
21429         coreutils, with "mv A B", where A is on a tmpfs file system and B
21430         is on a ufs file system.  This caused coreutils' mv/part-symlink
21431         test to fail.
21432
21433         tests: set fail=0 at start
21434         * tests/init.sh (setup_): Move fail=0 initialization here ...
21435         (mktempd_): ... from here, so that tests can rely on fail being
21436         set to 0 initially.  This fixes a problem in coreutils; see:
21437         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
21438
21439 2010-12-18  Bruno Haible  <bruno@clisp.org>
21440
21441         memmem-simple: Stylistic changes.
21442         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
21443         Fix preprocessor directive indentation.
21444
21445 2010-12-15  Pádraig Brady <P@draigBrady.com>
21446
21447         memmem, memmem-simple: reorganize and expand empty needle check
21448         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
21449         functional checks to memmem-simple so that one has a fully functional
21450         memmem by using just this module.
21451         Restrict the performance only check to the memmem module.
21452         Also expand the empty needle check to ensure the correct
21453         pointer is returned, not just a non NULL pointer.
21454         * doc/glibc-functions/memmem.texi: Rearrange the portability
21455         documentation to correlate with the rearranged checks.
21456         Clarify exactly how the memmem and memmem-simple modules
21457         relate to each other.
21458
21459 2010-12-15  Pádraig Brady <P@draigBrady.com>
21460             Bruno Haible  <bruno@clisp.org>
21461
21462         Improve cross-compilation guesses for uClibc.
21463         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
21464         that uClibc does not have the glibc bug.
21465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
21466         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
21467
21468 2010-12-14  Eric Blake  <eblake@redhat.com>
21469
21470         configmake: provide fallbacks for oldest supported autotools
21471         * m4/configmake.m4: New file.
21472         * modules/configmake (Files): Ship it.
21473         (configure.ac): Use it to guarantee fallbacks.
21474
21475 2010-12-13  Pádraig Brady <P@draigBrady.com>
21476
21477         read-file: Improve handling of large files
21478         * lib/read-file.c (fread_file): Minimize realloc()s
21479         for regular files, and better manage sizes around SIZE_MAX.
21480
21481 2010-12-13  Eric Blake  <eblake@redhat.com>
21482
21483         cloexec, fcntl: relax license
21484         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
21485         consent from all contributors.
21486         * modules/fcntl (License): Likewise.
21487
21488 2010-12-10  Bruno Haible  <bruno@clisp.org>
21489
21490         Tests for module 'pipe-posix'.
21491         * modules/pipe-posix-tests: New file.
21492         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
21493
21494 2010-12-10  Bruno Haible  <bruno@clisp.org>
21495
21496         pipe-posix: Make it work in C++ mode.
21497         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
21498         (pipe): Use common idiom, not a macro definition.
21499         * lib/pipe.c: New file.
21500         * m4/pipe.m4: New file.
21501         * modules/pipe-posix (Description): Enhance.
21502         (Files): Add lib/pipe.c, m4/pipe.m4.
21503         (configure.ac): Invoke gl_FUNC_PIPE.
21504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
21505         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
21506         * tests/test-unistd-c++.cc: Check the signature of pipe.
21507
21508 2010-12-10  Bruno Haible  <bruno@clisp.org>
21509
21510         Rename module 'pipe' to 'spawn-pipe'.
21511         * modules/spawn-pipe: New file, renamed from modules/pipe.
21512         (Files, configure.ac, Makefile.am): Update.
21513         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
21514         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
21515         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
21516         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
21517         "spawn-pipe.h" instead of "pipe.h".
21518         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
21519         to gl_SPAWN_PIPE.
21520         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
21521         (Files, Makefile.am): Update.
21522         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
21523         Update.
21524         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
21525         Include "spawn-pipe.h" instead of "pipe.h".
21526         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
21527         * lib/javacomp.c: Likewise.
21528         * lib/javaversion.c: Likewise.
21529         * lib/pipe-filter-gi.c: Likewise.
21530         * lib/pipe-filter-ii.c: Likewise.
21531         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
21532         * modules/javacomp (Depends-on): Likewise.
21533         * modules/javaversion (Depends-on): Likewise.
21534         * modules/pipe-filter-gi (Depends-on): Likewise.
21535         * modules/pipe-filter-ii (Depends-on): Likewise.
21536         * MODULES.html.sh (Executing programs): Update.
21537         * NEWS: Mention the change.
21538
21539 2010-12-10  Eric Blake  <eblake@redhat.com>
21540
21541         pipe-posix: new module
21542         * modules/pipe-posix: New file.
21543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
21544         (gl_UNISTD_H): Check for declaration.
21545         * modules/unistd (Makefile.am): Substitute it.
21546         * lib/unistd.in.h (pipe): Provide it for mingw.
21547         * doc/posix-functions/pipe.texi (pipe): Update documentation.
21548         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
21549
21550 2010-12-07  Bruno Haible  <bruno@clisp.org>
21551
21552         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
21553         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
21554         u8_strcmp_gnu.
21555         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
21556
21557 2010-12-06  Bruno Haible  <bruno@clisp.org>
21558
21559         Update internal documentation.
21560         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
21561
21562 2010-12-04  Bruno Haible  <bruno@clisp.org>
21563
21564         Put more information about failed tests into the test return codes.
21565         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
21566         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
21567         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21568         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21569         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
21570         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21571         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21572         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21573         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
21574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21575         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
21576         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21577         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21578         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21579         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
21580         returns a bit mask.
21581         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21582         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
21583         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
21584         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21585         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21586         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21587         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21588         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21589         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21590         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21591         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21592         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21593         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21594         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21595         * m4/link.m4 (gl_FUNC_LINK): Likewise.
21596         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
21597         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
21598         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
21599         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21600         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
21601         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21602         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21603         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21604         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21605         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21606         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21607         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21608         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21609         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21610         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
21611         gl_PRINTF_PRECISION): Likewise.
21612         * m4/regex.m4 (gl_REGEX): Likewise.
21613         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21614         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21615         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
21616         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21617         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21618         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21619         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21620         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
21621         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21622         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21623         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
21624         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21625         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21626         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21627         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21628         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21629         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21630         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21631         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21632         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
21633         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
21634         enumerated value.
21635         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
21636
21637 2010-12-04  Bruno Haible  <bruno@clisp.org>
21638
21639         Update for Solaris 11 2010-11.
21640         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
21641         Express, released in November 2010.
21642
21643 2010-12-04  Bruno Haible  <bruno@clisp.org>
21644
21645         nproc: Relax license.
21646         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
21647         and Paul Eggert.
21648         Requested by Ludovic Courtès <ludo@gnu.org>.
21649
21650 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
21651
21652         utimecmp: fine-grained src to nearby coarse-grained dest
21653
21654         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
21655         and the source is on a file system with higher-resolution time
21656         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
21657         not work, and the time stamps are close together, the algorithm to
21658         determine the exact resolution from the read-back mtime was buggy:
21659         it had a "!=" where it should have had an "==".  This bug has been
21660         in the code ever since it was introduced to gnulib.
21661         Problem reported by Dan Jacobson in
21662         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
21663
21664 2010-11-30  Bruno Haible  <bruno@clisp.org>
21665
21666         strerror_r-posix: Fix autoconf test.
21667         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
21668
21669 2010-11-28  Bruno Haible  <bruno@clisp.org>
21670             Paul Eggert  <eggert@cs.ucla.edu>
21671
21672         Tests for module 'getdomainname'.
21673         * modules/getdomainname-tests: New file.
21674         * tests/test-getdomainname.c: New file, based on
21675         tests/test-gethostname.c.
21676
21677 2010-11-28  Bruno Haible  <bruno@clisp.org>
21678             Paul Eggert  <eggert@cs.ucla.edu>
21679
21680         getdomainname: Use the system function when possible.
21681         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
21682         (getdomainname): Replace if needed. Provide the declaration if it is
21683         missing. Don't use _GL_CXXALIAS_SYS_CAST.
21684         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
21685         (getdomainname): When the system has getdomainname, call the system
21686         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
21687         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21688         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
21689         found in libnsl. Look for the declaration also in <netdb.h>. Replace
21690         the function if its second argument is of type 'int' or if it is found
21691         in libnsl.
21692         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
21693         <sys/systeminfo.h> and sysinfo().
21694         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
21695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21696         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
21697         HAVE_GETDOMAINNAME.
21698         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
21699         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
21700         * doc/glibc-functions/getdomainname.texi: Document the problems with
21701         the getdomainname declaration.
21702
21703 2010-11-28  Bruno Haible  <bruno@clisp.org>
21704
21705         sys_socket: Ensure ss_family field on AIX.
21706         * lib/sys_socket.in.h (ss_family): New macro definition.
21707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
21708         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
21709         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21710         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21711         * modules/sys_socket (Makefile.am): Substitute
21712         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
21713         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
21714
21715 2010-11-27  Bruno Haible  <bruno@clisp.org>
21716
21717         readline: Improve configure output.
21718         * m4/readline.m4 (gl_FUNC_READLINE): Make the
21719         "checking for readline..." result understandable.
21720
21721 2010-11-27  Bruno Haible  <bruno@clisp.org>
21722
21723         *printf-posix: Detect a bug on Solaris 10/x86.
21724         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
21725         for floating-point output.
21726         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
21727         directive.
21728         * tests/test-snprintf-posix.h (test_function): Likewise.
21729         * tests/test-sprintf-posix.h (test_function): Likewise.
21730         * tests/test-vasprintf-posix.c (test_function): Likewise.
21731         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
21732         * doc/posix-functions/printf.texi: Likewise.
21733         * doc/posix-functions/snprintf.texi: Likewise.
21734         * doc/posix-functions/sprintf.texi: Likewise.
21735         * doc/posix-functions/vfprintf.texi: Likewise.
21736         * doc/posix-functions/vprintf.texi: Likewise.
21737         * doc/posix-functions/vsnprintf.texi: Likewise.
21738         * doc/posix-functions/vsprintf.texi: Likewise.
21739         * doc/glibc-functions/obstack_printf.texi: Likewise.
21740         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21741
21742 2010-11-27  Bruno Haible  <bruno@clisp.org>
21743
21744         Fix link error when module libunistring-optional is in use.
21745         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
21746         * modules/striconveha-tests (Makefile.am): Likewise.
21747
21748 2010-11-27  Bruno Haible  <bruno@clisp.org>
21749
21750         regex: Mention link dependencies.
21751         * modules/regex (Link): New section.
21752         * modules/rpmatch (Link): Likewise.
21753         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
21754
21755 2010-11-27  Bruno Haible  <bruno@clisp.org>
21756
21757         ftoastr: Fix compilation error on Solaris.
21758         * lib/ftoastr.c: Include <config.h>.
21759
21760 2010-11-27  Bruno Haible  <bruno@clisp.org>
21761
21762         getloadavg: Update documentation.
21763         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
21764
21765 2010-11-27  Bruno Haible  <bruno@clisp.org>
21766
21767         sys_socket: Fix test whether the functions are declared.
21768         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
21769         not <sys/select.h>.
21770
21771 2010-11-27  Bruno Haible  <bruno@clisp.org>
21772
21773         getpass: Make sure to get system declaration on some platforms.
21774         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
21775         gl_USE_SYSTEM_EXTENSIONS.
21776         * modules/getpass (Depends-on): Add extensions.
21777
21778 2010-11-26  Bruno Haible  <bruno@clisp.org>
21779
21780         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
21781         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
21782         'iconv' module is present.
21783         (ICONV_CONST): New macro.
21784         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
21785         ICONV_CONST.
21786         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
21787         set ICONV_CONST.
21788         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
21789         here.
21790         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
21791         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
21792         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
21793         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
21794         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
21795         present.
21796
21797 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
21798
21799         ftoastr: comment fix
21800         * lib/ftoastr.c: "little" -> "little or no" in comment
21801
21802 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21803
21804         stdint: port to GCC 4.3 + OSX + Octave
21805         On this platform, stdint.h is buggy and defines int64_t to long
21806         long int.  The replacement defined it to long int, causing
21807         problems with C++ style name mangling.  Instead, trust the system
21808         definition if INT64_MAX is defined, and likewise for the unsigned
21809         variant.   Problem reported by Jarno Rajahalme in
21810         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
21811         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
21812         and don't mess with int64_t and INT64_MAX in this case.
21813         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
21814
21815 2010-11-24  Bruno Haible  <bruno@clisp.org>
21816
21817         doc: Corrections regarding MacOS X 10.4 and 10.5.
21818         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
21819         MacOS X.
21820         Reported by Simon Josefsson.
21821
21822 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
21823
21824         Uninstall ".bin" files installed by relocwrapper.
21825         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
21826         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
21827         unless it is already there.
21828
21829 2010-11-21  Bruno Haible  <bruno@clisp.org>
21830
21831         Update for NetBSD 5.0.
21832         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21833         NetBSD; the test fails on NetBSD 5.0.
21834         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21835         about NetBSD.
21836
21837 2010-11-21  Bruno Haible  <bruno@clisp.org>
21838
21839         Update for HP-UX 11.23 and HP-UX 11.31.
21840         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
21841         HP-UX.
21842
21843 2010-11-21  Bruno Haible  <bruno@clisp.org>
21844
21845         Update for MacOS X 10.5.
21846         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
21847         MacOS X; the test fails on MacOS X 10.5.8.
21848         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
21849         about MacOS X.
21850
21851 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
21852
21853         bootstrap: add bootstrap_sync option.
21854         See discussion at
21855         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
21856         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
21857         * build-aux/bootstrap: Accept --bootstrap-sync to update
21858         bootstrap if it is not identical to the local gnulib's
21859         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
21860         enable this by default.  Accept --no-bootstrap-sync to disable
21861         it.
21862
21863 2010-11-20  Bruno Haible  <bruno@clisp.org>
21864
21865         Ensure that <features.h> is included before __GLIBC__ is tested.
21866         * lib/printf-parse.h: Include <features.h>.
21867         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
21868         Reported by Mike Frysinger <vapier@gentoo.org>.
21869
21870         Ensure that <features.h> is included before __GLIBC__ is tested.
21871         * lib/wchar.in.h: Include <features.h>.
21872         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
21873         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
21874         Reported by Mike Frysinger <vapier@gentoo.org>.
21875
21876         Ensure that <features.h> is included before __GLIBC__ is tested.
21877         * lib/arpa_inet.in.h: Include <features.h>.
21878         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
21879         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
21880         Reported by Mike Frysinger <vapier@gentoo.org>.
21881
21882         Ensure that <features.h> is included before __GLIBC__ is tested.
21883         * build-aux/link-warning.h: Include <features.h>.
21884         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
21885         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
21886         Reported by Mike Frysinger <vapier@gentoo.org>.
21887
21888         Ensure that <features.h> is included before __GLIBC__ is tested.
21889         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
21890         Reported by Mike Frysinger <vapier@gentoo.org>.
21891
21892 2010-11-20  Bruno Haible  <bruno@clisp.org>
21893
21894         memmem: Fix autoconf test.
21895         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
21896
21897 2010-11-20  Bruno Haible  <bruno@clisp.org>
21898
21899         Port to uClibc.
21900         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
21901         * lib/fcntl.in.h: Likewise.
21902         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
21903         * lib/mbrtowc.c (mbrtowc): Likewise.
21904         * lib/relocatable.c (find_shared_library_fullname): Likewise.
21905         * lib/strerror_r.c: Likewise.
21906         * lib/unistr/u8-strnlen.c: Likewise.
21907         * lib/vasnprintf.c (decimal_point_char): Likewise.
21908         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21909         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21910         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
21911         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21912         * tests/test-sigaction.c (handler, main): Likewise.
21913         * lib/freading.h: Treat uClibc like a non-glibc platform.
21914         * lib/freading.c: Likewise.
21915         * lib/gettext.h: Likewise.
21916         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
21917         Likewise.
21918         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
21919         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
21920         * lib/propername.c (proper_name_utf8): Likewise.
21921         * lib/spawn.in.h: Likewise.
21922         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
21923         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
21924         mem_cd_iconveh_internal): Likewise.
21925         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
21926         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
21927         strstr, strcasestr): Likewise.
21928         * lib/unicodeio.c (unicode_to_mb): Likewise.
21929         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
21930         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
21931         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
21932         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
21933         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
21934         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
21935         * lib/unistr/u8-stpncpy.c: Likewise.
21936         * lib/vasnprintf.c (VASNPRINTF): Likewise.
21937         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
21938         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21939         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21940         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21941         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
21942         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
21943         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
21944         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
21945         Likewise.
21946         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21947         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21948         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21949         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21950         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21951         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21952         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21953         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21954         * tests/test-getopt.h (OPTIND_MIN): Likewise.
21955         * tests/test-striconveha.c (main): Likewise.
21956         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21957         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
21958         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
21959         * doc/posix-functions/getline.texi: Likewise.
21960         Reported by Mike Frysinger <vapier@gentoo.org>.
21961
21962 2010-11-20  Bruno Haible  <bruno@clisp.org>
21963
21964         nproc: Fix condition.
21965         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
21966         HAVE_PTHREAD_AFFINITY_NP.
21967
21968 2010-11-20  Bruno Haible  <bruno@clisp.org>
21969
21970         Fix a comment.
21971         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
21972
21973 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
21974
21975         ftoastr: don't assume snprintf
21976         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
21977         Implement a subset of snprintf here, by using sprintf safely.
21978         * modules/ftoastr (Depends-on): Remove snprintf.
21979
21980 2010-11-19  Jim Meyering  <meyering@redhat.com>
21981
21982         test-rename.h: fix compilation failure
21983         * tests/test-rename.h (test_rename): Add omitted "}".
21984
21985 2010-11-17  Jim Meyering  <meyering@redhat.com>
21986
21987         maint.mk: add a URL discussing the no-@acronym policy
21988         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
21989
21990 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
21991
21992         ftoastr: depend on snprintf, improve comments
21993         * lib/ftoastr.c: Also mention Loitsch's draft.
21994         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
21995         needed in the current implementation, but it might simplify
21996         speeding up the code later.
21997         * modules/ftoastr: Depend on snprintf; this improves portability.
21998         Suggested by Bruno Haible in the same email.
21999
22000         ftoastr: port to hosts lacking strtof and strtold
22001         Problem reported by Bruno Haible in
22002         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
22003         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
22004         environment and strtold (and presumably strtof) are not available.
22005         * modules/ftoastr (Files): Add m4/c-strtod.m4.
22006         (configure.ac): Require gl_C99_STRTOLD.
22007
22008 2010-11-18  Bruno Haible  <bruno@clisp.org>
22009
22010         c-strtold: Avoid link error on AIX 7.
22011         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
22012         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
22013         (gl_C_STRTOLD): Test whether strtold_l exists.
22014         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22015
22016 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22017
22018         intprops: new macro INT_BITS_STRLEN_BOUND
22019         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
22020         ftoastr.h.  This exposes an internal of intprops.h that was formerly
22021         not exposed.  Also, it uses a slightly tighter bound than before;
22022         though this makes no practical difference, we might as well be as
22023         tight as we easily can.
22024
22025         ftoastr: new module, for lossless conversion of floats to short strings
22026         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
22027         * modules/ftoastr: New files.
22028
22029 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
22030
22031         bootstrap: port to Solaris sed
22032         * build-aux/bootstrap (get_version): Port to Solaris sed.
22033         See Ralf Wildenhues's note in
22034         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
22035
22036 2010-11-14  Jim Meyering  <meyering@redhat.com>
22037
22038         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
22039         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
22040         and move definition closer to sole use.
22041
22042 2010-11-13  Jim Meyering  <meyering@redhat.com>
22043
22044         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
22045         Now we require at least autoconf-2.59, which means the work-around
22046         is no longer needed.
22047         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
22048         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22049         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22050         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22051         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22052
22053 2010-11-13  Bruno Haible  <bruno@clisp.org>
22054
22055         rename, renameat: Avoid test failures at NFS mounted locations.
22056         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
22057         functions.
22058         (test_rename): Use assert_nonexistent.
22059         * tests/test-rename.c: Include <dirent.h>.
22060         * tests/test-renameat.c: Likewise.
22061         Reported by Gary V. Vaughan <gary@gnu.org>.
22062
22063         rename, renameat: Document Linux bug with NFS
22064         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
22065         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
22066         * doc/posix-functions/renameat.texi: Likewise.
22067         Suggested by Eric Blake.
22068
22069 2010-11-13  Bruno Haible  <bruno@clisp.org>
22070
22071         rename test: Add comments.
22072         * tests/test-rename.h (test_rename): Add structure and comments.
22073
22074 2010-11-13  Eric Blake  <eblake@redhat.com>
22075
22076         maintainer-makefile: cover a few more files
22077         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
22078         scripts generated within C files, for libvirt.
22079
22080 2010-11-13  Bruno Haible  <bruno@clisp.org>
22081
22082         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
22083         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
22084         character, return the number of bytes that belong together, not always
22085         1.
22086         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22087         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22088         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22089         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
22090         number of bytes of an invalid character.
22091         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
22092         (main): Invoke it.
22093         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
22094         results.
22095         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
22096         malformed byte sequences.
22097         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
22098         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
22099         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
22100         Reported by Ben Pfaff and Paolo Bonzini.
22101
22102 2010-11-13  Bruno Haible  <bruno@clisp.org>
22103
22104         openat: Work around glibc bug with fchownat() and empty file names.
22105         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
22106         (gl_FUNC_FCHOWNAT): Invoke it.
22107         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
22108         * doc/posix-functions/fchownat.texi: Document the glibc bug.
22109         Reported by Gary V. Vaughan <gary@gnu.org>.
22110
22111 2010-11-13  Bruno Haible  <bruno@clisp.org>
22112
22113         openat: Ensure autoconf macro ordering.
22114         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
22115         gl_USE_SYSTEM_EXTENSIONS.
22116         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
22117
22118 2010-11-13  Bruno Haible  <bruno@clisp.org>
22119
22120         Update comments.
22121         * lib/unistr/u8-check.c: Update file name in comments.
22122         * lib/unistr/u8-mblen.c: Likewise.
22123         * lib/unistr/u8-prev.c: Likewise.
22124         * lib/unistr/u8-strmblen.c: Likewise.
22125         * lib/unistr/u8-strmbtouc.c: Likewise.
22126
22127 2010-11-13  Jim Meyering  <meyering@redhat.com>
22128
22129         tests: avoid test failure on Solaris 10 due to lack of PATH export
22130         * tests/test-update-copyright.sh: Don't forget to export PATH.
22131
22132         init.sh: ensure that IFS is defined, just in case...
22133         * tests/init.sh (setup_): Ensure that IFS is defined,
22134         so that saving and restoring it works as expected.  This
22135         appears to be useful at least for an old version of dash
22136         from a long time ago (RH 6).  See here for details:
22137         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
22138
22139         maint.mk: tighten "test a == b" check
22140         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
22141         test to files that contain something like #!/bin/sh.
22142         Without this, coreutils would get two false positives in
22143         the comments of C source files.
22144
22145 2010-11-12  Eric Blake  <eblake@redhat.com>
22146
22147         bootstrap: fix typo in previous attempt
22148         * build-aux/bootstrap (buildreq): Correct the grouping.
22149         Reported by Paul Eggert.
22150
22151         maintainer-makefile: prohibit test x == x
22152         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
22153         Based on a report by Matthias Bolte.
22154
22155         bootstrap: allow FreeBSD gzip
22156         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
22157         which has no '.' and goes to stderr.
22158         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
22159         Reported by Matthias Bolte.
22160
22161         maintainer-makefile: check for i18n setup
22162         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
22163         will likely work.
22164
22165 2010-11-12  Bruno Haible  <bruno@clisp.org>
22166
22167         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
22168         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
22169         * lib/nanosleep.c (nanosleep): Likewise.
22170
22171 2010-11-11  Bruno Haible  <bruno@clisp.org>
22172
22173         fcntl-h: Fix for use of C++ on glibc systems.
22174         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22175         also on glibc systems in C++ mode.
22176         Reported by Gary V. Vaughan <gary@gnu.org>.
22177
22178 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22179
22180         mknod: avoid false failure with dash
22181         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
22182
22183 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22184
22185         unlink: Fix "is it should" typo in diagnostic.
22186         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
22187         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
22188
22189 2010-11-11  Bruno Haible  <bruno@clisp.org>
22190
22191         Tests for module 'strerror_r-posix'.
22192         * modules/strerror_r-posix-tests: New file.
22193         * tests/test-strerror_r.c: New file.
22194         * tests/test-string-c++.cc: Check the signature of strerror_r.
22195
22196         New module 'strerror_r-posix'.
22197         * lib/string.in.h (strerror_r): New declaration.
22198         * lib/strerror_r.c: New file.
22199         * m4/strerror_r.m4: New file.
22200         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
22201         of strerror_r.
22202         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
22203         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22204         * modules/strerror_r-posix: New file.
22205         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
22206         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22207         * doc/posix-functions/strerror_r.texi: Mention the new module and the
22208         portability problems.
22209
22210 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
22211
22212         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
22213         line is also considered for output. Quoted function name in shell
22214         command, so temporary files for functions like MyClass::operator()
22215         are removed correctly without errors.
22216
22217 2010-11-09  Bruno Haible  <bruno@clisp.org>
22218
22219         * doc/posix-functions/strerror.texi: List more failing platforms.
22220
22221         * doc/posix-functions/strerror.texi: Add a comment.
22222
22223 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
22224
22225         fdopendir: fix bug on MacOS X when low on file descriptors
22226
22227         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
22228         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
22229         All callers changed.
22230         (fdopendir): Invoke save_cwd at the top level, not after using
22231         multiple dup() calls to use up file descriptors.  Then retry
22232         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
22233         less than the maximum number of open file descriptors, because
22234         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
22235         on Mac OS X 10.6.4 for tar 1.24
22236         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
22237         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
22238         and for tar 1.25
22239         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
22240
22241 2010-11-07  Bruno Haible  <bruno@clisp.org>
22242
22243         vasnprintf: Support I flag on glibc systems.
22244         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
22245         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
22246         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
22247         snprintf function.
22248         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
22249         glibc systems.
22250         * tests/test-vasnprintf-posix3.c: New file.
22251         * modules/vasnprintf-posix-tests (Files): Add it.
22252         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
22253
22254 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22255
22256         [html] Fix copy/paste bug: Use unique name for compiler warnings.
22257         * MODULES.html.sh: For compiler warnings, use name
22258         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
22259
22260 2010-11-05  Eric Blake  <eblake@redhat.com>
22261
22262         ceil, floor: avoid spurious failure with icc
22263         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
22264         [denormals-as-zero] when optimizing without -mieee-fp option.
22265         * tests/test-floorf2.c (floorf_reference): Likewise.
22266         * tests/test-ceilf1.c (dummy): New function.
22267         (main): Use it to outsmart icc's optimization.
22268         * tests/test-floorf1.c (dummy, main): Likewise.
22269
22270         tests: require working signbit
22271         * modules/ceilf-tests (Depends-on): Add signbit.
22272         * modules/ceill-tests (Depends-on): Likewise.
22273         * modules/floorf-tests (Depends-on): Likewise.
22274         * modules/floorl-tests (Depends-on): Likewise.
22275         * modules/round-tests (Depends-on): Likewise.
22276         * modules/roundf-tests (Depends-on): Likewise.
22277         * modules/roundl-tests (Depends-on): Likewise.
22278         * modules/trunc-tests (Depends-on): Likewise.
22279         * modules/truncf-tests (Depends-on): Likewise.
22280         * modules/truncl-tests (Depends-on): Likewise.
22281
22282         strtod: work around icc bug
22283         * lib/strtod.c (minus_zero): Define to working value.
22284         (strtod): Use it to avoid icc bug.
22285
22286         copysign: enhance tests
22287         * modules/copysign-tests (Files): Add minus-zero.h.
22288         * tests/test-copysign.c (main): Also test zeros.
22289
22290 2010-11-04  Eric Blake  <eblake@redhat.com>
22291
22292         ceil, floor, round, trunc: enhance tests of -0
22293         * tests/test-ceilf1.c (main): Ensure correct sign of result.
22294         * tests/test-ceill.c (main): Likewise.
22295         * tests/test-floorf1.c (main): Likewise.
22296         * tests/test-floorl.c (main): Likewise.
22297         * tests/test-round1.c (main): Likewise.
22298         * tests/test-roundf1.c (main): Likewise.
22299         * tests/test-roundl.c (main): Likewise.
22300         * tests/test-trunc1.c (main): Likewise.
22301         * tests/test-truncf1.c (main): Likewise.
22302         * tests/test-truncl.c (main): Likewise.
22303
22304 2010-11-04  Eric Blake  <eblake@redhat.com>
22305
22306         frexp, tests: work around ICC bug with -zero
22307         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
22308         works with more compilers.
22309         * tests/minus-zero.h: New file.
22310         * modules/ceilf-tests (Files): Include it.
22311         * modules/ceill-tests (Files): Likewise.
22312         * modules/floorf-tests (Files): Likewise.
22313         * modules/floorl-tests (Files): Likewise.
22314         * modules/frexp-nolibm-tests (Files): Likewise.
22315         * modules/frexp-tests (Files): Likewise.
22316         * modules/frexpl-nolibm-tests (Files): Likewise.
22317         * modules/frexpl-tests (Files): Likewise.
22318         * modules/isnan-tests (Files): Likewise.
22319         * modules/isnand-nolibm-tests (Files): Likewise.
22320         * modules/isnand-tests (Files): Likewise.
22321         * modules/isnanf-nolibm-tests (Files): Likewise.
22322         * modules/isnanf-tests (Files): Likewise.
22323         * modules/isnanl-nolibm-tests (Files): Likewise.
22324         * modules/isnanl-tests (Files): Likewise.
22325         * modules/round-tests (Files): Likewise.
22326         * modules/roundf-tests (Files): Likewise.
22327         * modules/roundl-tests (Files): Likewise.
22328         * modules/ldexpl-tests (Files): Likewise.
22329         * modules/signbit-tests (Files): Likewise.
22330         * modules/snprintf-posix-tests (Files): Likewise.
22331         * modules/sprintf-posix-tests (Files): Likewise.
22332         * modules/strtod-tests (Files): Likewise.
22333         * modules/trunc-tests (Files): Likewise.
22334         * modules/truncf-tests (Files): Likewise.
22335         * modules/truncl-tests (Files): Likewise.
22336         * modules/vsnprintf-posix-tests (Files): Likewise.
22337         * modules/vsprintf-posix-tests (Files): Likewise.
22338         * modules/vasnprintf-posix-tests (Files): Likewise.
22339         * modules/vasprintf-posix-tests (Files): Likewise.
22340         * tests/test-ceilf1.c (main): Use it.
22341         * tests/test-ceill.c (main): Likewise.
22342         * tests/test-floorf1.c (main): Likewise.
22343         * tests/test-floorl.c (main): Likewise.
22344         * tests/test-frexp.c (main): Likewise.
22345         * tests/test-frexpl.c (main): Likewise.
22346         * tests/test-isnan.c (main): Likewise.
22347         * tests/test-isnand.h (main): Likewise.
22348         * tests/test-isnanf.h (main): Likewise.
22349         * tests/test-isnanl.h (main): Likewise.
22350         * tests/test-ldexpl.c (main): Likewise.
22351         * tests/test-round.c (main): Likewise.
22352         * tests/test-roundf.c (main): Likewise.
22353         * tests/test-roundl.c (main): Likewise.
22354         * tests/test-signbit.c (test_signbitf, test_signbitd)
22355         (test_signbitl): Likewise.
22356         * tests/test-snprintf-posix.h (test_function): Likewise.
22357         * tests/test-sprintf-posix.h (test_function): Likewise.
22358         * tests/test-strtod.c (main): Likewise.
22359         * tests/test-trunc1.c (main): Likewise.
22360         * tests/test-truncf1.c (main): Likewise.
22361         * tests/test-truncl.c (main): Likewise.
22362
22363         isnanl: work around icc bug
22364         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
22365
22366 2010-11-03  Eric Blake  <eblake@redhat.com>
22367
22368         tests: fix compiler warnings
22369         * tests/test-getopt.h (test_getopt): Fix condition.
22370         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22371         * tests/test-pipe2.c (main): Likewise.
22372         * tests/test-quotearg-simple.c (main): Avoid icc warning.
22373
22374         utimens: fix broken m4 test
22375         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
22376
22377 2010-10-28  Bruno Haible  <bruno@clisp.org>
22378
22379         posix_spawn*, getdtablesize: Relax license.
22380         * modules/posix_spawn (License): Change to LGPLv2+.
22381         * modules/posix_spawnp (License): Likewise.
22382         * modules/posix_spawn-internal (License): Likewise.
22383         * modules/posix_spawnattr_init (License): Likewise.
22384         * modules/posix_spawnattr_getflags (License): Likewise.
22385         * modules/posix_spawnattr_setflags (License): Likewise.
22386         * modules/posix_spawnattr_getpgroup (License): Likewise.
22387         * modules/posix_spawnattr_setpgroup (License): Likewise.
22388         * modules/posix_spawnattr_getschedparam (License): Likewise.
22389         * modules/posix_spawnattr_setschedparam (License): Likewise.
22390         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
22391         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
22392         * modules/posix_spawnattr_getsigdefault (License): Likewise.
22393         * modules/posix_spawnattr_setsigdefault (License): Likewise.
22394         * modules/posix_spawnattr_getsigmask (License): Likewise.
22395         * modules/posix_spawnattr_setsigmask (License): Likewise.
22396         * modules/posix_spawnattr_destroy (License): Likewise.
22397         * modules/posix_spawn_file_actions_init (License): Likewise.
22398         * modules/posix_spawn_file_actions_addclose (License): Likewise.
22399         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
22400         * modules/posix_spawn_file_actions_addopen (License): Likewise.
22401         * modules/posix_spawn_file_actions_destroy (License): Likewise.
22402         * modules/getdtablesize (License): Likewise.
22403         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
22404
22405 2010-10-26  Bruno Haible  <bruno@clisp.org>
22406
22407         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
22408         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
22409         Cygwin and mingw.
22410         Suggested by Eric Blake.
22411
22412 2010-10-26  Bruno Haible  <bruno@clisp.org>
22413
22414         stdio: Work around compilation error due to renameat() on Solaris 10.
22415         * lib/stdio.in.h: Include <unistd.h> on Solaris.
22416         * lib/renameat.c: Don't include <unistd.h> here.
22417         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
22418         Reported by Paul Eggert and Eric Blake.
22419
22420 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22421
22422         renameat: port to Solaris 10, which declares renameat in unistd.h
22423
22424         * lib/renameat.c: Include unistd.h before stdio.h, because
22425         Solaris 10 declares renameat in unistd.h.  Problem encountered
22426         when building GNU tar 1.24 on Solaris 10.
22427
22428 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22429
22430         fdopendir: fix C89 compilation
22431         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
22432         compilers.
22433
22434 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
22435
22436         inttostr: simplify by removing unnecessary redundancy
22437         * lib/anytostr.c: Don't include verify.h.
22438         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
22439         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
22440         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
22441         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
22442         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
22443         Likewise.
22444         * modules/inttostr (Depends-on): Remove 'verify'.
22445
22446 2010-10-23  Bruno Haible  <bruno@clisp.org>
22447
22448         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
22449         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
22450         Reported by Eric Blake.
22451
22452 2010-10-23  Bruno Haible  <bruno@clisp.org>
22453
22454         Tests: Fix LOCALE_JA on MirBSD 10.
22455         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
22456         to an UTF-8 locale.
22457         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
22458         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22459         Reported by Eric Blake.
22460
22461 2010-10-21  Bruno Haible  <bruno@clisp.org>
22462
22463         nl_langinfo test: Avoid test failure on NetBSD 5.
22464         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
22465         Reported by Eric Blake.
22466
22467 2010-10-21  Eric Blake  <eblake@redhat.com>
22468
22469         c-stack: work around libsigsegv 2.8 bug
22470         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
22471         overflow on at least PowerPC64.
22472
22473 2010-10-17  Bruno Haible  <bruno@clisp.org>
22474
22475         userspec: Drop redundant file.
22476         * modules/userspec (Files): Remove lib/inttostr.h.
22477
22478 2010-10-17  Bruno Haible  <bruno@clisp.org>
22479
22480         nl_langinfo tests: Silence some warnings.
22481         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
22482         Reported by Jim Meyering.
22483
22484 2010-10-17  Bruno Haible  <bruno@clisp.org>
22485
22486         Make use of GCC's attribute __alloc_size__.
22487         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
22488         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
22489         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
22490         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
22491         __alloc_size__.
22492         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22493         Suggested by Jim Meyering.
22494
22495 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
22496
22497         bootstrap: anchor .gitignore entries.
22498         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
22499         with...
22500         (insert_vc_ignore): ... this new function, which prepends `/' to
22501         all .gitignore entries before passing them to
22502         insert_sorted_if_absent.
22503
22504 2010-10-16  Bruno Haible  <bruno@clisp.org>
22505
22506         nextafter: Fix configure check.
22507         * modules/nextafter (configure.ac): Correct expected prototype.
22508
22509 2010-10-16  Bruno Haible  <bruno@clisp.org>
22510
22511         termios: Update documentation.
22512         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
22513
22514 2010-10-16  Bruno Haible  <bruno@clisp.org>
22515
22516         tests: Make them compile with TinyCC.
22517         * tests/test-strstr.c (main): Remove parentheses around array
22518         initializer.
22519
22520 2010-10-15  Eric Blake  <eblake@redhat.com>
22521
22522         ignore-value: make header idempotent
22523         * lib/ignore-value.h: Add double-inclusion guards.
22524         Reported by Stefan Berger.
22525
22526 2010-10-15  Jim Meyering  <meyering@redhat.com>
22527
22528         GNUmakefile: handle "stable" target, not "major"
22529         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
22530         lists in maint.mk and announce-gen.  Without this, "make stable"
22531         would fail to ensure that $(VERSION) is up to date.
22532
22533 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
22534
22535         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
22536         & co.
22537
22538 2010-10-14  Bruno Haible  <bruno@clisp.org>
22539
22540         vasnprintf: Don't set errno to 0.
22541         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
22542         block that sets it to 0.
22543         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
22544
22545 2010-10-14  Bruno Haible  <bruno@clisp.org>
22546
22547         socketlib: Fix.
22548         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
22549         gl_PREREQ_SYS_H_WINSOCK2.
22550         Reported by Ian Beckwith <ianb@erislabs.net>.
22551
22552 2010-10-13  Jim Meyering  <meyering@redhat.com>
22553
22554         test-select-stdin.c: avoid warn_unused_result warnings
22555         * tests/test-select-stdin.c: Include "macros.h".
22556         ASSERT that read and fflush succeed.
22557
22558 2010-10-13  Jim Meyering  <meyering@redhat.com>
22559
22560         git-version-gen: do require git-VC'd files in cwd
22561         * build-aux/git-version-gen: Reject a git version string
22562         if there are no commits associated with the current directory.
22563         This avoids an unlikely false-positive (unrelated dir whose parent
22564         repository also contains a tag matching v*), as pointed out
22565         by Giuseppe Scrivano in
22566         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
22567
22568 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
22569
22570         argv-iter: omit nonconforming declaration
22571         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
22572         enum arg_iter_err declaration, which doesn't conform to C99.
22573         Solaris 10 cc warns about this.
22574
22575 2010-10-13  Eric Blake  <eblake@redhat.com>
22576
22577         termios: fix compilation on mingw
22578         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
22579         (gl_TERMIOS_H): Adjust it on mingw.
22580         * modules/termios (Makefile.am): Substitute new key.
22581         * lib/termios.in.h (includes): Make include_next conditional.
22582         * doc/posix-headers/termios.texi (termios.h): Update
22583         documentation.
22584         Reported by Daniel P. Berrange.
22585
22586 2010-10-13  Jim Meyering  <meyering@redhat.com>
22587
22588         git-version-gen: don't require that .git/ be in the current dir
22589         * build-aux/git-version-gen: Adjust this script so that it works
22590         when run from any working directory beneath the top-level .git/-
22591         containing directory.  Inspired by a patch from Giuseppe Scrivano,
22592         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
22593
22594         test-select: avoid warn_unused_result warnings
22595         * tests/test-select.c: Include "macros.h".
22596         ASSERT that each call to read, write, and pipe succeeds.
22597         While not technically required, also check each "close".
22598         * modules/select-tests (Files): Add tests/macros.h.
22599
22600         test-symlinkat: remove declaration of unused local
22601         * tests/test-symlinkat.c (main): Remove unused local, "buf".
22602
22603         test-inttostr: avoid shadowing warnings
22604         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
22605         and use malloc rather than the stack for the same reason as
22606         mentioned in the comment justifying the other allocation.
22607
22608 2010-10-11  Bruno Haible  <bruno@clisp.org>
22609
22610         stdlib: Allow multiple gnulib generated replacements to coexist.
22611         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
22612         Reported by Sam Steingold <sds@gnu.org>.
22613
22614 2010-10-11  Jim Meyering  <meyering@redhat.com>
22615
22616         fix a documentation typo
22617         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
22618
22619 2010-10-11  Eric Blake  <eblake@redhat.com>
22620
22621         futimens: work around Solaris 11 bug
22622         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
22623         * tests/test-futimens.h (test_futimens): Enhance, rather than
22624         weaken test.
22625         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22626
22627 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
22628
22629         Indentation.
22630         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
22631         higher-level operators more to the left.
22632
22633 2010-10-11  Jim Meyering  <meyering@redhat.com>
22634
22635         test-futimens: avoid unwarranted test failure on Solaris 5.11
22636         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
22637         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
22638         because it tries to dereference the NULL name argument.
22639
22640 2010-10-11  Bruno Haible  <bruno@clisp.org>
22641
22642         Indentation.
22643         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
22644         indentation.
22645
22646 2010-10-11  Jim Meyering  <meyering@redhat.com>
22647
22648         spawn.in.h: make indentation consistent with parentheses
22649         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
22650         Make indentation consistent with parentheses.
22651
22652 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
22653
22654         Fix mismatched parens in previous commit
22655         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
22656         parens.
22657
22658 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
22659
22660         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
22661
22662         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
22663         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
22664         * lib/malloca.c: Include "verify.h".
22665         (verify1): Remove, replacing with a verify call.
22666         * lib/relocwrapper.c (verify1): Likewise.
22667         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
22668         Likewise.
22669         * modules/malloca (Depends-on): Add 'verify'.
22670         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
22671         * modules/vasnprintf (Depends-on): Add 'verify'.
22672         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22673         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22674         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22675         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22676         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22677         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22678         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22679
22680         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
22681
22682         Formerly the style was sometimes 2*X - 1, because the C standard
22683         was wrongly thought to disallow ?: in integral constant expressions.
22684         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
22685         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
22686         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22687         * lib/stdint.in.h (_verify_intmax_size): Likewise.
22688         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
22689         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
22690         verify that time_t cannot be floating.
22691
22692 2010-10-08  Eric Blake  <eblake@redhat.com>
22693
22694         time: enforce recent POSIX ruling that time_t is integral
22695         * lib/time.in.h (__time_t_must_be_integral): Detect any
22696         problematic systems, allowing the rest of gnulib to assume POSIX.
22697
22698 2010-10-08  Jim Meyering  <meyering@redhat.com>
22699
22700         fdopendir: fix a bug on systems lacking openat and /proc support
22701         OpenBSD 4.7 is one such system.  The most noticeable effect was
22702         failure of any application making nontrivial use of fts: rm, du,
22703         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
22704           ./rm: traversal failed: `a': Bad file descriptor
22705         Debugging that, you see that even though FD 6 was closed just
22706         prior to the opendir call in fd_clone_opendir, its resulting
22707         dir->dd_fd was 8, rather than the expected value of 6:
22708
22709         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
22710         93                close (fd);
22711         (gdb) n
22712         94                dir = fd_clone_opendir (dupfd);
22713         (gdb) n
22714         95                saved_errno = errno;
22715         (gdb) p dir->dd_fd
22716         $11 = 8
22717
22718         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
22719         The problem is that on OpenBSD, fd_clone_opendir has to resort
22720         to using the old-style save/restore CWD mechanism, due to its
22721         lack of openat/proc support, and *that* would steal the FD (6)
22722         that opendir was supposed to use.
22723
22724         The fix is to squirrel away the desired FD so that save_cwd uses a
22725         different one, and then free the dest FD right before calling opendir.
22726         That guarantees opendir will use the required file descriptor.
22727
22728         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
22729
22730 2010-10-08  Bruno Haible  <bruno@clisp.org>
22731
22732         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
22733         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
22734
22735 2010-10-08  Bruno Haible  <bruno@clisp.org>
22736
22737         nanosleep: Make replacement POSIX compliant.
22738         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
22739         is out of range.
22740         Reported by Jim Meyering.
22741
22742 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
22743
22744         bootstrap: add hook for altering gnulib.mk, for Bison
22745         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
22746         the Bison bootstrapping process can rewrite file names and variables
22747         in this file before later parts of 'bootstrap' use the file.
22748         Bison wants to include lib/gnulib.mk from the top-level makefile,
22749         so it needs the file names in this file to be relative to the top
22750         level, not relative to lib; plus it needs variable names to be
22751         rewritten.
22752         (slurp): Use the new function.
22753
22754         bootstrap: reformat for readability
22755         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
22756
22757 2010-10-08  Eric Blake  <eblake@redhat.com>
22758
22759         docs: update cygwin progress
22760         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
22761         1.7.7.
22762         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
22763         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
22764         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
22765         * doc/posix-functions/carg.texi (carg): Likewise.
22766         * doc/posix-functions/cargf.texi (cargf): Likewise.
22767         * doc/posix-functions/casin.texi (casin): Likewise.
22768         * doc/posix-functions/casinf.texi (casinf): Likewise.
22769         * doc/posix-functions/casinh.texi (casinh): Likewise.
22770         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
22771         * doc/posix-functions/catan.texi (catan): Likewise.
22772         * doc/posix-functions/catanf.texi (catanf): Likewise.
22773         * doc/posix-functions/catanh.texi (catanh): Likewise.
22774         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
22775         * doc/posix-functions/ccos.texi (ccos): Likewise.
22776         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
22777         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
22778         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
22779         * doc/posix-functions/cexp.texi (cexp): Likewise.
22780         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
22781         * doc/posix-functions/cimag.texi (cimag): Likewise.
22782         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
22783         * doc/posix-functions/clog.texi (clog): Likewise.
22784         * doc/posix-functions/clogf.texi (clogf): Likewise.
22785         * doc/posix-functions/conj.texi (conj): Likewise.
22786         * doc/posix-functions/conjf.texi (conjf): Likewise.
22787         * doc/posix-functions/cpow.texi (cpow): Likewise.
22788         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
22789         * doc/posix-functions/cproj.texi (cproj): Likewise.
22790         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
22791         * doc/posix-functions/creal.texi (creal): Likewise.
22792         * doc/posix-functions/crealf.texi (crealf): Likewise.
22793         * doc/posix-functions/csin.texi (csin): Likewise.
22794         * doc/posix-functions/csinf.texi (csinf): Likewise.
22795         * doc/posix-functions/csinh.texi (csinh): Likewise.
22796         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
22797         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
22798         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
22799         * doc/posix-functions/ctan.texi (ctan): Likewise.
22800         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
22801         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
22802         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
22803         * doc/posix-headers/complex.texi (complex.h): Likewise.
22804
22805 2010-10-07  Jim Meyering  <meyering@redhat.com>
22806
22807         parse-datetime: avoid compilation failure on OpenBSD 4.7
22808         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
22809         This works around a compilation failure on OpenBSD 4.7:
22810         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
22811
22812 2010-10-07  Eric Blake  <eblake@redhat.com>
22813
22814         docs: update cygwin progress
22815         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
22816         1.7.6.
22817         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22818         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
22819         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
22820         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
22821         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
22822         Likewise.
22823         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
22824         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
22825         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
22826         Likewise.
22827         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
22828         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
22829         Likewise.
22830         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
22831         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
22832         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
22833         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
22834         Likewise.
22835         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
22836         Likewise.
22837         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
22838
22839         docs: update parse-datetime history
22840         * doc/parse-datetime.texi (Authors of parse_datetime): Better
22841         documentation of this function's history and alternatives.
22842
22843         cygwin: use more robust version check
22844         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
22845         exclude an eventual cygwin 1.9.1.
22846         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22848         (gl_FUNC_STRCASESTR): Likewise.
22849         Reported by Bruno Haible.
22850
22851 2010-10-06  Bruno Haible  <bruno@clisp.org>
22852
22853         string, sys_select: Avoid #including large headers unless necessary.
22854         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
22855         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
22856         OSF/1, BeOS, Haiku.
22857         Reported by Jim Meyering.
22858
22859 2010-10-05  Eric Blake  <eblake@redhat.com>
22860
22861         memmem, strstr, strcasestr: fix bug with long periodic needle
22862         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
22863         periodic needle having false positive.
22864         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
22865         and cygwin 1.7.7.
22866         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
22867         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
22868         (gl_FUNC_STRCASESTR): Likewise.
22869         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22870         * tests/test-memmem.c (main): Expose the bug.
22871         * tests/test-strcasestr.c (main): Likewise.
22872         * tests/test-strstr.c (main): Likewise.
22873         * tests/test-c-strcasestr.c (main): Likewise.
22874         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
22875         * doc/posix-functions/strstr.texi (strstr): Likewise.
22876         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22877         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
22878
22879 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22880
22881         parse-datetime: do some more renaming
22882         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
22883         parse_datetime, not get_date.  Mention the renaming.
22884         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
22885         in comments.
22886         * m4/bison.m4: Likewise.
22887
22888 2010-10-05  Eric Blake  <eblake@redhat.com>
22889
22890         parse-datetime: better name than get_date
22891         * NEWS: Reword the deprecation notice.
22892         * modules/get_date: Rename to modules/parse-datetime.
22893         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
22894         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
22895         * lib/get_date.y: Rename to lib/parse-datetime.y.
22896         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
22897         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
22898         * doc/getdate.texi: Provide fallback wrapper.
22899         * lib/getdate.h: Move guts, and wrap...
22900         * lib/parse-datetime.h: ...new file.
22901         * lib/parse-datetime.y (get_date): Rename...
22902         (parse_datetime): ...to this.
22903         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
22904         (gl_PARSE_DATETIME): ...to this.
22905         * doc/posix-functions/getdate.texi (get_date): Provide fallback
22906         documentation.
22907         * modules/getdate (Files): Provide fallback docs and header.
22908         (Notice, Depends-on): Update references.
22909         * tests/test-parse-datetime.c: Likewise.
22910         * DEPENDENCIES: Likewise.
22911         * MODULES.html.sh (Date and time <time.h>): Likewise.
22912         * doc/parse-datetime.texi (Date input formats)
22913         (Authors of parse_datetime): Likewise.
22914         * modules/parse-datetime (Files, configure.ac, Makefile.am)
22915         (Include): Likewise.
22916         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
22917         * gnulib-tool: Likewise.
22918         * m4/bison.m4 (gl_BISON): Likewise.
22919         Suggested by Bruno Haible.
22920
22921 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
22922
22923         more ports to Solaris tr, which needs [] around ranges
22924         * gnulib-tool: Solaris tr needs [] around ranges.
22925         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22926         * tests/test-pipe-filter-gi1.c (main): Likewise.
22927         * tests/test-pipe-filter-ii1.c (main): Likewise.
22928
22929 2010-10-05  Eric Blake  <eblake@redhat.com>
22930
22931         bootstrap: fix Solaris regression
22932         * build-aux/bootstrap (check_versions): Solaris tr still needs []
22933         around ranges.
22934         Reported by Pádraig Brady.
22935
22936         bootstrap: work with pkg-config
22937         * build-aux/bootstrap (check_versions): Also transliterate - in
22938         prerequisite name.
22939         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
22940         prerequisites that were already found, to avoid confusion.
22941         Reported by Justin Clift.
22942
22943         faccessat: remove unused wrappers
22944         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
22945         presence of these wrappers dragged in -lgen on Solaris.
22946         Reported by Clemens Brogi; fix suggested by Paul Eggert.
22947
22948 2010-10-05  Jim Meyering  <meyering@redhat.com>
22949
22950         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
22951         * Makefile (sc_pragma_columns): New syntax-check rule.
22952
22953 2010-10-04  Bruno Haible  <bruno@clisp.org>
22954
22955         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
22956         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
22957         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
22958         Reported by Bruce Korb and Eric Blake.
22959
22960 2010-10-04  Bruno Haible  <bruno@clisp.org>
22961
22962         threadlib: Make option --with-libpth-prefix work.
22963         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
22964         use $LIBPTH, not just -lpth.
22965
22966 2010-10-04  Bruno Haible  <bruno@clisp.org>
22967
22968         Avoid line length limitation from HP NonStop system header files.
22969         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
22970         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
22971         * lib/ctype.in.h: Likewise.
22972         * lib/dirent.in.h: Likewise.
22973         * lib/errno.in.h: Likewise.
22974         * lib/fcntl.in.h: Likewise.
22975         * lib/float.in.h: Likewise.
22976         * lib/getopt.in.h: Likewise.
22977         * lib/iconv.in.h: Likewise.
22978         * lib/inttypes.in.h: Likewise.
22979         * lib/langinfo.in.h: Likewise.
22980         * lib/locale.in.h: Likewise.
22981         * lib/math.in.h: Likewise.
22982         * lib/netdb.in.h: Likewise.
22983         * lib/netinet_in.in.h: Likewise.
22984         * lib/poll.in.h: Likewise.
22985         * lib/pthread.in.h: Likewise.
22986         * lib/pty.in.h: Likewise.
22987         * lib/sched.in.h: Likewise.
22988         * lib/se-selinux.in.h: Likewise.
22989         * lib/search.in.h: Likewise.
22990         * lib/signal.in.h: Likewise.
22991         * lib/spawn.in.h: Likewise.
22992         * lib/stdarg.in.h: Likewise.
22993         * lib/stddef.in.h: Likewise.
22994         * lib/stdint.in.h: Likewise.
22995         * lib/stdio.in.h: Likewise.
22996         * lib/stdlib.in.h: Likewise.
22997         * lib/string.in.h: Likewise.
22998         * lib/strings.in.h: Likewise.
22999         * lib/sys_file.in.h: Likewise.
23000         * lib/sys_ioctl.in.h: Likewise.
23001         * lib/sys_select.in.h: Likewise.
23002         * lib/sys_socket.in.h: Likewise.
23003         * lib/sys_stat.in.h: Likewise.
23004         * lib/sys_time.in.h: Likewise.
23005         * lib/sys_times.in.h: Likewise.
23006         * lib/sys_utsname.in.h: Likewise.
23007         * lib/sys_wait.in.h: Likewise.
23008         * lib/sysexits.in.h: Likewise.
23009         * lib/termios.in.h: Likewise.
23010         * lib/time.in.h: Likewise.
23011         * lib/unistd.in.h: Likewise.
23012         * lib/wchar.in.h: Likewise.
23013         * lib/wctype.in.h: Likewise.
23014         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
23015         * modules/ctype (Makefile.am): Likewise.
23016         * modules/dirent (Makefile.am): Likewise.
23017         * modules/errno (Makefile.am): Likewise.
23018         * modules/fcntl-h (Makefile.am): Likewise.
23019         * modules/float (Makefile.am): Likewise.
23020         * modules/getopt-posix (Makefile.am): Likewise.
23021         * modules/iconv-h (Makefile.am): Likewise.
23022         * modules/inttypes (Makefile.am): Likewise.
23023         * modules/langinfo (Makefile.am): Likewise.
23024         * modules/locale (Makefile.am): Likewise.
23025         * modules/math (Makefile.am): Likewise.
23026         * modules/netdb (Makefile.am): Likewise.
23027         * modules/netinet_in (Makefile.am): Likewise.
23028         * modules/poll-h (Makefile.am): Likewise.
23029         * modules/pthread (Makefile.am): Likewise.
23030         * modules/pty (Makefile.am): Likewise.
23031         * modules/sched (Makefile.am): Likewise.
23032         * modules/search (Makefile.am): Likewise.
23033         * modules/selinux-h (Makefile.am): Likewise.
23034         * modules/signal (Makefile.am): Likewise.
23035         * modules/spawn (Makefile.am): Likewise.
23036         * modules/stdarg (Makefile.am): Likewise.
23037         * modules/stddef (Makefile.am): Likewise.
23038         * modules/stdint (Makefile.am): Likewise.
23039         * modules/stdio (Makefile.am): Likewise.
23040         * modules/stdlib (Makefile.am): Likewise.
23041         * modules/string (Makefile.am): Likewise.
23042         * modules/strings (Makefile.am): Likewise.
23043         * modules/sys_file (Makefile.am): Likewise.
23044         * modules/sys_ioctl (Makefile.am): Likewise.
23045         * modules/sys_select (Makefile.am): Likewise.
23046         * modules/sys_socket (Makefile.am): Likewise.
23047         * modules/sys_stat (Makefile.am): Likewise.
23048         * modules/sys_time (Makefile.am): Likewise.
23049         * modules/sys_times (Makefile.am): Likewise.
23050         * modules/sys_utsname (Makefile.am): Likewise.
23051         * modules/sys_wait (Makefile.am): Likewise.
23052         * modules/sysexits (Makefile.am): Likewise.
23053         * modules/termios (Makefile.am): Likewise.
23054         * modules/time (Makefile.am): Likewise.
23055         * modules/unistd (Makefile.am): Likewise.
23056         * modules/wchar (Makefile.am): Likewise.
23057         * modules/wctype (Makefile.am): Likewise.
23058
23059 2010-10-04  Bruno Haible  <bruno@clisp.org>
23060
23061         read-file tests: Avoid a test failure on NonStop Kernel.
23062         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
23063         a regular file.
23064         Reported by Joachim Schmitz <schmitz@hp.com>.
23065
23066 2010-10-03  Bruno Haible  <bruno@clisp.org>
23067
23068         gnulib-tool: Fixes for --create-testdir with --libtool.
23069         * gnulib-tool (func_get_automake_snippet): Don't augment
23070         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
23071         an executable.
23072         (func_create_testdir): Handle module 'alloca' like func_import.
23073         Reported by Bruce Korb <bruce.korb@gmail.com>.
23074
23075 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
23076
23077         Avoid some lines longer than 80 characters.
23078         * lib/stdint.in.h: Break long comment lines.
23079         * lib/math.in.h: Likewise.
23080         (_GL_NUM_UINT_WORDS): New macro, for readability.
23081         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
23082         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
23083         * lib/stdlib.in.h: Likewise.
23084         * lib/spawn.in.h: Likewise.
23085         * lib/sys_socket.in.h: Update an URL.
23086         * lib/sys_stat.in.h: Break long line.
23087
23088 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
23089
23090         Improve pmccabe2html.
23091         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
23092         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
23093         when the sources change. Remove the line in the HTML about "Used
23094         ranges" (which implied that there might be other unused ranges),
23095         rename "Resume" to "Summary" (easier to understand for more users).
23096         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
23097         styles, and some unnecessary blank lines.
23098
23099 2010-10-03  Bruno Haible  <bruno@clisp.org>
23100             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
23101
23102         acl: Add support for ACLs on NonStop Kernel.
23103         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
23104         Check whether the function aclsort() exists.
23105         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
23106         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
23107         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23108         (acl_nontrivial [HAVE_ACLSORT]: New function.
23109         (file_has_acl): Implement for NonStop Kernel.
23110         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23111         (qset_acl): Implement for NonStop Kernel.
23112         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
23113         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23114         (main): Implement for NonStop Kernel.
23115         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
23116         Kernel. Handle this flavor.
23117         * tests/test-set-mode-acl.sh: Likewise.
23118         * tests/test-copy-acl.sh: Likewise.
23119         * tests/test-copy-file.sh: Likewise.
23120
23121 2010-10-03  Bruno Haible  <bruno@clisp.org>
23122
23123         Info about ACLs on NonStop Kernel.
23124         * doc/acl-resources.txt: Add info about NonStop Kernel.
23125         References by Joachim Schmitz <schmitz@hp.com>.
23126
23127 2010-10-02  Bruno Haible  <bruno@clisp.org>
23128
23129         Define missing EDQUOT on NonStop Kernel.
23130         * lib/errno.in.h (EDQUOT): Assign a value if missing.
23131         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
23132         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
23133         missing.
23134         * doc/posix-headers/errno.texi: Mention the NSK bug.
23135         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
23136         Reported by Joachim Schmitz <schmitz@hp.com>.
23137
23138 2010-10-02  Bruno Haible  <bruno@clisp.org>
23139
23140         Update doc for POSIX:2008.
23141         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
23142         Update URL of POSIX specification.
23143
23144 2010-10-02  Bruno Haible  <bruno@clisp.org>
23145
23146         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
23147         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
23148         from gnulib, not from Automake.
23149
23150 2010-10-02  Bruno Haible  <bruno@clisp.org>
23151
23152         New module 'system-posix'.
23153         * modules/system-posix: New file.
23154         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
23155         module is present.
23156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23157         GNULIB_SYSTEM_POSIX.
23158         * modules/stdlib (Depends-on): Remove sys_wait.
23159         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
23160         * doc/posix-functions/system.texi: Mention the new module.
23161         * doc/posix-headers/stdlib.texi: Likewise.
23162         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
23163         define test_sys_wait_macros to a no-op.
23164         Reported by Sam Steingold <sds@gnu.org>.
23165
23166 2010-09-30  Bruno Haible  <bruno@clisp.org>
23167
23168         More renaming from 'getdate' to 'get_date'.
23169         * doc/get_date.texi: Renamed from doc/getdate.texi.
23170         * modules/get_date (Files): Update.
23171         * MODULES.html.sh (Date and time <time.h>): Update.
23172         * DEPENDENCIES: Update.
23173         * gnulib-tool: Update comment.
23174         * m4/bison.m4 (gl_BISON): Likewise.
23175         * m4/get_date.m4 (gl_GET_DATE): Likewise.
23176
23177 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
23178
23179         bootstrap: support ACLOCAL_FLAGS during aclocal
23180         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
23181         can add additional -I dir for third-party .m4 files.
23182
23183 2010-09-30  Eric Blake  <eblake@redhat.com>
23184
23185         bootstrap: use glibtoolize on MacOS
23186         * build-aux/bootstrap (check_versions): Convert libtool into
23187         libtoolize.
23188         (tool search): Move libtool check earlier, and look for
23189         glibtoolize for MacOS.
23190         (gnulib_tool_options): Auto-add --libtool when appropriate.
23191         Reported by Justin Clift.
23192
23193         poll: fix typo that broke test on MacOS
23194         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
23195         Reported by Justin Clift.
23196
23197         getdate: rename to get_date
23198         Note: getdate.h is not renamed, to minimize client impact.
23199         * modules/getdate: Mark obsolete.  Move old contents...
23200         * modules/get_date: ...to new module name.
23201         * modules/getdate-tests: Move...
23202         * modules/get_date-tests: ...here.
23203         * m4/getdate.m4: Move...
23204         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
23205         * lib/getdate.y: Move...
23206         * lib/get_date.y: ...here.
23207         * tests/test-getdate.c: Move...
23208         * tests/test-get_date.c: ...here.
23209         * doc/posix-functions/getdate.texi (getdate): Update name.
23210         * NEWS: Mention the change.
23211
23212 2010-09-29  Bruno Haible  <bruno@clisp.org>
23213
23214         Separate the module 'waitpid' from the module 'sys_wait'.
23215         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
23216         present.
23217         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
23218         gl_MODULE_INDICATOR_FOR_TESTS.
23219         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
23220         * modules/sys_wait (Depends-on): Remove waitpid.
23221         (Makefile.am): Substitute GNULIB_WAITPID.
23222         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
23223         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
23224         signature only if the 'waitpid' module is present.
23225         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
23226         * NEWS: Mention the change.
23227         * modules/grantpt (Depends-on): Add waitpid.
23228         * modules/wait-process (Depends-on): Likewise.
23229
23230 2010-09-29  Bruno Haible  <bruno@clisp.org>
23231
23232         More tests for module 'sys_wait'.
23233         * modules/sys_wait-c++-tests: New file.
23234         * tests/test-sys_wait-c++.cc: New file.
23235         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
23236         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23237
23238 2010-09-29  Bruno Haible  <bruno@clisp.org>
23239
23240         New module 'waitpid'.
23241         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
23242         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
23243         Don't include <process.h>.
23244         (waitpid): Declare only, using modern idiom.
23245         * m4/waitpid.m4: New file.
23246         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
23247         * modules/waitpid: New file.
23248         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
23249         (Makefile.am): Update.
23250         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23251
23252 2010-09-28  Bruno Haible  <bruno@clisp.org>
23253
23254         poll: Assume ANSI C.
23255         * lib/poll.c (poll): Use an ANSI C declaration.
23256
23257 2010-09-28  Bruno Haible  <bruno@clisp.org>
23258
23259         poll-h: Create poll.h on all platforms.
23260         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
23261         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
23262         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
23263         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
23264         (gl_REPLACE_POLL_H): Don't set POLL_H.
23265         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
23266         * modules/poll-h (Depends-on): Add include_next.
23267         (Makefile.am): Create poll.h unconditionally. Substitute also
23268         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
23269
23270 2010-09-28  Bruno Haible  <bruno@clisp.org>
23271
23272         Tests for module 'poll-h'.
23273         * modules/poll-h-c++-tests: New file.
23274         * tests/test-poll-h-c++.cc: New file.
23275
23276         Tests for module 'poll-h'.
23277         * modules/poll-h-tests: New file.
23278         * tests/test-poll-h.c: New file.
23279
23280 2010-09-28  Bruno Haible  <bruno@clisp.org>
23281
23282         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
23283         * modules/poll-h (Depends-on): Add 'extensions'.
23284
23285 2010-09-28  Bruno Haible  <bruno@clisp.org>
23286
23287         New module 'poll-h'.
23288         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
23289         (poll): Use modern idiom.
23290         * modules/poll-h: New file.
23291         * modules/poll (Files): Remove lib/poll.in.h.
23292         (Depends-on): Add poll-h.
23293         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
23294         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
23295         * m4/poll_h.m4: New file.
23296         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
23297         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
23298         and invoke gl_REPLACE_POLL_H.
23299         * lib/poll.c: Use common idiom.
23300         * tests/test-poll.c: Likewise.
23301         * doc/posix-headers/poll.texi: Mention the poll-h module.
23302         Suggested by Eric Blake.
23303
23304 2010-09-26  Bruno Haible  <bruno@clisp.org>
23305
23306         sys_wait: Implement WSTOPSIG.
23307         * lib/sys_wait.in.h (WSTOPSIG): New macro.
23308         Reported by Simon Josefsson.
23309
23310 2010-09-26  Simon Josefsson  <simon@josefsson.org>
23311
23312         stdlib, sys_wait: Avoid compilation error on mingw.
23313         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
23314
23315 2010-09-26  Bruno Haible  <bruno@clisp.org>
23316
23317         stdlib tests: Avoid code duplication.
23318         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
23319         * modules/sys_wait-tests (Files): Likewise.
23320         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
23321         * tests/test-stdlib.c: Include test-sys_wait.h.
23322         (main): Invoke test_sys_wait_macros.
23323         * tests/test-sys_wait.c: Include test-sys_wait.h.
23324         (main): Invoke test_sys_wait_macros.
23325
23326 2010-09-25  Simon Josefsson  <simon@josefsson.org>
23327
23328         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
23329         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
23330         sure Windows sockets are working before calling getaddrinfo.
23331         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
23332         * doc/gnulib.texi (Windows sockets): Fix typo.
23333
23334 2010-09-25  Bruno Haible  <bruno@clisp.org>
23335
23336         Tests for module 'regex-quote'.
23337         * modules/regex-quote-tests: New file.
23338         * tests/test-regex-quote.c: New file.
23339
23340         New module 'regex-quote'.
23341         * lib/regex-quote.h: New file.
23342         * lib/regex-quote.c: New file.
23343         * modules/regex-quote: New file.
23344         Suggested by Reuben Thomas <rrt@sc3d.org>.
23345
23346 2010-09-24  Bruno Haible  <bruno@clisp.org>
23347
23348         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
23349         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
23350
23351 2010-09-23  Bruno Haible  <bruno@clisp.org>
23352
23353         setenv: Relax license.
23354         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
23355         Blake.
23356         Requested by Eric Blake.
23357
23358 2010-09-22  Bruno Haible  <bruno@clisp.org>
23359
23360         termios: Relax license.
23361         * modules/termios (License): Change to LGPLv2+.
23362         Requested by Eric Blake.
23363
23364 2010-09-22  Bruno Haible  <bruno@clisp.org>
23365
23366         threadlib: Allow the package to change the default to 'no'.
23367         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
23368         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
23369         Reported by Paul Eggert.
23370
23371 2010-09-22  Pádraig Brady  <P@draigbrady.com>
23372             Bruno Haible  <bruno@clisp.org>
23373
23374         Fix endless loop in mbmemcasecoll.
23375         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
23376         byte.
23377         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
23378
23379 2010-09-22  Bruno Haible  <bruno@clisp.org>
23380
23381         Tests for module 'memcoll'.
23382         * modules/memcoll-tests: New file.
23383         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
23384
23385         memcoll, xmemcoll: Clarify size vs. length.
23386         * modules/memcoll.c (memcoll0): Clarify specification.
23387         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
23388         passed to collate_error.
23389
23390 2010-09-22  Bruno Haible  <bruno@clisp.org>
23391
23392         Tests for module 'memcasecmp'.
23393         * modules/memcasecmp-tests: New file.
23394         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
23395
23396 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23397
23398         * lib/pthread.in.h: Add split double-inclusion guard, and include
23399         system <pthread.h> if there is one.  Use @@-style as in other
23400         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
23401         pthread.h doesn't.
23402         (pthread_mutexattr_destroy, pthread_mutexattr_init):
23403         (pthread_mutexattr_settype, pthread_mutex_trylock):
23404         New static inline functions, if there's no system <pthread.h>.
23405         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
23406         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
23407         Approximate with mutexes if the system lacks spinlocks, as in
23408         MacOS.
23409         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
23410         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
23411         @@-style.  Check for spinlocks separately.
23412         (gl_PTHREAD_DEFAULTS): New macro.
23413         * modules/pthread: Redo to use a more typical style for in.h files.
23414
23415 2010-09-21  Eric Blake  <eblake@redhat.com>
23416
23417         net_if: enhance tests
23418         * tests/test-net_if.c (main): Move signature checks earlier.
23419         Print failures to stderr.
23420         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
23421         Document the bug that we do not yet fix.
23422
23423 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
23424
23425         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
23426         about gnulib, not GSS.
23427
23428 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
23429
23430         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
23431         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
23432         for Emacs.
23433         * build-aux/pmccabe2html: Make Makefile.am example code more
23434         cut-and-paste friendly.
23435
23436 2010-09-21  Simon Josefsson  <simon@josefsson.org>
23437
23438         * tests/test-net_if.c: New file.
23439         * modules/net_if-tests: New file.
23440
23441 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23442
23443         pthread: add pthread_spin_destroy
23444         * lib/pthread.in.h (pthread_spin_destroy): New function.
23445
23446 2010-09-19  Bruno Haible  <bruno@clisp.org>
23447
23448         gnulib-tool: Fix --help output.
23449         * gnulib-tool (func_usage): Fix help message.
23450         Reported by Reuben Thomas <rrt@sc3d.org>.
23451
23452 2010-09-18  Jim Meyering  <meyering@redhat.com>
23453
23454         maint.mk: avoid unexpanded \n in two diagnostics
23455         * top/maint.mk (sc_prohibit_always_true_header_tests):
23456         Don't use a literal \n in a halt=... assignment.  It would not be
23457         expanded, and the two \n bytes would appear in the diagnostic output
23458         rather than the desired newline.  Use halt=$$(printf ... instead.
23459         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23460
23461 2010-09-18  Bruno Haible  <bruno@clisp.org>
23462
23463         netinet_in: Doc tweak.
23464         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
23465         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23466
23467 2010-09-18  Jim Meyering  <meyering@redhat.com>
23468
23469         init.sh: correct an outdated comment
23470         * tests/init.sh (create_exe_shims_):  s/function/alias/
23471
23472         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
23473         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
23474         a file named "*.exe" is removed between the glob expansion and the
23475         processing of that oddly named file.
23476
23477 2010-09-17  Eric Blake  <eblake@redhat.com>
23478
23479         mirbsd: add some more support
23480         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
23481         in BSD family.
23482         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
23483         devices as OpenBSD.
23484         * m4/host-os.m4 (mirbsd): Add MirBSD.
23485
23486         tests: fix unportable assumption on sys/wait.h
23487         * tests/test-sys_wait.c (main): Relax test.
23488         * tests/test-stdlib.c (main): Likewise.
23489
23490         init.sh: accomodate directory with no .exes
23491         * tests/init.sh: Accomodate directory containing only scripts.
23492
23493         tests: avoid compiler warning
23494         * tests/test-stdlib.c (main): Use the variable.
23495
23496         fdutimens, fdutimensat: update signature, again
23497         * lib/utimens.h (gl_futimens): Delete, and move signature...
23498         (fdutimens): ...here.
23499         (fdutimensat): Rearrange signature.
23500         (lutimensat): Rename variable for clarity.
23501         * lib/fdutimensat.c (fdutimensat): Update signature.
23502         * lib/utimens.c (fdutimens): Likewise.
23503         (gl_futimens): Delete.
23504         (utimens, lutimens): Update callers.
23505         * lib/futimens.c (futimens): Likewise.
23506         * tests/test-fdutimensat.c: Likewise.
23507         * tests/test-utimens.c: Likewise.
23508         * tests/test-futimens.h: Update comment.
23509         * NEWS: Mention this.
23510         Suggested by Paul Eggert.
23511
23512 2010-09-17  Bruno Haible  <bruno@clisp.org>
23513
23514         Take over the maintenance of some older macros from Autoconf.
23515         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
23516         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
23517         GNU Autoconf.
23518         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
23519         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
23520
23521 2010-09-17  Eric Blake  <eblake@redhat.com>
23522
23523         fdutimensat: drop atflag validation
23524         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
23525         with valid fd, to close a race scenario where futimens is
23526         unsupported and FILE was replaced by a symlink.
23527         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
23528         accordingly.
23529         Suggested by Paul Eggert.
23530
23531 2010-09-16  Bruno Haible  <bruno@clisp.org>
23532
23533         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
23534         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
23535
23536 2010-09-16  Bruno Haible  <bruno@clisp.org>
23537
23538         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
23539         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
23540         login_tty exists.
23541         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23542
23543 2010-09-16  Bruno Haible  <bruno@clisp.org>
23544
23545         login_tty: Make the replacement code work on BSD systems.
23546         * lib/login_tty.c: Include <sys/ioctl.h>.
23547         (login_tty): Use ioctl TIOCSCTTY when available.
23548         * modules/login_tty (Depends-on): Add sys_ioctl.
23549         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23550
23551 2010-09-16  Bruno Haible  <bruno@clisp.org>
23552
23553         login_tty: Stricter unit test.
23554         * modules/login_tty-tests (Depends-on): Add tcgetsid.
23555         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
23556         and tcgetsid() after login_tty.
23557         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23558
23559 2010-09-16  Bruno Haible  <bruno@clisp.org>
23560
23561         New module 'tcgetsid'.
23562         * lib/tcgetsid.c: New file.
23563         * m4/tcgetsid.m4: New file.
23564         * modules/tcgetsid: New file.
23565         * modules/termios (Depends-on): Add c++defs, warn-on-use.
23566         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
23567         GNULIB_TCGETSID, HAVE_TCGETSID.
23568         * lib/termios.in.h: Include <sys/types.h>.
23569         (tcgetsid): New declaration.
23570         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
23571         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
23572         * doc/posix-functions/tcgetsid.texi: Mention the new module.
23573         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
23574
23575 2010-09-16  Bruno Haible  <bruno@clisp.org>
23576
23577         Tests for module 'termios'.
23578         * modules/termios-c++-tests: New file.
23579         * modules/termios-tests: New file.
23580         * tests/test-termios-c++.cc: New file.
23581         * tests/test-termios.c: New file.
23582
23583         New module 'termios'.
23584         * modules/termios: New file.
23585         * lib/termios.in.h: New file.
23586         * m4/termios_h.m4: New file.
23587         * doc/posix-headers/termios.texi: Mention the new module.
23588
23589 2010-09-16  Eric Blake  <eblake@redhat.com>
23590
23591         fdutimensat: add an atflag parameter
23592         * lib/fdutimensat.c (fdutimensat): Add new parameter.
23593         * lib/utimens.h (fdutimensat): Update prototype.
23594         * tests/test-fdutimensat.c: Adjust test to match.
23595         * NEWS: Document the change.
23596         Suggested by Paul Eggert.
23597
23598 2010-09-16  Bruno Haible  <bruno@clisp.org>
23599
23600         Fix typos in comments.
23601         * lib/striconveh.h: Fix typo in comment.
23602         * lib/login_tty.c (login_tty): Likewise.
23603
23604 2010-09-15  Bruno Haible  <bruno@clisp.org>
23605
23606         stdlib: clarify MirBSD WEXITSTATUS bug
23607         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
23608         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23609
23610 2010-09-15  Eric Blake  <eblake@redhat.com>
23611
23612         stdlib: work around MirBSD WEXITSTATUS bug
23613         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
23614         * modules/stdlib (Depends-on): Add sys_wait.
23615         * tests/test-sys_wait.c (main): Enhance test.
23616         * tests/test-stdlib.c (main): Likewise.
23617         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
23618
23619         docs: mention MacOS issue with WEXITSTATUS(constant)
23620         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
23621         issue.
23622         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
23623
23624         strnlen: add tests
23625         * modules/strnlen-tests: New file.
23626         * tests/test-strnlen.c: Likewise.
23627
23628 2010-09-14  Bruno Haible  <bruno@clisp.org>
23629
23630         unistr/base: Avoid link errors when module 'libunistring' is also used.
23631         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
23632         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
23633         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
23634         Declare also when HAVE_LIBUNISTRING is set.
23635         Reported by Pádraig Brady <P@draigbrady.com>.
23636
23637 2010-09-14  Eric Blake  <eblake@redhat.com>
23638
23639         test-rawmemchr: make more robust
23640         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
23641         (Depends-on, configure.ac): Add needed prerequisites to use it.
23642         * modules/memchr-tests (Files, Depends-on, configure.ac):
23643         Likewise, to avoid implicit reliance on memchr module prereqs.
23644         * tests/test-memchr.c (main): Ensure proper masking.
23645         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
23646         reads.
23647
23648         memchr: detect glibc Alpha bug
23649         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
23650         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
23651         Alpha.
23652         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
23653         * tests/test-memchr.c (main): Enhance test.
23654         Reported by Nelson H. F. Beebe.
23655
23656 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23657
23658         fts, getcwd, glob: audit for dirfd returning -1
23659         * lib/fts.c (opendir): Remove #define; no longer used.
23660         (opendirat): New arg PDIR_FD.  All callers changed.
23661         (fts_build, _opendir2): Use new opendirat to avoid the need for
23662         dirfd, or for checking whether dirfd returns a negative value.
23663         Don't use opendir; always use openat followed by fdopendir.
23664         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
23665         it.
23666         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
23667         returns -1 here.
23668         * modules/fts (Depends-on): Remove dirfd.
23669         * modules/getcwd (Depends-on): Likewise.
23670
23671 2010-09-13  Eric Blake  <eblake@redhat.com>
23672
23673         float: fix broken MirBSD header
23674         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
23675         * doc/posix-headers/float.texi (float.h): Document it.
23676
23677 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23678
23679         fts: use O_NOFOLLOW to avoid race condition when opening a directory
23680         * lib/fts.c (opendirat): New arg extra_flags.
23681         (__opendir2): Use it to avoid following symlinks when opening
23682         a directory, if symlinks are not supposed to be followed.  See
23683         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
23684
23685         fdopendir: preserve argument fd before returning
23686         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
23687         (fdopendir_with_dup, fd_clone_opendir): New static functions.
23688         (fdopendir): Use them, arranging for FD to be open to the same
23689         directory that it was when it started.  (It might be temporarily
23690         closed while fdopendir is running, so this not thread- or
23691         signal-safe.)  Be careful to do the right thing even when file
23692         descriptors are scarce and dup fails with errno == EMFILE.  See
23693         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
23694
23695 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
23696
23697         regex: Pass the system regex if its only problem is 32-bit regoff_t.
23698         * NEWS: Document change.
23699         * m4/regex.m4: Disable test for regoff_t size.
23700
23701 2010-09-13  Jim Meyering  <meyering@redhat.com>
23702
23703         fts: don't operate on an invalid file descriptor after failed dup
23704         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
23705         negative file descriptor.
23706
23707 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
23708
23709         savedir: add streamsavedir, deprecate fdsavedir
23710         * NEWS: Mention deprecation of fdsavedir.
23711         * lib/savedir.c (streamsavedir): New extern function, whose name
23712         ends in "savedir" to be consistent with the others.  This differs
23713         from savedirstream in that it doesn't close its argument.  The
23714         next version of GNU tar will use this instead of fdsavedir, to
23715         avoid some race conditions and conserve file descriptors.
23716         (savedirstream): Reimplement as a wrapper around streamsavedir.
23717         (fdsavedir): Add a comment deprecating this function.  As far as
23718         I know, only GNU tar used it, and GNU tar doesn't need it any more.
23719         * lib/savedir.h (streamsavedir): New decl.
23720         (fdsavedir): Add a comment deprecating this.
23721
23722 2010-09-10  Bruno Haible  <bruno@clisp.org>
23723
23724         langinfo: Fix last commit.
23725         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
23726         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
23727         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23728
23729 2010-09-10  Bruno Haible  <bruno@clisp.org>
23730
23731         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
23732         * lib/progreloc.c (O_EXEC): Define fallback.
23733
23734 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
23735
23736         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
23737         * NEWS: Document recent changes to fcntl-h.
23738         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
23739         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
23740         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
23741         Similarly for O_SEARCH; this last was already true, but not documented.
23742         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
23743         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
23744         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
23745         Likewise.
23746         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
23747         is zero, not whether it is defined.
23748         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
23749         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
23750         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
23751
23752 2010-09-10  Bruno Haible  <bruno@clisp.org>
23753
23754         langinfo, nl_langinfo: Fix for IRIX 5.3.
23755         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
23756         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
23757         HAVE_LANGINFO_YESEXPR.
23758         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
23759         HAVE_LANGINFO_YESEXPR.
23760         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
23761         HAVE_LANGINFO_T_FMT_AMPM is 0.
23762         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
23763         HAVE_LANGINFO_YESEXPR is 0.
23764         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
23765         NOEXPR.
23766         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
23767         * doc/posix-functions/nl_langinfo.texi: Likewise.
23768         Reported by Eric Blake.
23769
23770 2010-09-10  Bruno Haible  <bruno@clisp.org>
23771
23772         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
23773         * doc/glibc-functions/login_tty.texi: Mention the include file problem
23774         on FreeBSD 8.0 and OpenBSD 4.6.
23775         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
23776         * m4/pty_h.m4 (gl_PTY_H): Likewise.
23777         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
23778         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
23779         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
23780         ac_includes_default.
23781         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
23782
23783 2010-09-09  Eric Blake  <eblake@redhat.com>
23784
23785         strsignal: work around NetBSD bug
23786         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
23787         * lib/string.in.h (includes): Likewise.
23788         * doc/posix-functions/strsignal.texi (strsignal): Document the
23789         bug.
23790         Reported by Nelson H. F. Beebe.
23791
23792         gnulib-tool: work with NetBSD /bin/sh
23793         * gnulib-tool (func_cache_var, func_cache_lookup_module)
23794         (func_get_description, func_get_comment, func_get_status)
23795         (func_get_notice, func_get_applicability, func_get_filelist)
23796         (func_get_dependencies, func_get_autoconf_early_snippet)
23797         (func_get_autoconf_snippet, func_get_automake_snippet)
23798         (func_get_include_directive, func_get_link_directive)
23799         (func_get_license, func_get_maintainer, func_import): Avoid
23800         shell syntax errors from parsing syntax extensions.
23801
23802 2010-09-09  Bruno Haible  <bruno@clisp.org>
23803
23804         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23805         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
23806         a reliable way to determine whether the 'alias' command works.
23807
23808 2010-09-08  Jim Meyering  <meyering@redhat.com>
23809
23810         init.sh: penalize a set-x-impaired shell; don't disqualify it
23811         * tests/init.sh: Too many shells corrupt application stderr when
23812         you set -x, so we can't afford to disqualify them, since at least
23813         on Irix-6.5, that would disqualify all bourne shells.
23814         Instead, use a two-pass approach.
23815         On the first pass, try to find a shell that meets the stricter
23816         condition that set -x does not corrupt stderr.
23817         If no shell meets the stricter condition, retest each candidate
23818         shell, but without that extra condition.  Finally, when
23819         VERBOSE=yes is requested and set -x might cause trouble, simply
23820         issue a warning and refrain from enabling debug output.
23821
23822 2010-09-08  Eric Blake  <eblake@redhat.com>
23823
23824         unsetenv: fix OpenBSD bug
23825         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
23826         * doc/posix-functions/unsetenv.texi (unsetenv): Update
23827         documentation.
23828         Reported by Jim Meyering.
23829
23830         strtod: work around IRIX 6.5 bug
23831         * lib/strtod.c (strtod): Reparse number on shorter string if
23832         exponent parse was invalid.
23833         * tests/test-strtod.c (main): Add check for "0x1p 2".
23834         Reported by Tom G. Christensen.
23835
23836         getopt: optimize previous patch
23837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
23838         empty variable.  Speed up awk script.
23839         Reported by Paolo Bonzini.
23840
23841 2010-09-08  Jim Meyering  <meyering@redhat.com>
23842
23843         test.sh: disqualify shells for which set -x corrupts stderr
23844         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
23845         and OpenBSD 4.7.  They make it so with "set -x", environment settings
23846         appear in stderr output.  For example, this command:
23847             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
23848         prints "P=1" on those two systems:
23849
23850 2010-09-08  Bruno Haible  <bruno@clisp.org>
23851
23852         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
23853         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
23854         commands, because some shells ignore redirections when there is an
23855         error in the command lookup.
23856         Reported by Eric Blake.
23857
23858 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
23859
23860         * lib/regex.h: Fix a mention of `regex_compile' (should be
23861         `re_compile_pattern').
23862         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
23863         (re_set_registers): Correct name of parameter in comment.
23864
23865         * doc/regex.texi: Add documentation for missing syntax flags.
23866         Remove commented-out documentation of defunct syntax option
23867         RE_NO_EMPTY_ALTS.
23868         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
23869         Add documentation of re_set_registers.
23870         Document trick to re-use a pattern buffer by setting fastmap manually.
23871         Update documentation of struct re_pattern_buffer per public members.
23872         Uncomment documentation of equivalence class operators and
23873         collating symbol operators, since they are now implemented,
23874         Explain leftmost-longest matching in relation to alternatives.
23875         Tidy documentation of substring matching.
23876         Remove POSIX documentation, which is done better in
23877         glibc, and refer the reader there. Keep BSD API documentation, as
23878         that is not readily available elsewhere.
23879
23880 2010-09-07  Eric Blake  <eblake@redhat.com>
23881
23882         getopt: handle POSIXLY_CORRECT set but not exported
23883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
23884         export state of POSIXLY_CORRECT, due to bash set -o posix.
23885         Reported by Dustin J. Mitchell.
23886
23887 2010-09-05  Bruno Haible  <bruno@clisp.org>
23888
23889         gnulib-tool: Highlight the changed options.
23890         * gnulib-tool (func_usage): Display the --import, --add-import,
23891         --remove-import explanations in bold font.
23892
23893 2010-09-06  Karl Berry  <karl@gnu.org>
23894
23895         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
23896
23897 2010-09-05  Bruno Haible  <bruno@clisp.org>
23898
23899         uniwidth/width: Update comment.
23900         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
23901         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
23902
23903 2010-09-05  Bruno Haible  <bruno@clisp.org>
23904
23905         isinf, isnan: Relax license.
23906         * modules/isinf (License): Change from GPL to LGPL, with consent from
23907         Ben Pfaff.
23908         * modules/isnan (License): Likewise.
23909         Requested by Ludovic Courtès.
23910
23911 2010-09-04  Bruno Haible  <bruno@clisp.org>
23912
23913         gnulib-tool: Help migration from --import to --add-import or --update.
23914         * gnulib-tool: Emit a verbose error message when --import is used
23915         without any module name.
23916
23917 2010-09-04  Bruno Haible  <bruno@clisp.org>
23918
23919         Update doc about gnulib-tool.
23920         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
23921         'gnulib-tool --update' in more detail.
23922         Reported by Eric Blake.
23923
23924 2010-09-04  Bruno Haible  <bruno@clisp.org>
23925
23926         gnulib-tool: Change --import. New options --add/remove-import.
23927         * gnulib-tool: New options --add-import, --remove-import.
23928         (func_usage): Document them.
23929         (have_associative): Define always.
23930         (func_import): In import mode, don't merge the specified settings with
23931         the cached settings. Implement remove-import mode.
23932         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
23933         Explain when to use them versus --import.
23934         (Simple update): Use --add-import instead of --import.
23935         * NEWS: Mention the change.
23936
23937 2010-09-04  Bruno Haible  <bruno@clisp.org>
23938
23939         * doc/gnulib-tool.texi (Initial import): Update paragraph about
23940         separate gnulib.mk.
23941
23942 2010-09-04  Bruno Haible  <bruno@clisp.org>
23943
23944         gnulib-tool: Don't talk about CVS any more.
23945         * gnulib-tool (func_usage, func_import): Write "version control"
23946         instead of CVS.
23947
23948 2010-09-04  Jim Meyering  <meyering@redhat.com>
23949
23950         maint.mk: avoid obscure sc_copyright_check failure in coreutils
23951         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
23952         false positives (whose names may be ill-chosen) when searching
23953         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
23954         would cause a false-positive.
23955
23956         avoid coreutils "make distcheck" failure
23957         Coreutils tests with an absolute build directory name that contains
23958         a space.  Not quoting this directory name caused a failure.
23959         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
23960         * tests/test-vc-list-files-cvs.sh: Likewise.
23961
23962 2010-09-04  Bruno Haible  <bruno@clisp.org>
23963
23964         gnulib-tool: Avoid error when run in a package without Makefile.am.
23965         * gnulib-tool: When collecting the m4dirs in a package that does not
23966         have a Makefile.am, eliminate those directories that contain no
23967         gnulib-cache.m4. Fix expression that counts these directories.
23968
23969 2010-09-04  Bruno Haible  <bruno@clisp.org>
23970
23971         update-copyright test: Improve output when perl is missing or too old.
23972         * tests/test-update-copyright.sh: Move test of Perl version down after
23973         the test whether Perl exists. Provide an explanation relating Perl's
23974         error message to Automake's SKIP: message.
23975
23976 2010-09-04  Bruno Haible  <bruno@clisp.org>
23977
23978         Don't augment PATH in TESTS_ENVIRONMENT.
23979         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
23980         set abs_aux_dir instead of augmenting PATH.
23981         * modules/vc-list-files-tests (Makefile.am): Likewise.
23982         * tests/test-update-copyright.sh: Augment PATH here.
23983         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
23984         path_prepend_.
23985         * tests/test-vc-list-files-git.sh: Likewise.
23986
23987 2010-09-04  Jim Meyering  <meyering@redhat.com>
23988
23989         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
23990         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
23991
23992 2010-09-04  Bruno Haible  <bruno@clisp.org>
23993
23994         strdup: Fix compilation error in C++ mode.
23995         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
23996         the macro.
23997
23998 2010-09-04  Bruno Haible  <bruno@clisp.org>
23999
24000         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
24001         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
24002         macro into a function.
24003         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24004
24005 2010-09-04  Bruno Haible  <bruno@clisp.org>
24006
24007         Set PATH_SEPARATOR the same way autoconf does.
24008         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
24009         the value of PATH_SEPARATOR the same way autoconf-generated configure
24010         scripts do.
24011         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
24012         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24013
24014 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24015
24016         Set PATH_SEPARATOR the same way autoconf does.
24017         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
24018         the same way autoconf-generated configure scripts do.
24019         * posix-modules: Likewise.
24020
24021 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24022
24023         hash: fix safe_hasher const typo
24024         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
24025         const; otherwise, there is a type error later.
24026
24027 2010-09-02  Jim Meyering  <meyering@redhat.com>
24028
24029         test-update-copyright.sh: require perl 5.8.0
24030         * tests/test-update-copyright.sh: Require 5.8.0,
24031         which Tom G. Christensen has confirmed is adequate,
24032         while 5.6.1 is not.
24033
24034 2010-09-02  Eric Blake  <eblake@redhat.com>
24035
24036         tests: init.sh improvements for re-exec'ing with zsh
24037         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
24038         -vx through shell re-exec.
24039         Reported by Tom G. Christensen.
24040
24041         wctype: fix typo in previous commit
24042         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
24043         Reported by Ludovic Courtès.
24044
24045 2010-09-02  Jim Meyering  <meyering@redhat.com>
24046
24047         test-update-copyright.sh: skip test if Perl is too old
24048         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
24049         Reported by Tom G. Christensen.
24050
24051 2010-09-02  Bruno Haible  <bruno@clisp.org>
24052
24053         wctype: Avoid compilation error on IRIX 6.5.30.
24054         * lib/wctype.in.h (iswblank): Declare with a replacement if
24055         REPLACE_ISWBLANK is set.
24056         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
24057         declared. Set REPLACE_ISWBLANK.
24058         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
24059         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
24060         * doc/posix-headers/wctype.texi: Likewise.
24061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24062
24063 2010-09-01  Bruno Haible  <bruno@clisp.org>
24064
24065         New module 'socketlib'.
24066         * modules/socketlib: New file.
24067         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
24068         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
24069         * modules/sockets (Depends-on): Add socketlib.
24070         Suggested by Sam Steingold <sds@gnu.org>.
24071
24072 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24073
24074         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
24075
24076         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
24077         when one needs search access to a directory but not read access.
24078         On systems where it is available, it works in some cases where
24079         O_RDONLY does not, namely on directories that are searchable but
24080         not readable, and which need only to be searchable.  If O_SEARCH
24081         is not available, fall back to the traditional method of using
24082         O_RDONLY.
24083
24084         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
24085         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
24086         when opening a directory that needs only to be searchable.
24087         * lib/chdir-safer.c (chdir_no_follow): Likewise.
24088         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
24089         * lib/openat-proc.c (openat_proc_name): Likewise.
24090         * lib/openat.c (openat_needs_fchdir): Likewise.
24091         * lib/save-cwd.c (save_cwd): Likewise.
24092         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
24093
24094 2010-08-28  Bruno Haible  <bruno@clisp.org>
24095
24096         New module 'host-cpu-c-abi'.
24097         * modules/host-cpu-c-abi: New file.
24098         * m4/host-cpu-c-abi.m4: New file, based on part of
24099         clisp/src/m4/general.m4.
24100         Requested by Sam Steingold <sds@gnu.org>.
24101
24102 2010-08-31  Eric Blake  <eblake@redhat.com>
24103         and Jim Meyering  <meyering@redhat.com>
24104
24105         hash: factor, and guard against misbehaving hasher function
24106         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
24107         of table->hasher's return value.  Also protect against a hash value
24108         so large that adding it to table->bucket results in a NULL pointer.
24109         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
24110         Use it in place of open-coded check-and-abort.
24111
24112 2010-08-30  Bruno Haible  <bruno@clisp.org>
24113
24114         hash: silence spurious clang warning
24115         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
24116         Reported by Eric Blake.
24117
24118 2010-08-30  Eric Blake  <eblake@redhat.com>
24119
24120         strstr, memmem, strcasestr: avoid leaked shell message
24121         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
24122         FreeBSD.
24123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24124         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24125
24126         tests: silence clang warning
24127         * tests/test-malloca.c (do_allocation): Avoid dead store.
24128
24129 2010-08-29  Bruno Haible  <bruno@clisp.org>
24130
24131         gettext: Fix recent mistake.
24132         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
24133
24134 2010-08-29  Bruno Haible  <bruno@clisp.org>
24135
24136         selinux-h: Offer a --without-selinux option.
24137         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
24138         --without-selinux was specified, skip all tests and define
24139         HAVE_SELINUX_SELINUX_H to 0.
24140         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
24141         set LIB_SELINUX to empty.
24142         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
24143         gl_LIBSELINUX. If --without-selinux was specified, replace
24144         selinux/context.h.
24145         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
24146
24147 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24148             Bruno Haible  <bruno@clisp.org>
24149
24150         Make the module 'realloc-gnu' work again on AIX and OSF/1.
24151         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
24152         of HAVE_REALLOC.
24153         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
24154         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
24155         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
24156         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24157
24158 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24159             Bruno Haible  <bruno@clisp.org>
24160
24161         Make the module 'calloc-gnu' work again on AIX and OSF/1.
24162         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
24163         HAVE_CALLOC.
24164         * lib/xmalloc.c: Update accordingly.
24165         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
24166         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
24167         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
24168
24169 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24170             Bruno Haible  <bruno@clisp.org>
24171
24172         Make the module 'malloc-gnu' work again on AIX and OSF/1.
24173         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
24174         HAVE_MALLOC.
24175         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
24176         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
24177         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24178
24179 2010-08-29  Bruno Haible  <bruno@clisp.org>
24180
24181         Update modules list.
24182         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
24183         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
24184         (String handling <string.h>): Add astrxfrm.
24185         (File system functions): Add readlinkat.
24186
24187 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24188
24189         Tests for module 'realloc-gnu'.
24190         * modules/realloc-gnu-tests: New file.
24191         * tests/test-realloc-gnu.c: New file.
24192
24193         Tests for module 'calloc-gnu'.
24194         * modules/calloc-gnu-tests: New file.
24195         * tests/test-calloc-gnu.c: New file.
24196
24197         Tests for module 'malloc-gnu'.
24198         * modules/malloc-gnu-tests: New file.
24199         * tests/test-malloc-gnu.c: New file.
24200
24201 2010-08-28  Bruno Haible  <bruno@clisp.org>
24202
24203         Rename module 'realloc' -> 'realloc-gnu'.
24204         * modules/realloc-gnu: New file, copied from modules/realloc.
24205         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
24206         obsolete.
24207         * modules/mgetgroups (Depends-on): Update.
24208         * doc/posix-functions/realloc.texi: Update.
24209         * NEWS: Mention the change.
24210
24211         Rename module 'calloc' -> 'calloc-gnu'.
24212         * modules/calloc-gnu: New file, copied from modules/calloc.
24213         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
24214         obsolete.
24215         * doc/posix-functions/calloc.texi: Update.
24216         * NEWS: Mention the change.
24217
24218         Rename module 'malloc' -> 'malloc-gnu'.
24219         * modules/malloc-gnu: New file, copied from modules/malloc.
24220         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
24221         obsolete.
24222         * modules/argp (Depends-on): Update.
24223         * modules/regex (Depends-on): Update.
24224         * doc/posix-functions/malloc.texi: Update.
24225         * NEWS: Mention the change.
24226
24227 2010-08-28  Eric Blake  <eblake@redhat.com>
24228
24229         pread, pwrite: add missing dependency
24230         * modules/pread (Depends-on): Add extensions.
24231         * modules/pwrite (Depends-on): Likewise.
24232
24233 2010-08-28  Bruno Haible  <bruno@clisp.org>
24234
24235         unistr/u*-strchr: Fix tests dependencies.
24236         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
24237         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
24238         Reported by Ian Beckwith <ianb@erislabs.net>.
24239
24240 2010-08-28  Bruno Haible  <bruno@clisp.org>
24241
24242         read-file: Don't occupy too much unused memory.
24243         * lib/read-file.c (fread_file): Shrink the buffer at the end.
24244
24245 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
24246             Eric Blake  <eblake@redhat.com>
24247             Bruno Haible  <bruno@clisp.org>
24248
24249         read-file: Avoid memory reallocations with regular files.
24250         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
24251         (fread_file): With regular files, use the remaining length as the
24252         initial buffer size.  Check against overflow.
24253         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
24254         sys_stat.
24255
24256 2010-08-28  Bruno Haible  <bruno@clisp.org>
24257
24258         ftello: Relax license.
24259         * modules/ftello (License): Relax to LGPLv2+.
24260         Reported by Eric Blake.
24261
24262 2010-08-28  Bruno Haible  <bruno@clisp.org>
24263
24264         Avoid relocwrapper link errors due to gnulib replacement functions.
24265         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
24266         function.
24267         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24268
24269 2010-08-28  Bruno Haible  <bruno@clisp.org>
24270
24271         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
24272         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
24273         defined.
24274         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
24275         Suggested by Eric Blake.
24276
24277 2010-08-28  Bruno Haible  <bruno@clisp.org>
24278
24279         sys_socket, netdb: Ensure socklen_t gets defined.
24280         * modules/sys_socket (Depends-on): Add socklen.
24281         * modules/netdb (Depends-on): Likewise.
24282         * modules/getaddrinfo (Depends-on): Remove socklen.
24283         * modules/getsockopt (Depends-on): Likewise.
24284         * modules/setsockopt (Depends-on): Likewise.
24285         * tests/test-sys_socket.c: Check that socklen_t is defined.
24286         * tests/test-netdb.c: Likewise.
24287         * m4/socklen.m4: Update comments.
24288         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24289
24290 2010-08-27  Eric Blake  <eblake@redhat.com>
24291
24292         login_tty: add missing dependency
24293         * modules/login_tty (Depends-on): Add pty.
24294
24295 2010-08-26  Eric Blake  <eblake@redhat.com>
24296
24297         lib-symbol-versions: fix m4 quoting
24298         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
24299         format for AC_LINK_IFELSE.
24300
24301         glob: fix compile test
24302         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
24303
24304         btowc: fix missing file
24305         * modules/btowc (Files): Also ship locale-fr.m4.
24306
24307         lseek: fix link test
24308         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
24309         AC_LINK_IFELSE.
24310
24311         include_next: silence autoconf 2.68 warning
24312         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
24313         AC_COMPILE_IFELSE as special.
24314         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
24315         autoconf < 2.68.
24316
24317         acl: fix compilation test
24318         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
24319         AC_COMPILE_IFELSE.
24320
24321 2010-08-26  Bruno Haible  <bruno@clisp.org>
24322
24323         Modernize AC_TRY_RUN invocations.
24324         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
24325         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24326         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
24327         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
24328         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
24329         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24330         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24332         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24333         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24334         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24335         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24336         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24337         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24338         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24339         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24340         gl_MBRLEN_NUL_RETVAL): Likewise.
24341         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24342         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24343         Likewise.
24344         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24345         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24346         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24347         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24348         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
24349         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
24350         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
24351         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
24352         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
24353         Likewise.
24354         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24355         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
24356         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24357         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24358         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24359         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24360         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24361         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
24362         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24363         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24364
24365 2010-08-26  Bruno Haible  <bruno@clisp.org>
24366
24367         Modernize AC_TRY_LINK invocations.
24368         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
24369         AC_TRY_LINK.
24370         * m4/argp.m4 (gl_ARGP): Likewise.
24371         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
24372         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24373         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
24374         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
24375         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
24376         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
24377         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
24378         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
24379         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
24380         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
24381         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
24382         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
24383         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
24384         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24385         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24386         * m4/hostent.m4 (gl_HOSTENT): Likewise.
24387         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24388         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
24389         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24390         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
24391         Likewise.
24392         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
24393         Likewise.
24394         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
24395         Likewise.
24396         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
24398         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
24399         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
24400         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
24401         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24402         * m4/servent.m4 (gl_SERVENT): Likewise.
24403         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
24404         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
24405         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
24406         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
24407         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24408         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
24409         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24410         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24411         * modules/tsearch-tests (configure.ac): Likewise.
24412
24413 2010-08-26  Bruno Haible  <bruno@clisp.org>
24414
24415         Modernize AC_TRY_COMPILE invocations.
24416         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
24417         AC_TRY_COMPILE.
24418         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
24419         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
24420         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24421         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24422         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24423         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24424         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24425         * m4/lock.m4 (gl_LOCK): Likewise.
24426         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
24427         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24428         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
24429         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24430         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24431         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
24432         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
24433         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
24434         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24435         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24436         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24437         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24438         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
24439         extraneous semicolon.
24440
24441 2010-08-26  Jim Meyering  <meyering@redhat.com>
24442
24443         stat-time: relax license LGPL
24444         * modules/stat-time (License): Change from GPL to LGPL,
24445         with consent from all contributors, for use in libguile.
24446         Requested by Ludovic Courtès.
24447
24448 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
24449
24450         poll: return immediately on POLLHUP.
24451         * lib/poll.c (poll): Always set timeout before wait_timeout is
24452         computed.
24453
24454 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24455
24456         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
24457         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
24458         rmdir ("dir/.//"), unlinkat.
24459
24460 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24461
24462         stdbool: avoid spurious failure with modern xlc
24463         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
24464
24465 2010-08-24  Bruno Haible  <bruno@clisp.org>
24466
24467         getloadavg: simplify code
24468         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
24469         gl_have_func. Update comments.
24470
24471 2010-08-24  Eric Blake  <eblake@redhat.com>
24472
24473         getloadavg: don't define SVR4 on cygwin
24474         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
24475         only define SVR4 when -lkvm is required.
24476         Reported by Yaakov Selkowitz.
24477
24478 2010-08-24  Bruno Haible  <bruno@clisp.org>
24479
24480         priv-set: fix comment
24481         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
24482
24483 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24484
24485         priv-set: fix comments
24486         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
24487         to match code, as suggested by David Bartley in:
24488         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
24489
24490 2010-08-23  Eric Blake  <eblake@redhat.com>
24491
24492         stdbool: avoid rejecting clang
24493         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
24494         * tests/test-stdbool.c: Enable more tests if using the system
24495         <stdbool.h> instead of the gnulib replacement.
24496         (main): Move xlc bug test to a runtime test for all compilers.
24497         Reported by Anders Kaseorg.
24498
24499         argz: fix shell quoting issue
24500         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
24501         Reported by Charles Wilson.
24502
24503 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
24504             Erik Faye-Lund <kusmabite@gmail.com>
24505
24506         poll, select: handle ERROR_BROKEN_PIPE.
24507         * lib/poll.c (win32_compute_revents): Return POLLHUP when
24508         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
24509         * lib/select.c (win32_compute_revents): Do not mark a pipe
24510         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
24511
24512 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
24513
24514         fts: allow compilation with C++
24515         * lib/fts_.h: Specify extern "C" linkage with C++.
24516
24517 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24518
24519         Fix gnulib-tool sed script de-commentation for AIX sed.
24520         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
24521         sed.
24522
24523 2010-08-17  Eric Blake  <eblake@redhat.com>
24524
24525         test-stddef: test for (some) offsetof bugs
24526         * tests/test-stddef.c: Enhance test to ensure correct type of
24527         offsetof.
24528         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
24529         that we are not fixing at this time.
24530
24531 2010-08-15  Bruno Haible  <bruno@clisp.org>
24532
24533         stpncpy: Allow stpncpy to be defined as a macro.
24534         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
24535         if it's already correctly declared.
24536         * lib/string.in.h (stpncpy): Undefine before redefining.
24537         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
24538
24539 2010-08-14  Bruno Haible  <bruno@clisp.org>
24540
24541         Rename module 'memxfrm' to 'amemxfrm'.
24542         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
24543         (amemxfrm): Renamed from memxfrm.
24544         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
24545         (amemxfrm): Renamed from memxfrm.
24546         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
24547         * NEWS: Mention the change.
24548         * MODULES.html.sh (String handling <string.h>): Update.
24549         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
24550         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
24551         * lib/unicase/u16-casexfrm.c: Likewise.
24552         * lib/unicase/u32-casexfrm.c: Likewise.
24553         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
24554         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
24555         * lib/uninorm/u16-normxfrm.c: Likewise.
24556         * lib/uninorm/u32-normxfrm.c: Likewise.
24557         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
24558         memxfrm.
24559         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
24560         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
24561         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
24562         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
24563         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
24564         Suggested by Paul Eggert.
24565
24566 2010-08-14  Bruno Haible  <bruno@clisp.org>
24567
24568         Tests for module 'astrxfrm'.
24569         * modules/astrxfrm-tests: New file.
24570         * tests/test-astrxfrm.c: New file.
24571
24572         New module 'astrxfrm'.
24573         * lib/astrxfrm.h: New file.
24574         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
24575         * modules/astrxfrm: New file.
24576
24577 2010-08-14  Reuben Thomas <rrt@sc3d.org>
24578
24579         regex: Tweak doc.
24580         * doc/regex.texi (Overview): Don't mention regex.c.
24581         (GNU Regular Expression Compiling): Likewise.
24582         (Match-end-of-line Operator): Mention 'not_eol'.
24583
24584 2010-08-14  Brian Gough  <bjg@gnu.org>
24585             Bruno Haible  <bruno@clisp.org>
24586
24587         git-merge-changelog: add doc relating to use with bzr and hg.
24588         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
24589
24590 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
24591
24592         pthread: fix pthread.h creation for srcdir != builddir
24593         * modules/pthread (Makefile.am): Fix the rule to work also in a
24594         non-srcdir build.
24595
24596 2010-08-13  Karl Berry  <karl@gnu.org>
24597
24598         * doc/regex.texi (Predefined Syntaxes): @smallexample.
24599         * doc/posix-*/*: force line break before @url of POSIX
24600         specifications.
24601         Suggested by Werner Lemberg.
24602
24603 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24604
24605         strtod: fix const diagnostic
24606         * lib/strtod.c (strtod): Don't assign const char * to char *,
24607         as this elicits a warning from GCC when warnings are enabled.
24608
24609 2010-08-10  Pádraig Brady <P@draigbrady.com>
24610         and Eric Blake  <eblake@redhat.com>
24611
24612         copy-acl: ignore ENOTSUP on HP-UX
24613         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
24614         so that it is available for HP-UX.
24615         * lib/copy-acl.c (qcopy_acl): Use it.
24616         Reported by Patrick M. Callahan.
24617
24618 2010-08-10  Eric Blake  <eblake@redhat.com>
24619
24620         open, chown: relax license
24621         * modules/open (License): Change to LGPLv2+, with consent by all
24622         authors, for use in augeas.
24623         * modules/chown (License): Likewise.
24624         * modules/lchown (Likewise): Likewise.
24625         Requested by Adam Stokes.
24626
24627 2010-08-09  Karl Berry  <karl@gnu.org>
24628
24629         * build-aux/ar-lib: new file, import from Automake.
24630         * config/srclist.txt: autocheck for updates.
24631
24632 2010-08-09  Eric Blake  <eblake@redhat.com>
24633
24634         readlinkat: adjust client modules
24635         * modules/areadlinkat (Depends-on): Use readlinkat, not
24636         symlinkat.
24637         * modules/areadlinkat-with-size (Depends-on): Likewise.
24638
24639         mknod: be more vocal about danger of running tests as root
24640         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
24641         root, since that is just asking for problems.
24642         Suggested by Bruno Haible, based on a report by Rainer Tammer.
24643
24644         readlinkat: split into its own module
24645         * modules/symlinkat: Split readlinkat...
24646         * modules/readlinkat: ...into separate module.
24647         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
24648         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
24649         * lib/symlinkat.c (readlinkat): Move...
24650         * lib/readlinkat.c: ...into new file.
24651         * modules/symlinkat-tests: Split readlinkat test...
24652         * modules/readlinkat-tests: ...into separate module.
24653         * tests/test-symlinkat.c: Split...
24654         * tests/test-readlinkat.c: ...into new file.
24655         * NEWS: Document the split.
24656         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24657         * lib/unistd.in.h (readlinkat): Likewise.
24658         Suggested by Bruno Haible.
24659
24660 2010-08-08  Bruno Haible  <bruno@clisp.org>
24661
24662         memxfrm: Speed up.
24663         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
24664         that usually only one call to strxfrm is necessary for each string
24665         part.
24666         Reported by Paul Eggert <eggert@cs.ucla.edu>.
24667
24668 2010-08-07  Karl Berry  <karl@gnu.org>
24669
24670         * doc/posix-headers/limits.texi,
24671         * doc/posix-functions/malloc.texi,
24672         * doc/posix-functions/strsignal.texi: missing @item.
24673         * doc/ld-version-script.texi: spurious leading i.
24674         * doc/regex.texi (Interval Operators): no commas inside @var.
24675
24676 2010-08-01  Bruno Haible  <bruno@clisp.org>
24677
24678         Integrate the regex documentation.
24679         * doc/gnulib.texi: Define 'cn' index.
24680         (Regular expressions): New a chapter that includes regex.texi and
24681         regexprops-generic.texi.
24682         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
24683         syntax.
24684
24685         Whitespace cleanup.
24686         * doc/regex.texi: Remove trailing spaces.
24687
24688         Add regex documentation.
24689         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
24690         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
24691         Written by Kathy A. Hargreaves and Karl Berry.
24692
24693 2010-08-01  Bruno Haible  <bruno@clisp.org>
24694
24695         link: Update documentation.
24696         * doc/posix-functions/link.texi: Update regarding Solaris.
24697
24698 2010-07-31  Bruno Haible  <bruno@clisp.org>
24699
24700         Update modules list.
24701         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
24702         (String handling <string.h>): Add memcmp2, memxfrm.
24703         (Container data structures): Add xlist, xsublist, xoset.
24704         (Core language properties): Add alignof, unused-parameter.
24705         (Process control, Numeric conversion functions <stdlib.h>): Renamed
24706         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
24707         (Unibyte characters <ctype.h>): New section.
24708         (String handling <string.h>): New section.
24709         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
24710         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
24711         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
24712         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
24713         tan, tanh, tanl, y0, y1, yn.
24714         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
24715         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
24716         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
24717         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
24718         unlockpt, vdprintf, vdprintf-posix.
24719         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
24720         (File system functions): Add concat-filename, sys_file, sys_ioctl,
24721         xconcat-filename.
24722         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
24723         getdtablesize, pipe2, pipe2-safer.
24724         (Security): New section.
24725         (Networking functions): Add accept4.
24726         (Signal handling): Add sigpipe.
24727         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
24728         mbmemcasecoll.
24729         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
24730         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
24731         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
24732         pipe-filter-ii.
24733         (Misc): Add argp-version-etc, login_tty, parse-duration.
24734
24735 2010-07-31  Bruno Haible  <bruno@clisp.org>
24736
24737         Improve doc in MODULES.html.
24738         * modules/linkat (Description): Add the word "function".
24739         * modules/mkfifo (Description): Likewise.
24740         * modules/mknod (Description): Likewise.
24741         * modules/remove (Description): Likewise.
24742         * modules/renameat (Description): Likewise.
24743         * modules/stat (Description): Likewise.
24744         * modules/symlink (Description): Likewise.
24745         * modules/unlink (Description): Likewise.
24746
24747 2010-07-31  Bruno Haible  <bruno@clisp.org>
24748
24749         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
24750         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
24751         option --enable/disable-c++ instead of --enable/disable-cxx.
24752         * NEWS: Mention the change.
24753
24754 2010-07-31  Bruno Haible  <bruno@clisp.org>
24755
24756         readlink, areadlink: Relax test a bit.
24757         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
24758         alternative to ENOTDIR.
24759         * tests/test-areadlink.h (test_areadlink): Likewise.
24760         Reported by Rainer Tammer.
24761
24762 2010-07-31  Bruno Haible  <bruno@clisp.org>
24763
24764         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
24765         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
24766         character, perform the search using U_STRCHR.
24767         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
24768         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
24769         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
24770         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
24771         Suggested by Paolo Bonzini.
24772
24773 2010-07-31  Bruno Haible  <bruno@clisp.org>
24774
24775         unistr/u*-strstr: Fix dependencies.
24776         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
24777         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
24778         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
24779
24780 2010-07-31  Bruno Haible  <bruno@clisp.org>
24781
24782         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
24783         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
24784         the beginning of the loop.
24785         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
24786         cases in 'switch' statement.
24787
24788         unistr/u8-strchr: Fix several bugs.
24789         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
24790         the string. When not found, return NULL, not a pointer near the end.
24791
24792         More tests for unistr/u8-strchr.
24793         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
24794         that the function does not read past the first occurrence of the byte
24795         being searched.
24796         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
24797         * tests/unistr/test-u16-strchr.c (main): New function.
24798         * tests/unistr/test-u32-strchr.c (main): New function.
24799
24800 2010-07-31  Bruno Haible  <bruno@clisp.org>
24801
24802         posix-modules: Ignore backup files of documentation files.
24803         * posix-modules: grep only through files named *.texi.
24804
24805 2010-07-31  Bruno Haible  <bruno@clisp.org>
24806
24807         symlinkat: Fix documentation.
24808         * doc/posix-functions/readlinkat.texi: Fix module name.
24809
24810 2010-07-31  Bruno Haible  <bruno@clisp.org>
24811
24812         fchownat: Replace also when chown has the trailing slash bug.
24813         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
24814         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
24815         introduced on 2010-04-10.
24816         Reported by Rainer Tammer.
24817
24818 2010-07-31  Bruno Haible  <bruno@clisp.org>
24819
24820         linkat: Work around AIX 7.1 bug.
24821         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
24822         whether linkat handles trailing slash correctly. If not, replace linkat
24823         and define LINKAT_TRAILING_SLASH_BUG.
24824         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
24825         check whether (fd1,file1) points to a directory if file1 or file2 ends
24826         in a slash. Code taken from lib/link.c.
24827         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
24828         Reported by Rainer Tammer.
24829
24830 2010-07-31  Bruno Haible  <bruno@clisp.org>
24831
24832         Correctly determine whether pow is available in libc on AIX 7 with xlc.
24833         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
24834         This disables an xlc optimization that was causing wrong test results.
24835         Reported by Rainer Tammer.
24836
24837 2010-07-31  Bruno Haible  <bruno@clisp.org>
24838
24839         iconv: Work around AIX 6.1..7.1 bug.
24840         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
24841         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
24842         cross-compiling, guess no on all versions of AIX.
24843         Reported by Rainer Tammer.
24844
24845 2010-07-31  Bruno Haible  <bruno@clisp.org>
24846
24847         readlink: Relax test a bit.
24848         * tests/test-readlink.h (test_readlink): Allow different errno value
24849         when readlink is called with a file name that ends in / and refers to
24850         a file.
24851         Suggested by Eric Blake.
24852         Reported by Rainer Tammer.
24853
24854 2010-07-31  Bruno Haible  <bruno@clisp.org>
24855
24856         copysign: Does not require -lm on glibc systems.
24857         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
24858         gl_COMMON_DOUBLE_MATHFUNC.
24859         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
24860
24861 2010-07-31  Bruno Haible  <bruno@clisp.org>
24862
24863         duplocale: Work around AIX 7.1 bug.
24864         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
24865         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
24866         * lib/duplocale.c (rpl_duplocale): Update comment.
24867         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
24868         Reported by Rainer Tammer.
24869
24870 2010-07-30  Bruno Haible  <bruno@clisp.org>
24871
24872         dirfd: Avoid link error on AIX 7.1.
24873         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
24874         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
24875         exist, set REPLACE_DIRFD.
24876         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
24877         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
24878         * doc/posix-functions/dirfd.texi: Update.
24879         Reported by Rainer Tammer.
24880
24881 2010-07-30  Eric Blake  <eblake@redhat.com>
24882
24883         strtod: next round of AIX fixes
24884         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
24885         exponent.
24886         * tests/test-strtod.c (main): Enhance tests.
24887         * doc/posix-functions/strtod.texi (strtod): Document next bug.
24888         Reported by Rainer Tammer.
24889
24890         futimens: fix configure check
24891         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
24892         Reported by Bruno Haible.
24893
24894 2010-07-30  Bruno Haible  <bruno@clisp.org>
24895
24896         getline: Update regarding AIX.
24897         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
24898         Reported by Rainer Tammer.
24899
24900 2010-07-30  Bruno Haible  <bruno@clisp.org>
24901
24902         wcwidth: Drop replacement on AIX 7.
24903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
24904         AIX 7.
24905         Reported by Rainer Tammer.
24906
24907 2010-07-30  Bruno Haible  <bruno@clisp.org>
24908
24909         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
24910         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
24911         a 'char *'.
24912         Reported by Rainer Tammer.
24913
24914 2010-07-30  Bruno Haible  <bruno@clisp.org>
24915
24916         unlink: Update regarding AIX.
24917         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
24918         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
24919         Reported by Rainer Tammer.
24920
24921 2010-07-30  Bruno Haible  <bruno@clisp.org>
24922
24923         symlink: Update regarding AIX.
24924         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
24925         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
24926         Reported by Rainer Tammer.
24927
24928 2010-07-30  Bruno Haible  <bruno@clisp.org>
24929
24930         strndup: Update regarding AIX.
24931         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
24932         AIX 7.
24933         Reported by Rainer Tammer.
24934
24935 2010-07-30  Bruno Haible  <bruno@clisp.org>
24936
24937         stat: Update regarding AIX.
24938         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
24939         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
24940         Reported by Rainer Tammer.
24941
24942 2010-07-30  Bruno Haible  <bruno@clisp.org>
24943
24944         truncl: Fix autoconf test.
24945         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
24946         whether truncl works.
24947         Reported by Rainer Tammer.
24948
24949 2010-07-30  Bruno Haible  <bruno@clisp.org>
24950
24951         round: Update regarding AIX.
24952         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
24953         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
24954         Reported by Rainer Tammer.
24955
24956 2010-07-30  Bruno Haible  <bruno@clisp.org>
24957
24958         rename: Update regarding AIX.
24959         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
24960         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
24961         Reported by Rainer Tammer.
24962
24963 2010-07-30  Bruno Haible  <bruno@clisp.org>
24964
24965         printf.m4: Update regarding AIX.
24966         * m4/printf.m4: Update comments regarding AIX.
24967         Reported by Rainer Tammer.
24968
24969 2010-07-30  Bruno Haible  <bruno@clisp.org>
24970
24971         iconv: Update regarding AIX.
24972         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
24973         AIX 7.
24974         Reported by Rainer Tammer.
24975
24976 2010-07-30  Bruno Haible  <bruno@clisp.org>
24977
24978         getopt: Update regarding AIX.
24979         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
24980         no on AIX.
24981         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
24982         Reported by Rainer Tammer.
24983
24984 2010-07-30  Bruno Haible  <bruno@clisp.org>
24985
24986         ldexpl; Update regarding AIX.
24987         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
24988         on AIX 7.
24989         Reported by Rainer Tammer.
24990
24991 2010-07-30  Bruno Haible  <bruno@clisp.org>
24992
24993         frexpl: Update regarding AIX.
24994         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
24995         on AIX 7.
24996         Reported by Rainer Tammer.
24997
24998 2010-07-30  Bruno Haible  <bruno@clisp.org>
24999
25000         open, fopen: Update regarding AIX.
25001         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
25002         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25003         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
25004         * doc/posix-functions/fopen.texi: Likewise.
25005         Reported by Rainer Tammer.
25006
25007 2010-07-30  Bruno Haible  <bruno@clisp.org>
25008
25009         chown: Update doc regarding AIX.
25010         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
25011         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
25012         Reported by Rainer Tammer.
25013
25014 2010-07-30  Eric Blake  <eblake@redhat.com>
25015
25016         strtod: fix bug in replacement function on AIX
25017         * lib/strtod.c (strtod): Special case broken "0x" parse in
25018         underlying strtod.
25019         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
25020         * doc/posix-functions/strtod.texi (strtod): Likewise.
25021         Reported by Rainer Tammer.
25022
25023 2010-07-30  Bruno Haible  <bruno@clisp.org>
25024
25025         mbrlen: Fix cross-compilation guess for AIX.
25026         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
25027         guess. Leftover from 2008-12-22.
25028
25029 2010-07-30  Bruno Haible  <bruno@clisp.org>
25030
25031         mbrtowc: Fix cross-compilation guess for AIX.
25032         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
25033         guess. Leftover from 2008-12-21.
25034
25035 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
25036
25037         init.sh: work around trap limitation of some shells
25038         * tests/init.sh (setup_): Move exit trap outside of shell function.
25039
25040 2010-07-29  Eric Blake  <eblake@redhat.com>
25041
25042         strtod: aid debugging
25043         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
25044         understanding why strtod is rejected.
25045
25046 2010-07-28  Bruno Haible  <bruno@clisp.org>
25047
25048         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
25049         * lib/unistr/u8-chr.c: Include <string.h>.
25050         * tests/unistr/test-u8-chr.c: Likewise.
25051         * tests/unistr/test-u16-chr.c: Likewise.
25052         * tests/unistr/test-u32-chr.c: Likewise.
25053         * tests/unistr/test-u8-strchr.c: Likewise.
25054         * tests/unistr/test-u16-strchr.c: Likewise.
25055         * tests/unistr/test-u32-strchr.c: Likewise.
25056         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
25057         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
25058         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
25059         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
25060
25061 2010-07-28  Bruno Haible  <bruno@clisp.org>
25062
25063         Use spaces for indentation, not tabs.
25064         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25065
25066 2010-07-27  Bruno Haible  <bruno@clisp.org>
25067
25068         mbspcasecmp: Fix function specification.
25069         * lib/string.in.h (mbspcasecmp): Fix specification comment.
25070         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
25071         Reported by Eric Blake <eblake@redhat.com>.
25072
25073 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
25074
25075         timespec: use cast and not conditional, as truncation isn't possible
25076         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
25077         instead of a conditional.  Comment about the situation in more detail.
25078         This undoes most of the 2009-10-29 patch.
25079
25080 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
25081
25082         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
25083         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
25084         * lib/unistr/u8-strchr.c: Likewise.
25085         * modules/unistr/u8-chr: Depend on memchr.
25086
25087         unistr/u*-strchr: add tests
25088         * modules/unistr/u8-strchr-tests: New file.
25089         * modules/unistr/u16-strchr-tests: New file.
25090         * modules/unistr/u32-strchr-tests: New file.
25091         * tests/unistr/test-strchr.h: New file.
25092         * tests/unistr/test-u8-strchr.c: New file.
25093         * tests/unistr/test-u16-strchr.c: New file.
25094         * tests/unistr/test-u32-strchr.c: New file.
25095
25096         unistr/u*-chr: test multibyte sequences more
25097         * tests/unistr/test-chr.h: Do complete testing of the characters in the
25098         test vector.
25099         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
25100         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
25101         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
25102
25103         unistr/u*-chr: test multibyte sequences
25104         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
25105
25106         unistr/u*-chr: prepare for multibyte tests
25107         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
25108         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
25109         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
25110         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
25111         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
25112         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
25113
25114 2010-07-18  Bruno Haible  <bruno@clisp.org>
25115
25116         unistr/u8-strchr: Optimize non-ASCII argument case.
25117         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
25118         because the first byte often matches anyway.
25119         Reported by Pádraig Brady <P@draigbrady.com>.
25120
25121 2010-07-15  Karl Berry  <karl@gnu.org>
25122
25123         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
25124
25125 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
25126
25127         getcwd: on Solaris, work better if ancestors are inaccessible
25128         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
25129         buffer and size, try again with a large buffer.  This works better
25130         on Solaris, since its getcwd succeeds even if the path to the root
25131         is inaccessible, and this is helpful in common cases such as .zfs
25132         hidden directories.  Problem reported by J Chapman Flack in
25133         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
25134         Use system getcwd if it's declared, not merely if it's partly
25135         working; use the partly-working test only to avoid needless effort
25136         if the system getcwd fails.
25137         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
25138         comment that was already obsolete and is now even more obsolete.
25139         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
25140         now might call strdup.
25141
25142 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
25143
25144         pthread: Add enough so that coreutils/src/sort.c compiles.
25145         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
25146         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
25147         gnulib. Include <sched.h> and <time.h>, as per POSIX.
25148         Include <sys/types.h>, in case it defines pthread_t.
25149         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
25150         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
25151         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
25152         (pthread_rwlockattr_t, pthread_spinlock_t):
25153         New typedefs, if HAVE_PTHREAD_T is not defined.
25154         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
25155         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
25156         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
25157         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
25158         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
25159         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
25160         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
25161         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
25162         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
25163         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
25164         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
25165         New macros.
25166         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
25167         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
25168         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
25169         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
25170         (pthread_spin_unlock): New dummy functions.
25171         (pthread_create): Return EAGAIN; don't set errno.
25172         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
25173         require AC_C_INLINE.
25174         * modules/pthread (Depends-on): Add sched, time.
25175         (pthread.h): Use AM_V_GEN.
25176
25177 2010-07-13  Bruno Haible  <bruno@clisp.org>
25178
25179         striconveh: Don't malloc memory if the result buffer is sufficient.
25180         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
25181         buffer if its size is sufficient.
25182         Reported by Ludovic Courtès <ludo@gnu.org>.
25183
25184 2010-07-13  Bruno Haible  <bruno@clisp.org>
25185
25186         strtod: Add safety check.
25187         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
25188
25189 2010-07-12  Bruno Haible  <bruno@clisp.org>
25190
25191         Unify tests that set gl_cv_func_ldexpl_no_libm.
25192         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
25193         gl_FUNC_LDEXPL.
25194         (gl_FUNC_LDEXPL): Invoke it.
25195         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25196
25197 2010-07-12  Bruno Haible  <bruno@clisp.org>
25198
25199         Unify tests that set gl_cv_func_ldexp_no_libm.
25200         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
25201         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
25202         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
25203         (configure.ac): Simply invoke gl_FUNC_LDEXP.
25204         * modules/strtod (Files): Add m4/ldexp.m4.
25205
25206 2010-07-12  Bruno Haible  <bruno@clisp.org>
25207
25208         Unify tests that set gl_cv_func_frexpl_no_libm.
25209         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
25210         gl_FUNC_FREXPL_NO_LIBM.
25211         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
25212         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25213
25214 2010-07-12  Bruno Haible  <bruno@clisp.org>
25215
25216         Unify tests that set gl_cv_func_frexp_no_libm.
25217         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
25218         gl_FUNC_FREXP_NO_LIBM.
25219         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
25220         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25221
25222 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25223
25224         memcoll: clarify sizes versus lengths, document better, and tweak perf
25225         * lib/memcoll.c (strcoll_loop, memcoll0):
25226         Improve quality of descriptive comments.  Name variables
25227         consistently as to whether they are lengths (which do not include
25228         terminating null) versus sizes (which do).
25229         * lib/xmemcoll.c (xmemcoll0): Likewise.
25230         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
25231         returned when s1size == 0; this is easier to compile and saves
25232         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
25233
25234 2010-07-12  Bruno Haible  <bruno@clisp.org>
25235
25236         Tests for module '_Exit'.
25237         * modules/_Exit-tests: New file.
25238         * tests/test-_Exit.sh: New file.
25239         * tests/test-_Exit.c: New file.
25240
25241         New module '_Exit'.
25242         * lib/stdlib.in.h (__attribute__): New macro.
25243         (_Exit): New declaration.
25244         * lib/_Exit.c: New file.
25245         * m4/_Exit.m4: New file.
25246         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
25247         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
25248         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
25249         * modules/_Exit: New file.
25250         * tests/test-stdlib-c++.cc (_Exit): Check signature.
25251         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
25252
25253 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25254
25255         strtod: make it more-accurate typically, and don't require libm
25256         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
25257         Include limits.h.  Don't include string.h.
25258         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
25259         (locale_isspace): New function, so that no casts are needed to
25260         check whether *s is a space.
25261         (ldexp): Provide an unused dummy if not available.
25262         (scale_radix_exp, parse_number, underlying_strtod): New functions.
25263         (strtod): Use them.  This implementation prefers to use the
25264         underlying strtod if available, falling back on our own code
25265         only to fix known bugs.  This is more likely to produce an
25266         accurate result.  Also, it avoids the use of libm functions.
25267         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
25268         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
25269         was absent, but it caused a test failure with coreutils.
25270         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
25271         with libm.
25272         * modules/strtod (Makefile.am, Link): libm is no longer needed.
25273         * modules/strtod-tests (Makefile.am): Likewise.
25274
25275 2010-07-11  Pádraig Brady  <P@draigBrady.com>
25276             Bruno Haible  <bruno@clisp.org>
25277
25278         unistr/u8-strchr: Optimize ASCII argument case.
25279         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
25280
25281 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25282
25283         (x)memcoll: minor tweaks
25284         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
25285         is after the type that it qualifies.
25286         (memcoll0): Likewise.
25287         * lib/memcoll.h (memcoll0): Likewise.
25288         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
25289         * lib/xmemcoll.h (xmemcoll0): Likewise.
25290         * lib/memcoll.c (memcoll0): Correct the comment.  This function
25291         differs from memcoll in that the NUL byte is part of the argument.
25292         Omit the abort-checks, as performance is a real issue here.  Plus,
25293         the checks were wrong anyway (an off-by-one error).  Omit local
25294         variable 'diff', as it's a bit clearer that way.
25295         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
25296         no longer needed.
25297
25298 2010-07-08  Chen Guo <chenguo4@yahoo.com>
25299
25300         (x)memcoll: speedup when input is known to be NUL delimited
25301         * lib/memcoll.c: Include stdlib.
25302         (memcoll0): New function.
25303         (strcoll_loop): New function, refactored for use in both memcoll
25304         and memcoll0.
25305         * lib/memcoll.h (memcoll0): Add prototype.
25306         * lib/xmemcoll.c (xmemcoll0): New function.
25307         (collate_error): New function, refactored for use in both xmemcoll
25308         and xmemcoll0.
25309         * lib/xmemcoll.h (xmemcoll0): Add prototype.
25310         * m4/memcoll.m4: add inline invocation.
25311
25312 2010-07-06  Pádraig Brady  <P@draigBrady.com>
25313
25314         * build-aux/bootstrap: Remove any local translations
25315         from the translation project synchronization directory,
25316         so that local only translations are not distributed.
25317
25318 2010-07-04  Bruno Haible  <bruno@clisp.org>
25319
25320         fsusage: Clarify which code applies to which platforms.
25321         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
25322         platform.
25323         * lib/fsusage.c (get_fs_usage): Likewise.
25324
25325 2010-07-04  Bruno Haible  <bruno@clisp.org>
25326
25327         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
25328         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
25329         Reported by Martin Lambers <marlam@marlam.de>.
25330
25331 2010-07-04  Jim Meyering  <meyering@redhat.com>
25332
25333         hash: once again explicitly disallow insertion of NULL
25334         * lib/hash.c (hash_insert0): Reinstate just-removed test:
25335         inserting a NULL pointer cannot work with these functions.
25336         Add a comment with details.
25337         This reverts part of the 2010-07-01 commit, 5bef1a35
25338         "hash: extend module to deal with non-pointer keys".
25339
25340 2010-07-01  Bruno Haible  <bruno@clisp.org>
25341
25342         stdbool: Update doc.
25343         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
25344         Info from Christian Weisgerber <naddy@mips.inka.de>.
25345
25346 2010-07-01  Jim Meyering  <meyering@redhat.com>
25347
25348         hash: extend module to deal with non-pointer keys
25349         * lib/hash.c (hash_insert0): New interface, much like hash_insert
25350         but that allows insertion of non-pointer entries.
25351         Do not disallow an ENTRY value of NULL.
25352         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
25353         * lib/hash.h (hash_insert0): Declare.
25354
25355 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25356
25357         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
25358         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
25359         not present (i.e. with autoconf 2.59 and when using gettextize, not
25360         gnulib), require AC_GNU_SOURCE instead.
25361
25362 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
25363
25364         idpriv-drop: Fix tests.
25365         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
25366         not to the test-idpriv-droptemp program.
25367
25368 2010-06-29  Bruno Haible  <bruno@clisp.org>
25369
25370         string: Fix syntax error with g++ 2.96.
25371         * lib/string.in.h (__pure__): Remove definition.
25372         (_GL_ATTRIBUTE_PURE): New macro.
25373         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
25374         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
25375         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25376
25377 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
25378
25379         unitypes: Fix bug introduced on 2010-05-18.
25380         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
25381
25382 2010-06-22  Eric Blake  <eblake@redhat.com>
25383
25384         memmem: slight optimization
25385         * lib/str-two-way.h (critical_factorization): Update comments.
25386         Reduce work during factorization phase.
25387         Reported by Carlos Bueno <carlos@bueno.org>.
25388
25389 2010-06-21  Bruno Haible  <bruno@clisp.org>
25390
25391         Fix HAVE_CALLOC_POSIX misnomer.
25392         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
25393         !HAVE_CALLOC_POSIX.
25394         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
25395         HAVE_CALLOC_POSIX.
25396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
25397         instead of HAVE_CALLOC_POSIX.
25398         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
25399         HAVE_CALLOC_POSIX.
25400
25401         Use modern idiom for calloc() replacement.
25402         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
25403         AC_FUNC_CALLOC.
25404         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
25405         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
25406         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25407         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
25408         (gl_REPLACE_CALLOC): New macro.
25409
25410 2010-06-21  Bruno Haible  <bruno@clisp.org>
25411
25412         Fix HAVE_REALLOC_POSIX misnomer.
25413         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
25414         !HAVE_REALLOC_POSIX.
25415         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
25416         HAVE_REALLOC_POSIX.
25417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
25418         instead of HAVE_REALLOC_POSIX.
25419         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
25420         HAVE_REALLOC_POSIX.
25421
25422         Use modern idiom for realloc() replacement.
25423         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
25424         AC_FUNC_REALLOC.
25425         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
25426         Autoconf's AC_FUNC_REALLOC.
25427         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25428         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
25429         (gl_REPLACE_REALLOC): New macro.
25430         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
25431
25432 2010-06-21  Bruno Haible  <bruno@clisp.org>
25433
25434         Fix HAVE_MALLOC_POSIX misnomer.
25435         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
25436         !HAVE_MALLOC_POSIX.
25437         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
25438         HAVE_MALLOC_POSIX.
25439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
25440         instead of HAVE_MALLOC_POSIX.
25441         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
25442         HAVE_MALLOC_POSIX.
25443
25444         Use modern idiom for malloc() replacement.
25445         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
25446         AC_FUNC_MALLOC.
25447         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
25448         Autoconf's AC_FUNC_MALLOC.
25449         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
25450         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
25451         (gl_REPLACE_MALLOC): New macro.
25452         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
25453
25454 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
25455
25456         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
25457         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
25458         This macro takes 3 arguments, not 4.
25459
25460 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
25461
25462         ipv6: fix detection under mingw
25463         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
25464         in6_addr.
25465
25466 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
25467
25468         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
25469         that strtod() works when cross-compiling to a glibc version known
25470         to work.
25471
25472 2010-06-15  Bruno Haible  <bruno@clisp.org>
25473
25474         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
25475
25476 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
25477
25478         select: Correct timeout.
25479         * lib/select.c (rpl_select): Compute wait_timeout correctly.
25480
25481 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25482
25483         git-version-gen: init shell var to avoid env var influence
25484         * build-aux/git-version-gen (v): Init shell var to empty.
25485
25486 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
25487
25488         priv-set: Don't assume that priv.h exists merely because getppriv does.
25489         See Jan Andersen's bug report about AIX 5L in
25490         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
25491         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
25492         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
25493         * lib/priv-set.h: Likewise.
25494         * tests/test-priv-set.c: Likewise.
25495
25496 2010-06-13  Bruno Haible  <bruno@clisp.org>
25497
25498         relocatable: Make it easier to test whether to install wrappers.
25499         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
25500         RELOCATABLE_VIA_WRAPPER.
25501
25502 2010-06-13  Bruno Haible  <bruno@clisp.org>
25503
25504         gnulib-tool: Display specified modules and dependencies differently.
25505         * gnulib-tool (func_show_module_list): New function.
25506         (func_import, func_create_testdir): Invoke it.
25507         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25508
25509 2010-06-13  Bruno Haible  <bruno@clisp.org>
25510
25511         gnulib-tool: Align code of func_import and func_create_testdir.
25512         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
25513         specified_modules.
25514
25515 2010-06-12  Jim Meyering  <meyering@redhat.com>
25516
25517         test-inttostr: avoid spurious failure on Solaris 9
25518         * tests/test-inttostr.c (main): Skip the test when snprintf fails
25519         to accept "%ju".  Reported by Bruno Haible.
25520
25521 2010-06-11  Jim Meyering  <meyering@redhat.com>
25522
25523         test-sys_socket: mark variables as used more readably
25524         * tests/test-sys_socket.c (main): Mark otherwise unused variables
25525         as "used" explicitly via (void) statement casts.  This is more
25526         readable than using them in an artificial return expression.
25527         Suggestion from Bruno Haible.
25528
25529 2010-06-11  Bruno Haible  <bruno@clisp.org>
25530
25531         Avoid some more warnings from "gcc -Wwrite-strings".
25532         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
25533         to 'const char *'.
25534         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
25535         * tests/test-c-strcasestr.c (main): Likewise.
25536         * tests/test-mbscasestr1.c (main): Likewise.
25537         * tests/test-mbscasestr2.c (main): Likewise.
25538         * tests/test-memmem.c (main): Likewise.
25539         * tests/test-strstr.c (main): Likewise.
25540         * tests/test-strcasestr.c (main): Likewise.
25541
25542 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25543
25544         init.sh: change framework_failure_ to fail with status 99, not 1
25545         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
25546         automake's parallel-tests rule that this is an unexpected failure,
25547         even if the test is listed in XFAIL_TESTS.
25548
25549 2010-06-11  Jim Meyering  <meyering@redhat.com>
25550
25551         test-inttostr: avoid warnings about 4-6KB literal strings
25552         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
25553         Include "macros.h", for its definition of ASSERT.
25554         (CK): s/assert/ASSERT/
25555         * modules/inttostr-tests (Files): Add macros.h.
25556
25557         init.sh: don't use $ME_ or skip_ before they are defined
25558         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
25559         their first uses.  Also hoist their companions: warn_, fail_,
25560         framework_failure_, $stderr_fileno.  Prompted by a patch from
25561         Stefano Lattarini.
25562
25563         test-sys_socket: avoid set-but-not-used warnings from gcc
25564         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
25565         avoid warning about set-but-not-used variables.
25566
25567         test-xvasprintf: avoid 'const' discard warnings
25568         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
25569         "const" when assigning from literal strings.
25570         (test_xasprintf): Add "void" in function argument list to placate
25571         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
25572
25573         tests: avoid compilation warnings in argmatch and exclude tests...
25574         in packages that define ARGMATCH_DIE_DECL, like coreutils.
25575         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
25576         Since it always exits, declare with the "noreturn" attribute.
25577         * tests/test-argmatch.c: Likewise.
25578
25579         tests: avoid 'const' discard warnings in mbsstr tests
25580         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
25581         * tests/test-mbsstr2.c (main): Likewise.
25582
25583         test-verify: avoid warning from gcc's -Wmissing-declarations
25584         * tests/test-verify.c (function): Declare to be static.
25585
25586         test-inttostr.c: include <string.h> for use of strcmp
25587         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
25588
25589         test-linkat: avoid failed assertion on "other" architectures
25590         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
25591         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
25592         sparc: https://bugs.launchpad.net/bugs/591968
25593
25594 2010-06-11  Jim Meyering  <meyering@redhat.com>
25595
25596         printf.m4: avoid autoconf's "Expanded Before Required" warning
25597         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
25598         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
25599         autoconf warning.
25600
25601 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
25602
25603         Replacement header templates are now named with ".in", not "_".
25604         * doc/gnulib-intro.texi: Correct.
25605
25606 2010-06-10  Jim Meyering  <meyering@redhat.com>
25607
25608         inttostr-tests: depend on snprintf, not snprintf-posix
25609         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
25610         snprintf-posix, to avoid this aclocal failure:
25611           missing file gnulib-tests/vasnprintf.c
25612           configure.ac:45: error: expected source file, required through \
25613           AC_LIBSOURCES, not found
25614
25615 2010-06-10  Jim Meyering  <meyering@redhat.com>
25616
25617         inttostr: add a new function, inttostr, and tests
25618         The namesake function was not available.  The existence of the
25619         template file, inttostr.c makes its addition nontrivial.
25620         * lib/anytostr.c: Rename from inttostr.c.
25621         (anytostr): Rename from inttostr.
25622         * lib/inttostr.c: New file.
25623         * modules/inttostr (Files): Add anytostr.c.
25624         (Makefile.am): Set lib_SOURCES instead of ...
25625         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
25626         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
25627         * lib/offtostr.c: Likewise.
25628         * lib/uinttostr.c: Likewise.
25629         * lib/umaxtostr.c: Likewise.
25630         * modules/inttostr-tests: New file.
25631         * tests/test-inttostr.c: New file.  Test these functions.
25632
25633 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
25634             Bruno Haible  <bruno@clisp.org>
25635
25636         Add "Extending Gnulib" chapter to manual.
25637         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
25638         chapter.
25639         (Extending Gnulib): New chapter.
25640         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
25641         chapter.
25642
25643 2010-06-09  Bruno Haible  <bruno@clisp.org>
25644
25645         Avoid relocwrapper link errors due to gnulib replacement functions.
25646         * lib/areadlink.c: Use the system's malloc, realloc functions.
25647         (areadlink): Set errno to ENOMEM explicitly.
25648         * modules/areadlink (Depends-on): Remove malloc-posix.
25649         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25650
25651 2010-06-09  Bruno Haible  <bruno@clisp.org>
25652
25653         Avoid relocwrapper link errors due to gnulib replacement functions.
25654         * lib/canonicalize-lgpl.c: Use the system's malloc function.
25655         * lib/malloca.c: Likewise.
25656         * lib/relocatable.c: Likewise.
25657         * lib/progreloc.c: Use the system's malloc, sprintf functions.
25658         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
25659         * lib/setenv.c: Use the system's malloc, realloc functions.
25660         * lib/strerror.c: Use the system's sprintf function.
25661         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25662
25663 2010-06-04  Bruno Haible  <bruno@clisp.org>
25664
25665         Prefer documented low-level autoconf macro names.
25666         * m4/lib-link.m4: Use m4_translit instead of translit.
25667         * m4/environ.m4: Likewise.
25668         * m4/mathfunc.m4: Likewise.
25669         * m4/onceonly.m4: Likewise.
25670         * m4/stdint.m4: Likewise.
25671         Suggested by Eric Blake.
25672
25673 2010-06-04  Martin Lambers  <marlam@marlam.de>
25674             Bruno Haible  <bruno@clisp.org>
25675
25676         havelib: Allow library names with '+' characters.
25677         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25678         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
25679
25680 2010-06-09  Bruno Haible  <bruno@clisp.org>
25681
25682         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
25683         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
25684         realloc failed.
25685
25686 2010-06-08  Peter Simons  <simons@cryp.to>
25687
25688         maint.mk: make the news-check rule more configurable
25689         * top/maint.mk (news-check-lines-spec): New variable.
25690         (news-check): Use "sed -n 1,10p" in place of "head".
25691
25692 2010-06-07  Jim Meyering  <meyering@redhat.com>
25693
25694         do-release-commit-and-tag: fix typo in --help
25695         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
25696
25697         regex: avoid new dead-code warning with gcc-4.6.0
25698         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
25699         if-block containing a while-loop.  It's been unused for at least
25700         5 years.
25701
25702 2010-06-05  Bruno Haible  <bruno@clisp.org>
25703
25704         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
25705         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
25706
25707 2010-06-04  Bruno Haible  <bruno@clisp.org>
25708
25709         Update to GNU gettext 0.18.1.
25710         * modules/gettext (configure.ac): Require gettext infrastructure from
25711         version 0.18.1.
25712
25713 2010-06-03  Bruno Haible  <bruno@clisp.org>
25714
25715         Don't use AC_LIBOBJ with file names in subdirectories.
25716         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
25717         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
25718         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
25719         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
25720         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
25721         gl_LIBUNISTRING_LIBSOURCE.
25722         (Makefile.am): Augment lib_SOURCES here, conditionally.
25723         * NEWS: Drop requirement for Automake option 'subdir-objects'.
25724
25725 2010-06-03  Bruno Haible  <bruno@clisp.org>
25726
25727         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
25728         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
25729         expansion does not end with a newline.
25730         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
25731         unnecessary newline.
25732
25733 2010-06-03  Bruno Haible  <bruno@clisp.org>
25734
25735         Reduce dependencies.
25736         * tests/test-quotearg.h: New file, extracted from
25737         tests/test-quotearg.c.
25738         * tests/test-quotearg-simple.c: New file, extracted from
25739         tests/test-quotearg.c.
25740         * tests/test-quotearg.c: Don't include <ctype.h>.
25741         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
25742         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
25743         use_quote_double_quotes, use_quotearg_colon): Moved to
25744         tests/test-quotearg.h.
25745         (results_g, flag_results, custom_quotes, custom_results): Moved
25746         to tests/test-quotearg-simple.c.
25747         (main): Moved the part that does not depend on gettext to
25748         tests/test-quotearg-simple.c. Return 77 if the test cannot be
25749         performed.
25750         * modules/quotearg-simple: New file.
25751         * modules/quotearg-simple-tests: New file.
25752         * modules/quotearg (Depends-on): Add quotearg-simple.
25753         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
25754         (Files): Add tests/test-quotearg.h.
25755         Reported by Paolo Bonzini.
25756
25757 2010-06-03  Bruno Haible  <bruno@clisp.org>
25758
25759         Reduce dependencies.
25760         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
25761
25762 2010-06-03  Bruno Haible  <bruno@clisp.org>
25763
25764         time: Undefine more broken macros.
25765         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
25766         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
25767         Reported by Eric Blake.
25768
25769 2010-06-03  Bruno Haible  <bruno@clisp.org>
25770
25771         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
25772         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
25773         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
25774         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
25775         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
25776         Reported by Ludovic Courtès <ludo@gnu.org>.
25777
25778 2010-06-02  Eric Blake  <eblake@redhat.com>
25779
25780         time: work with mingw + pthreads-win32 library
25781         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
25782         if timespec is defined only in pthread.h.
25783         * modules/time (Makefile.am): Substitute it.
25784         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
25785         <pthread.h>, when needed.
25786         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
25787         from the library.
25788
25789 2010-05-31  Bruno Haible  <bruno@clisp.org>
25790
25791         Avoid expanding two macros in the wrong order.
25792         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
25793         gl_LIBUNISTRING if it is defined.
25794         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
25795         autoconf >= 2.64.
25796         Reported by Ludovic Courtès <ludo@gnu.org>.
25797
25798 2010-05-27  Jim Meyering  <meyering@redhat.com>
25799
25800         maint.mk: also prohibit "#undef" of always-defined symbols
25801         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
25802         Allow more than one space before the symbol name.
25803         (sc_prohibit_always-defined_macros): Use grep's -E, now that
25804         the regexp uses alternation.
25805
25806 2010-05-26  Eric Blake  <eblake@redhat.com>
25807
25808         maint.mk: avoid echo -e
25809         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
25810         Convert all uses of echo -* to printf.
25811         Reported by Matthias Bolte.
25812
25813 2010-05-25  Bruno Haible  <bruno@clisp.org>
25814
25815         Update to GNU gettext 0.18, part 2.
25816         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
25817         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
25818
25819 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25820
25821         Add missing include in test-pwrite.c.
25822         * tests/test-pwrite.c: Include string.h, for strcmp.
25823
25824 2010-05-24  Bruno Haible  <bruno@clisp.org>
25825
25826         * NEWS: Mention requirement for Automake option 'subdir-objects'.
25827
25828 2010-05-24  Bruno Haible  <bruno@clisp.org>
25829
25830         Don't use conversion with transliteration in u{8,16,32}_strcoll.
25831         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
25832         iconveh_error argument.
25833         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
25834         U_STRCONV_TO_LOCALE.
25835         * lib/unistr/u16-strcoll.c: Likewise.
25836         * lib/unistr/u32-strcoll.c: Likewise.
25837         * modules/unistr/u8-strcoll (Depends-on): Add
25838         uniconv/u8-strconv-to-enc, localcharset. Remove
25839         uniconv/u8-strconv-to-locale.
25840         (configure.ac): Bump version number.
25841         * modules/unistr/u16-strcoll (Depends-on): Add
25842         uniconv/u16-strconv-to-enc, localcharset. Remove
25843         uniconv/u16-strconv-to-locale.
25844         (configure.ac): Bump version number.
25845         * modules/unistr/u32-strcoll (Depends-on): Add
25846         uniconv/u32-strconv-to-enc, localcharset. Remove
25847         uniconv/u32-strconv-to-locale.
25848         (configure.ac): Bump version number.
25849
25850 2010-05-24  Bruno Haible  <bruno@clisp.org>
25851
25852         Avoid a test failure on NetBSD 5.0.
25853         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
25854         an iconv() bug.
25855
25856 2010-05-24  Bruno Haible  <bruno@clisp.org>
25857
25858         Adjust #include directive style.
25859         * modules/regex (Includes): Recommend to write <regex.h>.
25860
25861 2010-05-24  Bruno Haible  <bruno@clisp.org>
25862
25863         regex: Don't require alloca.
25864         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
25865         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
25866         only inside if (0).
25867
25868 2010-05-23  Jim Meyering  <meyering@redhat.com>
25869
25870         test-renameat.c: include <sys/stat.h>
25871         * tests/test-renameat.c: Include <sys/stat.h>; required for
25872         definition of S_IS* macros.
25873
25874 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
25875
25876         Update maintainer documentation for 'relocatable-prog' module.
25877         * doc/relocatable-maint.texi: Update.
25878         Comments by Bruno Haible.
25879
25880 2010-05-23  Bruno Haible  <bruno@clisp.org>
25881
25882         git-merge-changelog: Enable --split-merged-entry by default.
25883         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
25884         (usage): Don't mention this option any more.
25885         Reported by Ralf Wildenhues.
25886
25887 2010-05-23  Jim Meyering  <meyering@redhat.com>
25888
25889         test-pwrite: do not leave behind a test file named "out"
25890         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
25891         The trivial-looking use of init.sh is really necessary.
25892         It ensures that the temporary file, "out", is created in
25893         a temporary directory, and removed upon termination.
25894         * tests/test-pwrite.sh: Re-add file.
25895         * modules/pwrite-tests: Reference it.
25896
25897 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25898
25899         Fix output redirection buglet in init.sh.
25900         * tests/init.sh: Fix redirection of stderr.
25901
25902 2010-05-20  Simon Josefsson  <simon@josefsson.org>
25903
25904         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
25905
25906 2010-05-17  Simon Josefsson  <simon@josefsson.org>
25907
25908         * modules/valgrind-tests: New file.
25909         * m4/valgrind-tests.m4: New file.
25910         * doc/valgrind-tests.texi: New file.
25911         * doc/gnulib.texi (Running self-tests under valgrind): New
25912         section.
25913
25914 2010-05-19  Bruno Haible  <bruno@clisp.org>
25915
25916         Clean up dead code in recent commit.
25917         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
25918         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
25919         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
25920         Suggested by Paolo Bonzini.
25921
25922 2010-05-19  Bruno Haible  <bruno@clisp.org>
25923
25924         Avoid valgrind error reports from libunistring.
25925         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
25926         * modules/libunistring (Files): Add it.
25927         * modules/libunistring-optional (Files): Likewise.
25928
25929 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
25930             Bruno Haible  <bruno@clisp.org>
25931
25932         New module 'libunistring-optional'.
25933         * modules/libunistring-optional: New file.
25934         * m4/libunistring-base.m4: New file.
25935         * m4/libunistring-optional.m4: New file.
25936         * lib/unicase.in.h: Renamed from lib/unicase.h.
25937         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
25938         * lib/unictype.in.h: Renamed from lib/unictype.h.
25939         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
25940         * lib/uniname.in.h: Renamed from lib/uniname.h.
25941         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
25942         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
25943         * lib/unistr.in.h: Renamed from lib/unistr.h.
25944         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
25945         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
25946         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
25947         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
25948         gl_LIBUNISTRING. If the library was found, determine the installed
25949         version and set LIBUNISTRING_VERSION.
25950         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
25951         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
25952         handle a configuration option --with-included-libunistring.
25953         * modules/libunistring (Files): Add m4/absolute-header.m4.
25954         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
25955         Add m4/libunistring-base.m4.
25956         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25957         (Makefile.am): Build unicase.h from unicase.in.h.
25958         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
25959         Add m4/libunistring-base.m4.
25960         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25961         (Makefile.am): Build uniconv.h from uniconv.in.h.
25962         * modules/unictype/base (Files): Use unictype.in.h instead of
25963         unictype.h. Add m4/libunistring-base.m4.
25964         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25965         (Makefile.am): Build unictype.h from unictype.in.h.
25966         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
25967         Add m4/libunistring-base.m4.
25968         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25969         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
25970         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
25971         Add m4/libunistring-base.m4.
25972         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25973         (Makefile.am): Build uniname.h from uniname.in.h.
25974         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
25975         Add m4/libunistring-base.m4.
25976         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25977         (Makefile.am): Build uninorm.h from uninorm.in.h.
25978         * modules/unistdio/base (Files): Use unistdio.in.h instead of
25979         unistdio.h. Add m4/libunistring-base.m4.
25980         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25981         (Makefile.am): Build unistdio.h from unistdio.in.h.
25982         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
25983         Add m4/libunistring-base.m4.
25984         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25985         (Makefile.am): Build unistr.h from unistr.in.h.
25986         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
25987         Add m4/libunistring-base.m4.
25988         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25989         (Makefile.am): Build unitypes.h from unitypes.in.h.
25990         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
25991         Add m4/libunistring-base.m4.
25992         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25993         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
25994         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
25995         uniwidth.h. Add m4/libunistring-base.m4.
25996         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
25997         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
25998         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
25999         instead of augmenting lib_SOURCES.
26000         * modules/unicase/empty-suffix-context: Likewise.
26001         * modules/unicase/locale-language: Likewise.
26002         * modules/unicase/tolower: Likewise.
26003         * modules/unicase/totitle: Likewise.
26004         * modules/unicase/toupper: Likewise.
26005         * modules/unicase/u8-casecmp: Likewise.
26006         * modules/unicase/u8-casecoll: Likewise.
26007         * modules/unicase/u8-casefold: Likewise.
26008         * modules/unicase/u8-casexfrm: Likewise.
26009         * modules/unicase/u8-ct-casefold: Likewise.
26010         * modules/unicase/u8-ct-tolower: Likewise.
26011         * modules/unicase/u8-ct-totitle: Likewise.
26012         * modules/unicase/u8-ct-toupper: Likewise.
26013         * modules/unicase/u8-is-cased: Likewise.
26014         * modules/unicase/u8-is-casefolded: Likewise.
26015         * modules/unicase/u8-is-lowercase: Likewise.
26016         * modules/unicase/u8-is-titlecase: Likewise.
26017         * modules/unicase/u8-is-uppercase: Likewise.
26018         * modules/unicase/u8-prefix-context: Likewise.
26019         * modules/unicase/u8-suffix-context: Likewise.
26020         * modules/unicase/u8-tolower: Likewise.
26021         * modules/unicase/u8-totitle: Likewise.
26022         * modules/unicase/u8-toupper: Likewise.
26023         * modules/unicase/u16-casecmp: Likewise.
26024         * modules/unicase/u16-casecoll: Likewise.
26025         * modules/unicase/u16-casefold: Likewise.
26026         * modules/unicase/u16-casexfrm: Likewise.
26027         * modules/unicase/u16-ct-casefold: Likewise.
26028         * modules/unicase/u16-ct-tolower: Likewise.
26029         * modules/unicase/u16-ct-totitle: Likewise.
26030         * modules/unicase/u16-ct-toupper: Likewise.
26031         * modules/unicase/u16-is-cased: Likewise.
26032         * modules/unicase/u16-is-casefolded: Likewise.
26033         * modules/unicase/u16-is-lowercase: Likewise.
26034         * modules/unicase/u16-is-titlecase: Likewise.
26035         * modules/unicase/u16-is-uppercase: Likewise.
26036         * modules/unicase/u16-prefix-context: Likewise.
26037         * modules/unicase/u16-suffix-context: Likewise.
26038         * modules/unicase/u16-tolower: Likewise.
26039         * modules/unicase/u16-totitle: Likewise.
26040         * modules/unicase/u16-toupper: Likewise.
26041         * modules/unicase/u32-casecmp: Likewise.
26042         * modules/unicase/u32-casecoll: Likewise.
26043         * modules/unicase/u32-casefold: Likewise.
26044         * modules/unicase/u32-casexfrm: Likewise.
26045         * modules/unicase/u32-ct-casefold: Likewise.
26046         * modules/unicase/u32-ct-tolower: Likewise.
26047         * modules/unicase/u32-ct-totitle: Likewise.
26048         * modules/unicase/u32-ct-toupper: Likewise.
26049         * modules/unicase/u32-is-cased: Likewise.
26050         * modules/unicase/u32-is-casefolded: Likewise.
26051         * modules/unicase/u32-is-lowercase: Likewise.
26052         * modules/unicase/u32-is-titlecase: Likewise.
26053         * modules/unicase/u32-is-uppercase: Likewise.
26054         * modules/unicase/u32-prefix-context: Likewise.
26055         * modules/unicase/u32-suffix-context: Likewise.
26056         * modules/unicase/u32-tolower: Likewise.
26057         * modules/unicase/u32-totitle: Likewise.
26058         * modules/unicase/u32-toupper: Likewise.
26059         * modules/unicase/ulc-casecmp: Likewise.
26060         * modules/unicase/ulc-casecoll: Likewise.
26061         * modules/unicase/ulc-casexfrm: Likewise.
26062         * modules/uniconv/u8-conv-from-enc: Likewise.
26063         * modules/uniconv/u8-conv-to-enc: Likewise.
26064         * modules/uniconv/u8-strconv-from-enc: Likewise.
26065         * modules/uniconv/u8-strconv-from-locale: Likewise.
26066         * modules/uniconv/u8-strconv-to-enc: Likewise.
26067         * modules/uniconv/u8-strconv-to-locale: Likewise.
26068         * modules/uniconv/u16-conv-from-enc: Likewise.
26069         * modules/uniconv/u16-conv-to-enc: Likewise.
26070         * modules/uniconv/u16-strconv-from-enc: Likewise.
26071         * modules/uniconv/u16-strconv-from-locale: Likewise.
26072         * modules/uniconv/u16-strconv-to-enc: Likewise.
26073         * modules/uniconv/u16-strconv-to-locale: Likewise.
26074         * modules/uniconv/u32-conv-from-enc: Likewise.
26075         * modules/uniconv/u32-conv-to-enc: Likewise.
26076         * modules/uniconv/u32-strconv-from-enc: Likewise.
26077         * modules/uniconv/u32-strconv-from-locale: Likewise.
26078         * modules/uniconv/u32-strconv-to-enc: Likewise.
26079         * modules/uniconv/u32-strconv-to-locale: Likewise.
26080         * modules/unictype/bidicategory-byname: Likewise.
26081         * modules/unictype/bidicategory-name: Likewise.
26082         * modules/unictype/bidicategory-of: Likewise.
26083         * modules/unictype/bidicategory-test: Likewise.
26084         * modules/unictype/block-list: Likewise.
26085         * modules/unictype/block-test: Likewise.
26086         * modules/unictype/category-C: Likewise.
26087         * modules/unictype/category-Cc: Likewise.
26088         * modules/unictype/category-Cf: Likewise.
26089         * modules/unictype/category-Cn: Likewise.
26090         * modules/unictype/category-Co: Likewise.
26091         * modules/unictype/category-Cs: Likewise.
26092         * modules/unictype/category-L: Likewise.
26093         * modules/unictype/category-Ll: Likewise.
26094         * modules/unictype/category-Lm: Likewise.
26095         * modules/unictype/category-Lo: Likewise.
26096         * modules/unictype/category-Lt: Likewise.
26097         * modules/unictype/category-Lu: Likewise.
26098         * modules/unictype/category-M: Likewise.
26099         * modules/unictype/category-Mc: Likewise.
26100         * modules/unictype/category-Me: Likewise.
26101         * modules/unictype/category-Mn: Likewise.
26102         * modules/unictype/category-N: Likewise.
26103         * modules/unictype/category-Nd: Likewise.
26104         * modules/unictype/category-Nl: Likewise.
26105         * modules/unictype/category-No: Likewise.
26106         * modules/unictype/category-P: Likewise.
26107         * modules/unictype/category-Pc: Likewise.
26108         * modules/unictype/category-Pd: Likewise.
26109         * modules/unictype/category-Pe: Likewise.
26110         * modules/unictype/category-Pf: Likewise.
26111         * modules/unictype/category-Pi: Likewise.
26112         * modules/unictype/category-Po: Likewise.
26113         * modules/unictype/category-Ps: Likewise.
26114         * modules/unictype/category-S: Likewise.
26115         * modules/unictype/category-Sc: Likewise.
26116         * modules/unictype/category-Sk: Likewise.
26117         * modules/unictype/category-Sm: Likewise.
26118         * modules/unictype/category-So: Likewise.
26119         * modules/unictype/category-Z: Likewise.
26120         * modules/unictype/category-Zl: Likewise.
26121         * modules/unictype/category-Zp: Likewise.
26122         * modules/unictype/category-Zs: Likewise.
26123         * modules/unictype/category-and: Likewise.
26124         * modules/unictype/category-and-not: Likewise.
26125         * modules/unictype/category-byname: Likewise.
26126         * modules/unictype/category-name: Likewise.
26127         * modules/unictype/category-none: Likewise.
26128         * modules/unictype/category-of: Likewise.
26129         * modules/unictype/category-or: Likewise.
26130         * modules/unictype/category-test: Likewise.
26131         * modules/unictype/combining-class: Likewise.
26132         * modules/unictype/ctype-alnum: Likewise.
26133         * modules/unictype/ctype-alpha: Likewise.
26134         * modules/unictype/ctype-blank: Likewise.
26135         * modules/unictype/ctype-cntrl: Likewise.
26136         * modules/unictype/ctype-digit: Likewise.
26137         * modules/unictype/ctype-graph: Likewise.
26138         * modules/unictype/ctype-lower: Likewise.
26139         * modules/unictype/ctype-print: Likewise.
26140         * modules/unictype/ctype-punct: Likewise.
26141         * modules/unictype/ctype-space: Likewise.
26142         * modules/unictype/ctype-upper: Likewise.
26143         * modules/unictype/ctype-xdigit: Likewise.
26144         * modules/unictype/decimal-digit: Likewise.
26145         * modules/unictype/digit: Likewise.
26146         * modules/unictype/mirror: Likewise.
26147         * modules/unictype/numeric: Likewise.
26148         * modules/unictype/property-alphabetic: Likewise.
26149         * modules/unictype/property-ascii-hex-digit: Likewise.
26150         * modules/unictype/property-bidi-arabic-digit: Likewise.
26151         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
26152         * modules/unictype/property-bidi-block-separator: Likewise.
26153         * modules/unictype/property-bidi-boundary-neutral: Likewise.
26154         * modules/unictype/property-bidi-common-separator: Likewise.
26155         * modules/unictype/property-bidi-control: Likewise.
26156         * modules/unictype/property-bidi-embedding-or-override: Likewise.
26157         * modules/unictype/property-bidi-eur-num-separator: Likewise.
26158         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
26159         * modules/unictype/property-bidi-european-digit: Likewise.
26160         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
26161         * modules/unictype/property-bidi-left-to-right: Likewise.
26162         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
26163         * modules/unictype/property-bidi-other-neutral: Likewise.
26164         * modules/unictype/property-bidi-pdf: Likewise.
26165         * modules/unictype/property-bidi-segment-separator: Likewise.
26166         * modules/unictype/property-bidi-whitespace: Likewise.
26167         * modules/unictype/property-byname: Likewise.
26168         * modules/unictype/property-combining: Likewise.
26169         * modules/unictype/property-composite: Likewise.
26170         * modules/unictype/property-currency-symbol: Likewise.
26171         * modules/unictype/property-dash: Likewise.
26172         * modules/unictype/property-decimal-digit: Likewise.
26173         * modules/unictype/property-default-ignorable-code-point: Likewise.
26174         * modules/unictype/property-deprecated: Likewise.
26175         * modules/unictype/property-diacritic: Likewise.
26176         * modules/unictype/property-extender: Likewise.
26177         * modules/unictype/property-format-control: Likewise.
26178         * modules/unictype/property-grapheme-base: Likewise.
26179         * modules/unictype/property-grapheme-extend: Likewise.
26180         * modules/unictype/property-grapheme-link: Likewise.
26181         * modules/unictype/property-hex-digit: Likewise.
26182         * modules/unictype/property-hyphen: Likewise.
26183         * modules/unictype/property-id-continue: Likewise.
26184         * modules/unictype/property-id-start: Likewise.
26185         * modules/unictype/property-ideographic: Likewise.
26186         * modules/unictype/property-ids-binary-operator: Likewise.
26187         * modules/unictype/property-ids-trinary-operator: Likewise.
26188         * modules/unictype/property-ignorable-control: Likewise.
26189         * modules/unictype/property-iso-control: Likewise.
26190         * modules/unictype/property-join-control: Likewise.
26191         * modules/unictype/property-left-of-pair: Likewise.
26192         * modules/unictype/property-line-separator: Likewise.
26193         * modules/unictype/property-logical-order-exception: Likewise.
26194         * modules/unictype/property-lowercase: Likewise.
26195         * modules/unictype/property-math: Likewise.
26196         * modules/unictype/property-non-break: Likewise.
26197         * modules/unictype/property-not-a-character: Likewise.
26198         * modules/unictype/property-numeric: Likewise.
26199         * modules/unictype/property-other-alphabetic: Likewise.
26200         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
26201         * modules/unictype/property-other-grapheme-extend: Likewise.
26202         * modules/unictype/property-other-id-continue: Likewise.
26203         * modules/unictype/property-other-id-start: Likewise.
26204         * modules/unictype/property-other-lowercase: Likewise.
26205         * modules/unictype/property-other-math: Likewise.
26206         * modules/unictype/property-other-uppercase: Likewise.
26207         * modules/unictype/property-paired-punctuation: Likewise.
26208         * modules/unictype/property-paragraph-separator: Likewise.
26209         * modules/unictype/property-pattern-syntax: Likewise.
26210         * modules/unictype/property-pattern-white-space: Likewise.
26211         * modules/unictype/property-private-use: Likewise.
26212         * modules/unictype/property-punctuation: Likewise.
26213         * modules/unictype/property-quotation-mark: Likewise.
26214         * modules/unictype/property-radical: Likewise.
26215         * modules/unictype/property-sentence-terminal: Likewise.
26216         * modules/unictype/property-soft-dotted: Likewise.
26217         * modules/unictype/property-space: Likewise.
26218         * modules/unictype/property-terminal-punctuation: Likewise.
26219         * modules/unictype/property-test: Likewise.
26220         * modules/unictype/property-titlecase: Likewise.
26221         * modules/unictype/property-unassigned-code-value: Likewise.
26222         * modules/unictype/property-unified-ideograph: Likewise.
26223         * modules/unictype/property-uppercase: Likewise.
26224         * modules/unictype/property-variation-selector: Likewise.
26225         * modules/unictype/property-white-space: Likewise.
26226         * modules/unictype/property-xid-continue: Likewise.
26227         * modules/unictype/property-xid-start: Likewise.
26228         * modules/unictype/property-zero-width: Likewise.
26229         * modules/unictype/scripts: Likewise.
26230         * modules/unictype/syntax-c-ident: Likewise.
26231         * modules/unictype/syntax-c-whitespace: Likewise.
26232         * modules/unictype/syntax-java-ident: Likewise.
26233         * modules/unictype/syntax-java-whitespace: Likewise.
26234         * modules/unilbrk/u8-possible-linebreaks: Likewise.
26235         * modules/unilbrk/u8-width-linebreaks: Likewise.
26236         * modules/unilbrk/u16-possible-linebreaks: Likewise.
26237         * modules/unilbrk/u16-width-linebreaks: Likewise.
26238         * modules/unilbrk/u32-possible-linebreaks: Likewise.
26239         * modules/unilbrk/u32-width-linebreaks: Likewise.
26240         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
26241         * modules/unilbrk/ulc-width-linebreaks: Likewise.
26242         * modules/uniname/uniname: Likewise.
26243         * modules/uninorm/canonical-decomposition: Likewise.
26244         * modules/uninorm/composition: Likewise.
26245         * modules/uninorm/decomposing-form: Likewise.
26246         * modules/uninorm/decomposition: Likewise.
26247         * modules/uninorm/filter: Likewise.
26248         * modules/uninorm/nfc: Likewise.
26249         * modules/uninorm/nfd: Likewise.
26250         * modules/uninorm/nfkc: Likewise.
26251         * modules/uninorm/nfkd: Likewise.
26252         * modules/uninorm/u8-normalize: Likewise.
26253         * modules/uninorm/u8-normcmp: Likewise.
26254         * modules/uninorm/u8-normcoll: Likewise.
26255         * modules/uninorm/u8-normxfrm: Likewise.
26256         * modules/uninorm/u16-normalize: Likewise.
26257         * modules/uninorm/u16-normcmp: Likewise.
26258         * modules/uninorm/u16-normcoll: Likewise.
26259         * modules/uninorm/u16-normxfrm: Likewise.
26260         * modules/uninorm/u32-normalize: Likewise.
26261         * modules/uninorm/u32-normcmp: Likewise.
26262         * modules/uninorm/u32-normcoll: Likewise.
26263         * modules/uninorm/u32-normxfrm: Likewise.
26264         * modules/unistdio/u8-asnprintf: Likewise.
26265         * modules/unistdio/u8-asprintf: Likewise.
26266         * modules/unistdio/u8-snprintf: Likewise.
26267         * modules/unistdio/u8-sprintf: Likewise.
26268         * modules/unistdio/u8-u8-asnprintf: Likewise.
26269         * modules/unistdio/u8-u8-asprintf: Likewise.
26270         * modules/unistdio/u8-u8-snprintf: Likewise.
26271         * modules/unistdio/u8-u8-sprintf: Likewise.
26272         * modules/unistdio/u8-u8-vasnprintf: Likewise.
26273         * modules/unistdio/u8-u8-vasprintf: Likewise.
26274         * modules/unistdio/u8-u8-vsnprintf: Likewise.
26275         * modules/unistdio/u8-u8-vsprintf: Likewise.
26276         * modules/unistdio/u8-vasnprintf: Likewise.
26277         * modules/unistdio/u8-vasprintf: Likewise.
26278         * modules/unistdio/u8-vsnprintf: Likewise.
26279         * modules/unistdio/u8-vsprintf: Likewise.
26280         * modules/unistdio/u16-asnprintf: Likewise.
26281         * modules/unistdio/u16-asprintf: Likewise.
26282         * modules/unistdio/u16-snprintf: Likewise.
26283         * modules/unistdio/u16-sprintf: Likewise.
26284         * modules/unistdio/u16-u16-asnprintf: Likewise.
26285         * modules/unistdio/u16-u16-asprintf: Likewise.
26286         * modules/unistdio/u16-u16-snprintf: Likewise.
26287         * modules/unistdio/u16-u16-sprintf: Likewise.
26288         * modules/unistdio/u16-u16-vasnprintf: Likewise.
26289         * modules/unistdio/u16-u16-vasprintf: Likewise.
26290         * modules/unistdio/u16-u16-vsnprintf: Likewise.
26291         * modules/unistdio/u16-u16-vsprintf: Likewise.
26292         * modules/unistdio/u16-vasnprintf: Likewise.
26293         * modules/unistdio/u16-vasprintf: Likewise.
26294         * modules/unistdio/u16-vsnprintf: Likewise.
26295         * modules/unistdio/u16-vsprintf: Likewise.
26296         * modules/unistdio/u32-asnprintf: Likewise.
26297         * modules/unistdio/u32-asprintf: Likewise.
26298         * modules/unistdio/u32-snprintf: Likewise.
26299         * modules/unistdio/u32-sprintf: Likewise.
26300         * modules/unistdio/u32-u32-asnprintf: Likewise.
26301         * modules/unistdio/u32-u32-asprintf: Likewise.
26302         * modules/unistdio/u32-u32-snprintf: Likewise.
26303         * modules/unistdio/u32-u32-sprintf: Likewise.
26304         * modules/unistdio/u32-u32-vasnprintf: Likewise.
26305         * modules/unistdio/u32-u32-vasprintf: Likewise.
26306         * modules/unistdio/u32-u32-vsnprintf: Likewise.
26307         * modules/unistdio/u32-u32-vsprintf: Likewise.
26308         * modules/unistdio/u32-vasnprintf: Likewise.
26309         * modules/unistdio/u32-vasprintf: Likewise.
26310         * modules/unistdio/u32-vsnprintf: Likewise.
26311         * modules/unistdio/u32-vsprintf: Likewise.
26312         * modules/unistdio/ulc-asnprintf: Likewise.
26313         * modules/unistdio/ulc-asprintf: Likewise.
26314         * modules/unistdio/ulc-fprintf: Likewise.
26315         * modules/unistdio/ulc-snprintf: Likewise.
26316         * modules/unistdio/ulc-sprintf: Likewise.
26317         * modules/unistdio/ulc-vasnprintf: Likewise.
26318         * modules/unistdio/ulc-vasprintf: Likewise.
26319         * modules/unistdio/ulc-vfprintf: Likewise.
26320         * modules/unistdio/ulc-vsnprintf: Likewise.
26321         * modules/unistdio/ulc-vsprintf: Likewise.
26322         * modules/unistr/u8-check: Likewise.
26323         * modules/unistr/u8-chr: Likewise.
26324         * modules/unistr/u8-cmp: Likewise.
26325         * modules/unistr/u8-cmp2: Likewise.
26326         * modules/unistr/u8-cpy: Likewise.
26327         * modules/unistr/u8-cpy-alloc: Likewise.
26328         * modules/unistr/u8-endswith: Likewise.
26329         * modules/unistr/u8-mblen: Likewise.
26330         * modules/unistr/u8-mbsnlen: Likewise.
26331         * modules/unistr/u8-mbtouc: Likewise.
26332         * modules/unistr/u8-mbtouc-unsafe: Likewise.
26333         * modules/unistr/u8-mbtoucr: Likewise.
26334         * modules/unistr/u8-move: Likewise.
26335         * modules/unistr/u8-next: Likewise.
26336         * modules/unistr/u8-prev: Likewise.
26337         * modules/unistr/u8-set: Likewise.
26338         * modules/unistr/u8-startswith: Likewise.
26339         * modules/unistr/u8-stpcpy: Likewise.
26340         * modules/unistr/u8-stpncpy: Likewise.
26341         * modules/unistr/u8-strcat: Likewise.
26342         * modules/unistr/u8-strchr: Likewise.
26343         * modules/unistr/u8-strcmp: Likewise.
26344         * modules/unistr/u8-strcoll: Likewise.
26345         * modules/unistr/u8-strcpy: Likewise.
26346         * modules/unistr/u8-strcspn: Likewise.
26347         * modules/unistr/u8-strdup: Likewise.
26348         * modules/unistr/u8-strlen: Likewise.
26349         * modules/unistr/u8-strmblen: Likewise.
26350         * modules/unistr/u8-strmbtouc: Likewise.
26351         * modules/unistr/u8-strncat: Likewise.
26352         * modules/unistr/u8-strncmp: Likewise.
26353         * modules/unistr/u8-strncpy: Likewise.
26354         * modules/unistr/u8-strnlen: Likewise.
26355         * modules/unistr/u8-strpbrk: Likewise.
26356         * modules/unistr/u8-strrchr: Likewise.
26357         * modules/unistr/u8-strspn: Likewise.
26358         * modules/unistr/u8-strstr: Likewise.
26359         * modules/unistr/u8-strtok: Likewise.
26360         * modules/unistr/u8-to-u16: Likewise.
26361         * modules/unistr/u8-to-u32: Likewise.
26362         * modules/unistr/u8-uctomb: Likewise.
26363         * modules/unistr/u16-check: Likewise.
26364         * modules/unistr/u16-chr: Likewise.
26365         * modules/unistr/u16-cmp: Likewise.
26366         * modules/unistr/u16-cmp2: Likewise.
26367         * modules/unistr/u16-cpy: Likewise.
26368         * modules/unistr/u16-cpy-alloc: Likewise.
26369         * modules/unistr/u16-endswith: Likewise.
26370         * modules/unistr/u16-mblen: Likewise.
26371         * modules/unistr/u16-mbsnlen: Likewise.
26372         * modules/unistr/u16-mbtouc: Likewise.
26373         * modules/unistr/u16-mbtouc-unsafe: Likewise.
26374         * modules/unistr/u16-mbtoucr: Likewise.
26375         * modules/unistr/u16-move: Likewise.
26376         * modules/unistr/u16-next: Likewise.
26377         * modules/unistr/u16-prev: Likewise.
26378         * modules/unistr/u16-set: Likewise.
26379         * modules/unistr/u16-startswith: Likewise.
26380         * modules/unistr/u16-stpcpy: Likewise.
26381         * modules/unistr/u16-stpncpy: Likewise.
26382         * modules/unistr/u16-strcat: Likewise.
26383         * modules/unistr/u16-strchr: Likewise.
26384         * modules/unistr/u16-strcmp: Likewise.
26385         * modules/unistr/u16-strcoll: Likewise.
26386         * modules/unistr/u16-strcpy: Likewise.
26387         * modules/unistr/u16-strcspn: Likewise.
26388         * modules/unistr/u16-strdup: Likewise.
26389         * modules/unistr/u16-strlen: Likewise.
26390         * modules/unistr/u16-strmblen: Likewise.
26391         * modules/unistr/u16-strmbtouc: Likewise.
26392         * modules/unistr/u16-strncat: Likewise.
26393         * modules/unistr/u16-strncmp: Likewise.
26394         * modules/unistr/u16-strncpy: Likewise.
26395         * modules/unistr/u16-strnlen: Likewise.
26396         * modules/unistr/u16-strpbrk: Likewise.
26397         * modules/unistr/u16-strrchr: Likewise.
26398         * modules/unistr/u16-strspn: Likewise.
26399         * modules/unistr/u16-strstr: Likewise.
26400         * modules/unistr/u16-strtok: Likewise.
26401         * modules/unistr/u16-to-u32: Likewise.
26402         * modules/unistr/u16-to-u8: Likewise.
26403         * modules/unistr/u16-uctomb: Likewise.
26404         * modules/unistr/u32-check: Likewise.
26405         * modules/unistr/u32-chr: Likewise.
26406         * modules/unistr/u32-cmp: Likewise.
26407         * modules/unistr/u32-cmp2: Likewise.
26408         * modules/unistr/u32-cpy: Likewise.
26409         * modules/unistr/u32-cpy-alloc: Likewise.
26410         * modules/unistr/u32-endswith: Likewise.
26411         * modules/unistr/u32-mblen: Likewise.
26412         * modules/unistr/u32-mbsnlen: Likewise.
26413         * modules/unistr/u32-mbtouc: Likewise.
26414         * modules/unistr/u32-mbtouc-unsafe: Likewise.
26415         * modules/unistr/u32-mbtoucr: Likewise.
26416         * modules/unistr/u32-move: Likewise.
26417         * modules/unistr/u32-next: Likewise.
26418         * modules/unistr/u32-prev: Likewise.
26419         * modules/unistr/u32-set: Likewise.
26420         * modules/unistr/u32-startswith: Likewise.
26421         * modules/unistr/u32-stpcpy: Likewise.
26422         * modules/unistr/u32-stpncpy: Likewise.
26423         * modules/unistr/u32-strcat: Likewise.
26424         * modules/unistr/u32-strchr: Likewise.
26425         * modules/unistr/u32-strcmp: Likewise.
26426         * modules/unistr/u32-strcoll: Likewise.
26427         * modules/unistr/u32-strcpy: Likewise.
26428         * modules/unistr/u32-strcspn: Likewise.
26429         * modules/unistr/u32-strdup: Likewise.
26430         * modules/unistr/u32-strlen: Likewise.
26431         * modules/unistr/u32-strmblen: Likewise.
26432         * modules/unistr/u32-strmbtouc: Likewise.
26433         * modules/unistr/u32-strncat: Likewise.
26434         * modules/unistr/u32-strncmp: Likewise.
26435         * modules/unistr/u32-strncpy: Likewise.
26436         * modules/unistr/u32-strnlen: Likewise.
26437         * modules/unistr/u32-strpbrk: Likewise.
26438         * modules/unistr/u32-strrchr: Likewise.
26439         * modules/unistr/u32-strspn: Likewise.
26440         * modules/unistr/u32-strstr: Likewise.
26441         * modules/unistr/u32-strtok: Likewise.
26442         * modules/unistr/u32-to-u16: Likewise.
26443         * modules/unistr/u32-to-u8: Likewise.
26444         * modules/unistr/u32-uctomb: Likewise.
26445         * modules/uniwbrk/u8-wordbreaks: Likewise.
26446         * modules/uniwbrk/u16-wordbreaks: Likewise.
26447         * modules/uniwbrk/u32-wordbreaks: Likewise.
26448         * modules/uniwbrk/ulc-wordbreaks: Likewise.
26449         * modules/uniwbrk/wordbreak-property: Likewise.
26450         * modules/uniwidth/u8-strwidth: Likewise.
26451         * modules/uniwidth/u8-width: Likewise.
26452         * modules/uniwidth/u16-strwidth: Likewise.
26453         * modules/uniwidth/u16-width: Likewise.
26454         * modules/uniwidth/u32-strwidth: Likewise.
26455         * modules/uniwidth/u32-width: Likewise.
26456         * modules/uniwidth/width: Likewise.
26457         * modules/unicase/cased-tests (Makefile.am): Link all test programs
26458         with $(LIBUNISTRING).
26459         * modules/unicase/ignorable-tests: Likewise.
26460         * modules/unicase/locale-language-tests: Likewise.
26461         * modules/unicase/tolower-tests: Likewise.
26462         * modules/unicase/totitle-tests: Likewise.
26463         * modules/unicase/toupper-tests: Likewise.
26464         * modules/unicase/u8-casecmp-tests: Likewise.
26465         * modules/unicase/u8-casecoll-tests: Likewise.
26466         * modules/unicase/u8-casefold-tests: Likewise.
26467         * modules/unicase/u8-is-cased-tests: Likewise.
26468         * modules/unicase/u8-is-casefolded-tests: Likewise.
26469         * modules/unicase/u8-is-lowercase-tests: Likewise.
26470         * modules/unicase/u8-is-titlecase-tests: Likewise.
26471         * modules/unicase/u8-is-uppercase-tests: Likewise.
26472         * modules/unicase/u8-tolower-tests: Likewise.
26473         * modules/unicase/u8-totitle-tests: Likewise.
26474         * modules/unicase/u8-toupper-tests: Likewise.
26475         * modules/unicase/u16-casecmp-tests: Likewise.
26476         * modules/unicase/u16-casecoll-tests: Likewise.
26477         * modules/unicase/u16-casefold-tests: Likewise.
26478         * modules/unicase/u16-is-cased-tests: Likewise.
26479         * modules/unicase/u16-is-casefolded-tests: Likewise.
26480         * modules/unicase/u16-is-lowercase-tests: Likewise.
26481         * modules/unicase/u16-is-titlecase-tests: Likewise.
26482         * modules/unicase/u16-is-uppercase-tests: Likewise.
26483         * modules/unicase/u16-tolower-tests: Likewise.
26484         * modules/unicase/u16-totitle-tests: Likewise.
26485         * modules/unicase/u16-toupper-tests: Likewise.
26486         * modules/unicase/u32-casecmp-tests: Likewise.
26487         * modules/unicase/u32-casecoll-tests: Likewise.
26488         * modules/unicase/u32-casefold-tests: Likewise.
26489         * modules/unicase/u32-is-cased-tests: Likewise.
26490         * modules/unicase/u32-is-casefolded-tests: Likewise.
26491         * modules/unicase/u32-is-lowercase-tests: Likewise.
26492         * modules/unicase/u32-is-titlecase-tests: Likewise.
26493         * modules/unicase/u32-is-uppercase-tests: Likewise.
26494         * modules/unicase/u32-tolower-tests: Likewise.
26495         * modules/unicase/u32-totitle-tests: Likewise.
26496         * modules/unicase/u32-toupper-tests: Likewise.
26497         * modules/unicase/ulc-casecmp-tests: Likewise.
26498         * modules/unicase/ulc-casecoll-tests: Likewise.
26499         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
26500         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
26501         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
26502         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
26503         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
26504         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
26505         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
26506         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
26507         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
26508         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
26509         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
26510         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
26511         * modules/unictype/bidicategory-byname-tests: Likewise.
26512         * modules/unictype/bidicategory-name-tests: Likewise.
26513         * modules/unictype/bidicategory-of-tests: Likewise.
26514         * modules/unictype/bidicategory-test-tests: Likewise.
26515         * modules/unictype/block-list-tests: Likewise.
26516         * modules/unictype/block-of-tests: Likewise.
26517         * modules/unictype/block-test-tests: Likewise.
26518         * modules/unictype/category-C-tests: Likewise.
26519         * modules/unictype/category-Cc-tests: Likewise.
26520         * modules/unictype/category-Cf-tests: Likewise.
26521         * modules/unictype/category-Cn-tests: Likewise.
26522         * modules/unictype/category-Co-tests: Likewise.
26523         * modules/unictype/category-Cs-tests: Likewise.
26524         * modules/unictype/category-L-tests: Likewise.
26525         * modules/unictype/category-Ll-tests: Likewise.
26526         * modules/unictype/category-Lm-tests: Likewise.
26527         * modules/unictype/category-Lo-tests: Likewise.
26528         * modules/unictype/category-Lt-tests: Likewise.
26529         * modules/unictype/category-Lu-tests: Likewise.
26530         * modules/unictype/category-M-tests: Likewise.
26531         * modules/unictype/category-Mc-tests: Likewise.
26532         * modules/unictype/category-Me-tests: Likewise.
26533         * modules/unictype/category-Mn-tests: Likewise.
26534         * modules/unictype/category-N-tests: Likewise.
26535         * modules/unictype/category-Nd-tests: Likewise.
26536         * modules/unictype/category-Nl-tests: Likewise.
26537         * modules/unictype/category-No-tests: Likewise.
26538         * modules/unictype/category-P-tests: Likewise.
26539         * modules/unictype/category-Pc-tests: Likewise.
26540         * modules/unictype/category-Pd-tests: Likewise.
26541         * modules/unictype/category-Pe-tests: Likewise.
26542         * modules/unictype/category-Pf-tests: Likewise.
26543         * modules/unictype/category-Pi-tests: Likewise.
26544         * modules/unictype/category-Po-tests: Likewise.
26545         * modules/unictype/category-Ps-tests: Likewise.
26546         * modules/unictype/category-S-tests: Likewise.
26547         * modules/unictype/category-Sc-tests: Likewise.
26548         * modules/unictype/category-Sk-tests: Likewise.
26549         * modules/unictype/category-Sm-tests: Likewise.
26550         * modules/unictype/category-So-tests: Likewise.
26551         * modules/unictype/category-Z-tests: Likewise.
26552         * modules/unictype/category-Zl-tests: Likewise.
26553         * modules/unictype/category-Zp-tests: Likewise.
26554         * modules/unictype/category-Zs-tests: Likewise.
26555         * modules/unictype/category-and-not-tests: Likewise.
26556         * modules/unictype/category-and-tests: Likewise.
26557         * modules/unictype/category-byname-tests: Likewise.
26558         * modules/unictype/category-name-tests: Likewise.
26559         * modules/unictype/category-none-tests: Likewise.
26560         * modules/unictype/category-of-tests: Likewise.
26561         * modules/unictype/category-or-tests: Likewise.
26562         * modules/unictype/category-test-withtable-tests: Likewise.
26563         * modules/unictype/combining-class-tests: Likewise.
26564         * modules/unictype/ctype-alnum-tests: Likewise.
26565         * modules/unictype/ctype-alpha-tests: Likewise.
26566         * modules/unictype/ctype-blank-tests: Likewise.
26567         * modules/unictype/ctype-cntrl-tests: Likewise.
26568         * modules/unictype/ctype-digit-tests: Likewise.
26569         * modules/unictype/ctype-graph-tests: Likewise.
26570         * modules/unictype/ctype-lower-tests: Likewise.
26571         * modules/unictype/ctype-print-tests: Likewise.
26572         * modules/unictype/ctype-punct-tests: Likewise.
26573         * modules/unictype/ctype-space-tests: Likewise.
26574         * modules/unictype/ctype-upper-tests: Likewise.
26575         * modules/unictype/ctype-xdigit-tests: Likewise.
26576         * modules/unictype/decimal-digit-tests: Likewise.
26577         * modules/unictype/digit-tests: Likewise.
26578         * modules/unictype/mirror-tests: Likewise.
26579         * modules/unictype/numeric-tests: Likewise.
26580         * modules/unictype/property-alphabetic-tests: Likewise.
26581         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
26582         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
26583         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
26584         * modules/unictype/property-bidi-block-separator-tests: Likewise.
26585         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
26586         * modules/unictype/property-bidi-common-separator-tests: Likewise.
26587         * modules/unictype/property-bidi-control-tests: Likewise.
26588         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
26589         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
26590         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
26591         * modules/unictype/property-bidi-european-digit-tests: Likewise.
26592         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
26593         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
26594         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
26595         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
26596         * modules/unictype/property-bidi-pdf-tests: Likewise.
26597         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
26598         * modules/unictype/property-bidi-whitespace-tests: Likewise.
26599         * modules/unictype/property-byname-tests: Likewise.
26600         * modules/unictype/property-combining-tests: Likewise.
26601         * modules/unictype/property-composite-tests: Likewise.
26602         * modules/unictype/property-currency-symbol-tests: Likewise.
26603         * modules/unictype/property-dash-tests: Likewise.
26604         * modules/unictype/property-decimal-digit-tests: Likewise.
26605         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
26606         * modules/unictype/property-deprecated-tests: Likewise.
26607         * modules/unictype/property-diacritic-tests: Likewise.
26608         * modules/unictype/property-extender-tests: Likewise.
26609         * modules/unictype/property-format-control-tests: Likewise.
26610         * modules/unictype/property-grapheme-base-tests: Likewise.
26611         * modules/unictype/property-grapheme-extend-tests: Likewise.
26612         * modules/unictype/property-grapheme-link-tests: Likewise.
26613         * modules/unictype/property-hex-digit-tests: Likewise.
26614         * modules/unictype/property-hyphen-tests: Likewise.
26615         * modules/unictype/property-id-continue-tests: Likewise.
26616         * modules/unictype/property-id-start-tests: Likewise.
26617         * modules/unictype/property-ideographic-tests: Likewise.
26618         * modules/unictype/property-ids-binary-operator-tests: Likewise.
26619         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
26620         * modules/unictype/property-ignorable-control-tests: Likewise.
26621         * modules/unictype/property-iso-control-tests: Likewise.
26622         * modules/unictype/property-join-control-tests: Likewise.
26623         * modules/unictype/property-left-of-pair-tests: Likewise.
26624         * modules/unictype/property-line-separator-tests: Likewise.
26625         * modules/unictype/property-logical-order-exception-tests: Likewise.
26626         * modules/unictype/property-lowercase-tests: Likewise.
26627         * modules/unictype/property-math-tests: Likewise.
26628         * modules/unictype/property-non-break-tests: Likewise.
26629         * modules/unictype/property-not-a-character-tests: Likewise.
26630         * modules/unictype/property-numeric-tests: Likewise.
26631         * modules/unictype/property-other-alphabetic-tests: Likewise.
26632         * modules/unictype/property-other-default-ignorable-code-point-tests:
26633         Likewise.
26634         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
26635         * modules/unictype/property-other-id-continue-tests: Likewise.
26636         * modules/unictype/property-other-id-start-tests: Likewise.
26637         * modules/unictype/property-other-lowercase-tests: Likewise.
26638         * modules/unictype/property-other-math-tests: Likewise.
26639         * modules/unictype/property-other-uppercase-tests: Likewise.
26640         * modules/unictype/property-paired-punctuation-tests: Likewise.
26641         * modules/unictype/property-paragraph-separator-tests: Likewise.
26642         * modules/unictype/property-pattern-syntax-tests: Likewise.
26643         * modules/unictype/property-pattern-white-space-tests: Likewise.
26644         * modules/unictype/property-private-use-tests: Likewise.
26645         * modules/unictype/property-punctuation-tests: Likewise.
26646         * modules/unictype/property-quotation-mark-tests: Likewise.
26647         * modules/unictype/property-radical-tests: Likewise.
26648         * modules/unictype/property-sentence-terminal-tests: Likewise.
26649         * modules/unictype/property-soft-dotted-tests: Likewise.
26650         * modules/unictype/property-space-tests: Likewise.
26651         * modules/unictype/property-terminal-punctuation-tests: Likewise.
26652         * modules/unictype/property-test-tests: Likewise.
26653         * modules/unictype/property-titlecase-tests: Likewise.
26654         * modules/unictype/property-unassigned-code-value-tests: Likewise.
26655         * modules/unictype/property-unified-ideograph-tests: Likewise.
26656         * modules/unictype/property-uppercase-tests: Likewise.
26657         * modules/unictype/property-variation-selector-tests: Likewise.
26658         * modules/unictype/property-white-space-tests: Likewise.
26659         * modules/unictype/property-xid-continue-tests: Likewise.
26660         * modules/unictype/property-xid-start-tests: Likewise.
26661         * modules/unictype/property-zero-width-tests: Likewise.
26662         * modules/unictype/scripts-tests: Likewise.
26663         * modules/unictype/syntax-c-ident-tests: Likewise.
26664         * modules/unictype/syntax-c-whitespace-tests: Likewise.
26665         * modules/unictype/syntax-java-ident-tests: Likewise.
26666         * modules/unictype/syntax-java-whitespace-tests: Likewise.
26667         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
26668         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
26669         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
26670         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
26671         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
26672         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
26673         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
26674         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
26675         * modules/uniname/uniname-tests: Likewise.
26676         * modules/uninorm/canonical-decomposition-tests: Likewise.
26677         * modules/uninorm/compat-decomposition-tests: Likewise.
26678         * modules/uninorm/composition-tests: Likewise.
26679         * modules/uninorm/decomposing-form-tests: Likewise.
26680         * modules/uninorm/decomposition-tests: Likewise.
26681         * modules/uninorm/filter-tests: Likewise.
26682         * modules/uninorm/nfc-tests: Likewise.
26683         * modules/uninorm/nfd-tests: Likewise.
26684         * modules/uninorm/nfkc-tests: Likewise.
26685         * modules/uninorm/nfkd-tests: Likewise.
26686         * modules/uninorm/u8-normcmp-tests: Likewise.
26687         * modules/uninorm/u8-normcoll-tests: Likewise.
26688         * modules/uninorm/u16-normcmp-tests: Likewise.
26689         * modules/uninorm/u16-normcoll-tests: Likewise.
26690         * modules/uninorm/u32-normcmp-tests: Likewise.
26691         * modules/uninorm/u32-normcoll-tests: Likewise.
26692         * modules/unistdio/u8-asnprintf-tests: Likewise.
26693         * modules/unistdio/u8-vasnprintf-tests: Likewise.
26694         * modules/unistdio/u8-vasprintf-tests: Likewise.
26695         * modules/unistdio/u8-vsnprintf-tests: Likewise.
26696         * modules/unistdio/u8-vsprintf-tests: Likewise.
26697         * modules/unistdio/u16-asnprintf-tests: Likewise.
26698         * modules/unistdio/u16-vasnprintf-tests: Likewise.
26699         * modules/unistdio/u16-vasprintf-tests: Likewise.
26700         * modules/unistdio/u16-vsnprintf-tests: Likewise.
26701         * modules/unistdio/u16-vsprintf-tests: Likewise.
26702         * modules/unistdio/u32-asnprintf-tests: Likewise.
26703         * modules/unistdio/u32-vasnprintf-tests: Likewise.
26704         * modules/unistdio/u32-vasprintf-tests: Likewise.
26705         * modules/unistdio/u32-vsnprintf-tests: Likewise.
26706         * modules/unistdio/u32-vsprintf-tests: Likewise.
26707         * modules/unistdio/ulc-asnprintf-tests: Likewise.
26708         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
26709         * modules/unistdio/ulc-vasprintf-tests: Likewise.
26710         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
26711         * modules/unistdio/ulc-vsprintf-tests: Likewise.
26712         * modules/unistr/u8-check-tests: Likewise.
26713         * modules/unistr/u8-chr-tests: Likewise.
26714         * modules/unistr/u8-cmp-tests: Likewise.
26715         * modules/unistr/u8-cmp2-tests: Likewise.
26716         * modules/unistr/u8-cpy-alloc-tests: Likewise.
26717         * modules/unistr/u8-cpy-tests: Likewise.
26718         * modules/unistr/u8-mblen-tests: Likewise.
26719         * modules/unistr/u8-mbsnlen-tests: Likewise.
26720         * modules/unistr/u8-mbtouc-tests: Likewise.
26721         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
26722         * modules/unistr/u8-mbtoucr-tests: Likewise.
26723         * modules/unistr/u8-move-tests: Likewise.
26724         * modules/unistr/u8-next-tests: Likewise.
26725         * modules/unistr/u8-prev-tests: Likewise.
26726         * modules/unistr/u8-set-tests: Likewise.
26727         * modules/unistr/u8-stpcpy-tests: Likewise.
26728         * modules/unistr/u8-stpncpy-tests: Likewise.
26729         * modules/unistr/u8-strcat-tests: Likewise.
26730         * modules/unistr/u8-strcmp-tests: Likewise.
26731         * modules/unistr/u8-strcoll-tests: Likewise.
26732         * modules/unistr/u8-strcpy-tests: Likewise.
26733         * modules/unistr/u8-strdup-tests: Likewise.
26734         * modules/unistr/u8-strlen-tests: Likewise.
26735         * modules/unistr/u8-strmblen-tests: Likewise.
26736         * modules/unistr/u8-strmbtouc-tests: Likewise.
26737         * modules/unistr/u8-strncat-tests: Likewise.
26738         * modules/unistr/u8-strncmp-tests: Likewise.
26739         * modules/unistr/u8-strncpy-tests: Likewise.
26740         * modules/unistr/u8-strnlen-tests: Likewise.
26741         * modules/unistr/u8-to-u16-tests: Likewise.
26742         * modules/unistr/u8-to-u32-tests: Likewise.
26743         * modules/unistr/u8-uctomb-tests: Likewise.
26744         * modules/unistr/u16-check-tests: Likewise.
26745         * modules/unistr/u16-chr-tests: Likewise.
26746         * modules/unistr/u16-cmp-tests: Likewise.
26747         * modules/unistr/u16-cmp2-tests: Likewise.
26748         * modules/unistr/u16-cpy-alloc-tests: Likewise.
26749         * modules/unistr/u16-cpy-tests: Likewise.
26750         * modules/unistr/u16-mblen-tests: Likewise.
26751         * modules/unistr/u16-mbsnlen-tests: Likewise.
26752         * modules/unistr/u16-mbtouc-tests: Likewise.
26753         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
26754         * modules/unistr/u16-mbtoucr-tests: Likewise.
26755         * modules/unistr/u16-move-tests: Likewise.
26756         * modules/unistr/u16-next-tests: Likewise.
26757         * modules/unistr/u16-prev-tests: Likewise.
26758         * modules/unistr/u16-set-tests: Likewise.
26759         * modules/unistr/u16-stpcpy-tests: Likewise.
26760         * modules/unistr/u16-stpncpy-tests: Likewise.
26761         * modules/unistr/u16-strcat-tests: Likewise.
26762         * modules/unistr/u16-strcmp-tests: Likewise.
26763         * modules/unistr/u16-strcoll-tests: Likewise.
26764         * modules/unistr/u16-strcpy-tests: Likewise.
26765         * modules/unistr/u16-strdup-tests: Likewise.
26766         * modules/unistr/u16-strlen-tests: Likewise.
26767         * modules/unistr/u16-strmblen-tests: Likewise.
26768         * modules/unistr/u16-strmbtouc-tests: Likewise.
26769         * modules/unistr/u16-strncat-tests: Likewise.
26770         * modules/unistr/u16-strncmp-tests: Likewise.
26771         * modules/unistr/u16-strncpy-tests: Likewise.
26772         * modules/unistr/u16-strnlen-tests: Likewise.
26773         * modules/unistr/u16-to-u32-tests: Likewise.
26774         * modules/unistr/u16-to-u8-tests: Likewise.
26775         * modules/unistr/u16-uctomb-tests: Likewise.
26776         * modules/unistr/u32-check-tests: Likewise.
26777         * modules/unistr/u32-chr-tests: Likewise.
26778         * modules/unistr/u32-cmp-tests: Likewise.
26779         * modules/unistr/u32-cmp2-tests: Likewise.
26780         * modules/unistr/u32-cpy-alloc-tests: Likewise.
26781         * modules/unistr/u32-cpy-tests: Likewise.
26782         * modules/unistr/u32-mblen-tests: Likewise.
26783         * modules/unistr/u32-mbsnlen-tests: Likewise.
26784         * modules/unistr/u32-mbtouc-tests: Likewise.
26785         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
26786         * modules/unistr/u32-mbtoucr-tests: Likewise.
26787         * modules/unistr/u32-move-tests: Likewise.
26788         * modules/unistr/u32-next-tests: Likewise.
26789         * modules/unistr/u32-prev-tests: Likewise.
26790         * modules/unistr/u32-set-tests: Likewise.
26791         * modules/unistr/u32-stpcpy-tests: Likewise.
26792         * modules/unistr/u32-stpncpy-tests: Likewise.
26793         * modules/unistr/u32-strcat-tests: Likewise.
26794         * modules/unistr/u32-strcmp-tests: Likewise.
26795         * modules/unistr/u32-strcoll-tests: Likewise.
26796         * modules/unistr/u32-strcpy-tests: Likewise.
26797         * modules/unistr/u32-strdup-tests: Likewise.
26798         * modules/unistr/u32-strlen-tests: Likewise.
26799         * modules/unistr/u32-strmblen-tests: Likewise.
26800         * modules/unistr/u32-strmbtouc-tests: Likewise.
26801         * modules/unistr/u32-strncat-tests: Likewise.
26802         * modules/unistr/u32-strncmp-tests: Likewise.
26803         * modules/unistr/u32-strncpy-tests: Likewise.
26804         * modules/unistr/u32-strnlen-tests: Likewise.
26805         * modules/unistr/u32-to-u16-tests: Likewise.
26806         * modules/unistr/u32-to-u8-tests: Likewise.
26807         * modules/unistr/u32-uctomb-tests: Likewise.
26808         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
26809         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
26810         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
26811         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
26812         * modules/uniwidth/u8-strwidth-tests: Likewise.
26813         * modules/uniwidth/u8-width-tests: Likewise.
26814         * modules/uniwidth/u16-strwidth-tests: Likewise.
26815         * modules/uniwidth/u16-width-tests: Likewise.
26816         * modules/uniwidth/u32-strwidth-tests: Likewise.
26817         * modules/uniwidth/u32-width-tests: Likewise.
26818         * modules/uniwidth/width-tests: Likewise.
26819
26820 2010-05-18  Richard Jones  <rjones@redhat.com>
26821
26822         doc: users.txt: list hivex
26823         * users.txt: Add hivex.
26824
26825 2010-05-18  Richard Jones  <rjones@redhat.com>
26826
26827         doc: users.txt: list febootstrap
26828         * users.txt: Add febootstrap.
26829
26830 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
26831
26832         bootstrap: fix an error when gnulib is not used as a git submodule
26833         * build-aux/bootstrap (gnulib_path): If its length is zero then
26834         assign "gnulib" to it.
26835         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
26836
26837 2010-05-16  Bruno Haible  <bruno@clisp.org>
26838
26839         Avoid autoconf warnings about AM_ICONV.
26840         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
26841         2.64.
26842
26843 2010-05-16  Bruno Haible  <bruno@clisp.org>
26844
26845         absolute-header: Make the macro usable in more situations.
26846         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
26847         from gl_ABSOLUTE_HEADER.
26848         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
26849
26850 2010-05-16  James Youngman  <jay@gnu.org>
26851
26852         doc: update users.txt
26853         * users.txt: Add CSSC.
26854
26855 2010-05-16  Jim Meyering  <meyering@redhat.com>
26856
26857         init.sh: fix an error in the previous change; add more comments
26858         * tests/init.sh: Compare exit code in loop against 9, not 2.
26859         Patch by Bruno Haible.
26860         Make the two tests more similar by adding an empty "then" clause.
26861         Add comments.
26862
26863         init.sh: avoid unnecessary shell re-exec
26864         * tests/init.sh: Improve the re-exec-required check to first test the
26865         current shell.  If it passes the test, do not search for a shell that
26866         does pass, and do not re-exec.  This test is particularly contorted to
26867         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
26868         of $(...) evokes a syntax error and causes immediate shell exit with
26869         status 2.  Bruno Haible reported that the re-exec made it impossible
26870         to single-step through any init.sh-using script.
26871
26872 2010-05-16  Bruno Haible  <bruno@clisp.org>
26873
26874         Fix collision between gnulib's and libintl's printf replacements.
26875         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
26876         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
26877         (printf): When using GNU C, map the __printf__ function to rpl_printf
26878         via __asm__. When not using GNU C, define rpl_printf instead of
26879         __printf__.
26880         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
26881         commit.
26882         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
26883         commit.
26884         * m4/asm-underscore.m4: New file.
26885         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
26886         * modules/stdio (Files): Add m4/asm-underscore.m4.
26887         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
26888         Reported by Ben Pfaff.
26889
26890 2010-05-16  Bruno Haible  <bruno@clisp.org>
26891
26892         verify: Avoid skipping the test on openSUSE 11.0.
26893         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
26894
26895 2010-05-13  Bruno Haible  <bruno@clisp.org>
26896
26897         Avoid useless warnings from G++.
26898         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
26899         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
26900         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26901
26902 2010-05-11  Jim Meyering  <meyering@redhat.com>
26903
26904         maint.mk: tweak preceding change
26905         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
26906         regexps tighter by anchoring at EOL, and make the new group "shy"
26907         for slightly decreased overhead.
26908
26909 2010-05-11  Eric Blake  <eblake@redhat.com>
26910
26911         maint.mk: gnulib doesn't guarantee NSIG
26912         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
26913
26914 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26915
26916         test-pwrite.c: Remove unused variable declaration.
26917         * tests/test-pwrite.c (main): Remove read_buf declaration.
26918
26919         Remove useless test-pwrite.sh file.
26920         * tests/test-pwrite.sh: Delete file.
26921         * modules/pwrite-tests: Remove references.
26922         Reported by Bruno Haible.
26923
26924 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
26925
26926         init.sh: fix a typo
26927         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
26928
26929 2010-05-10  Jim Meyering  <meyering@redhat.com>
26930
26931         maint.mk: avoid using a temporary file in the always-defined-macros check
26932         * top/maint.mk (.re-defmac): Remove rule.
26933         (gl_trap_): Remove definition.
26934         (sc_prohibit_always-defined_macros): Rewrite not to create and
26935         depend on a temporary file.  Instead, depend on GNU grep's ability
26936         to read a list of regular expressions from stdin when given "-f -".
26937
26938 2010-05-09  Bruno Haible  <bruno@clisp.org>
26939
26940         Update to GNU gettext 0.18, part 1.
26941         * m4/gettext.m4: Update to GNU gettext 0.18.
26942         * m4/intl.m4: Likewise.
26943         * m4/po.m4: Likewise.
26944         * modules/gettext (Files): Add m4/fcntl-o.m4.
26945         (configure.ac): Require gettext infrastructure from version 0.18.
26946
26947 2010-05-09  Jim Meyering  <meyering@redhat.com>
26948
26949         init.sh: enable MALLOC_PERTURB_
26950         * tests/init.sh: Enable glibc's malloc-perturbing option.
26951
26952         maint.mk: improve sc_cross_check_PATH_usage_in_tests
26953         With my recent change in init.sh from the two-line form:
26954             -#   : ${srcdir=.}
26955             -#   . "$srcdir/init.sh"; path_prepend_ .
26956             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
26957         I noticed that using the one-line form would cause this test
26958         to fail with a false-positive, or to stop working altogether,
26959         depending on whether help-version changed or all the tests did.
26960         * top/maint.mk (_hv_regex): Remove this definition.
26961         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
26962         (_hv_regex_strong): Use a stronger regex to check for conformance.
26963         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
26964         Give a separate diagnostic for lack of conforming use.
26965
26966         maint.mk: prohibit definition of symbols defined by gnulib
26967         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
26968         definition of symbols defined by gnulib.
26969
26970 2010-05-09  Bruno Haible  <bruno@clisp.org>
26971
26972         acl: Avoid test failure on Cygwin-hosted mingw.
26973         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
26974
26975 2010-05-09  Bruno Haible  <bruno@clisp.org>
26976
26977         error: Use system's fcntl function.
26978         * lib/error.c (fcntl): Undefine.
26979
26980 2010-05-09  Jim Meyering  <meyering@redhat.com>
26981
26982         verify: adjust formatting to be more consistent
26983         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
26984         argument-list '('s, and after one comma.
26985
26986 2010-05-09  Bruno Haible  <bruno@clisp.org>
26987
26988         error: More reliable output on mingw.
26989         * lib/error.c: Include <windows.h>.
26990         (is_open): New function.
26991         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
26992         defined.
26993
26994 2010-05-09  Bruno Haible  <bruno@clisp.org>
26995
26996         vasnprintf: Fix syntax errors in libintl build on mingw.
26997         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
26998         pad_ourselves and prec_ourselves after use.
26999
27000 2010-05-08  Bruno Haible  <bruno@clisp.org>
27001
27002         * lib/config.charset: Update comments for Cygwin 1.7.
27003         * lib/localcharset.c: Likewise.
27004
27005 2010-05-07  Jim Meyering  <meyering@redhat.com>
27006
27007         init.sh: improve comments
27008         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
27009         . "${srcdir=.}/init.sh"; path_prepend_ .
27010         Add a note about path_prepend_ and the alternative of using
27011         TESTS_ENVIRONMENT.
27012
27013 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27014
27015         exclude: Unescape hashed patterns in wildcard mode.
27016         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
27017         to the hash list.
27018         * tests/test-exclude8.sh: New test case.
27019         * modules/exclude-tests: Add new test.
27020
27021 2010-05-05  Eric Blake  <eblake@redhat.com>
27022
27023         verify: automate tests
27024         * modules/verify-tests: New module.
27025         * tests/test-verify.sh: New file.
27026         * tests/test-verify.c: Guard each negative test with a unique id.
27027         Also avoid warning about unused left hand of comma expressions.
27028
27029 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
27030
27031         Further improvements to verify.h, suggested by Eric Blake.
27032         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
27033         the GL_* versions, to avoid collision with OpenGL.
27034         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
27035         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
27036         than testing merely whether it's defined.
27037
27038         Modify verify.h to pacify gcc -Wredundant_decls.
27039         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
27040         These use the prefix "GL_" since they're likely to be useful elsewhere.
27041         We may need to break them out into a different .h file.
27042         (__COUNTER__): Define to 0 if the compiler doesn't support it.
27043         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
27044         of verify_function__.
27045
27046 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27047
27048         Tests for module pwrite.
27049         * modules/pwrite-tests: New file.
27050         * tests/test-pwrite.sh: New file.
27051         * tests/test-pwrite.c: New file.
27052
27053         New module pwrite.
27054         * lib/unistd.in.h (pwrite): New declaration.
27055         * lib/pwrite.c: New file, from glibc with modifications.
27056         * m4/pwrite.m4: New file.
27057         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
27058         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
27059         REPLACE_PWRITE.
27060         * modules/pwrite: New file.
27061         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
27062         REPLACE_PWRITE.
27063         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
27064         * doc/posix-functions/pwrite.texi: Mention the new module.
27065
27066 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27067
27068         pread: Update documentation.
27069         * doc/posix-functions/pread.texi: Mention the 'pread' module.
27070
27071 2010-05-04  Eric Blake  <eblake@redhat.com>
27072
27073         docs: update cygwin progress
27074         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
27075         this bug.
27076         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
27077         Added in cygwin 1.7.2.
27078         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
27079         Likewise.
27080         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
27081         Likewise.
27082         * doc/glibc-functions/dup3.texi (dup3): Likewise.
27083         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
27084         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27085         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
27086         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
27087         Mention nproc module.
27088         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
27089         bug in cygwin 1.7.5 addition.
27090         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
27091         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
27092         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
27093         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
27094         1.7.5.
27095         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
27096         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
27097         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
27098         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
27099         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
27100         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
27101         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
27102         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
27103         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
27104         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
27105         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
27106         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
27107         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
27108         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
27109         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
27110         Likewise.
27111         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
27112         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
27113         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
27114         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
27115         Likewise.
27116         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
27117         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
27118         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
27119         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
27120         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
27121         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
27122         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
27123         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
27124         Likewise.
27125         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
27126         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
27127         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
27128         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
27129         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
27130         Likewise.
27131         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
27132         Likewise.
27133         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
27134         Likewise.
27135         * doc/glibc-functions/xdrrec_endofrecord.texi
27136         (xdrrec_endofrecord): Likewise.
27137         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
27138         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
27139         Likewise.
27140         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
27141         Likewise.
27142
27143 2010-05-04  Jim Meyering  <meyering@redhat.com>
27144
27145         gendocs.sh: make its "-s FILE" option more useful
27146         * build-aux/gendocs.sh: When honoring the -s FILE option, update
27147         $PACKAGE to reflect the probably-different basename of "FILE".
27148
27149 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27150
27151         bootstrap: don't ignore download_po_files failure
27152         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
27153         failure.
27154
27155 2010-05-03  Jim Meyering  <meyering@redhat.com>
27156
27157         maint.mk: allow to pass options to gendocs.sh
27158         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
27159         (gendocs_options_): New overridable variable.
27160
27161         gnu-web-doc-update: don't ignore configure or build failure
27162         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
27163
27164         announce-gen: backslash-escape '@'s in --help output
27165         * build-aux/announce-gen: Fix syntax errors.
27166
27167         maint.mk, announce-gen: allow project-specific announcement mail headers
27168         * top/maint.mk (translation_project_): Define default.
27169         (announcement_Cc_, announcement_mail_headers_): Likewise.
27170         (announcement): Invoke announce-gen with new --mail-headers option.
27171         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
27172
27173         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
27174         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
27175         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
27176         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
27177         line in the "err2" output file when running "make check" in verbose
27178         mode (i.e., with set -x enabled).
27179
27180 2010-05-03  Bruno Haible  <bruno@clisp.org>
27181
27182         wctob: Fix for weird platforms.
27183         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
27184         argument value.
27185
27186 2010-05-03  Jim Meyering  <meyering@redhat.com>
27187
27188         maint.mk: prohibit unwarranted use of <strings.h>
27189         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
27190         strings.h in a file that does not also use strcasecmp, strncasecmp,
27191         ffs or ffsll.
27192
27193         maint.mk: remove obsolete comments
27194         * top/maint.mk: Remove stale, commented-out rules.
27195
27196 2010-05-02  Bruno Haible  <bruno@clisp.org>
27197
27198         wcwidth: Declare also when it's aliased.
27199         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
27200         macro.
27201
27202 2010-05-02  Bruno Haible  <bruno@clisp.org>
27203
27204         Fix regression from 2010-04-25.
27205         * gnulib-tool (func_modules_transitive_closure): Check the status of
27206         all modules, not only of the tests that are of the form foo-tests where
27207         foo is a module.
27208
27209 2010-05-02  Bruno Haible  <bruno@clisp.org>
27210
27211         wctob: Work around nasty Cygwin 1.7.2 bug.
27212         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
27213         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
27214
27215 2010-05-01  Bruno Haible  <bruno@clisp.org>
27216
27217         fpurge: Sharper test.
27218         * tests/test-fpurge.c (main): Add one more ftell check.
27219         * modules/fpurge-tests (Depends-on): Add ftell.
27220         Suggested by Eric Blake.
27221
27222 2010-05-01  Bruno Haible  <bruno@clisp.org>
27223
27224         ftello: Another test.
27225         * tests/test-ftello3.c: New file.
27226         * modules/ftello-tests (Files): Add it.
27227         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27228         MOSTLYCLEANFILES.
27229
27230         ftell: Another test.
27231         * tests/test-ftell3.c: New file.
27232         * modules/ftell-tests (Files): Add it.
27233         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27234         MOSTLYCLEANFILES.
27235
27236 2010-05-01  Bruno Haible  <bruno@clisp.org>
27237
27238         ftell, ftello: Work around Solaris bug.
27239         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
27240         * lib/ftello.c: Include stdio-impl.h.
27241         (ftello): On Solaris, when _IOWRT is set, compute the result without
27242         looking at _IOREAD.
27243         * modules/ftello (Files): Add lib/stdio-impl.h.
27244         * doc/posix-functions/ftell.texi: Mention Solaris bug.
27245         * doc/posix-functions/ftello.texi: Likewise.
27246         Reported by Eric Blake.
27247
27248 2010-05-01  Bruno Haible  <bruno@clisp.org>
27249
27250         freading: Adapt to special meaning of _IOREAD flag on Solaris.
27251         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
27252         the _IOWRT flag is also set.
27253
27254 2010-05-01  Bruno Haible  <bruno@clisp.org>
27255
27256         Fix doc about a HP-UX stdio bug.
27257         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
27258         * doc/posix-functions/ftello.texi: Likewise.
27259
27260 2010-05-01  Bruno Haible  <bruno@clisp.org>
27261
27262         lseek test: Fix failure on Solaris.
27263         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
27264         output.
27265
27266 2010-04-30  Jim Meyering  <meyering@redhat.com>
27267
27268         bootstrap: don't ignore failure to generate po*/Makevars
27269         * build-aux/bootstrap (with_gettext): Don't ignore failure
27270         to create po/Makevars or runtime-po/Makevars.
27271
27272 2010-04-29  Eric Blake  <eblake@redhat.com>
27273
27274         headers: relax license to LGPLv2+
27275         * modules/fcntl-h (License): Relax license.
27276         * modules/getopt-posix (License): Likewise.
27277         * modules/locale (License): Likewise.
27278         * modules/math (License): Likewise.
27279         * modules/pty (License): Likewise.
27280         * modules/sched (License): Likewise.
27281         * modules/search (License): Likewise.
27282         * modules/spawn (License): Likewise.
27283         * modules/stdarg (License): Likewise.
27284         * modules/sysexits (License): Likewise.
27285
27286 2010-04-29  Jim Meyering  <meyering@redhat.com>
27287
27288         inttypes: relax license to LGPLv2+
27289         * modules/inttypes (License): Relax license.
27290
27291 2010-04-29  Simon Josefsson  <simon@josefsson.org>
27292
27293         * top/maint.mk (indent): Run twice to produce idempotent results.
27294
27295 2010-04-28  Bruno Haible  <bruno@clisp.org>
27296
27297         getdate: Generate getdate.c in the source directory.
27298         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
27299         MOSTLYCLEANFILES.
27300         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
27301
27302 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
27303
27304         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
27305         is not declared as a const *; avoid warnings in that case.
27306
27307 2010-04-28  Eric Blake  <eblake@redhat.com>
27308
27309         canonicalize-lgpl: avoid compiler warning
27310         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
27311         declaration' / 'extraneous semicolon' warning with some compilers.
27312         Reported by Andreas Gruenbacher.
27313
27314 2010-04-28  Jim Meyering  <meyering@redhat.com>
27315
27316         init.sh: ensure a more reliable exit status when exiting via trap
27317         * tests/init.sh (setup_): Don't rely on $? in signal handler.
27318         Inspired by patches from Dmitry V. Levin.
27319         Also trap on signal 3 (SIGQUIT).
27320
27321 2010-04-27  Bruno Haible  <bruno@clisp.org>
27322
27323         Update doc about utimes().
27324         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
27325         'utimens' module.
27326         Reported by Andreas Gruenbacher <agruen@suse.de>.
27327
27328 2010-04-27  Eric Blake  <eblake@redhat.com>
27329
27330         full-read, full-write: relax license
27331         * modules/full-read (License): Drop to LGPLv2+.
27332         * modules/full-write (License): Likewise.
27333         * modules/safe-read (License): Likewise.
27334         * modules/safe-write (License): Likewise.
27335
27336         pthread: mention library for linking
27337         * modules/pthread (Link): Mention $(LIB_PTHREAD).
27338
27339 2010-04-27  Jim Meyering  <meyering@redhat.com>
27340
27341         maint.mk: fix a bug introduced in last change
27342         * top/maint.mk (gl_assured_headers_): Now that all names are on
27343         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
27344         is not anchored to end of word, it should be adequate.
27345
27346         maint.mk: avoid side-effect in latest syntax-check
27347         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
27348         to run commands via $(shell...), and hence to incur cost only when
27349         the new rule is actually run.
27350
27351         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
27352         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
27353         and use that to create a regexp used to detect all #if HAVE_..._H uses.
27354         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
27355         (gl_assured_headers_, az_, AZ_): Define.
27356         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
27357
27358 2010-04-26  Jim Meyering  <jim@meyering.net>
27359             Bruno Haible  <bruno@clisp.org>
27360
27361         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
27362         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
27363         Prompted by an exchange with Gilles Espinasse.
27364
27365 2010-04-26  Jim Meyering  <meyering@redhat.com>
27366
27367         git-version-gen: aesthetic tweak
27368         * build-aux/git-version-gen: Use "$nl" rather than a literal,
27369         so that the command remains on a single line.
27370
27371 2010-04-26  Eric Blake  <eblake@redhat.com>
27372
27373         git-version-gen: allow use on EBCDIC hosts
27374         * build-aux/git-version-gen (dirty): Use literal rather than tying
27375         ourselves to ascii.
27376         Reported by Steve Goetze.
27377
27378 2010-04-25  Bruno Haible  <bruno@clisp.org>
27379
27380         netdb: Add support for GNULIB_POSIXCHECK.
27381         * lib/netdb.in.h: Include warn-on-use.h.
27382         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
27383         functions are used when GNULIB_POSIXCHECK is defined and the
27384         getaddrinfo module is not in use.
27385         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
27386         freeaddrinfo, gai_strerror, getnameinfo are declared.
27387         * modules/netdb (Depends-on): Add warn-on-use.
27388         (Makefile.am): Include warn-on-use.h in netdb.h.
27389
27390 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
27391
27392         build: avoid "make check" failure without .git/ directory
27393         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
27394         there is no .git/ directory.
27395
27396 2010-04-25  Bruno Haible  <bruno@clisp.org>
27397
27398         ptsname: Fix misuse of ttyname_r.
27399         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
27400         of errno.
27401
27402 2010-04-25  Bruno Haible  <bruno@clisp.org>
27403
27404         ttyname_r: Make it work on Solaris 10.
27405         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
27406         if the system function has the POSIX declaration. Test whether the
27407         function fails if the buffer is less than 128 bytes large.
27408         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
27409         system's ttyname_r function. Provide a reasonably large buffer.
27410         * modules/ttyname_r (Depends-on): Add extensions.
27411         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
27412
27413 2010-04-25  Bruno Haible  <bruno@clisp.org>
27414
27415         Use the 'extensions' module for some more functions on Solaris.
27416         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
27417         module.
27418         * doc/posix-functions/ctime_r.texi: Likewise.
27419         * doc/posix-functions/getgrgid_r.texi: Likewise.
27420         * doc/posix-functions/getgrnam_r.texi: Likewise.
27421         * doc/posix-functions/getpwnam_r.texi: Likewise.
27422         * doc/posix-functions/getpwuid_r.texi: Likewise.
27423         * doc/posix-functions/readdir_r.texi: Likewise.
27424         * doc/posix-functions/sigwait.texi: Likewise.
27425         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
27426         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
27427
27428 2010-04-25  Bruno Haible  <bruno@clisp.org>
27429
27430         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
27431         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
27432         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
27433         * lib/ttyname_r.c: Include <limits.h>.
27434         (ttyname_r): Define using the system's ttyname_r function, if it exists
27435         and not on Solaris.
27436         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
27437         set.
27438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
27439         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
27440         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
27441         Reported by Simon Josefsson.
27442
27443 2010-04-25  Bruno Haible  <bruno@clisp.org>
27444
27445         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
27446         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
27447         * doc/posix-functions/ctime_r.texi: Likewise.
27448         * doc/posix-functions/getgrgid_r.texi: Likewise.
27449         * doc/posix-functions/getgrnam_r.texi: Likewise.
27450         * doc/posix-functions/getlogin_r.texi: Likewise.
27451         * doc/posix-functions/getpwnam_r.texi: Likewise.
27452         * doc/posix-functions/getpwuid_r.texi: Likewise.
27453         * doc/posix-functions/readdir_r.texi: Likewise.
27454         * doc/posix-functions/sigwait.texi: Likewise.
27455         * doc/posix-functions/ttyname_r.texi: Likewise.
27456         Reported by Simon Josefsson.
27457
27458 2010-04-25  Bruno Haible  <bruno@clisp.org>
27459
27460         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
27461         * gnulib-tool (func_usage): Document that --with-*-tests options apply
27462         also to --create-testdir.
27463         (func_acceptable): Don't consider the status of *-tests modules here.
27464         (func_modules_transitive_closure): Consider it here, before including a
27465         test module.
27466         (func_import, func_create_testdir): Set inc_all_direct_tests,
27467         inc_all_indirect_tests.
27468         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
27469         --create-testdir and --create-megatestdir.
27470
27471 2010-04-25  Bruno Haible  <bruno@clisp.org>
27472
27473         gnulib-tool: Add --without-*-tests options.
27474         * gnulib-tool (func_usage): Document the --without-*-tests options.
27475         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
27476         excl_unportable_tests): New variables.
27477         Fail if they are specified with --import or --update.
27478         (func_acceptable): Respect the excl_*_tests variables.
27479         (func_import): Set the excl_*_tests variables to empty.
27480
27481 2010-04-25  Simon Josefsson  <simon@josefsson.org>
27482             Bruno Haible  <bruno@clisp.org>
27483
27484         Work around a MacOS X 10.4 bug with openpty.
27485         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
27486         * tests/test-openpty.c (main): Close the master side explicitly.
27487
27488 2010-04-25  Bruno Haible  <bruno@clisp.org>
27489
27490         strnlen: Fix a C++ test error on MacOS X and Solaris.
27491         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
27492         the function is not declared.
27493         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
27494         Simon Josefsson.
27495
27496 2010-04-24  Bruno Haible  <bruno@clisp.org>
27497
27498         Avoid a gcc warning.
27499         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
27500         of correct type for %08lx directive.
27501         Reported by Eric Blake.
27502
27503 2010-04-24  Bruno Haible  <bruno@clisp.org>
27504
27505         vasnprintf: Correct errno value in case of out-of-memory.
27506         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
27507         or sprintf. Use the errno value from SNPRINTF or sprintf.
27508         Reported by Ian Beckwith <ianb@erislabs.net>.
27509
27510 2010-04-24  Bruno Haible  <bruno@clisp.org>
27511
27512         ansi-c++-opt: Find correct compiler when cross-compiling.
27513         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
27514         AC_CHECK_PROGS.
27515         Reported by Simon Josefsson.
27516
27517 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
27518
27519         vc-list-files: Add support for subversion
27520         * build-aux/vc-list-files: Use "svn list" to generate the list of
27521         files controlled by subversion.
27522
27523 2010-04-23  Jim Meyering  <meyering@redhat.com>
27524
27525         vc-list-files tests: convert to use init.sh
27526         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
27527         path_prepend_.
27528         Use Exit, not exit.
27529         Use skip_ rather than open coding it.
27530         Remove trap set-up and compare definitions.
27531         * tests/test-vc-list-files-git.sh: Likewise.
27532         * modules/vc-list-files-tests (Files): Add tests/init.sh.
27533
27534 2010-04-22  Simon Josefsson  <simon@josefsson.org>
27535
27536         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
27537         backup files.
27538
27539 2010-04-21  Simon Josefsson  <simon@josefsson.org>
27540
27541         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
27542
27543 2010-04-20  Eric Blake  <eblake@redhat.com>
27544
27545         tests: be robust to ignored SIGPIPE
27546         * tests/test-select-in.sh: Consume all output.
27547         * tests/test-lseek.sh: Check correct exit status, while avoiding
27548         EPIPE.
27549
27550 2010-04-20  Simon Josefsson  <simon@josefsson.org>
27551             Bruno Haible  <bruno@clisp.org>
27552
27553         visibility: Don't use -fvisibility if it leads to a warning.
27554         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
27555         yes, don't pretend that visibility works if it leads to a warning.
27556         Reported by Mike Gran <spk121@yahoo.com>.
27557
27558 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
27559
27560         * build-aux/bootstrap: Use "git -h" for testing for supported options
27561         instead of "git --help".  The short-form option only shows a summary,
27562         and doesn't layout the full man page.  Grep for the full option name
27563         in the summary, too.
27564
27565 2010-04-19  Bruno Haible  <bruno@clisp.org>
27566
27567         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
27568         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
27569         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
27570         mention of RELOCATABLE_STRIP.
27571         Reported by Sylvain Beucler <beuc@beuc.net>.
27572
27573 2010-04-19  Bruno Haible  <bruno@clisp.org>
27574
27575         * lib/diffseq.h: Fix typo in comment.
27576         Reported by Eric Blake.
27577
27578 2010-04-19  Bruno Haible  <bruno@clisp.org>
27579
27580         ioctl: Move autoconf macro to a .m4 file.
27581         * m4/ioctl.m4: New file, extracted from modules/ioctl.
27582         * modules/ioctl (Files): Add it.
27583         (configure.ac): Simply invoke gl_FUNC_IOCTL.
27584         Reported by Ian Beckwith <ianb@erislabs.net>.
27585
27586 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
27587             Bruno Haible  <bruno@clisp.org>
27588
27589         diffseq: Accommodate use-case with abstract arrays.
27590         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
27591         is not defined.
27592         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
27593         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
27594
27595 2010-04-18  Bruno Haible  <bruno@clisp.org>
27596
27597         * doc/posix-headers/stdbool.texi: More precise wording.
27598
27599 2010-04-17  Jim Meyering  <meyering@redhat.com>
27600
27601         maint.mk: use gnu-style indentation in an embedded perl script
27602         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
27603         Rename variable: s/two/last_two_bytes/
27604
27605 2010-04-16  Eric Blake  <eblake@redhat.com>
27606
27607         test-stdbool: skip test that fails with Solaris CC
27608         * tests/test-stdbool.c (f): Skip test that causes compilation
27609         error under buggy C++ compiler.
27610         * lib/stdbool.in.h: Document the limitation.
27611         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
27612
27613         setenv: allow compilation with C++
27614         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
27615         register keyword.
27616
27617         stdint: allow test to pass with C++
27618         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
27619
27620         getopt: allow compilation with C++
27621         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
27622         struct.
27623         * lib/getopt.c (_getopt_internal_r): Use correct type.
27624         Reported by Dagobert Michelson, via Joel E. Denny.
27625
27626 2010-04-16  Bruno Haible  <bruno@clisp.org>
27627
27628         Override netdb.h always.
27629         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
27630         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
27631         Reported by Ludovic Courtès <ludo@gnu.org>.
27632
27633 2010-04-15  Bruno Haible  <bruno@clisp.org>
27634
27635         openpty: Fix mistake from 2010-03-21.
27636         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
27637         Reported by Simon Josefsson.
27638
27639 2010-04-15  Eric Blake  <eblake@redhat.com>
27640
27641         test-forkpty: fix expected signature
27642         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
27643         Reported by Simon Josefsson.
27644
27645 2010-04-15  Jim Meyering  <meyering@redhat.com>
27646
27647         maint.mk: texinfo_suffix_re_: correct the default regexp
27648         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
27649
27650         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
27651         make it configurable via texinfo_suffix_re_.
27652
27653 2010-04-14  Eric Blake  <eblake@redhat.com>
27654
27655         strtok_r: relax license to LGPLv2+
27656         * modules/strtok_r (License): Relax license.
27657         Reported by Matthias Bolte.
27658
27659 2010-04-14  Simon Josefsson  <simon@josefsson.org>
27660
27661         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
27662         version 1.4.4 by default instead of requiring the libgcrypt
27663         version used during build.  This makes it possible to use the
27664         application with older but still binary compatible libgcrypt
27665         versions.
27666
27667 2010-04-13  Eric Blake  <eblake@redhat.com>
27668
27669         getopt-gnu: match recent glibc fixes and posix ruling
27670         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
27671         '+' handling, when requesting extensions.
27672         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
27673         'W;' handling.
27674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
27675         * doc/posix-functions/getopt.texi (getopt): Document this.
27676         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27677         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27678         Likewise.
27679
27680         getopt: merge bug fixes from glibc
27681         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
27682         diagnostics.  Honor '+:' correctly.  Reject ';'.
27683
27684         getopt-posix: detect MacOS bug
27685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
27686         optind when missing a required argument.
27687         * doc/posix-functions/getopt.texi (getopt): Document the bug.
27688         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
27689         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27690         Likewise.
27691
27692         getopt-posix: avoid spurious failure on Solaris
27693         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
27694         an indicator that setting optind=1 is sufficient for reset.
27695
27696         getopt-posix: avoid spurious failure on FreeBSD
27697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
27698         in POSIX mode, since the m4 test uses it.
27699
27700         gnulib-tool: silence warning on BSD sh
27701         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
27702
27703 2010-04-13  Jim Meyering  <meyering@redhat.com>
27704
27705         doc: users.txt: GNU patch now uses gnulib
27706         * users.txt: Add patch.
27707
27708 2010-04-12  Jim Meyering  <meyering@redhat.com>
27709
27710         maint.mk: generate more concise timing data for syntax-check rules
27711         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
27712         " done" from each line that reports a syntax-check test duration.
27713
27714 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
27715
27716         git-version-gen: use "git update-index..." rather than "git status"
27717         * build-aux/git-version-gen: Use git update-index --refresh, not
27718         "git status".  With some versions of git, "git status" would fail
27719         to update the index and result in an unwarranted "-dirty" suffix.
27720
27721 2010-04-11  Jim Meyering  <meyering@redhat.com>
27722
27723         openat: correct formatting (no semantic change)
27724         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
27725         Suggested by Bruno Haible.
27726
27727 2010-04-11  Bruno Haible  <bruno@clisp.org>
27728
27729         Stricter declaration checking in testdirs.
27730         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27731         If for_tests is true, augment AM_CPPFLAGS to define
27732         GNULIB_STRICT_CHECKING.
27733         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
27734         GNULIB_STRICT_CHECKING is defined, verify that the function is
27735         declared.
27736
27737 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
27738             Bruno Haible  <bruno@clisp.org>
27739
27740         libunistring: Improve configure output.
27741         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
27742         Don't say "consider installing GNU libunistring" when checking again
27743         with libiconv.
27744
27745 2010-04-11  Bruno Haible  <bruno@clisp.org>
27746
27747         libunistring: Correct value of $LTLIBUNISTRING.
27748         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
27749         correct the value of $LTLIBUNISTRING.
27750
27751 2010-04-11  Bruno Haible  <bruno@clisp.org>
27752
27753         havelib: Add static libraries to LIBS in the right order.
27754         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
27755         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
27756
27757 2010-04-11  Bruno Haible  <bruno@clisp.org>
27758
27759         libunistring: Detect libunistring also when it depends on libiconv.
27760         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
27761         the second AC_LIB_HAVE_LINKFLAGS invocation.
27762
27763 2010-04-11  James Youngman  <jay@gnu.org>
27764
27765         close-stream: declare local scalars to be "const"
27766         * lib/close-stream.c (close_stream): Make boolean variables const
27767         to document the fact that we set but do not change them.
27768
27769 2010-04-11  Bruno Haible  <bruno@clisp.org>
27770
27771         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
27772
27773 2010-04-11  Jim Meyering  <meyering@redhat.com>
27774
27775         maint.mk: don't include dist-check.mk
27776         * top/maint.mk: Remove bogus include directive.
27777
27778         maint.mk: improve empty-line-at-EOF check
27779         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
27780         solution, rather than tail+Perl-based one.  The latter would read
27781         a few kilobytes from the end of each file, and did not handle empty
27782         files properly.
27783
27784         maint.mk: print the elapsed time for each syntax-check rule
27785         * top/maint.mk (sc_m_rules_): Save start time in a file.
27786         (sc_z_rules_): New rules: remove temp file and print elapsed time.
27787         (local-check): Interpose the .z rules
27788
27789 2010-04-11  Jim Meyering  <meyering@redhat.com>
27790
27791         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
27792         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
27793         empty file with one that ends in an empty line.
27794
27795 2010-04-10  Bruno Haible  <bruno@clisp.org>
27796
27797         mkdir: Make it work on mingw64.
27798         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
27799         * lib/mkdir.c: Update comment.
27800         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
27801
27802 2010-04-10  Bruno Haible  <bruno@clisp.org>
27803
27804         Don't override improved macro from newer autoconf.
27805         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
27806         autoconf >= 2.62.
27807         Reported by Joel E. Denny <jdenny@clemson.edu>.
27808
27809 2010-04-10  Jim Meyering  <meyering@redhat.com>
27810
27811         maint.mk: new syntax-check rule: prohibit empty lines at end of file
27812         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
27813
27814         maint.mk: correct a diagnostic
27815         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
27816         in diagnostic; now use $prohibit.
27817
27818 2010-04-10  Bruno Haible  <address@hidden>
27819
27820         fchownat: Fix a C++ test error on Solaris 8.
27821         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
27822         the function does not exist.
27823
27824 2010-04-10  Bruno Haible  <bruno@clisp.org>
27825
27826         vasnprintf: Add more tests.
27827         * tests/test-vasnprintf-posix.c: Include <errno.h>.
27828         (test_function): Test converting an invalid wide string.
27829
27830         vasnprintf: Correct handling of unconvertible wide string arguments.
27831         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
27832         VASNPRINTF.
27833         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
27834         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
27835         smaller than the expected maximum need for the directive. Set errno to
27836         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
27837         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
27838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
27839         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
27840         * modules/vasnprintf (Files): Add m4/printf.m4.
27841         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27842
27843 2010-04-10  Bruno Haible  <bruno@clisp.org>
27844
27845         vasnprintf: Fix crash in %ls directive.
27846         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
27847         string is passed as argument to %ls, with no precision and no width.
27848         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27849
27850 2010-04-10  Bruno Haible  <bruno@clisp.org>
27851
27852         vasnprintf: Fix multiple test failures on mingw.
27853         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
27854         _snprintf, or snwprintf, not _snwprintf.
27855
27856 2010-04-10  Bruno Haible  <bruno@clisp.org>
27857
27858         write: Fix a C++ test error on mingw.
27859         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
27860
27861 2010-04-10  Bruno Haible  <bruno@clisp.org>
27862
27863         vasnprintf test: Reduce code duplication.
27864         * tests/test-vasnprintf.c (test_function): New function, extracted from
27865         test_vasnprintf.
27866         (test_vasnprintf, test_asnprintf): Invoke it.
27867
27868 2010-04-10  Bruno Haible  <bruno@clisp.org>
27869
27870         strnlen: Fix warning in C++ mode on MacOS X.
27871         * lib/string.in.h (strnlen): Use the modern idiom.
27872         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
27873         defining strnlen as a macro already in <config.h>.
27874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27875         REPLACE_STRNLEN.
27876         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
27877         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27878
27879 2010-04-08  James Youngman  <jay@gnu.org>
27880
27881         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
27882         the example.
27883
27884 2010-04-09  Jim Meyering  <meyering@redhat.com>
27885
27886         maint.mk: print better diagnostic when there is no $(_hv_file)
27887         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
27888         announce that when $(_hv_file) (aka help-version) does not exist.
27889
27890         init.sh: run tr in the "C" locale to avoid multibyte interpretation
27891         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
27892         not try to interpret its random input bytes.  Jarno Rajahalme reported
27893         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
27894         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
27895         (mktempd_): Likewise, just in case.
27896
27897         ftruncate: add two years to projected module removal date: 2012
27898         * m4/ftruncate.m4: Adjust comments.
27899
27900         ftruncate: mark module as obsolete; even MinGW provides it, now
27901         * modules/ftruncate (Status): Obsolete.
27902         (Notice): Say that.
27903         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
27904         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
27905
27906 2010-04-08  Bruno Haible  <bruno@clisp.org>
27907
27908         Fix side effects from tests-related modules.
27909         * modules/dprintf-posix (Comment): New section.
27910         * modules/fprintf-posix (Comment): Likewise.
27911         * modules/obstack-printf-posix (Comment): Likewise.
27912         * modules/printf-posix (Comment): Likewise.
27913         * modules/snprintf-posix (Comment): Likewise.
27914         * modules/sprintf-posix (Comment): Likewise.
27915         * modules/vasnprintf-posix (Comment): Likewise.
27916         * modules/vasprintf-posix (Comment): Likewise.
27917         * modules/vdprintf-posix (Comment): Likewise.
27918         * modules/vfprintf-posix (Comment): Likewise.
27919         * modules/vprintf-posix (Comment): Likewise.
27920         * modules/vsnprintf-posix (Comment): Likewise.
27921         * modules/vsprintf-posix (Comment): Likewise.
27922         * modules/xprintf-posix (Comment): Likewise.
27923         * modules/xvasprintf-posix (Comment): Likewise.
27924         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
27925         * modules/floorf-tests (Depends-on): Likewise.
27926         * modules/round-tests (Depends-on): Likewise.
27927         * modules/roundf-tests (Depends-on): Likewise.
27928         * modules/trunc-tests (Depends-on): Likewise.
27929         * modules/truncf-tests (Depends-on): Likewise.
27930         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
27931         'fprintf-posix' module is not present.
27932         * tests/test-floorf2.c (check): Likewise.
27933         * tests/test-trunc2.c (check): Likewise.
27934         * tests/test-truncf2.c (check): Likewise.
27935         * tests/test-round2.c (equal): Likewise.
27936         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27937
27938 2010-04-07  Karl Berry  <karl@gnu.org>
27939
27940         * config/srclist.txt,
27941         * config/srclistvars.sh,
27942         * config/srclist-update: doc fixes.
27943
27944 2010-04-07  Jim Meyering  <meyering@redhat.com>
27945
27946         maint.mk: add a PATH crosschecking syntax-check rule
27947         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
27948         Useful if you use a test like the one in help-version (coreutils,
27949         diffutils, grep, gzip) that ensures $(VERSION) matches what is
27950         printed by prog --version.
27951
27952 2010-04-06  Bruno Haible  <bruno@clisp.org>
27953
27954         Fix link error on mingw.
27955         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
27956         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
27957
27958 2010-04-06  Bruno Haible  <bruno@clisp.org>
27959
27960         Assume rmdir exists.
27961         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
27962
27963 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
27964
27965         doc: update users.txt
27966         * users.txt: Add gcal.
27967
27968 2010-04-06  Jim Meyering  <meyering@redhat.com>
27969
27970         init.sh: simply unset TMPDIR rather than risking env -i
27971         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
27972         although it probably works fine on all Unix-based systems, some
27973         systems (Cygwin?) cannot tolerate a totally cleared environment.
27974         Suggestion from Eric Blake.
27975
27976 2010-04-06  Jim Meyering  <meyering@redhat.com>
27977
27978         init.sh: portability fix: use env's POSIX-specified -i option not -u
27979         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
27980         than unportable env -u.  Solaris 5.11's env lacks support for -u.
27981
27982 2010-04-05  Bruno Haible  <bruno@clisp.org>
27983
27984         btowc: Work around Cygwin 1.7.2 bug.
27985         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
27986         does not map NUL to 0.
27987         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
27988
27989 2010-04-05  Bruno Haible  <bruno@clisp.org>
27990
27991         Make the multithread modules work on Cygwin 1.7.2.
27992         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
27993         imported symbols can be declared weak, so that it returns "no" on
27994         Cygwin 1.7.2.
27995
27996 2010-04-05  Bruno Haible  <bruno@clisp.org>
27997
27998         Use the module 'strncat'.
27999         * modules/unistr/u8-strncat (Depends-on): Add strncat.
28000
28001         Tests for module 'strncat'.
28002         * modules/strncat-tests: New file.
28003         * tests/test-strncat.c: New file.
28004
28005         New module 'strncat'.
28006         * lib/string.in.h (strncat): New declaration.
28007         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
28008         * m4/strncat.m4: New file, based on m4/memchr.m4.
28009         * modules/strncat: New file.
28010         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
28011         is declared.
28012         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
28013         REPLACE_STRNCAT.
28014         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
28015         REPLACE_STRNCAT.
28016         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
28017         module.
28018         * tests/test-string-c++.cc: Check signature of strncat.
28019
28020 2010-04-05  Jim Meyering  <meyering@redhat.com>
28021
28022         xstrtoumax-tests: convert to use init.sh
28023         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
28024         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28025         Use Exit, not exit.
28026         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28027
28028         xstrtoimax-tests: convert to use init.sh
28029         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
28030         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28031         Use Exit, not exit.
28032         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28033
28034 2010-04-05  Bruno Haible  <bruno@clisp.org>
28035
28036         sys_socket: Avoid #define replacements in C++ mode.
28037         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
28038         warning to the function if possible, rather than #defining the symbol
28039         to a dysfunctional alias.
28040
28041 2010-04-05  Bruno Haible  <bruno@clisp.org>
28042
28043         fseeko: Fix C++ test error on mingw.
28044         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
28045         gl_FUNC_FSEEKO.
28046         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
28047         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
28048         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
28049         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
28050
28051 2010-04-05  Bruno Haible  <bruno@clisp.org>
28052
28053         duplocale: Improve test output.
28054         * tests/test-duplocale.c (main): Print reason for skipped test.
28055
28056 2010-04-05  Bruno Haible  <bruno@clisp.org>
28057
28058         Assume rmdir exists.
28059         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
28060         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
28061
28062 2010-04-05  Bruno Haible  <bruno@clisp.org>
28063
28064         Fix link error on Solaris 8 with cc.
28065         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
28066
28067 2010-04-05  Bruno Haible  <bruno@clisp.org>
28068
28069         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28070         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
28071
28072 2010-04-05  Bruno Haible  <bruno@clisp.org>
28073
28074         vasprintf: Update documentation.
28075         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
28076
28077 2010-04-05  Bruno Haible  <bruno@clisp.org>
28078
28079         ptsname: Improve test.
28080         * tests/test-ptsname.c (main): Also try the various master names of BSD
28081         systems.
28082
28083 2010-04-05  Bruno Haible  <bruno@clisp.org>
28084
28085         memchr: Avoid a possible C++ test error.
28086         * lib/string.in.h (memchr): Provide declaration if function is missing.
28087         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
28088         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
28089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
28090         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
28091
28092 2010-04-05  Bruno Haible  <bruno@clisp.org>
28093
28094         strtok_r: Improve idiom.
28095         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
28096         AC_LIBOBJ is used.
28097
28098 2010-04-05  Bruno Haible  <bruno@clisp.org>
28099
28100         strdup: Improve idiom.
28101         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
28102         AC_LIBOBJ is used.
28103         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
28104         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
28105         when AC_LIBOBJ is used.
28106
28107 2010-04-05  Bruno Haible  <bruno@clisp.org>
28108
28109         mbsinit, mbrtowc, wcrtomb: Improve idioms.
28110         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
28111         don't set REPLACE_MBSINIT to 1.
28112         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
28113         don't set REPLACE_MBRTOWC to 1.
28114         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
28115         exist, don't set REPLACE_MBSRTOWCS to 1.
28116         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
28117         exist, don't set REPLACE_MBSNRTOWCS to 1.
28118         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
28119         don't set REPLACE_WCRTOMB to 1.
28120         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
28121         exist, don't set REPLACE_WCSRTOMBS to 1.
28122         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
28123         exist, don't set REPLACE_WCSNRTOMBS to 1.
28124
28125 2010-04-05  Bruno Haible  <bruno@clisp.org>
28126
28127         ldexpl: Improve idiom.
28128         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
28129         make sure to set HAVE_DECL_LDEXPL to 0.
28130
28131 2010-04-05  Jim Meyering  <meyering@redhat.com>
28132
28133         xstrtol-tests: convert to use init.sh
28134         * modules/xstrtol-tests (Files): Add tests/init.sh.
28135         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28136         Use Exit, not exit.
28137         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28138
28139         atexit-tests: convert to use init.sh
28140         * modules/atexit-tests (Files): Add tests/init.sh.
28141         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28142         Use Exit, not exit.
28143         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28144
28145         init.sh: fix typo
28146         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
28147
28148         init.sh: make it easier for a test script to write to the tty, ...
28149         when using automake's parallel-tests mode.
28150         * tests/init.sh (stderr_fileno_): Define overridable variable.
28151         (warn_): New function, to use it.
28152         (fail_, skip_, framework_failure_): Use warn_.
28153
28154 2010-04-04  Bruno Haible  <bruno@clisp.org>
28155
28156         btowc: Avoid warning.
28157         * lib/btowc.c: Include <stdlib.h>.
28158         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
28159
28160 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28161             Bruno Haible  <bruno@clisp.org>
28162
28163         wchar: Port to NetBSD 1.5.
28164         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
28165         * lib/wctype.in.h (WEOF): Likewise.
28166
28167 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28168             Bruno Haible  <bruno@clisp.org>
28169
28170         Port extended stdio to NetBSD 1.5.
28171         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
28172         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
28173         older.
28174
28175 2010-04-04  Bruno Haible  <bruno@clisp.org>
28176
28177         string: Remove unused substitution.
28178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
28179         HAVE_DECL_STRERROR.
28180         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
28181
28182 2010-04-04  Bruno Haible  <bruno@clisp.org>
28183
28184         strtod: Avoid a possible C++ test error.
28185         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
28186         set REPLACE_STRTOD.
28187
28188 2010-04-04  Bruno Haible  <bruno@clisp.org>
28189
28190         strerror: Update documentation.
28191         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
28192
28193 2010-04-04  Bruno Haible  <bruno@clisp.org>
28194
28195         stdio: Fix some C++ test errors on Solaris 8 with GCC.
28196         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
28197         _GL_CXXALIAS_SYS_CAST.
28198
28199 2010-04-04  Bruno Haible  <bruno@clisp.org>
28200
28201         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28202         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
28203         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
28204         REPLACE_FREXPL to 1.
28205         * doc/posix-functions/frexpl.texi: Update documentation.
28206
28207 2010-04-04  Bruno Haible  <bruno@clisp.org>
28208
28209         math: Fix some C++ test errors on Solaris 8 and Cygwin.
28210         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
28211
28212 2010-04-04  Bruno Haible  <bruno@clisp.org>
28213
28214         Implement nanosleep for native Windows.
28215         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
28216
28217 2010-04-04  Bruno Haible  <bruno@clisp.org>
28218
28219         math: Fix some C++ test errors on Solaris 8.
28220         * lib/math.in.h (truncf, trunc): Use simpler idiom.
28221
28222 2010-04-04  Bruno Haible  <bruno@clisp.org>
28223
28224         math: Fix some C++ test errors on Cygwin.
28225         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
28226         truncl): Provide declaration if the system does not have it.
28227         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
28228         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
28229         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
28230         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
28231         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
28232         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
28233         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
28234         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
28235         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
28236         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
28237         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
28238         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
28239         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
28240         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
28241         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
28242         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
28243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
28244         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28245         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28246         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
28247         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28248         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28249
28250 2010-04-04  Bruno Haible  <bruno@clisp.org>
28251
28252         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
28253         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28254         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28255         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28256         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28257         * m4/isinf.m4 (gl_ISINF): Likewise.
28258         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28259
28260 2010-04-04  Bruno Haible  <bruno@clisp.org>
28261
28262         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
28263         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28264
28265 2010-04-04  Bruno Haible  <bruno@clisp.org>
28266
28267         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
28268         * modules/tmpfile (configure.ac): Update.
28269
28270         tmpfile: Fix C++ test error on mingw.
28271         * lib/stdio.in.h (tmpfile): New declaration.
28272         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
28273         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
28274         * modules/tmpfile (Depends-on): Add stdio.
28275         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28276         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
28277         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
28278         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
28279         REPLACE_TMPFILE.
28280         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
28281
28282 2010-04-04  Bruno Haible  <bruno@clisp.org>
28283
28284         ioctl: Fix C++ test error on mingw.
28285         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
28286         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
28287         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
28288
28289 2010-04-03  Bruno Haible  <bruno@clisp.org>
28290
28291         wcwidth: Fix C++ test error on mingw.
28292         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
28293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
28294         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
28295
28296 2010-04-03  Bruno Haible  <bruno@clisp.org>
28297
28298         nanosleep: Fix C++ test error on mingw.
28299         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
28300         * lib/time.in.h (nanosleep): Use modern idiom.
28301         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
28302         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
28303         REPLACE_NANOSLEEP to 1.
28304         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
28305         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
28306
28307 2010-04-03  Bruno Haible  <bruno@clisp.org>
28308
28309         strptime: Fix C++ test error on mingw.
28310         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
28311         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
28312         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
28313         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
28314         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
28315         not REPLACE_STRPTIME.
28316         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
28317         REPLACE_STRPTIME.
28318
28319 2010-04-03  Bruno Haible  <bruno@clisp.org>
28320
28321         timegm: Fix C++ test error on mingw.
28322         * lib/time.in.h (timegm): Use modern idiom.
28323         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
28324         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
28325         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
28326         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
28327
28328 2010-04-03  Bruno Haible  <bruno@clisp.org>
28329
28330         timegm: Assume declaration if function exists.
28331         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
28332         if it exists. Don't clobber ac_cv_func_timegm.
28333
28334 2010-04-03  Bruno Haible  <bruno@clisp.org>
28335
28336         time_r: Fix C++ test error on mingw.
28337         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
28338         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
28339         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
28340         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
28341         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
28342
28343 2010-04-03  Bruno Haible  <bruno@clisp.org>
28344
28345         time_r: Minor updates.
28346         * modules/time_r (Description): Mention the provided functions.
28347         * lib/time_r.c: Don't include <string.h>.
28348         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
28349         * doc/posix-functions/localtime_r.texi: Likewise.
28350
28351 2010-04-03  Bruno Haible  <bruno@clisp.org>
28352
28353         time: Fix regression introduced on 2010-03-08.
28354         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
28355         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
28356
28357 2010-04-03  Jim Meyering  <meyering@redhat.com>
28358
28359         maint.mk: don't silently disable project-specific syntax-check rules
28360         * top/maint.mk (_prohibit_regexp): Define, to help people realize
28361         that they need to convert their project-specific syntax-check rules
28362         to use the new _sc_search_regexp.
28363
28364 2010-04-03  Bruno Haible  <bruno@clisp.org>
28365
28366         fchdir: Fix regression introduced on 2010-03-08.
28367         * lib/unistd.in.h (fchdir): Fix declaration.
28368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
28369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
28370         REPLACE_FCHDIR.
28371         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
28372         REPLACE_FCHDIR.
28373
28374 2010-04-03  Bruno Haible  <bruno@clisp.org>
28375
28376         getpagesize: Fix C++ test error on mingw.
28377         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
28378         system does not declare the function.
28379         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
28380         declared.
28381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28382         HAVE_DECL_GETPAGESIZE.
28383         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
28384
28385 2010-04-03  Bruno Haible  <bruno@clisp.org>
28386
28387         stdio: Make C++ tests work on mingw.
28388         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
28389         does not declare the function.
28390
28391 2010-04-03  Bruno Haible  <bruno@clisp.org>
28392
28393         ftello: Fix C++ test error on mingw.
28394         * lib/stdio.in.h (ftello): Use modern idiom.
28395         * lib/ftello.c (ftello): Renamed from rpl_ftello.
28396         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
28397         is missing and that it needs to be replaced.
28398         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
28399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
28400         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
28401
28402 2010-04-03  Bruno Haible  <bruno@clisp.org>
28403
28404         fseeko: Fix C++ test error on mingw.
28405         * lib/stdio.in.h (fseeko): Use modern idiom.
28406         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
28407         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
28408         is missing and that it needs to be replaced.
28409         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
28410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
28411         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
28412
28413 2010-04-03  Bruno Haible  <bruno@clisp.org>
28414
28415         mkstemp: Fix C++ test error on mingw.
28416         * lib/stdlib.in.h (mkstemp): Use modern idiom.
28417         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
28418         function is missing and that it needs to be replaced.
28419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
28420         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
28421
28422 2010-04-03  Bruno Haible  <bruno@clisp.org>
28423
28424         stpncpy: Fix C++ test error on mingw.
28425         * lib/string.in.h (stpncpy): Use modern idiom.
28426         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
28427         function is missing and that it needs to be replaced.
28428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28429         REPLACE_STPNCPY.
28430         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
28431
28432 2010-04-03  Bruno Haible  <bruno@clisp.org>
28433
28434         sys_stat: Fix C++ test error on mingw.
28435         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
28436         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
28437
28438 2010-04-03  Bruno Haible  <bruno@clisp.org>
28439
28440         pty: Update doc.
28441         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
28442
28443 2010-04-03  Bruno Haible  <bruno@clisp.org>
28444
28445         unistd: Fix C++ test error on mingw.
28446         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
28447
28448 2010-04-03  Bruno Haible  <bruno@clisp.org>
28449
28450         Update doc regarding mingw.
28451         * doc/glibc-functions/openpty.texi: Update regarding mingw.
28452         * doc/glibc-functions/login_tty.texi: Likewise.
28453         * doc/glibc-functions/forkpty.texi: Likewise.
28454
28455 2010-04-03  Bruno Haible  <bruno@clisp.org>
28456
28457         stdlib: Avoid compilation failure of c-strtold on mingw.
28458         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
28459
28460 2010-04-03  Bruno Haible  <bruno@clisp.org>
28461
28462         locale: Make C++ tests work on Cygwin and mingw.
28463         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
28464         cannot provide the function.
28465         Reported by Simon Josefsson.
28466
28467 2010-04-03  Bruno Haible  <bruno@clisp.org>
28468
28469         localename: Port to MacOS X 10.6.
28470         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
28471         memory layout of the locales in MacOS X 10.6 as well.
28472         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
28473
28474 2010-04-02  Bruno Haible  <bruno@clisp.org>
28475
28476         gnulib-tool: Ensure that long-running tests are executed last.
28477         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
28478         running tests after the one for the other tests.
28479
28480 2010-04-02  Bruno Haible  <bruno@clisp.org>
28481
28482         gnulib-tool: Ensure the tests in the main directory are executed first.
28483         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
28484         start with the current directory.
28485
28486 2010-04-02  Bruno Haible  <bruno@clisp.org>
28487
28488         Tests for module 'havelib', moved here from GNU gettext.
28489         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
28490         modifications.
28491         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
28492         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
28493         with modifications.
28494         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
28495         modifications.
28496         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
28497         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
28498         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
28499         with modifications.
28500         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
28501         with modifications.
28502         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
28503         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
28504         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
28505         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
28506         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
28507         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
28508         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
28509         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
28510         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
28511         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
28512         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
28513         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
28514         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
28515         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
28516         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
28517         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
28518         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
28519         with modifications.
28520         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
28521         with modifications.
28522         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
28523         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
28524         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
28525         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
28526         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
28527         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
28528         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
28529         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
28530         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
28531         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
28532         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
28533         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
28534         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
28535         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
28536         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
28537         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
28538         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
28539         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
28540         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
28541         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
28542         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
28543         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
28544         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
28545         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
28546         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
28547         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
28548         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
28549         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
28550         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
28551         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
28552         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
28553         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
28554         * tests/havelib/rpathx/rpathx.c: New file, from
28555         gettext/autoconf-lib-link.
28556         * tests/havelib/rpathx/Makefile.am: New file, from
28557         gettext/autoconf-lib-link.
28558         * tests/havelib/rpathx/configure.ac: New file, from
28559         gettext/autoconf-lib-link with modifications.
28560         * tests/havelib/rpathy/rpathy.c: New file, from
28561         gettext/autoconf-lib-link.
28562         * tests/havelib/rpathy/Makefile.am: New file, from
28563         gettext/autoconf-lib-link.
28564         * tests/havelib/rpathy/configure.ac: New file, from
28565         gettext/autoconf-lib-link with modifications.
28566         * tests/havelib/rpathz/rpathz.c: New file, from
28567         gettext/autoconf-lib-link.
28568         * tests/havelib/rpathz/Makefile.am: New file, from
28569         gettext/autoconf-lib-link.
28570         * tests/havelib/rpathz/configure.ac: New file, from
28571         gettext/autoconf-lib-link with modifications.
28572         * tests/havelib/rpathlx/usex.c: New file, from
28573         gettext/autoconf-lib-link.
28574         * tests/havelib/rpathlx/Makefile.am: New file, from
28575         gettext/autoconf-lib-link.
28576         * tests/havelib/rpathlx/configure.ac: New file, from
28577         gettext/autoconf-lib-link with modifications.
28578         * tests/havelib/rpathly/usey.c: New file, from
28579         gettext/autoconf-lib-link.
28580         * tests/havelib/rpathly/Makefile.am: New file, from
28581         gettext/autoconf-lib-link.
28582         * tests/havelib/rpathly/configure.ac: New file, from
28583         gettext/autoconf-lib-link with modifications.
28584         * tests/havelib/rpathlz/usez.c: New file, from
28585         gettext/autoconf-lib-link.
28586         * tests/havelib/rpathlz/Makefile.am: New file, from
28587         gettext/autoconf-lib-link.
28588         * tests/havelib/rpathlz/configure.ac: New file, from
28589         gettext/autoconf-lib-link with modifications.
28590         * tests/havelib/rpathlyx/usey.c: New file, from
28591         gettext/autoconf-lib-link.
28592         * tests/havelib/rpathlyx/Makefile.am: New file, from
28593         gettext/autoconf-lib-link.
28594         * tests/havelib/rpathlyx/configure.ac: New file, from
28595         gettext/autoconf-lib-link with modifications.
28596         * tests/havelib/rpathlzyx/usez.c: New file, from
28597         gettext/autoconf-lib-link.
28598         * tests/havelib/rpathlzyx/Makefile.am: New file, from
28599         gettext/autoconf-lib-link.
28600         * tests/havelib/rpathlzyx/configure.ac: New file, from
28601         gettext/autoconf-lib-link with modifications.
28602         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
28603         with modifications.
28604
28605 2010-04-02  Bruno Haible  <bruno@clisp.org>
28606
28607         gnulib-tool: Create distributed built sources also for the tests.
28608         * gnulib-tool (func_create_testdir): Also generate distributed built
28609         sources in the tests directory.
28610
28611 2010-04-02  Bruno Haible  <bruno@clisp.org>
28612
28613         gnulib-tool: Obey user's environment variables.
28614         * gnulib-tool (func_create_testdir): When creating built sources,
28615         respect the environment variables for autoconf, automake, etc. given by
28616         the user.
28617
28618 2010-04-02  Bruno Haible  <bruno@clisp.org>
28619
28620         gnulib-tool: Provide the value of --m4-base to modules.
28621         * gnulib-tool (func_import, func_create_testdir): Emit a definition
28622         of gl_m4_base.
28623
28624 2010-04-02  Eric Blake  <eblake@redhat.com>
28625
28626         maint.mk: fix some fallout
28627         * NEWS: Document the incompatible change, and its effect on cfg.mk.
28628         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
28629
28630 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
28631
28632         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
28633         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
28634         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
28635         (sc_cast_of_x_alloc_return_value): Likewise.
28636         (sc_cast_of_alloca_return_value): Likewise.
28637         (sc_space_tab): Likewise.
28638         (sc_prohibit_atoi_atof): Likewise.
28639         (sc_prohibit_magic_number_exit): Likewise.
28640         (sc_error_exit_success): Likewise.
28641         (sc_file_system): Likewise.
28642         (sc_prohibit_have_config_h): Likewise.
28643         (sc_require_config_h): Likewise.
28644         (sc_prohibit_HAVE_MBRTOWC): Likewise.
28645         (sc_obsolete_symbols): Likewise.
28646         (sc_changelog): Likewise.
28647         (sc_program_name): Likewise.
28648         (sc_the_the): Likewise.
28649         (sc_trailing_blank): Likewise.
28650         (sc_two_space_separator_in_usage): Likewise.
28651         (sc_useless_cpp_parens): Likewise.
28652         (sc_GPL_version): Likewise.
28653         (sc_GFDL_version): Likewise.
28654         (sc_texinfo_acronym): Likewise.
28655         (sc_prohibit_cvs_keyword): Likewise.
28656         (sc_prohibit_stat_st_blocks): Likewise.
28657         (sc_prohibit_S_IS_definition): Likewise.
28658         (sc_redundant_const): Likewise.
28659         (sc_makefile_TAB_only_indentation): Likewise.
28660         (sc_m4_quote_check): Likewise.
28661         (sc_makefile_path_separator_check): Likewise.
28662         (sc_copyright_check): Likewise.
28663         (sc_Wundef_boolean): Likewise.
28664         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28665
28666         maint.mk: match 0 or more whitespace-before-function-call '('
28667         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
28668         that have zero or two-and-more spaces between the function name
28669         and the open parenthesis.
28670         (sc_error_message_warn_fatal): Likewise.
28671         (sc_error_message_uppercase): Likewise.
28672         (sc_error_message_period): Likewise.
28673
28674 2010-03-31  Eric Blake  <eblake@redhat.com>
28675
28676         maint.mk: check for [ as well as test
28677         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
28678         Based on a libvirt report by Matthias Bolte.
28679
28680         gnumakefile: don't squelch _version output
28681         * top/GNUmakefile (_version): Create one-shot dependency rather
28682         than using $(shell) when version must be regenerated.
28683         (_autoreconf): Run verbosely, by default.
28684
28685         sys_time: avoid compiler warnings
28686         * lib/sys_time.in.h (includes): Ensure gcc pragma is
28687         unconditional, fixing regression from 2010-03-29.
28688         Reported by Simon Josefsson.
28689
28690 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
28691
28692         maint.mk: s/_header_without_use/_sc_header_without_use/
28693         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
28694         (sc_prohibit_assert_without_use): Use the new name.
28695         (sc_prohibit_close_stream_without_use): Likewise.
28696         (sc_prohibit_getopt_without_use): Likewise.
28697         (sc_prohibit_quotearg_without_use): Likewise.
28698         (sc_prohibit_quote_without_use): Likewise.
28699         (sc_prohibit_long_options_without_use): Likewise.
28700         (sc_prohibit_inttostr_without_use): Likewise.
28701         (sc_prohibit_ignore_value_without_use): Likewise.
28702         (sc_prohibit_error_without_use): Likewise.
28703         (sc_prohibit_xalloc_without_use): Likewise.
28704         (sc_prohibit_hash_without_use): Likewise.
28705         (sc_prohibit_hash_pjw_without_use): Likewise.
28706         (sc_prohibit_safe_read_without_use): Likewise.
28707         (sc_prohibit_argmatch_without_use): Likewise.
28708         (sc_prohibit_canonicalize_without_use): Likewise.
28709         (sc_prohibit_root_dev_ino_without_use): Likewise.
28710         (sc_prohibit_openat_without_use): Likewise.
28711         (sc_prohibit_c_ctype_without_use): Likewise.
28712         (sc_prohibit_signal_without_use): Likewise.
28713         (sc_prohibit_intprops_without_use): Likewise.
28714
28715 2010-03-30  Eric Blake  <eblake@redhat.com>
28716
28717         maint: improve module indicators
28718         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
28719         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
28720         columns, and avoid extra macro expansion.
28721
28722         fdopendir: work around FreeBSD bug
28723         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28724         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
28725         * modules/dirent (Makefile.am): Substitute it.
28726         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
28727         declaration.
28728         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
28729         fix.
28730         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28731
28732 2010-03-29  Bruno Haible  <bruno@clisp.org>
28733
28734         Emit #pragma system_header after the inclusion guard, not before.
28735         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
28736         guard that spans the entire file, not before. This enables an
28737         optimization in GCC's preprocessor.
28738         * lib/ctype.in.h: Likewise.
28739         * lib/dirent.in.h: Likewise.
28740         * lib/errno.in.h: Likewise.
28741         * lib/float.in.h: Likewise.
28742         * lib/getopt.in.h: Likewise.
28743         * lib/iconv.in.h: Likewise.
28744         * lib/langinfo.in.h: Likewise.
28745         * lib/locale.in.h: Likewise.
28746         * lib/math.in.h: Likewise.
28747         * lib/netdb.in.h: Likewise.
28748         * lib/netinet_in.in.h: Likewise.
28749         * lib/pty.in.h: Likewise.
28750         * lib/sched.in.h: Likewise.
28751         * lib/se-selinux.in.h: Likewise.
28752         * lib/search.in.h: Likewise.
28753         * lib/spawn.in.h: Likewise.
28754         * lib/stdarg.in.h: Likewise.
28755         * lib/stdint.in.h: Likewise.
28756         * lib/string.in.h: Likewise.
28757         * lib/strings.in.h: Likewise.
28758         * lib/sys_file.in.h: Likewise.
28759         * lib/sys_ioctl.in.h: Likewise.
28760         * lib/sys_time.in.h: Likewise.
28761         * lib/sys_times.in.h: Likewise.
28762         * lib/sys_utsname.in.h: Likewise.
28763         * lib/sys_wait.in.h: Likewise.
28764         * lib/sysexits.in.h: Likewise.
28765         * lib/wctype.in.h: Likewise.
28766
28767 2010-03-28  James Youngman  <jay@gnu.org>
28768
28769         save-cwd: don't leak a file descriptor when the caller execs.
28770         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
28771         saved file descriptor.
28772         * modules/save-cwd (Depends-on): Depend on cloexec.
28773
28774 2010-03-29  Bruno Haible  <bruno@clisp.org>
28775
28776         Remove vestiges of fts-lgpl module.
28777         * lib/fts_.h: Assume GNULIB_FTS is 1.
28778         * lib/fts.c: Likewise.
28779         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28780
28781 2010-03-28  Bruno Haible  <bruno@clisp.org>
28782
28783         Fix definition of tests witness macro.
28784         * gnulib-tool (func_import): Fix definition of witness macro.
28785
28786 2010-03-28  Bruno Haible  <bruno@clisp.org>
28787
28788         Fix ioctl's protoype on glibc systems.
28789         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
28790         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
28791         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
28792         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
28793         signature. If not, arrange to replace the ioctl function.
28794         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28795         REPLACE_IOCTL.
28796         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
28797         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
28798         Reported by Ludovic Courtès <ludo@gnu.org>.
28799
28800 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
28801
28802         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
28803         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
28804         made it so grep -r --include=GLOB* ... did not work.
28805
28806 2010-03-26  Jim Meyering  <meyering@redhat.com>
28807             Eric Blake  <eblake@redhat.com>
28808
28809         maint.mk: prohibit use of test's -o and -a operators
28810         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
28811
28812 2010-03-28  Bruno Haible  <bruno@clisp.org>
28813
28814         Remove unused GNULIB_XYZ macro definitions.
28815         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
28816         invocation.
28817
28818 2010-03-28  Bruno Haible  <bruno@clisp.org>
28819
28820         Mark privileged tests modules.
28821         * modules/idpriv-drop-tests (Status): New section.
28822         * modules/idpriv-droptemp-tests (Status): New section.
28823
28824 2010-03-28  Bruno Haible  <bruno@clisp.org>
28825
28826         Split C++ tests into separate tests modules.
28827         * modules/dirent-c++-tests: New file, extracted from
28828         modules/dirent-tests.
28829         * modules/dirent-tests: Depend on it.
28830         * modules/fcntl-h-c++-tests: New file, extracted from
28831         modules/fcntl-h-tests.
28832         * modules/fcntl-h-tests: Depend on it.
28833         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
28834         * modules/glob-tests: Depend on it.
28835         * modules/iconv-h-c++-tests: New file, extracted from
28836         modules/iconv-h-tests.
28837         * modules/iconv-h-tests: Depend on it.
28838         * modules/langinfo-c++-tests: New file, extracted from
28839         modules/langinfo-tests.
28840         * modules/langinfo-tests: Depend on it.
28841         * modules/locale-c++-tests: New file, extracted from
28842         modules/locale-tests.
28843         * modules/locale-tests: Depend on it.
28844         * modules/math-c++-tests: New file, extracted from modules/math-tests.
28845         * modules/math-tests: Depend on it.
28846         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
28847         * modules/pty-tests: Depend on it.
28848         * modules/search-c++-tests: New file, extracted from
28849         modules/search-tests.
28850         * modules/search-tests: Depend on it.
28851         * modules/signal-c++-tests: New file, extracted from
28852         modules/signal-tests.
28853         * modules/signal-tests: Depend on it.
28854         * modules/spawn-c++-tests: New file, extracted from
28855         modules/spawn-tests.
28856         * modules/spawn-tests: Depend on it.
28857         * modules/stdio-c++-tests: New file, extracted from
28858         modules/stdio-tests.
28859         * modules/stdio-tests: Depend on it.
28860         * modules/stdlib-c++-tests: New file, extracted from
28861         modules/stdlib-tests.
28862         * modules/stdlib-tests: Depend on it.
28863         * modules/string-c++-tests: New file, extracted from
28864         modules/string-tests.
28865         * modules/string-tests: Depend on it.
28866         * modules/sys_ioctl-c++-tests: New file, extracted from
28867         modules/sys_ioctl-tests.
28868         * modules/sys_ioctl-tests: Depend on it.
28869         * modules/sys_select-c++-tests: New file, extracted from
28870         modules/sys_select-tests.
28871         * modules/sys_select-tests: Depend on it.
28872         * modules/sys_socket-c++-tests: New file, extracted from
28873         modules/sys_socket-tests.
28874         * modules/sys_socket-tests: Depend on it.
28875         * modules/sys_stat-c++-tests: New file, extracted from
28876         modules/sys_stat-tests.
28877         * modules/sys_stat-tests: Depend on it.
28878         * modules/sys_time-c++-tests: New file, extracted from
28879         modules/sys_time-tests.
28880         * modules/sys_time-tests: Depend on it.
28881         * modules/time-c++-tests: New file, extracted from modules/time-tests.
28882         * modules/time-tests: Depend on it.
28883         * modules/unistd-c++-tests: New file, extracted from
28884         modules/unistd-tests.
28885         * modules/unistd-tests: Depend on it.
28886         * modules/wchar-c++-tests: New file, extracted from
28887         modules/wchar-tests.
28888         * modules/wchar-tests: Depend on it.
28889         * modules/wctype-c++-tests: New file, extracted from
28890         modules/wctype-tests.
28891         * modules/wctype-tests: Depend on it.
28892         Reported by Simon Josefsson.
28893
28894 2010-03-28  Bruno Haible  <bruno@clisp.org>
28895
28896         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
28897         * gnulib-tool (func_exists_module): New function, extracted from
28898         func_verify_module.
28899         (func_verify_module): Use it.
28900         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
28901         'foo' only if 'foo' exists.
28902         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
28903         module.
28904
28905 2010-03-28  Bruno Haible  <bruno@clisp.org>
28906
28907         gnulib-tool: Add support for special categories of tests.
28908         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
28909         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
28910         (func_usage): Document them.
28911         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
28912         inc_unportable_tests, inc_all_tests): New variables.
28913         (func_acceptable): Consider these variables.
28914         (func_modules_transitive_closure): Make it work when the 'Status' field
28915         consists of multiple words.
28916         (func_import): Store and restore the values of inc_cxx_tests,
28917         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
28918         inc_all_tests in gnulib-comp.m4.
28919         (func_create_testdir): Set inc_all_tests to true.
28920         * doc/gnulib.texi (Extra tests modules): New section.
28921         Suggested by Jim Meyering.
28922
28923 2010-03-28  Bruno Haible  <bruno@clisp.org>
28924
28925         ansi-c++-opt: Allow turning off the C++ build by default.
28926         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
28927         gl_CXX_CHOICE_DEFAULT_NO is defined.
28928         Requested by Eric Blake.
28929
28930 2010-03-28  Bruno Haible  <bruno@clisp.org>
28931
28932         unistd: Avoid #define replacements in C++ mode.
28933         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
28934         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
28935         setsockopt, shutdown, select): In C++, attach a warning to the function
28936         if possible, rather than #defining the symbol to a dysfunctional alias.
28937         Reported by John W. Eaton <jwe@gnu.org>.
28938
28939 2010-03-28  Bruno Haible  <bruno@clisp.org>
28940
28941         Fix link errors on mingw.
28942         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
28943         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
28944         $(LIBSOCKET).
28945         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
28946         $(LIBSOCKET).
28947
28948 2010-03-28  Bruno Haible  <bruno@clisp.org>
28949             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28950
28951         lib-ignore: Determine different options for different compilers.
28952         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
28953         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
28954         Add comments.
28955         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
28956         * NEWS: Mention the change.
28957
28958 2010-03-27  Bruno Haible  <bruno@clisp.org>
28959
28960         Remove unused GNULIB_XYZ macro definitions.
28961         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
28962         * modules/fseek (configure.ac): Likewise.
28963         * modules/ioctl (configure.ac): Likewise.
28964         * modules/open (configure.ac): Likewise.
28965         * modules/stdlib-safer (configure.ac): Likewise.
28966
28967 2010-03-27  Bruno Haible  <bruno@clisp.org>
28968
28969         Add a remark about certain modules.
28970         * modules/malloc (Comment): New section.
28971         * modules/realloc (Comment): Likewise.
28972         * modules/sigpipe (Comment): Likewise.
28973
28974 2010-03-27  Bruno Haible  <bruno@clisp.org>
28975
28976         Resolve conflict between the two kinds of module indicators.
28977         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
28978         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
28979         * modules/canonicalize (configure.ac): Invoke
28980         gl_MODULE_INDICATOR_FOR_TESTS.
28981         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
28982         GNULIB_XYZ.
28983         * tests/test-dirent-c++.cc: Likewise.
28984         * tests/test-dirent-safer.c: Likewise.
28985         * tests/test-dup2.c: Likewise.
28986         * tests/test-fchdir.c: Likewise.
28987         * tests/test-fcntl-h-c++.cc: Likewise.
28988         * tests/test-getopt.c: Likewise.
28989         * tests/test-getopt.h: Likewise.
28990         * tests/test-langinfo-c++.cc: Likewise.
28991         * tests/test-locale-c++.cc: Likewise.
28992         * tests/test-math-c++.cc: Likewise.
28993         * tests/test-pty-c++.cc: Likewise.
28994         * tests/test-search-c++.cc: Likewise.
28995         * tests/test-signal-c++.cc: Likewise.
28996         * tests/test-spawn-c++.cc: Likewise.
28997         * tests/test-stdio-c++.cc: Likewise.
28998         * tests/test-stdlib-c++.cc: Likewise.
28999         * tests/test-string-c++.cc: Likewise.
29000         * tests/test-sys_ioctl-c++.cc: Likewise.
29001         * tests/test-sys_select-c++.cc: Likewise.
29002         * tests/test-sys_socket-c++.cc: Likewise.
29003         * tests/test-sys_stat-c++.cc: Likewise.
29004         * tests/test-sys_time-c++.cc: Likewise.
29005         * tests/test-time-c++.cc: Likewise.
29006         * tests/test-unistd-c++.cc: Likewise.
29007         * tests/test-wchar-c++.cc: Likewise.
29008         * tests/uninorm/test-u8-nfc.c: Likewise.
29009         * tests/uninorm/test-u8-nfd.c: Likewise.
29010         * tests/uninorm/test-u8-nfkc.c: Likewise.
29011         * tests/uninorm/test-u8-nfkd.c: Likewise.
29012         * tests/uninorm/test-u16-nfc.c: Likewise.
29013         * tests/uninorm/test-u16-nfd.c: Likewise.
29014         * tests/uninorm/test-u16-nfkc.c: Likewise.
29015         * tests/uninorm/test-u16-nfkd.c: Likewise.
29016         * tests/uninorm/test-u32-nfc.c: Likewise.
29017         * tests/uninorm/test-u32-nfc-big.c: Likewise.
29018         * tests/uninorm/test-u32-nfd.c: Likewise.
29019         * tests/uninorm/test-u32-nfd-big.c: Likewise.
29020         * tests/uninorm/test-u32-nfkc.c: Likewise.
29021         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
29022         * tests/uninorm/test-u32-nfkd.c: Likewise.
29023         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
29024         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29025
29026 2010-03-27  Bruno Haible  <bruno@clisp.org>
29027
29028         Distinguish two kinds of module indicators.
29029         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
29030         gl_MODULE_INDICATOR.
29031         (gl_MODULE_INDICATOR): New macro.
29032         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29033         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
29034         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29035         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29036         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29037         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29038         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29039         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29040         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29041         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29042         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29043         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29045         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29046         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29047         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29048         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29049         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29050         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29051         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29052         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29053         * modules/cloexec (configure.ac): Likewise.
29054         * modules/getopt-gnu (configure.ac): Likewise.
29055         * modules/uninorm/u8-normalize (configure.ac): Likewise.
29056         * modules/uninorm/u16-normalize (configure.ac): Likewise.
29057         * modules/uninorm/u32-normalize (configure.ac): Likewise.
29058         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
29059
29060 2010-03-27  Bruno Haible  <bruno@clisp.org>
29061
29062         New module description field 'Comment'.
29063         * gnulib-tool: New option --extract-comment.
29064         (func_usage): Document it.
29065         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
29066         (func_get_comment): New function.
29067         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
29068
29069 2010-03-27  Bruno Haible  <bruno@clisp.org>
29070
29071         Addendum to 2010-02-07 commit.
29072         * gnulib-tool (func_usage): Document --extract-applicability option.
29073
29074 2010-03-27  Bruno Haible  <bruno@clisp.org>
29075
29076         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
29077         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
29078         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
29079         rather than link errors.
29080
29081 2010-03-27  Bruno Haible  <bruno@clisp.org>
29082
29083         Avoid side effects from tests-related modules on the compilation of lib.
29084         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
29085         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
29086         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
29087         parameter. Emit into AM_CPPFLAGS a definition of the designated C
29088         macro.
29089         (func_import): Define a witness macro. Assign it a value that depends
29090         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
29091         tests-related modules.
29092         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
29093         Reported by Jim Meyering.
29094
29095 2010-03-27  Bruno Haible  <bruno@clisp.org>
29096
29097         Factorize common .m4 code.
29098         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
29099         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
29100         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
29101         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
29102         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29103         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
29104         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
29105         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29106         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29107         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29108         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
29109         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29110         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29111         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29112         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29113         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
29114         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29115         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29116         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29117         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
29118         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
29119         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29120         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29121         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29122         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29123         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29124         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
29125         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
29126         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
29127         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29128         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29129         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29130
29131 2010-03-27  Bruno Haible  <bruno@clisp.org>
29132
29133         Fix a compilation error on Cygwin with g++ >= 4.3.
29134         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
29135         if it is undefined or if we alias it to chmod.
29136         (lstat): Don't warn about the use of this function if it is undefined
29137         or if we alias it to stat.
29138         Reported by Simon Josefsson.
29139
29140 2010-03-27  Bruno Haible  <bruno@clisp.org>
29141
29142         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
29143         * modules/getlogin (configure.ac): Update.
29144
29145         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
29146         * modules/getlogin_r (configure.ac): Update.
29147
29148         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
29149         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
29150         * modules/inet_ntop (configure.ac): Update.
29151
29152         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
29153         * modules/inet_pton (configure.ac): Update.
29154
29155         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
29156         * modules/mbslen (configure.ac): Update.
29157
29158         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
29159         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
29160         * modules/forkpty (configure.ac): Update.
29161         * modules/openpty (configure.ac): Update.
29162
29163 2010-03-26  Simon Josefsson  <simon@josefsson.org>
29164
29165         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
29166         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
29167
29168 2010-03-25  Eric Blake  <eblake@redhat.com>
29169
29170         maint: use pragma consistently across replacement headers
29171         * lib/ctype.in.h (system_header): Hoist for consistent placement.
29172         * lib/dirent.in.h (system_header): Likewise.
29173         * lib/errno.in.h (system_header): Likewise.
29174         * lib/float.in.h (system_header): Likewise.
29175         * lib/getopt.in.h (system_header): Likewise.
29176         * lib/iconv.in.h (system_header): Likewise.
29177         * lib/inttypes.in.h (system_header): Likewise.
29178         * lib/langinfo.in.h (system_header): Likewise.
29179         * lib/locale.in.h (system_header): Likewise.
29180         * lib/math.in.h (system_header): Likewise.
29181         * lib/netdb.in.h (system_header): Likewise.
29182         * lib/netinet_in.in.h (system_header): Likewise.
29183         * lib/pty.in.h (system_header): Likewise.
29184         * lib/sched.in.h (system_header): Likewise.
29185         * lib/se-selinux.in.h (system_header): Likewise.
29186         * lib/search.in.h (system_header): Likewise.
29187         * lib/spawn.in.h (system_header): Likewise.
29188         * lib/stdarg.in.h (system_header): Likewise.
29189         * lib/stdint.in.h (system_header): Likewise.
29190         * lib/string.in.h (system_header): Likewise.
29191         * lib/strings.in.h (system_header): Likewise.
29192         * lib/sys_file.in.h (system_header): Likewise.
29193         * lib/sys_ioctl.in.h (system_header): Likewise.
29194         * lib/sys_socket.in.h (system_header): Likewise.
29195         * lib/sys_times.in.h (system_header): Likewise.
29196         * lib/sys_utsname.in.h (system_header): Likewise.
29197         * lib/sys_wait.in.h (system_header): Likewise.
29198         * lib/sysexits.in.h (system_header): Likewise.
29199         * lib/unistd.in.h (system_header): Likewise.
29200         * lib/wctype.in.h (system_header): Likewise.
29201
29202         arpa/inet: fix mingw compilation warning
29203         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
29204         Reported by Matthew Bolte.
29205
29206 2010-03-25  Bruno Haible  <bruno@clisp.org>
29207
29208         Avoid collision between gnulib wrapper and libintl wrapper.
29209         * lib/printf.c (printf): Don't define if a printf wrapper is already
29210         defined in intl/printf.c.
29211         Reported by Michel Boaventura <michel@michelboaventura.com>.
29212
29213 2010-03-25  Bruno Haible  <bruno@clisp.org>
29214
29215         Use ANSI C.
29216         * lib/readutmp.h (getutent): Provide ANSI C prototype.
29217
29218 2010-03-25  Bruno Haible  <bruno@clisp.org>
29219
29220         Minor formatting changes.
29221         * lib/acosl.c: Insert space before function argument list.
29222         * lib/argz.c: Likewise.
29223         * lib/asinl.c: Likewise.
29224         * lib/expl.c: Likewise.
29225         * lib/gen-uni-tables.c: Likewise.
29226         * lib/gettext.h: Likewise.
29227         * lib/glthread/lock.h: Likewise.
29228         * lib/tanl.c: Likewise.
29229         * lib/uniname/uniname.c: Likewise.
29230         * tests/test-idpriv-drop.c: Likewise.
29231         * tests/test-idpriv-droptemp.c: Likewise.
29232         * tests/test-lock.c: Likewise.
29233         * tests/test-tls.c: Likewise.
29234         * lib/argp-help.c: Insert space before function-like macro argument
29235         list.
29236         * lib/memcmp.c: Likewise.
29237         * tests/test-base64.c: Likewise.
29238         * lib/localename.c: Insert space before sizeof's argument list.
29239         * lib/safe-alloc.h: Likewise.
29240         * lib/file-set.h: Insert space before macro argument list.
29241         * tests/test-argp.c: Likewise.
29242         * lib/argp-namefrob.h: Insert space before function parameter list.
29243         * lib/getaddrinfo.c: Likewise.
29244         * lib/netdb.in.h: Likewise.
29245         * lib/parse-duration.h: Likewise.
29246         * lib/parse-duration.c: Likewise.
29247         * lib/poll.c: Likewise.
29248         * lib/select.c: Likewise.
29249         * lib/trim.h: Likewise.
29250         * tests/test-usleep.c: Likewise.
29251         * lib/ldexpl.c: Insert space before function parameter list and before
29252         function argument list.
29253         * lib/logl.c: Likewise.
29254         * lib/sqrtl.c: Likewise.
29255         * lib/trim.c: Likewise.
29256         * lib/cosl.c: Use GNU style indentation. Insert space before function
29257         argument list.
29258         * lib/sinl.c: Likewise.
29259         * lib/tsearch.c: Insert space after 'for'.
29260         Reported by Jim Meyering.
29261
29262 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
29263
29264         * maint.mk (sc_Wundef_boolean): Check for the presence of the
29265         config header before grepping, as it's not present before
29266         autoreconf/configure are run.  Reported by Simon Josefsson.
29267
29268 2010-03-23  Bruno Haible  <bruno@clisp.org>
29269
29270         pt_chown: Make it work with automake < 1.11.
29271         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
29272         Reported by Simon Josefsson.
29273
29274 2010-03-23  Bruno Haible  <bruno@clisp.org>
29275
29276         pt_chown: Don't depend on GPLed modules.
29277         * lib/pt_chown.c: Don't include idpriv.h.
29278         (main): Don't drop privileges.
29279         * modules/pt_chown (Depends-on): Remove idpriv-drop.
29280         Reported by Simon Josefsson.
29281
29282 2010-03-24  Simon Josefsson  <simon@josefsson.org>
29283
29284         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
29285         suggestions from karl@freefriends.org (Karl Berry).
29286
29287 2010-03-22  Eric Blake  <eblake@redhat.com>
29288
29289         gethostname: further tweaks
29290         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
29291         are overriding gethostname.
29292         Suggested by Bruno Haible.
29293
29294 2010-03-21  Bruno Haible  <bruno@clisp.org>
29295
29296         Fix comments.
29297         * lib/forkpty.c (rpl_forkpty): Fix comment.
29298         * lib/openpty.c (rpl_openpty): Likewise.
29299         Reported by Eric Blake.
29300
29301 2010-03-22  Eric Blake  <eblake@redhat.com>
29302
29303         gethostname: fix build on mingw
29304         * lib/unistd.in.h (includes): Work around fact that mingw
29305         <winsock2.h> re-includes <unistd.h>, by avoiding any
29306         redeclarations if we are being included by <winsock2.h>.
29307         Reported by Matthias Bolte.
29308
29309 2010-03-21  Bruno Haible  <bruno@clisp.org>
29310
29311         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
29312         * lib/forkpty.c (forkpty): New replacement function, from glibc with
29313         modifications.
29314         * lib/pty.in.h (forkpty): Update declaration. Add comments.
29315         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
29316         provide the replacement.
29317         * modules/forkpty (Depends-on): Add openpty, login_tty.
29318         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
29319         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
29320         * doc/glibc-functions/forkpty.texi: More supported platforms.
29321         * config/srclist.txt: Add forkpty.c (commented).
29322
29323 2010-03-21  Bruno Haible  <bruno@clisp.org>
29324
29325         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
29326         (Makefile.am): Verify that PTY_LIB is defined.
29327
29328         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
29329
29330 2010-03-21  Bruno Haible  <bruno@clisp.org>
29331
29332         Tests for module 'login_tty'.
29333         * modules/login_tty-tests: New file.
29334         * tests/test-login_tty.c: New file.
29335
29336         New module 'login_tty'.
29337         * lib/login_tty.c: New file.
29338         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
29339         * modules/login_tty: New file.
29340         * doc/glibc-functions/login_tty.texi: Mention the new module.
29341
29342 2010-03-21  Bruno Haible  <bruno@clisp.org>
29343
29344         login_tty: Documentation.
29345         * doc/glibc-functions/login_tty.texi: New file.
29346         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
29347
29348 2010-03-21  Bruno Haible  <bruno@clisp.org>
29349
29350         pty: Consistent macro naming.
29351         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
29352         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
29353         * modules/pty (configure.ac): Update.
29354
29355 2010-03-21  Bruno Haible  <bruno@clisp.org>
29356
29357         Tests for openpty: Make stricter.
29358         * tests/test-openpty.c (main): Add test of canonical processing and
29359         erase.
29360         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
29361
29362         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
29363         * lib/openpty.c (openpty): New replacement function.
29364         * lib/pty.in.h: Include <termios.h>.
29365         (openpty): Update declaration. Add comments.
29366         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
29367         is not declared, arrange to provide the replacement. Check for _getpty
29368         and posix_openpt.
29369         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
29370         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
29371         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
29372         * modules/pty-tests (test_pty_c___LDADD): New variable.
29373         * doc/glibc-functions/openpty.texi: More supported platforms.
29374
29375 2010-03-21  Bruno Haible  <bruno@clisp.org>
29376
29377         setenv: Tweaks.
29378         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
29379         the test program.
29380         * doc/posix-functions/setenv.texi: Update platforms list.
29381
29382 2010-03-21  Bruno Haible  <bruno@clisp.org>
29383
29384         New module 'unlockpt'.
29385         * lib/unlockpt.c: New file, from glibc with modifications.
29386         * m4/unlockpt.m4: New file.
29387         * modules/unlockpt: New file.
29388         * lib/stdlib.in.h (unlockpt): New declaration.
29389         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
29390         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
29391         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
29392         HAVE_UNLOCKPT.
29393         * doc/posix-functions/unlockpt.texi: Mention the new module.
29394         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
29395         * config/srclist.txt: Add unlockpt.c (commented).
29396
29397 2010-03-21  Jim Meyering  <meyering@redhat.com>
29398
29399         maint.mk: prohibit inclusion of "intprops.h" without use
29400         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
29401
29402 2010-03-21  Bruno Haible  <bruno@clisp.org>
29403
29404         New module 'grantpt'.
29405         * lib/grantpt.c: New file, from glibc with modifications.
29406         * m4/grantpt.m4: New file.
29407         * modules/grantpt: New file.
29408         * lib/stdlib.in.h (grantpt): New declaration.
29409         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
29410         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
29411         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
29412         HAVE_GRANTPT.
29413         * doc/posix-functions/grantpt.texi: Mention the new module.
29414         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
29415         * config/srclist.txt: Add grantpt.c (commented).
29416
29417 2010-03-21  Bruno Haible  <bruno@clisp.org>
29418
29419         New module 'pt_chown'.
29420         * lib/pt_chown.c: New file, from glibc with modifications.
29421         * lib/pty-private.h: New file, from glibc with modifications.
29422         * modules/pt_chown: New file.
29423         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
29424
29425 2010-03-21  Bruno Haible  <bruno@clisp.org>
29426
29427         Tests for module 'ptsname'.
29428         * modules/ptsname-tests: New file.
29429         * tests/test-ptsname.c: New file.
29430
29431         New module 'ptsname'.
29432         * lib/ptsname.c: New file, from glibc with modifications.
29433         * m4/ptsname.m4: New file.
29434         * modules/ptsname: New file.
29435         * lib/stdlib.in.h (ptsname): New declaration.
29436         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
29437         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
29438         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
29439         HAVE_PTSNAME.
29440         * doc/posix-functions/ptsname.texi: Mention the new module.
29441         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
29442         * config/srclist.txt: Add ptsname.c (commented).
29443
29444 2010-03-21  Bruno Haible  <bruno@clisp.org>
29445
29446         Tests for module 'ttyname_r'.
29447         * modules/ttyname_r-tests: New file.
29448         * tests/test-ttyname_r.c: New file.
29449
29450         New module 'ttyname_r'.
29451         * lib/ttyname_r.c: New file.
29452         * m4/ttyname_r.m4: New file.
29453         * modules/ttyname_r: New file.
29454         * lib/unistd.in.h (ttyname_r): New declaration.
29455         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
29456         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
29457         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
29458         HAVE_TTYNAME_R.
29459         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
29460         * doc/posix-functions/ttyname_r.texi: Mention the new module.
29461
29462 2010-03-20  Bruno Haible  <bruno@clisp.org>
29463
29464         signal: Undefine macro definitions in C++ mode.
29465         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
29466         sigfillset): Undefine macro definitions from the system header in C++
29467         mode.
29468         Reported by John W. Eaton <jwe@gnu.org>.
29469
29470 2010-03-20  Bruno Haible  <bruno@clisp.org>
29471
29472         Ensure no #include statements inside extern "C" { ... }.
29473         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
29474         contain #include statements.
29475         * lib/time.in.h: Likewise.
29476
29477 2010-03-20  Bruno Haible  <bruno@clisp.org>
29478
29479         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
29480         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
29481         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
29482         Reported by John W. Eaton <jwe@gnu.org>.
29483
29484 2010-03-20  Bruno Haible  <bruno@clisp.org>
29485
29486         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
29487         Reported by Jim Meyering.
29488
29489 2010-03-20  Bruno Haible  <bruno@clisp.org>
29490
29491         pipe: Set errno upon failure.
29492         * lib/pipe.h: Specify that when -1 is returned, errno is set.
29493         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
29494         errno value in error message.
29495
29496 2010-03-20  Bruno Haible  <bruno@clisp.org>
29497             Jim Meyering  <meyering@redhat.com>
29498
29499         lchown: Avoid "unused variable" warning.
29500         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
29501
29502 2010-03-20  Bruno Haible  <bruno@clisp.org>
29503
29504         Work around unlink() bug on MacOS X 10.5.6.
29505         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
29506         attempting to unlink a parent directory.
29507         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
29508         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
29509         activate for the replacement function.
29510         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
29511
29512 2010-03-20  Bruno Haible  <bruno@clisp.org>
29513
29514         Fix link errors on Solaris 8.
29515         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
29516         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
29517
29518 2010-03-19  Jim Meyering  <meyering@redhat.com>
29519
29520         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
29521         The _LIBC implementation of build_range_exp correctly honors the
29522         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
29523         However, the non-_LIBC implementation would ignore that syntax-bit
29524         flag and return REG_ERANGE unconditionally.
29525         This change makes it honor that flag.
29526         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
29527         Make two pointer parameters "const".
29528         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
29529         (parse_bracket_exp): Update caller.
29530
29531         regex.m4: correct the reversed range endpoint ([b-a]) test
29532         * m4/regex.m4: When requiring that [b-a] evoke failure,
29533         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
29534         test pass once again for x86-based systems.
29535
29536 2010-03-19  Bruno Haible  <bruno@clisp.org>
29537
29538         scandir: Fix link error on Solaris 8.
29539         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
29540         macros.
29541
29542 2010-03-19  Bruno Haible  <bruno@clisp.org>
29543
29544         getusershell: Fix documentation.
29545         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
29546         module.
29547         * doc/glibc-functions/setusershell.texi: Likewise.
29548
29549         getusershell: Provide declaration, missing on Solaris 9.
29550         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
29551         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
29552         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
29553         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
29554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29555         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
29556         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
29557         HAVE_GETUSERSHELL.
29558         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
29559
29560 2010-03-19  Bruno Haible  <bruno@clisp.org>
29561
29562         wctype: Provide iswblank function.
29563         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
29564         exists and is fine.
29565         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
29566         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
29567         * tests/test-wctype.c (main): Re-enable the iswblank tests.
29568         * doc/posix-functions/iswblank.texi: Update.
29569
29570 2010-03-19  Bruno Haible  <bruno@clisp.org>
29571
29572         Tests of module 'pty' in C++ mode.
29573         * modules/pty-tests: New file.
29574         * tests/test-pty-c++.cc: New file.
29575         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29576
29577 2010-03-19  Eric Blake  <eblake@redhat.com>
29578
29579         logb: fix documentation
29580         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
29581         1.5 declaration bug.
29582
29583         forkpty, openpty: prefer glibc's const-safe prototype
29584         * lib/forkpty.c (rpl_forkpty): New file.
29585         * lib/openpty.c (rpl_openpty): Likewise.
29586         * modules/forkpty (Files): Distribute it.
29587         * modules/openpty (Files): Likewise.
29588         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
29589         check...
29590         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
29591         replacement for for non-const BSD signature.
29592         * modules/pty (Makefile.am): Substitute witnesses.
29593         * lib/pty.in.h (forkpty, openpty): Declare replacements.
29594         * tests/test-forkpty.c: Update signature check.
29595         * tests/test-openpty.c: Likewise.
29596         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
29597         * doc/glibc-functions/openpty.texi (openpty): Likewise.
29598
29599         forkpty, openpty: split functions into new modules
29600         * modules/pty (Makefile.am): Substitute new witnesses.
29601         (Libraries): Move library detection...
29602         * modules/forkpty: ...into new module.
29603         * modules/openpty: Another new module.
29604         * modules/pty-tests: Rename and split...
29605         * modules/forkpty-tests: ...to this...
29606         * modules/openpty-tests: ...and this.
29607         * tests/test-pty.c: Rename and split...
29608         * tests/test-forkpty.c: ...to this...
29609         * tests/test-openpty.c: ...and this.
29610         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
29611         (gl_PTY): Split library searching...
29612         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
29613         (gl_FORKPTY, gl_OPENPTY): New macros.
29614         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
29615         * NEWS: Mention the split.
29616         * MODULES.html.sh (Misc): Document the modules.
29617         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
29618         * doc/glibc-functions/openpty.texi (openpty): Likewise.
29619
29620         pty: improve replacement header
29621         * lib/pty.in.h: New file.
29622         * modules/pty (Files): Ship it.
29623         (Makefile.am): Always build replacement.
29624         * m4/pty.m4: Rename...
29625         * m4/pty_h.m4: ...to this.
29626         (gl_PTY): Modernize setting of witness macros; update check of
29627         forkpty to take proper advantage of cache.
29628         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
29629
29630         getopt: avoid compiler warning
29631         * lib/getopt.c (attribute_hidden): Remove unused macro.
29632
29633 2010-03-18  Bruno Haible  <bruno@clisp.org>
29634
29635         Fix link errors on Solaris 8.
29636         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
29637         * modules/search-tests (test_search_c___LDADD): Likewise.
29638         * modules/signal-tests (test_signal_c___LDADD): Likewise.
29639         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
29640         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
29641         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
29642         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
29643         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
29644         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
29645
29646 2010-03-18  Bruno Haible  <bruno@clisp.org>
29647
29648         Fix bug introduced on 2010-03-14.
29649         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
29650         (gl_SPAWN_H): Require it.
29651         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
29652         Reported by Simon Josefsson.
29653
29654 2010-03-18  Bruno Haible  <bruno@clisp.org>
29655
29656         Fix typo introduced on 2009-12-31.
29657         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
29658         posix_spawn_file_actions_adddup2.
29659
29660 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
29661         and Eric Blake  <eblake@redhat.com>
29662
29663         test-vc-list-files-git: make more robust
29664         * tests/test-vc-list-files-git.sh: Unset problematic environment
29665         variables.  Chain commands together.
29666
29667 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
29668
29669         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
29670         `AC_CHECK_DECL' invocation.
29671
29672 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
29673
29674         * lib/inttostr.c (inttostr): Make sure the invocation of verify
29675         appears before executable statements. Suggested by Petr Sumbera
29676         <Petr.Sumbera@Sun.COM>.
29677
29678 2010-03-14  Bruno Haible  <bruno@clisp.org>
29679
29680         * tests/test-flock.c (test_exclusive): Comment out a test that causes
29681         portability problems. Instead use a simpler test.
29682         (main): Check that invalid arguments are rejected only on Linux.
29683
29684 2010-03-14  Bruno Haible  <bruno@clisp.org>
29685
29686         Fix bug introduced on 2009-12-31.
29687         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29688         gl_PREREQ_SYS_H_WINSOCK2 always.
29689         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
29690         SYS_SOCKET_H variable.
29691         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
29692         Update comments.
29693         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
29694         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29695         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29696         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29697         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
29698
29699 2010-03-14  Bruno Haible  <bruno@clisp.org>
29700
29701         Fix values returned by sinl, cosl.
29702         * lib/trigl.h: Add specification comments.
29703         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
29704         that combines the values from the precomputed table with the values of
29705         the Chebyshev polynomials.
29706
29707 2010-03-14  Bruno Haible  <bruno@clisp.org>
29708
29709         Fix compilation error when modules 'posix_spawn[p]' are not used.
29710         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
29711         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
29712
29713 2010-03-14  Bruno Haible  <bruno@clisp.org>
29714
29715         Fix compilation error on mingw when module 'time_r' is not used.
29716         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
29717         is 1.
29718         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
29719         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29720         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
29721         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
29722
29723 2010-03-14  Bruno Haible  <bruno@clisp.org>
29724
29725         Fix compilation error with Sun C.
29726         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
29727         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
29728         instead of GCC specific ULONG_LONG_MAX.
29729         * lib/xstrtoll.c: Likewise.
29730         * lib/xstrtoull.c: Likewise.
29731
29732 2010-03-13  Bruno Haible  <bruno@clisp.org>
29733
29734         Allow the user to disable C++ code and tests.
29735         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
29736         (gl_PROG_ANSI_CXX): Require it.
29737
29738 2010-03-13  Bruno Haible  <bruno@clisp.org>
29739
29740         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
29741         cases.
29742
29743 2010-03-13  Bruno Haible  <bruno@clisp.org>
29744
29745         Test that gnulib does not break the standard C++ headers.
29746         * tests/test-locale-c++2.cc: New file.
29747         * modules/locale-tests (Files): Add it.
29748         (Makefile.am): Compile it for test-locale-c++.
29749         * tests/test-math-c++2.cc: New file.
29750         * modules/math-tests (Files): Add it.
29751         (Makefile.am): Compile it for test-math-c++.
29752         * tests/test-signal-c++2.cc: New file.
29753         * modules/signal-tests (Files): Add it.
29754         (Makefile.am): Compile it for test-signal-c++.
29755         * tests/test-stdio-c++2.cc: New file.
29756         * modules/stdio-tests (Files): Add it.
29757         (Makefile.am): Compile it for test-stdio-c++.
29758         * tests/test-stdlib-c++2.cc: New file.
29759         * modules/stdlib-tests (Files): Add it.
29760         (Makefile.am): Compile it for test-stdlib-c++.
29761         * tests/test-string-c++2.cc: New file.
29762         * modules/string-tests (Files): Add it.
29763         (Makefile.am): Compile it for test-string-c++.
29764         * tests/test-time-c++2.cc: New file.
29765         * modules/time-tests (Files): Add it.
29766         (Makefile.am): Compile it for test-time-c++.
29767         Reported by John W. Eaton <jwe@gnu.org>.
29768
29769 2010-03-13  Bruno Haible  <bruno@clisp.org>
29770
29771         * gnulib-tool (func_usage): Clarify which options are available for
29772         --create-testdir and --create-megatestdir.
29773
29774 2010-03-13  Bruno Haible  <bruno@clisp.org>
29775
29776         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
29777         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
29778         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
29779         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29780         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
29781         when appropriate.
29782         Reported by Jim Meyering.
29783
29784 2010-03-12  Simon Josefsson  <simon@josefsson.org>
29785
29786         * gnulib-tool (func_import): Explain origin of code.
29787
29788 2010-03-12  Bruno Haible  <bruno@clisp.org>
29789
29790         Fix problem with automake's definition of CXXLINK.
29791         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
29792         Reported by Simon Josefsson and Ludovic Courtès.
29793
29794 2010-03-12  Bruno Haible  <bruno@clisp.org>
29795
29796         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
29797         stable releases.
29798
29799 2010-03-11  Bruno Haible  <bruno@clisp.org>
29800
29801         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
29802         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
29803         whether the system provides one variant or multiple variants of the
29804         function.
29805         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
29806         C++ compilers.
29807         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
29808         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
29809         Reported by Jim Meyering.
29810
29811 2010-03-09  Simon Josefsson  <simon@josefsson.org>
29812
29813         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
29814
29815 2010-03-08  Bruno Haible  <bruno@clisp.org>
29816
29817         gnulib-tool: Add support for --libtool in --create-testdir.
29818         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
29819         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
29820
29821 2010-03-08  Eric Blake  <eblake@redhat.com>
29822
29823         gnulib-tool.texi: mention possibility of git submodule
29824         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
29825         submodules.
29826         * doc/.gitignore: Ignore another generated file.
29827
29828 2010-03-08  Karl Berry  <karl@gnu.org>
29829
29830         * doc/gnulib-tool.texi (VCS Issues): Mention third option
29831         of committing gnulib files while skipping others.
29832
29833 2010-03-07  Bruno Haible  <bruno@clisp.org>
29834
29835         Tests of module 'wctype' in C++ mode.
29836         * tests/test-wctype-c++.cc: New file.
29837         * modules/wctype-tests (Files): Add it and tests/signature.h.
29838         (Depends-on): Add ansi-c++-opt.
29839         (Makefile.am): Arrange to compile and run test-wctype-c++.
29840
29841         Tests of module 'wchar' in C++ mode.
29842         * tests/test-wchar-c++.cc: New file.
29843         * modules/wchar-tests (Files): Add it and tests/signature.h.
29844         (Depends-on): Add ansi-c++-opt.
29845         (Makefile.am): Arrange to compile and run test-wchar-c++.
29846         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
29847         gl_MODULE_INDICATOR.
29848
29849         Tests of module 'unistd' in C++ mode.
29850         * tests/test-unistd-c++.cc: New file.
29851         * modules/unistd-tests (Files): Add it and tests/signature.h.
29852         (Depends-on): Add ansi-c++-opt.
29853         (Makefile.am): Arrange to compile and run test-unistd-c++.
29854         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
29855         gl_MODULE_INDICATOR.
29856
29857         Tests of module 'time' in C++ mode.
29858         * tests/test-time-c++.cc: New file.
29859         * modules/time-tests (Files): Add it and tests/signature.h.
29860         (Depends-on): Add ansi-c++-opt.
29861         (Makefile.am): Arrange to compile and run test-time-c++.
29862         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29863
29864         Tests of module 'sys_time' in C++ mode.
29865         * tests/test-sys_time-c++.cc: New file.
29866         * modules/sys_time-tests (Files): Add it and tests/signature.h.
29867         (Depends-on): Add ansi-c++-opt.
29868         (Makefile.am): Arrange to compile and run test-sys_time-c++.
29869         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
29870         gl_MODULE_INDICATOR.
29871
29872         Tests of module 'sys_stat' in C++ mode.
29873         * tests/test-sys_stat-c++.cc: New file.
29874         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
29875         (Depends-on): Add ansi-c++-opt.
29876         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
29877         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
29878         gl_MODULE_INDICATOR.
29879
29880         Tests of module 'sys_socket' in C++ mode.
29881         * tests/test-sys_socket-c++.cc: New file.
29882         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
29883         (Depends-on): Add ansi-c++-opt.
29884         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
29885         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
29886         gl_MODULE_INDICATOR.
29887
29888         Tests of module 'sys_select' in C++ mode.
29889         * tests/test-sys_select-c++.cc: New file.
29890         * modules/sys_select-tests (Files): Add it and tests/signature.h.
29891         (Depends-on): Add ansi-c++-opt.
29892         (Makefile.am): Arrange to compile and run test-sys_select-c++.
29893         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
29894         gl_MODULE_INDICATOR.
29895
29896         Tests of module 'sys_ioctl' in C++ mode.
29897         * tests/test-sys_ioctl-c++.cc: New file.
29898         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
29899         (Depends-on): Add ansi-c++-opt.
29900         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
29901         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
29902         gl_MODULE_INDICATOR.
29903
29904         Tests of module 'string' in C++ mode.
29905         * tests/test-string-c++.cc: New file.
29906         * modules/string-tests (Files): Add it and tests/signature.h.
29907         (Depends-on): Add ansi-c++-opt.
29908         (Makefile.am): Arrange to compile and run test-string-c++.
29909         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
29910         gl_MODULE_INDICATOR.
29911
29912         Tests of module 'stdlib' in C++ mode.
29913         * tests/test-stdlib-c++.cc: New file.
29914         * modules/stdlib-tests (Files): Add it and tests/signature.h.
29915         (Depends-on): Add ansi-c++-opt.
29916         (Makefile.am): Arrange to compile and run test-stdlib-c++.
29917         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
29918         gl_MODULE_INDICATOR.
29919
29920         Tests of module 'stdio' in C++ mode.
29921         * tests/test-stdio-c++.cc: New file.
29922         * modules/stdio-tests (Files): Add it and tests/signature.h.
29923         (Depends-on): Add ansi-c++-opt.
29924         (Makefile.am): Arrange to compile and run test-stdio-c++.
29925         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
29926         gl_MODULE_INDICATOR.
29927
29928         Tests of module 'spawn' in C++ mode.
29929         * tests/test-spawn-c++.cc: New file.
29930         * modules/spawn-tests (Files): Add it and tests/signature.h.
29931         (Depends-on): Add ansi-c++-opt.
29932         (Makefile.am): Arrange to compile and run test-spawn-c++.
29933         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
29934         gl_MODULE_INDICATOR.
29935
29936         Tests of module 'signal' in C++ mode.
29937         * tests/test-signal-c++.cc: New file.
29938         * modules/signal-tests (Files): Add it and tests/signature.h.
29939         (Depends-on): Add ansi-c++-opt.
29940         (Makefile.am): Arrange to compile and run test-signal-c++.
29941         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
29942         gl_MODULE_INDICATOR.
29943
29944         Tests of module 'search' in C++ mode.
29945         * tests/test-search-c++.cc: New file.
29946         * modules/search-tests (Files): Add it and tests/signature.h.
29947         (Depends-on): Add ansi-c++-opt.
29948         (Makefile.am): Arrange to compile and run test-search-c++.
29949         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
29950         gl_MODULE_INDICATOR.
29951
29952         Tests of module 'math' in C++ mode.
29953         * tests/test-math-c++.cc: New file.
29954         * modules/math-tests (Files): Add it and tests/signature.h.
29955         (Depends-on): Add ansi-c++-opt.
29956         (Makefile.am): Arrange to compile and run test-math-c++.
29957         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
29958
29959         Tests of module 'locale' in C++ mode.
29960         * tests/test-locale-c++.cc: New file.
29961         * modules/locale-tests (Files): Add it and tests/signature.h.
29962         (Depends-on): Add ansi-c++-opt.
29963         (Makefile.am): Arrange to compile and run test-locale-c++.
29964         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
29965         gl_MODULE_INDICATOR.
29966
29967         Tests of module 'langinfo' in C++ mode.
29968         * tests/test-langinfo-c++.cc: New file.
29969         * modules/langinfo-tests (Files): Add it and tests/signature.h.
29970         (Depends-on): Add ansi-c++-opt.
29971         (Makefile.am): Arrange to compile and run test-langinfo-c++.
29972         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
29973         gl_MODULE_INDICATOR.
29974
29975         Tests of module 'iconv-h' in C++ mode.
29976         * tests/test-iconv-h-c++.cc: New file.
29977         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
29978         (Depends-on): Add ansi-c++-opt.
29979         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
29980
29981         Tests of module 'glob' in C++ mode.
29982         * tests/test-glob-c++.cc: New file.
29983         * modules/glob-tests (Files): Add it.
29984         (Depends-on): Add ansi-c++-opt.
29985         (Makefile.am): Arrange to compile and run test-glob-c++.
29986
29987         Tests of module 'fcntl-h' in C++ mode.
29988         * tests/test-fcntl-h-c++.cc: New file.
29989         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
29990         (Depends-on): Add ansi-c++-opt.
29991         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
29992         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
29993         gl_MODULE_INDICATOR.
29994
29995         Tests of module 'dirent' in C++ mode.
29996         * tests/test-dirent-c++.cc: New file.
29997         * modules/dirent-tests (Files): Add it and tests/signature.h.
29998         (Depends-on): Add ansi-c++-opt.
29999         (Makefile.am): Arrange to compile and run test-dirent-c++.
30000         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30001         gl_MODULE_INDICATOR.
30002
30003         New module 'ansi-c++-opt'.
30004         * modules/ansi-c++-opt: New file.
30005         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
30006
30007         Document C++ namespace mode.
30008         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
30009
30010         wctype: Avoid #define replacements in C++ mode.
30011         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
30012         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
30013         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
30014         In C++, define a namespaced alias symbol.
30015         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
30016         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
30017         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
30018         rule.
30019
30020         wchar: Avoid #define replacements in C++ mode.
30021         * lib/wchar.in.h: Include c++defs.h.
30022         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
30023         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
30024         symbol.
30025         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
30026         * modules/wchar (Depends-on): Add c++defs.
30027         (Makefile.am): Update wchar.h rule.
30028
30029         unistd: Avoid #define replacements in C++ mode.
30030         * lib/unistd.in.h: Include c++defs.h.
30031         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
30032         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
30033         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
30034         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
30035         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
30036         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
30037         symbol.
30038         (environ): Update.
30039         * modules/unistd (Depends-on): Add c++defs.
30040         (Makefile.am): Update unistd.h rule.
30041
30042         time: Avoid #define replacements in C++ mode.
30043         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
30044         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
30045         define a namespaced alias symbol.
30046         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
30047         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
30048         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
30049         * modules/time (Depends-on): Add c++defs, warn-on-use.
30050         (Makefile.am): Update time.h rule.
30051         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30052         * modules/nanosleep (configure.ac): Likewise.
30053         * modules/strptime (configure.ac): Likewise.
30054         * modules/timegm (configure.ac): Likewise.
30055
30056         sys_time: Avoid #define replacements in C++ mode.
30057         * lib/sys_time.in.h: Include c++defs.h.
30058         (gettimeofday): In C++, define a namespaced alias symbol.
30059         * modules/sys_time (Depends-on): Add c++defs.
30060         (Makefile.am): Update sys/time.h rule.
30061
30062         sys_stat: Avoid #define replacements in C++ mode.
30063         * lib/sys_stat.in.h: Include c++defs.h.
30064         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
30065         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
30066         namespaced alias symbol.
30067         In C++, define a namespaced alias symbol.
30068         * modules/sys_stat (Depends-on): Add c++defs.
30069         (Makefile.am): Update sys/stat.h rule.
30070
30071         sys_socket: Avoid #define replacements in C++ mode.
30072         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
30073         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
30074         definitions also when the system has a <sys/socket.h>.
30075         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30076         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
30077         In C++, define a namespaced alias symbol.
30078         * modules/sys_socket (Depends-on): Add c++defs.
30079         (Makefile.am): Update sys/socket.h rule.
30080
30081         sys_select: Avoid #define replacements in C++ mode.
30082         * lib/sys_select.in.h: Include c++defs.h. Enable the function
30083         definitions also when the system has a <sys/select.h>.
30084         (select): In C++, define a namespaced alias symbol.
30085         * modules/sys_select (Depends-on): Add c++defs.
30086         (Makefile.am): Update sys/select.h rule.
30087
30088         sys_ioctl: Avoid #define replacements in C++ mode.
30089         * lib/sys_ioctl.in.h: Include c++defs.h.
30090         (ioctl): In C++, define a namespaced alias symbol.
30091         * modules/sys_ioctl (Depends-on): Add c++defs.
30092         (Makefile.am): Update sys/ioctl.h rule.
30093
30094         string: Avoid #define replacements in C++ mode.
30095         * lib/string.in.h: Include c++defs.h.
30096         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
30097         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30098         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30099         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
30100         strsignal, strverscmp): In C++, define a namespaced alias symbol.
30101         * modules/string (Depends-on): Add c++defs.
30102         (Makefile.am): Update string.h rule.
30103
30104         stdlib: Avoid #define replacements in C++ mode.
30105         * lib/stdlib.in.h: Include c++defs.h.
30106         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
30107         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
30108         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
30109         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
30110         symbol.
30111         * modules/stdlib (Depends-on): Add c++defs.
30112         (Makefile.am): Update stdlib.h rule.
30113
30114         stdio: Avoid #define replacements in C++ mode.
30115         * lib/stdio.in.h: Include c++defs.h.
30116         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
30117         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
30118         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
30119         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
30120         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
30121         namespaced alias symbol.
30122         * modules/stdio (Depends-on): Add c++defs.
30123         (Makefile.am): Update stdio.h rule.
30124
30125         spawn: Avoid #define replacements in C++ mode.
30126         * lib/spawn.in.h: Include c++defs.h.
30127         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30128         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30129         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30130         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30131         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30132         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30133         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30134         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30135         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30136         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30137         In C++, define a namespaced alias symbol.
30138         * modules/spawn (Depends-on): Add c++defs.
30139         (Makefile.am): Update spawn.h rule.
30140
30141         signal: Avoid #define replacements in C++ mode.
30142         * lib/signal.in.h: Include c++defs.h.
30143         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30144         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
30145         namespaced alias symbol.
30146         * modules/signal (Depends-on): Add c++defs.
30147         (Makefile.am): Update signal.h rule.
30148
30149         search: Avoid #define replacements in C++ mode.
30150         * lib/search.in.h: Include c++defs.h.
30151         (_gl_search_compar_fn, _gl_search_action_fn): New types.
30152         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
30153         symbol.
30154         * modules/search (Depends-on): Add c++defs.
30155         (Makefile.am): Update search.h rule.
30156
30157         math: Avoid #define replacements in C++ mode.
30158         * lib/math.in.h: Include c++defs.h.
30159         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
30160         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
30161         trunc, truncl): In C++, define a namespaced alias symbol.
30162         * modules/math (Depends-on): Add c++defs.
30163         (Makefile.am): Update math.h rule.
30164
30165         locale: Avoid #define replacements in C++ mode.
30166         * lib/locale.in.h: Include c++defs.h.
30167         (duplocale): In C++, define a namespaced alias symbol.
30168         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
30169         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
30170         * modules/locale (Depends-on): Add c++defs.
30171         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
30172
30173         langinfo: Avoid #define replacements in C++ mode.
30174         * lib/langinfo.in.h: Include c++defs.h.
30175         (nl_langinfo): In C++, define a namespaced alias symbol.
30176         * modules/langinfo (Depends-on): Add c++defs.
30177         (Makefile.am): Update langinfo.h rule.
30178
30179         iconv-h: Avoid #define replacements in C++ mode.
30180         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
30181         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
30182         symbol.
30183         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
30184         whenever iconv is present.
30185         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
30186         (Makefile.am): Update iconv.h rule.
30187
30188         glob: Avoid #define replacements in C++ mode.
30189         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
30190         (_gl_glob_errfunc_fn): New type.
30191         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
30192         symbol.
30193         * modules/glob (Depends-on): Add c++defs, warn-on-use.
30194         (Makefile.am): Update glob.h rule.
30195
30196         fcntl-h: Avoid #define replacements in C++ mode.
30197         * lib/fcntl.in.h: Include c++defs.h.
30198         (fcntl, open, openat): In C++, define a namespaced alias symbol.
30199         * modules/fcntl-h (Depends-on): Add c++defs.
30200         (Makefile.am): Update fcntl.h rule.
30201
30202         dirent: Avoid #define replacements in C++ mode.
30203         * lib/dirent.in.h: Include c++defs.h.
30204         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
30205         namespaced alias symbol.
30206         (dirfd): Update declaration.
30207         * modules/dirent (Depends-on): Add c++defs.
30208         (Makefile.am): Update dirent.h rule.
30209
30210         ctype: Make it usable in C++ code.
30211         * lib/ctype.in.h: Include c++defs.h.
30212         (isblank): Declare as extern "C".
30213         * modules/ctype (Depends-on): Add c++defs.
30214         (Makefile.am): Update ctype.h rule.
30215
30216         New module 'c++defs'.
30217         * modules/c++defs: New file.
30218         * build-aux/c++defs.h: New file.
30219         Reported by John W. Eaton <jwe@gnu.org>.
30220
30221 2010-03-07  Bruno Haible  <bruno@clisp.org>
30222
30223         logb: Provide missing declaration for Cygwin.
30224         * lib/math.in.h (logb): New declaration.
30225         * m4/logb.m4: New file.
30226         * modules/logb (Files): Add m4/logb.m4.
30227         (Depends-on): Add math.
30228         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
30229         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
30230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
30231         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
30232         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
30233
30234 2010-03-07  Bruno Haible  <bruno@clisp.org>
30235
30236         Fix test-cond link error.
30237         * tests/test-cond.c: Include <stdio.h>.
30238
30239 2010-03-07  Bruno Haible  <bruno@clisp.org>
30240
30241         Fix test-dirent-safer link error.
30242         * modules/dirent-safer-tests (Makefile.am): Define
30243         test_dirent_safer_LDADD.
30244
30245 2010-03-07  Bruno Haible  <bruno@clisp.org>
30246
30247         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
30248         among default module list.
30249
30250 2010-03-07  Bruno Haible  <bruno@clisp.org>
30251
30252         Fix link error on platforms with GNU libiconv.
30253         * modules/unistr/u8-strcoll-tests (Makefile): Define
30254         test_u8_strcoll_LDADD.
30255         * modules/unistr/u16-strcoll-tests (Makefile): Define
30256         test_u16_strcoll_LDADD.
30257         * modules/unistr/u32-strcoll-tests (Makefile): Define
30258         test_u32_strcoll_LDADD.
30259
30260 2010-03-07  Bruno Haible  <bruno@clisp.org>
30261
30262         Use POSIX declarations for socket functions.
30263         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
30264         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
30265         rpl_sendto): Change declaration to match POSIX.
30266         * lib/connect.c (rpl_connect): Likewise.
30267         * lib/accept.c (rpl_accept): Likewise.
30268         * lib/bind.c (rpl_bind): Likewise.
30269         * lib/getpeername.c (rpl_getpeername): Likewise.
30270         * lib/getsockname.c (rpl_getsockname): Likewise.
30271         * lib/recv.c (rpl_recv): Likewise.
30272         * lib/send.c (rpl_send): Likewise.
30273         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30274         * lib/sendto.c (rpl_sendto): Likewise.
30275
30276 2010-03-06  Bruno Haible  <bruno@clisp.org>
30277
30278         Clarify access, euidaccess, faccessat.
30279         * doc/posix-functions/faccessat.texi: Mention security problem under
30280         "Other problems", not "Portability problems".
30281         * doc/posix-functions/access.texi: Likewise. Mention a related security
30282         problem.
30283         * doc/glibc-functions/euidaccess.texi: Mention security problems.
30284         * lib/euidaccess.c: Add comments about platforms.
30285         * lib/unistd.in.h (access, euidaccess): Add warnings.
30286
30287 2010-03-07  Bruno Haible  <bruno@clisp.org>
30288
30289         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
30290         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
30291         (POSIX_SPAWN_SETSCHEDULER): Likewise.
30292         (POSIX_SPAWN_USEVFORK): Define in a way that works when
30293         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30294         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
30295         declare when POSIX_SPAWN_SETSCHEDULER is zero.
30296         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
30297         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
30298         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
30299         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
30300         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
30301         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
30302         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
30303         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
30304         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
30305         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
30306         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
30307         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
30308         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
30309         Likewise.
30310         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
30311         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
30312         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
30313         Likewise.
30314         * tests/test-spawn.c (main): Make it work when
30315         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30316
30317 2010-03-07  Bruno Haible  <bruno@clisp.org>
30318
30319         Fix incorrect Makefile.am generation in German locale.
30320         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30321         Execute sed command with character range in C locale.
30322
30323 2010-03-06  Bruno Haible  <bruno@clisp.org>
30324
30325         Tests for module 'iconv-h'.
30326         * modules/iconv-h-tests: New file.
30327         * tests/test-iconv-h.c: New file.
30328
30329         New module 'iconv-h'.
30330         * modules/iconv-h: New file.
30331         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
30332         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
30333         (configure.ac): Remove gl_ICONV_H.
30334         (Makefile.am): Remove rule for iconv.h.
30335
30336 2010-03-06  Bruno Haible  <bruno@clisp.org>
30337
30338         More consistent naming of *.m4 files.
30339         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
30340         * modules/wctype (Files): Update.
30341
30342         More consistent naming of *.m4 files.
30343         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
30344         * modules/wchar (Files): Update.
30345
30346 2010-03-06  Jim Meyering  <meyering@redhat.com>
30347
30348         euidaccess: relax license to LGPLv2+
30349         * modules/euidaccess (License): Relax to LGPLv2+.
30350
30351 2010-03-06  Bruno Haible  <bruno@clisp.org>
30352
30353         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
30354         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
30355         (Makefile.am): Augment lib_SOURCES instead.
30356
30357 2010-03-04  Jim Meyering  <meyering@redhat.com>
30358
30359         utime: remove obsolete module
30360         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
30361         unnecessary for years, and has been marked as obsolete for 10 months.
30362         * modules/utime: Remove file.
30363         * lib/utime.c: Remove file.
30364         * m4/utime.m4: Remove file.
30365         * m4/utimes-null.m4: Remove file.
30366         * doc/posix-functions/utime.texi (utime): Remove reference to
30367         the module.  Move the sole "fixed by gnulib" item into the
30368         "problems not fixed by Gnulib" list.
30369         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
30370
30371 2010-03-05  Simon Josefsson  <simon@josefsson.org>
30372
30373         * modules/exit (License): Relax license to LGPLv2+.
30374         (Status): Mark as obsolete.
30375         * NEWS: Mention deprecated 'exit' module.
30376         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
30377         of now obsolete 'exit'.
30378
30379 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30380
30381         fts-lgpl: remove unused module
30382         * modules/fts-lgpl: Remove.
30383         * MODULES.html.sh (func_all_modules): Adjust.
30384         * check-module (find_included_lib_files): Adjust.
30385         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
30386
30387 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
30388
30389         copy-acl: enhance Solaris ACL error handling
30390         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
30391         * lib/set-mode-acl.c (qset_acl): Likewise.
30392
30393 2010-03-02  Bruno Haible  <bruno@clisp.org>
30394
30395         spawn: Don't override the system defined values on FreeBSD 8.
30396         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
30397         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
30398         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
30399         if HAVE_POSIX_SPAWN is 1.
30400         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
30401
30402 2010-03-01  Bruno Haible  <bruno@clisp.org>
30403
30404         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
30405         regarding Automake.
30406
30407 2010-02-25  Bruno Haible  <bruno@clisp.org>
30408
30409         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
30410         * gnulib-tool: Define 'echo' as a function only before the ksh alias
30411         setting, not afterwards.
30412         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
30413
30414 2010-02-24  Eric Blake  <eblake@redhat.com>
30415
30416         bootstrap, git-version-gen: use timestamp
30417         * build-aux/git-version-gen (scriptversion): Force UTC.
30418         * build-aux/bootstrap (scriptversion): New variable.
30419
30420         bootstrap: allow older git
30421         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
30422         older than 1.6.4.  Requested by the libvirt project.
30423
30424 2010-02-23  Eric Blake  <eblake@redhat.com>
30425
30426         warn-on-use: work with old autoconf
30427         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
30428         AS_VAR semantics of autoconf 2.60.
30429         Reported by Bruno Haible.
30430
30431         bootstrap: improve some comments
30432         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
30433         clarification comments.
30434
30435         gettimeofday: provide correct function
30436         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
30437         when replacement is declared, otherwise provide gettimeofday.
30438         Reported by Michael Goffioul.
30439
30440 2010-02-23  Jim Meyering  <meyering@redhat.com>
30441
30442         lib-ignore: relax license to "unlimited", not LGPLv2+
30443         * modules/lib-ignore (License): Relax to "unlimited".
30444
30445 2010-02-23  Jim Meyering  <meyering@redhat.com>
30446
30447         lib-ignore: relax license to LGPLv2+
30448         * modules/lib-ignore (License): Relax to LGPLv2+.
30449
30450 2010-02-22  Eric Blake  <eblake@redhat.com>
30451
30452         lseek: avoid bash 3.2 broken pipe bug
30453         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
30454         warning from bash 3.2.
30455         Reported by Ben Pfaff, with analysis from Bruno Haible.
30456
30457         bootstrap: support non-FSF copyright holder
30458         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
30459         bootstrap.conf override of COPYRIGHT_HOLDER.
30460         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
30461
30462         bootstrap: interoperate with gettext 0.14.1
30463         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
30464
30465         bootstrap: allow for alternate submodule location
30466         * build-aux/bootstrap (gnulib_path): New variable; use instead of
30467         hardcoding submodule location.
30468         (gnulib_mk): Allow direct use of Makefile.am.
30469
30470         bootstrap: use GNULIB_SRCDIR to reduce disk usage
30471         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
30472         rather than reconfiguring where the submodule points.
30473
30474         gettimeofday: restore support for platforms that lack function
30475         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
30476         replacement if function is missing.
30477         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
30478         * modules/sys_time (Makefile.am): Substitute it.
30479         * lib/sys_time.in.h (gettimeofday): Check it.
30480         Reported by Michael Goffioul.
30481
30482 2010-02-21  Bruno Haible  <bruno@clisp.org>
30483
30484         * lib/stdio.in.h (obstack_printf): Fix typo.
30485
30486 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
30487
30488         vc-list-files: use bzr ls's -R option
30489         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
30490         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
30491
30492 2010-02-21  Jim Meyering  <meyering@redhat.com>
30493
30494         init.sh: fix EXEEXT shims to work also for names like test-prog
30495         * tests/init.sh: Re-exec a better shell, when needed.
30496         If the current shell lacks support for posix $(...), an init.sh-using
30497         test will now try to find a shell that supports that.  If EXEEXT is
30498         nonempty, we also require support for hyphen-in-alias-name and shell
30499         substitutions like ${var#glob}.  Failure to find such a shell results
30500         in a skipped test.
30501
30502 2010-02-21  Bruno Haible  <bruno@clisp.org>
30503
30504         Really work around around "broken pipe" error message from bash 3.2.
30505         * gnulib-tool (func_reset_sigpipe): Remove function.
30506         (echo): In bash 3.2, define to a function that uses printf.
30507         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
30508
30509 2010-02-20  Bruno Haible  <bruno@clisp.org>
30510
30511         Restore support for automake 1.9.6 with autoconf 2.61.
30512         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
30513         Reported by James Youngman <jay@gnu.org>.
30514
30515 2010-02-20  Bruno Haible  <bruno@clisp.org>
30516
30517         Improve *printf warning condition.
30518         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
30519         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
30520         and the function is overridden due to SIGPIPE emulation.
30521
30522 2010-02-20  Bruno Haible  <bruno@clisp.org>
30523
30524         * lib/stdio.in.h: Tweak comments.
30525
30526 2010-02-19  Bruno Haible  <bruno@clisp.org>
30527
30528         Make it easier to find modules. New gnulib-tool option '--find'.
30529         * gnulib-tool: New option --find.
30530         (func_usage): Document it.
30531         (func_sanitize_modulelist): New function, extracted from
30532         func_all_modules.
30533         (func_all_modules): Invoke it.
30534         * doc/gnulib-tool.texi (Which modules?): New node.
30535
30536 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
30537
30538         * lib/sys_select.in.h: Provide select replacement even if
30539         sys/select.h exists on a system, for Interix.
30540
30541 2010-02-18  Jim Meyering  <meyering@redhat.com>
30542
30543         init.sh: don't use $(...) just yet
30544         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
30545         to accommodate e.g., Solaris' /bin/sh.
30546
30547 2010-02-17  Bruno Haible  <bruno@clisp.org>
30548
30549         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
30550         Reported by Ludovic Courtès <ludo@gnu.org>.
30551
30552 2010-02-16  Simon Josefsson  <simon@josefsson.org>
30553
30554         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
30555         linking with -lintl.
30556
30557 2010-02-17  Simon Josefsson  <simon@josefsson.org>
30558
30559         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
30560         if not provided by the system's netdb.h.  Reported by
30561         ludo@gnu.org (Ludovic Courtès).
30562
30563 2010-02-15  Jim Meyering  <meyering@redhat.com>
30564
30565         init.sh: improve portability and efficiency
30566         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
30567         "dummy" in a for loop.
30568         Use '!', not '^' to select the complement of a character set used
30569         in a "case" statement.
30570         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
30571         Suggestions from Eric Blake.
30572
30573         init.sh: automatically accommodate programs with the .exe suffix
30574         Automatically arrange for an invocation of "prog" to execute the
30575         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
30576         may use the simpler "prog", yet still work when built on a system
30577         that requires specifying the added suffix.
30578         Do this by constructing a function named "prog" that invokes
30579         "prog.exe" for each .exe file in selected directories.
30580         * tests/init.sh (find_exe_basenames_): New function.
30581         (create_exe_shim_functions_): New function.
30582         (path_prepend_): Use it.
30583
30584         maint.mk: mark syntax-check sc_*.m rules as .PHONY
30585         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
30586         "make -t syntax-check" doesn't create a ton of sc_*.m files.
30587
30588 2010-02-14  Jim Meyering  <meyering@redhat.com>
30589
30590         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
30591         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
30592         (sc_prohibit_hash_pjw_without_use): New rule.
30593
30594         maint.mk: allow the default upload destination dir to be overridden
30595         * top/maint.mk (upload_dest_dir_): Define with a default that
30596         preserves the status quo.
30597         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
30598         Reported by Peter Simons.
30599
30600         maint.mk: prohibit inclusion of "hash.h" without_use
30601         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
30602
30603 2010-02-10  Jim Meyering  <meyering@redhat.com>
30604
30605         maint.mk: prohibit inclusion of "ignore-value.h" without_use
30606         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
30607
30608 2010-02-09  Eric Blake  <ebb9@byu.net>
30609         and Bruno Haible  <bruno@clisp.org>
30610
30611         obstack-printf-posix: ensure declaration
30612         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
30613         extracted from gl_FUNC_OBSTACK_PRINTF.
30614         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
30615         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30616         Likewise.
30617         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
30618         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
30619         0.
30620
30621 2010-02-08  Bruno Haible  <bruno@clisp.org>
30622
30623         gnulib-tool: Fix typo in 2010-02-07 commit.
30624         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
30625         Reported by Eric Blake.
30626
30627 2010-02-07  Bruno Haible  <bruno@clisp.org>
30628
30629         gnulib-tool: Fix up caching patches.
30630         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
30631         option --no-cache. Use associative arrays when supported by the shell.
30632         (sed_comments): New variable.
30633         (modcache): Renamed from do_cache.
30634         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
30635         abbreviate unnecessarily.
30636         (have_associative): New variable.
30637         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
30638         way also for ksh and zsh.
30639         (func_init_sed_convert_to_cache_statements): New function, extracted
30640         from func_cache_lookup_module. Add support for associative arrays.
30641         Don't set the c_MODULE_cached variable here. Ignore all lines before
30642         the first field header. Remove only the final newline, not all trailing
30643         newlines. Support empty fields correctly. Limit the use of 'eval' to
30644         assignments.
30645         (func_get_description, func_get_status, func_get_notice,
30646         func_get_applicability, func_get_filelist, func_get_dependencies,
30647         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
30648         func_get_automake_snippet, func_get_include_directive,
30649         func_get_link_directive, func_get_license, func_get_maintainer):
30650         Update documentation. List the unoptimized code first. Add support for
30651         associative arrays. Limit the use of 'eval' to assignments.
30652         (func_get_applicability): Undo stylistic pessimisations.
30653         (func_get_automake_snippet, func_get_include_directive): Reduce code
30654         duplication.
30655         (func_modules_transitive_closure, func_modules_add_dummy,
30656         func_modules_notice, func_modules_to_filelist, func_add_file,
30657         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
30658         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
30659         func_create_testdir, func_create_megatestdir): Update documentation.
30660
30661 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30662
30663         * gnulib-tool (func_cache_lookup_module): Store the module name
30664         belonging to the cache variable; error out if two different
30665         module names map to the same cache variable name.
30666
30667 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30668
30669         gnulib-tool: Make caching optional.
30670         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
30671         Update matching short versions of --no-changelog.
30672         (func_usage): Update.
30673         (sed_extract_cache_prog): Renamed from ...
30674         (sed_extract_prog): ... this; revert to old extraction script.
30675         (func_get_description, func_get_status)
30676         (func_get_notice, func_get_applicability, func_get_filelist)
30677         (func_get_dependencies, func_get_autoconf_early_snippet)
30678         (func_get_autoconf_snippet, func_get_automake_snippet)
30679         (func_get_include_directive, func_get_link_directive)
30680         (func_get_license, func_get_maintainer): If $do_cache is false,
30681         use old, non-caching extraction scripts.
30682         Suggestion by Bruno Haible.
30683
30684 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30685
30686         gnulib-tool: cache module metainformation.
30687         * gnulib-tool (sed_extract_prog): Match newline before each
30688         header, and rewrite header to a shell variable suffix.
30689         (func_cache_var, func_cache_lookup_module): New functions,
30690         to turn a module name into a cache variable prefix, and to
30691         look up and cache module metainformation.
30692         (func_get_description, func_get_status)
30693         (func_get_notice, func_get_applicability, func_get_filelist)
30694         (func_get_dependencies, func_get_autoconf_early_snippet)
30695         (func_get_autoconf_snippet, func_get_automake_snippet)
30696         (func_get_include_directive, func_get_link_directive)
30697         (func_get_license, func_get_maintainer): Use
30698         func_cache_lookup_module.
30699
30700 2010-02-07  Bruno Haible  <bruno@clisp.org>
30701
30702         fnctl: Fix missing dependency.
30703         * modules/fcntl (Depends-on): Add getdtablesize.
30704         Reported by John W. Eaton <jwe@gnu.org>.
30705
30706 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30707
30708         Argp: fix recognition of short alias options.
30709
30710         * lib/argp-parse.c (convert_options): Fix improper use of
30711         `|' between character values.
30712         * tests/test-argp.c (group1_option): New alias option
30713         --read (-r).
30714         (group1_parser): Special handling for 'r'.
30715         (test15): New test case.
30716         (test_fun): Add test15.
30717         * tests/test-argp-2.sh: Update expected --help and --usage
30718         outputs.
30719
30720 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30721
30722         * tests/test-argp.c: Fix indentation.
30723
30724 2010-02-04  Eric Blake  <ebb9@byu.net>
30725
30726         gettimeofday: expose type of second argument
30727         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
30728         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
30729         * tests/test-gettimeofday.c: Use it to silence warning.
30730         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
30731         the issue.
30732
30733 2010-02-03  Jim Meyering  <meyering@redhat.com>
30734
30735         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
30736         * lib/regcomp.c (TYPE_SIGNED): Define.
30737         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
30738
30739         regcomp.c: avoid a new -Wshadow warning
30740         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
30741
30742 2010-02-01  Jim Meyering  <meyering@redhat.com>
30743
30744         removing useless parentheses in cpp #define directives
30745         For motivation, see commit c0221df4, "define STREQ(a,b)
30746         consistently, removing useless parentheses"
30747         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
30748         * lib/mountlist.c (MNT_IGNORE): Likewise.
30749         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
30750
30751 2010-02-01  Eric Blake  <ebb9@byu.net>
30752
30753         sys_time: use link-warning
30754         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
30755         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
30756         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
30757         * modules/sys_time (Depends-on): Add warn-on-use.
30758         (Makefile.am): Always build replacement.
30759         (configure.ac): Update substitutions.
30760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
30761         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
30762         bother with SYS_TIME_H.
30763         * modules/gettimeofday (configure.ac): Declare indicator.
30764         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
30765         in use.
30766
30767         closein-tests: silence compiler warning
30768         * tests/test-closein.c (main): Ignore fread result.
30769         * modules/closein-tests (Depends-on): Add ignore-value.
30770
30771         tests: silence warning about system return
30772         * tests/test-areadlink-with-size.c (main): Ignore system result.
30773         * tests/test-areadlink.c (main): Likewise.
30774         * tests/test-areadlinkat-with-size.c (main): Likewise.
30775         * tests/test-areadlinkat.c (main): Likewise.
30776         * tests/test-canonicalize-lgpl.c (main): Likewise.
30777         * tests/test-canonicalize.c (main): Likewise.
30778         * tests/test-chown.c (main): Likewise.
30779         * tests/test-fchownat.c (main): Likewise.
30780         * tests/test-fdutimensat.c (main): Likewise.
30781         * tests/test-fstatat.c (main): Likewise.
30782         * tests/test-futimens.c (main): Likewise.
30783         * tests/test-lchown.c (main): Likewise.
30784         * tests/test-link.c (main): Likewise.
30785         * tests/test-linkat.c (main): Likewise.
30786         * tests/test-lstat.c (main): Likewise.
30787         * tests/test-mkdir.c (main): Likewise.
30788         * tests/test-mkdirat.c (main): Likewise.
30789         * tests/test-mkfifo.c (main): Likewise.
30790         * tests/test-mkfifoat.c (main): Likewise.
30791         * tests/test-mknod.c (main): Likewise.
30792         * tests/test-readlink.c (main): Likewise.
30793         * tests/test-remove.c (main): Likewise.
30794         * tests/test-rename.c (main): Likewise.
30795         * tests/test-renameat.c (main): Likewise.
30796         * tests/test-rmdir.c (main): Likewise.
30797         * tests/test-symlink.c (main): Likewise.
30798         * tests/test-symlinkat.c (main): Likewise.
30799         * tests/test-unlink.c (main): Likewise.
30800         * tests/test-unlinkat.c (main): Likewise.
30801         * tests/test-utimens.c (main): Likewise.
30802         * tests/test-utimensat.c (main): Likewise.
30803         * modules/areadlink-tests (Depends-on): Add ignore-value.
30804         * modules/areadlink-with-size-tests (Depends-on): Likewise.
30805         * modules/areadlinkat-tests (Depends-on): Likewise.
30806         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
30807         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30808         * modules/canonicalize-tests (Depends-on): Likewise.
30809         * modules/chown-tests (Depends-on): Likewise.
30810         * modules/fdutimensat-tests (Depends-on): Likewise.
30811         * modules/futimens-tests (Depends-on): Likewise.
30812         * modules/lchown-tests (Depends-on): Likewise.
30813         * modules/link-tests (Depends-on): Likewise.
30814         * modules/linkat-tests (Depends-on): Likewise.
30815         * modules/lstat-tests (Depends-on): Likewise.
30816         * modules/mkdir-tests (Depends-on): Likewise.
30817         * modules/mkfifo-tests (Depends-on): Likewise.
30818         * modules/mkfifoat-tests (Depends-on): Likewise.
30819         * modules/mknod-tests (Depends-on): Likewise.
30820         * modules/openat-tests (Depends-on): Likewise.
30821         * modules/readlink-tests (Depends-on): Likewise.
30822         * modules/remove-tests (Depends-on): Likewise.
30823         * modules/rename-tests (Depends-on): Likewise.
30824         * modules/renameat-tests (Depends-on): Likewise.
30825         * modules/rmdir-tests (Depends-on): Likewise.
30826         * modules/symlink-tests (Depends-on): Likewise.
30827         * modules/symlinkat-tests (Depends-on): Likewise.
30828         * modules/unlink-tests (Depends-on): Likewise.
30829         * modules/utimens-tests (Depends-on): Likewise.
30830         * modules/utimensat-tests (Depends-on): Likewise.
30831
30832 2010-01-31  Bruno Haible  <bruno@clisp.org>
30833
30834         Perform the same test for many <math.h> functions.
30835         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
30836         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
30837         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
30838         of gl_MATHFUNC.
30839         * modules/acos (configure.ac): Likewise.
30840         * modules/asin (configure.ac): Likewise.
30841         * modules/atan (configure.ac): Likewise.
30842         * modules/atan2 (configure.ac): Likewise.
30843         * modules/cbrt (configure.ac): Likewise.
30844         * modules/copysign (configure.ac): Likewise.
30845         * modules/cos (configure.ac): Likewise.
30846         * modules/cosh (configure.ac): Likewise.
30847         * modules/erf (configure.ac): Likewise.
30848         * modules/erfc (configure.ac): Likewise.
30849         * modules/exp (configure.ac): Likewise.
30850         * modules/fmod (configure.ac): Likewise.
30851         * modules/hypot (configure.ac): Likewise.
30852         * modules/j0 (configure.ac): Likewise.
30853         * modules/j1 (configure.ac): Likewise.
30854         * modules/jn (configure.ac): Likewise.
30855         * modules/lgamma (configure.ac): Likewise.
30856         * modules/log (configure.ac): Likewise.
30857         * modules/log10 (configure.ac): Likewise.
30858         * modules/log1p (configure.ac): Likewise.
30859         * modules/pow (configure.ac): Likewise.
30860         * modules/remainder (configure.ac): Likewise.
30861         * modules/sin (configure.ac): Likewise.
30862         * modules/sinh (configure.ac): Likewise.
30863         * modules/tan (configure.ac): Likewise.
30864         * modules/tanh (configure.ac): Likewise.
30865         * modules/y0 (configure.ac): Likewise.
30866         * modules/y1 (configure.ac): Likewise.
30867         * modules/yn (configure.ac): Likewise.
30868         Suggested by Paolo Bonzini.
30869
30870 2010-01-31  Bruno Haible  <bruno@clisp.org>
30871
30872         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
30873
30874 2010-01-31  Bruno Haible  <bruno@clisp.org>
30875
30876         Work around getdelim() bug on FreeBSD 8.0.
30877         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
30878         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
30879         not work.
30880         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
30881         is 1.
30882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
30883         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
30884         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
30885         a non-zero size.
30886         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
30887
30888 2010-01-31  Bruno Haible  <bruno@clisp.org>
30889
30890         Work around getline() bug on FreeBSD 8.0.
30891         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
30892         and a non-zero size.
30893         * tests/test-getline.c (main): Likewise.
30894         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
30895         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
30896
30897 2010-01-28  Eric Blake  <ebb9@byu.net>
30898
30899         regex: fix build failure
30900         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
30901         platforms.
30902
30903 2010-01-28  Jim Meyering  <meyering@redhat.com>
30904
30905         regex: do not ignore memory allocation failure
30906         * lib/regex_internal.c (create_cd_newstate): Detect
30907         re_node_set_init_copy failure.   Extracted from glibc commit
30908         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30909
30910         regex: sync more white-space changes from libc
30911         * lib/regex_internal.c: White-space only changes.
30912         * lib/regexec.c: Likewise.
30913
30914         regex: add many uses of __attribute_warn_unused_result__
30915         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
30916         * lib/regexec.c: Likewise.
30917         Extracted from a messy glibc commit.
30918
30919         regcomp.c: spelling and merge-artifact from glibc
30920         * lib/regcomp.c: Merge remainder of glibc's
30921         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30922
30923         regcomp.c: sync white-space changes from glibc
30924         * lib/regcomp.c: Merge to accommodate white space
30925         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
30926
30927         regcomp.c: do not ignore internal return values
30928         * lib/regcomp.c: Do not ignore internal return values.
30929         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
30930         but without its white-space changes and spelling fixes.
30931
30932         regex_internal.h: define __attribute_warn_unused_result__
30933         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
30934
30935         maint: add a syntax-check rule to check for vulnerable Makefile.in
30936         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
30937
30938 2010-01-27  Jim Meyering  <meyering@redhat.com>
30939
30940         ncftpput-ftp: clean up spaces
30941         * build-aux/ncftpput-ftp: Make Copyright line consistent.
30942         Remove trailing blanks.
30943
30944 2010-01-27  Simon Josefsson  <simon@josefsson.org>
30945
30946         * build-aux/git-version-gen: Fix copyright statement.
30947         * build-aux/gnupload: Likewise.
30948         * tests/test-arcfour.c: Likewise.
30949         * tests/test-arctwo.c: Likewise.
30950         * tests/test-count-one-bits.c: Likewise.
30951         * tests/test-crc.c: Likewise.
30952         * tests/test-des.c: Likewise.
30953         * tests/test-gc-arcfour.c: Likewise.
30954         * tests/test-gc-arctwo.c: Likewise.
30955         * tests/test-gc-des.c: Likewise.
30956         * tests/test-gc-hmac-md5.c: Likewise.
30957         * tests/test-gc-hmac-sha1.c: Likewise.
30958         * tests/test-gc-md2.c: Likewise.
30959         * tests/test-gc-md4.c: Likewise.
30960         * tests/test-gc-md5.c: Likewise.
30961         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30962         * tests/test-gc-rijndael.c: Likewise.
30963         * tests/test-gc-sha1.c: Likewise.
30964         * tests/test-gc.c: Likewise.
30965         * tests/test-gethostname.c: Likewise.
30966         * tests/test-gettimeofday.c: Likewise.
30967         * tests/test-hash.c: Likewise.
30968         * tests/test-hmac-md5.c: Likewise.
30969         * tests/test-hmac-sha1.c: Likewise.
30970         * tests/test-md2.c: Likewise.
30971         * tests/test-md4.c: Likewise.
30972         * tests/test-md5.c: Likewise.
30973         * tests/test-memchr.c: Likewise.
30974         * tests/test-memchr2.c: Likewise.
30975         * tests/test-memcmp.c: Likewise.
30976         * tests/test-memmem.c: Likewise.
30977         * tests/test-memrchr.c: Likewise.
30978         * tests/test-rawmemchr.c: Likewise.
30979         * tests/test-read-file.c: Likewise.
30980         * tests/test-rijndael.c: Likewise.
30981         * tests/test-sockets.c: Likewise.
30982         * tests/test-strchrnul.c: Likewise.
30983         * tests/test-strstr.c: Likewise.
30984         * tests/test-strtod.c: Likewise.
30985         * build-aux/ncftpput-ftp: Likewise.
30986
30987 2010-01-26  Eric Blake  <ebb9@byu.net>
30988
30989         ignore-value: update recommended header name
30990         * modules/ignore-value (Include): Only use <> for headers that
30991         exist in glibc.
30992
30993 2010-01-26  Jim Meyering  <meyering@redhat.com>
30994
30995         test-userspec.c: avoid compiler warnings
30996         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
30997         and "initialization discards qualifiers..." warnings.
30998         Put the first "uid" in its own scope, and make char* members "const".
30999
31000 2010-01-25  Bruno Haible  <bruno@clisp.org>
31001
31002         gnulib-tool: Make warning diagnostics consistent.
31003         * gnulib-tool (func_warning): New function.
31004         Use it everywhere where gnulib-tool produces output to stderr and it is
31005         not a fatal error.
31006
31007 2010-01-25  Bruno Haible  <bruno@clisp.org>
31008
31009         Fix test dependencies.
31010         * modules/xstrtol-tests (Depends-on): Add inttypes.
31011         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
31012
31013 2010-01-25 Pádraig Brady <P@draigBrady.com>
31014
31015         syntax-check: detect incorrect boolean macro values in config.h
31016         * modules/maintainer-makefile (configure.ac): Parameterize the location
31017         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
31018         The logic is from Eric Blake and the location indicated by Jim Meyering.
31019         Note the more natural CONFIG_HEADER name is prohibited by automake
31020         for backwards compatibility reasons.
31021         * top/maint.mk (sc_Wundef_boolean): New rule.
31022
31023 2010-01-25  Jim Meyering  <meyering@redhat.com>
31024
31025         bootstrap: detect MacOS 10.6's shasum, too
31026         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
31027         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
31028
31029 2010-01-23  Jim Meyering  <meyering@redhat.com>
31030
31031         xstrtoll: new module
31032         * modules/xstrtoll: New file.
31033         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
31034         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
31035         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
31036         ./configure fails if you use this module and lack "long long".
31037         * modules/xstrtoll-tests: New module.
31038         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
31039         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
31040         new init.sh-based test framework.
31041
31042 2010-01-24  Bruno Haible  <bruno@clisp.org>
31043
31044         Tests for module 'yn'.
31045         * modules/yn-tests: New file.
31046         * tests/test-yn.c: New file.
31047
31048         Tests for module 'y1'.
31049         * modules/y1-tests: New file.
31050         * tests/test-y1.c: New file.
31051
31052         Tests for module 'y0'.
31053         * modules/y0-tests: New file.
31054         * tests/test-y0.c: New file.
31055
31056         Tests for module 'tanh'.
31057         * modules/tanh-tests: New file.
31058         * tests/test-tanh.c: New file.
31059
31060         Tests for module 'tan'.
31061         * modules/tan-tests: New file.
31062         * tests/test-tan.c: New file.
31063
31064         Tests for module 'sqrt'.
31065         * modules/sqrt-tests: New file.
31066         * tests/test-sqrt.c: New file.
31067
31068         Tests for module 'sinh'.
31069         * modules/sinh-tests: New file.
31070         * tests/test-sinh.c: New file.
31071
31072         Tests for module 'sin'.
31073         * modules/sin-tests: New file.
31074         * tests/test-sin.c: New file.
31075
31076         Tests for module 'rint'.
31077         * modules/rint-tests: New file.
31078         * tests/test-rint.c: New file.
31079
31080         Tests for module 'remainder'.
31081         * modules/remainder-tests: New file.
31082         * tests/test-remainder.c: New file.
31083
31084         Tests for module 'pow'.
31085         * modules/pow-tests: New file.
31086         * tests/test-pow.c: New file.
31087
31088         Tests for module 'nextafter'.
31089         * modules/nextafter-tests: New file.
31090         * tests/test-nextafter.c: New file.
31091
31092         Tests for module 'modf'.
31093         * modules/modf-tests: New file.
31094         * tests/test-modf.c: New file.
31095
31096         Tests for module 'logb'.
31097         * modules/logb-tests: New file.
31098         * tests/test-logb.c: New file.
31099
31100         Tests for module 'log1p'.
31101         * modules/log1p-tests: New file.
31102         * tests/test-log1p.c: New file.
31103
31104         Tests for module 'log10'.
31105         * modules/log10-tests: New file.
31106         * tests/test-log10.c: New file.
31107
31108         Tests for module 'log'.
31109         * modules/log-tests: New file.
31110         * tests/test-log.c: New file.
31111
31112         Tests for module 'lgamma'.
31113         * modules/lgamma-tests: New file.
31114         * tests/test-lgamma.c: New file.
31115
31116         Tests for module 'ldexp'.
31117         * modules/ldexp-tests: New file.
31118         * tests/test-ldexp.c: New file.
31119
31120         Tests for module 'jn'.
31121         * modules/jn-tests: New file.
31122         * tests/test-jn.c: New file.
31123
31124         Tests for module 'j1'.
31125         * modules/j1-tests: New file.
31126         * tests/test-j1.c: New file.
31127
31128         Tests for module 'j0'.
31129         * modules/j0-tests: New file.
31130         * tests/test-j0.c: New file.
31131
31132         Tests for module 'hypot'.
31133         * modules/hypot-tests: New file.
31134         * tests/test-hypot.c: New file.
31135
31136         Tests for module 'fmod'.
31137         * modules/fmod-tests: New file.
31138         * tests/test-fmod.c: New file.
31139
31140         Tests for module 'fabs'.
31141         * modules/fabs-tests: New file.
31142         * tests/test-fabs.c: New file.
31143
31144         Tests for module 'exp'.
31145         * modules/exp-tests: New file.
31146         * tests/test-exp.c: New file.
31147
31148         Tests for module 'erfc'.
31149         * modules/erfc-tests: New file.
31150         * tests/test-erfc.c: New file.
31151
31152         Tests for module 'erf'.
31153         * modules/erf-tests: New file.
31154         * tests/test-erf.c: New file.
31155
31156         Tests for module 'cosh'.
31157         * modules/cosh-tests: New file.
31158         * tests/test-cosh.c: New file.
31159
31160         Tests for module 'cos'.
31161         * modules/cos-tests: New file.
31162         * tests/test-cos.c: New file.
31163
31164         Tests for module 'copysign'.
31165         * modules/copysign-tests: New file.
31166         * tests/test-copysign.c: New file.
31167
31168         Tests for module 'cbrt'.
31169         * modules/cbrt-tests: New file.
31170         * tests/test-cbrt.c: New file.
31171
31172         Tests for module 'atan2'.
31173         * modules/atan2-tests: New file.
31174         * tests/test-atan2.c: New file.
31175
31176         Tests for module 'atan'.
31177         * modules/atan-tests: New file.
31178         * tests/test-atan.c: New file.
31179
31180         Tests for module 'asin'.
31181         * modules/asin-tests: New file.
31182         * tests/test-asin.c: New file.
31183
31184         Tests for module 'acos'.
31185         * modules/acos-tests: New file.
31186         * tests/test-acos.c: New file.
31187
31188 2010-01-24  Bruno Haible  <bruno@clisp.org>
31189
31190         Fix tests for common <math.h> functions.
31191         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
31192         code snippet that references the function pointer, rather than merely
31193         calling the function. Substitute the FUNC_LIBM variable.
31194         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
31195         * modules/acos (configure.ac): Likewise.
31196         * modules/asin (configure.ac): Likewise.
31197         * modules/atan (configure.ac): Likewise.
31198         * modules/atan2 (configure.ac): Likewise.
31199         * modules/cbrt (configure.ac): Likewise.
31200         * modules/copysign (configure.ac): Likewise.
31201         * modules/cos (configure.ac): Likewise.
31202         * modules/cosh (configure.ac): Likewise.
31203         * modules/erf (configure.ac): Likewise.
31204         * modules/erfc (configure.ac): Likewise.
31205         * modules/exp (configure.ac): Likewise.
31206         * modules/fabs (configure.ac): Likewise.
31207         * modules/fmod (configure.ac): Likewise.
31208         * modules/hypot (configure.ac): Likewise.
31209         * modules/j0 (configure.ac): Likewise.
31210         * modules/j1 (configure.ac): Likewise.
31211         * modules/jn (configure.ac): Likewise.
31212         * modules/ldexp (configure.ac): Likewise.
31213         * modules/lgamma (configure.ac): Likewise.
31214         * modules/log (configure.ac): Likewise.
31215         * modules/log10 (configure.ac): Likewise.
31216         * modules/log1p (configure.ac): Likewise.
31217         * modules/logb (configure.ac): Likewise.
31218         * modules/modf (configure.ac): Likewise.
31219         * modules/nextafter (configure.ac): Likewise.
31220         * modules/pow (configure.ac): Likewise.
31221         * modules/remainder (configure.ac): Likewise.
31222         * modules/rint (configure.ac): Likewise.
31223         * modules/sin (configure.ac): Likewise.
31224         * modules/sinh (configure.ac): Likewise.
31225         * modules/tan (configure.ac): Likewise.
31226         * modules/tanh (configure.ac): Likewise.
31227         * modules/y0 (configure.ac): Likewise.
31228         * modules/y1 (configure.ac): Likewise.
31229         * modules/yn (configure.ac): Likewise.
31230
31231 2010-01-24  Bruno Haible  <bruno@clisp.org>
31232
31233         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
31234         * tests/test-acosl.c (x): New variable.
31235         (main): Store argument in x and fetch it from x.
31236         * tests/test-asinl.c (x): New variable.
31237         (main): Store argument in x and fetch it from x.
31238         * tests/test-atanl.c (x): New variable.
31239         (main): Store argument in x and fetch it from x.
31240         * tests/test-cosl.c (x): New variable.
31241         (main): Store argument in x and fetch it from x.
31242         * tests/test-expl.c (x): New variable.
31243         (main): Store argument in x and fetch it from x.
31244         * tests/test-logl.c (x): New variable.
31245         (main): Store argument in x and fetch it from x.
31246         * tests/test-sinl.c (x): New variable.
31247         (main): Store argument in x and fetch it from x.
31248         * tests/test-sqrtl.c (x): New variable.
31249         (main): Store argument in x and fetch it from x.
31250         * tests/test-tanl.c (x): New variable.
31251         (main): Store argument in x and fetch it from x.
31252
31253 2010-01-24  Bruno Haible  <bruno@clisp.org>
31254
31255         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
31256         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
31257         assignments to the initial TESTS_ENVIRONMENT.
31258         * doc/gnulib.texi (Unit test modules): Document it.
31259         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
31260         TESTS_ENVIRONMENT.
31261         * modules/btowc-tests (Makefile.am): Likewise.
31262         * modules/c-stack-tests (Makefile.am): Likewise.
31263         * modules/c-strcase-tests (Makefile.am): Likewise.
31264         * modules/copy-file-tests (Makefile.am): Likewise.
31265         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
31266         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
31267         * modules/mbrtowc-tests (Makefile.am): Likewise.
31268         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31269         * modules/mbscasestr-tests (Makefile.am): Likewise.
31270         * modules/mbschr-tests (Makefile.am): Likewise.
31271         * modules/mbscspn-tests (Makefile.am): Likewise.
31272         * modules/mbsinit-tests (Makefile.am): Likewise.
31273         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31274         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
31275         * modules/mbspbrk-tests (Makefile.am): Likewise.
31276         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31277         * modules/mbsrchr-tests (Makefile.am): Likewise.
31278         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
31279         * modules/mbsspn-tests (Makefile.am): Likewise.
31280         * modules/mbsstr-tests (Makefile.am): Likewise.
31281         * modules/nl_langinfo-tests (Makefile.am): Likewise.
31282         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
31283         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31284         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31285         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31286         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31287         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
31288         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31289         * modules/wcrtomb-tests (Makefile.am): Likewise.
31290         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
31291         * modules/wcsrtombs-tests (Makefile.am): Likewise.
31292         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
31293         assignments from TESTS_ENVIRONMENT.
31294         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
31295         augmentation.
31296         * modules/argp-version-etc-tests (Makefile.am): Likewise.
31297         * modules/atexit-tests (Makefile.am): Likewise.
31298         * modules/binary-io-tests (Makefile.am): Likewise.
31299         * modules/closein-tests (Makefile.am): Likewise.
31300         * modules/dprintf-posix-tests (Makefile.am): Likewise.
31301         * modules/exclude-tests (Makefile.am): Likewise.
31302         * modules/fflush-tests (Makefile.am): Likewise.
31303         * modules/fpending-tests (Makefile.am): Likewise.
31304         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31305         * modules/freadahead-tests (Makefile.am): Likewise.
31306         * modules/freadptr-tests (Makefile.am): Likewise.
31307         * modules/freadseek-tests (Makefile.am): Likewise.
31308         * modules/fseek-tests (Makefile.am): Likewise.
31309         * modules/fseeko-tests (Makefile.am): Likewise.
31310         * modules/ftell-tests (Makefile.am): Likewise.
31311         * modules/ftello-tests (Makefile.am): Likewise.
31312         * modules/idpriv-drop-tests (Makefile.am): Likewise.
31313         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
31314         * modules/lseek-tests (Makefile.am): Likewise.
31315         * modules/parse-duration-tests (Makefile.am): Likewise.
31316         * modules/perror-tests (Makefile.am): Likewise.
31317         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
31318         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
31319         * modules/pipe-tests (Makefile.am): Likewise.
31320         * modules/pread-tests (Makefile.am): Likewise.
31321         * modules/printf-posix-tests (Makefile.am): Likewise.
31322         * modules/select-tests (Makefile.am): Likewise.
31323         * modules/sigpipe-tests (Makefile.am): Likewise.
31324         * modules/tsearch-tests (Makefile.am): Likewise.
31325         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
31326         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
31327         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31328         * modules/uniwidth/width-tests (Makefile.am): Likewise.
31329         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
31330         * modules/version-etc-tests (Makefile.am): Likewise.
31331         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31332         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31333         * modules/xalloc-die-tests (Makefile.am): Likewise.
31334         * modules/xprintf-posix-tests (Makefile.am): Likewise.
31335         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31336         * modules/xstrtol-tests (Makefile.am): Likewise.
31337         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31338         * modules/yesno-tests (Makefile.am): Likewise.
31339         Suggested by Jim Meyering.
31340
31341 2010-01-24  Bruno Haible  <bruno@clisp.org>
31342
31343         More documentation.
31344         * doc/gnulib.texi (Writing modules): New chapter.
31345         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
31346         the new chapter.
31347
31348 2010-01-24  Jim Meyering  <meyering@redhat.com>
31349
31350         maint.mk: do not prepend "./" after filtering
31351         * top/maint.mk (_prepend_srcdir_prefix): New variable
31352         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
31353         "./" when $(srcdir) is ".".
31354
31355         define STREQ(a,b) consistently, removing useless parentheses
31356         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
31357         since the only risk is that "a" or "b" contains an unparenthesized
31358         comma, but if either did that, STREQ would have 3 or more arguments.
31359         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
31360         * lib/fts.c (STREQ): Remove unnecessary parentheses.
31361         * lib/hash-triple.c (STREQ): Likewise.
31362         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
31363         * lib/getugroups.c (STREQ): Likewise.
31364
31365 2010-01-23  Jim Meyering  <meyering@redhat.com>
31366
31367         maint.mk: fix syntax-check in a non-srcdir build directory
31368         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
31369         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
31370
31371 2010-01-22  Jim Meyering  <meyering@redhat.com>
31372
31373         userspec: add unit tests
31374         * tests/test-userspec.c: New file.
31375         * modules/userspec-tests: Likewise.
31376
31377 2010-01-21  Jim Meyering  <meyering@redhat.com>
31378
31379         maint.mk: handle source file names containing "." robustly
31380         * top/maint.mk (_dot_escaped_srcdir): Define.
31381         (VC_LIST): Use it in LHS of sed substitution.
31382
31383 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
31384
31385         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
31386         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
31387         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
31388         from a non-srcdir build.
31389
31390 2010-01-20  Eric Blake  <ebb9@byu.net>
31391
31392         warn-on-use: use instead of link-warning
31393         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
31394         * modules/unistd (Depends-on, Makefile.am): Likewise.
31395         * modules/arpa_inet (Depends-on): Replace link-warning with
31396         warn-on-use.
31397         (Makefile.am): Update rules accordingly.
31398         * modules/ctype (Depends-on, Makefile.am): Likewise.
31399         * modules/dirent (Depends-on, Makefile.am): Likewise.
31400         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
31401         * modules/inttypes (Depends-on, Makefile.am): Likewise.
31402         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31403         * modules/locale (Depends-on, Makefile.am): Likewise.
31404         * modules/math (Depends-on, Makefile.am): Likewise.
31405         * modules/search (Depends-on, Makefile.am): Likewise.
31406         * modules/signal (Depends-on, Makefile.am): Likewise.
31407         * modules/spawn (Depends-on, Makefile.am): Likewise.
31408         * modules/stdlib (Depends-on, Makefile.am): Likewise.
31409         * modules/string (Depends-on, Makefile.am): Likewise.
31410         * modules/strings (Depends-on, Makefile.am): Likewise.
31411         * modules/sys_file (Depends-on, Makefile.am): Likewise.
31412         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
31413         * modules/sys_select (Depends-on, Makefile.am): Likewise.
31414         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
31415         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
31416         * modules/sys_times (Depends-on, Makefile.am): Likewise.
31417         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31418         * modules/wchar (Depends-on, Makefile.am): Likewise.
31419         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
31420         should be poisoned.
31421         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
31422         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
31423         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
31424         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31425         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31426         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31427         * m4/math_h.m4 (gl_MATH_H): Likewise.
31428         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31429         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31430         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31431         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31432         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31433         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31434         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
31435         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
31436         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
31437         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31438         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31439         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31440         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31441         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31442         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31443         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31444         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
31445         GL_LINK_WARNING.
31446         * lib/ctype.in.h: Likewise.
31447         * lib/dirent.in.h: Likewise.
31448         * lib/fcntl.in.h: Likewise.
31449         * lib/inttypes.in.h: Likewise.
31450         * lib/langinfo.in.h: Likewise.
31451         * lib/locale.in.h: Likewise.
31452         * lib/math.in.h: Likewise.
31453         * lib/search.in.h: Likewise.
31454         * lib/signal.in.h: Likewise.
31455         * lib/spawn.in.h: Likewise.
31456         * lib/stdio.in.h: Likewise.
31457         * lib/stdlib.in.h: Likewise.
31458         * lib/string.in.h: Likewise.
31459         * lib/strings.in.h: Likewise.
31460         * lib/sys_file.in.h: Likewise.
31461         * lib/sys_ioctl.in.h: Likewise.
31462         * lib/sys_select.in.h: Likewise.
31463         * lib/sys_socket.in.h: Likewise.
31464         * lib/sys_stat.in.h: Likewise.
31465         * lib/sys_times.in.h: Likewise.
31466         * lib/sys_utsname.in.h: Likewise.
31467         * lib/unistd.in.h: Likewise.
31468         * lib/wchar.in.h: Likewise.
31469
31470 2010-01-20  Bruno Haible  <bruno@clisp.org>
31471
31472         Avoid duplicate -lm.
31473         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
31474         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
31475         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
31476         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
31477         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
31478         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
31479         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
31480         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
31481         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
31482         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
31483         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
31484         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31485         Reported by Paolo Bonzini.
31486
31487 2010-01-19  Bruno Haible  <bruno@clisp.org>
31488
31489         langinfo, nl_langinfo: Relicense under LGPLv2+.
31490         * modules/langinfo (License): Change to LGPLv2+.
31491         * modules/nl_langinfo (License): Likewise.
31492         Patch by David Lutterkort <lutter@redhat.com>.
31493
31494 2010-01-19  Bruno Haible  <bruno@clisp.org>
31495
31496         Avoid compilation error with cc on OSF/1 5.1.
31497         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
31498         statement, not before.
31499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31500
31501 2010-01-18  Bruno Haible  <bruno@clisp.org>
31502
31503         Avoid a link error due to the __printf__ symbol.
31504         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
31505         and 2.6.x.
31506         (__format__, __printf__): Remove definitions.
31507         * lib/argp-fmtstream.h: Likewise.
31508         * lib/argp.h: Likewise.
31509         * lib/error.h: Likewise.
31510         * lib/vasnprintf.h: Likewise.
31511         * lib/xprintf.h: Likewise.
31512         * lib/xvasprintf.h: Likewise.
31513         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31514
31515 2010-01-18  Bruno Haible  <bruno@clisp.org>
31516
31517         Tests for module 'tanl'.
31518         * modules/tanl-tests: New file.
31519         * tests/test-tanl.c: New file.
31520
31521         Tests for module 'sqrtl'.
31522         * modules/sqrtl-tests: New file.
31523         * tests/test-sqrtl.c: New file.
31524
31525         Tests for module 'sinl'.
31526         * modules/sinl-tests: New file.
31527         * tests/test-sinl.c: New file.
31528
31529         Tests for module 'logl'.
31530         * modules/logl-tests: New file.
31531         * tests/test-logl.c: New file.
31532
31533         Tests for module 'expl'.
31534         * modules/expl-tests: New file.
31535         * tests/test-expl.c: New file.
31536
31537         Tests for module 'cosl'.
31538         * modules/cosl-tests: New file.
31539         * tests/test-cosl.c: New file.
31540
31541         Tests for module 'atanl'.
31542         * modules/atanl-tests: New file.
31543         * tests/test-atanl.c: New file.
31544
31545         Tests for module 'asinl'.
31546         * modules/asinl-tests: New file.
31547         * tests/test-asinl.c: New file.
31548
31549         Tests for module 'acosl'.
31550         * modules/acosl-tests: New file.
31551         * tests/test-acosl.c: New file.
31552
31553         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
31554         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
31555         tanl): Use the standard gnulib idiom.
31556         * lib/cosl.c: Don't include trigl.c and sincosl.c.
31557         * lib/sinl.c: Likewise.
31558         * lib/tanl.c: Don't include trigl.c.
31559         (kernel_tanl): Make static.
31560         * lib/sincosl.c: Include trigl.h first.
31561         * lib/trigl.c: Likewise.
31562         * m4/acosl.m4: New file.
31563         * m4/asinl.m4: New file.
31564         * m4/atanl.m4: New file.
31565         * m4/cosl.m4: New file.
31566         * m4/expl.m4: New file.
31567         * m4/logl.m4: New file.
31568         * m4/sinl.m4: New file.
31569         * m4/sqrtl.m4: New file.
31570         * m4/tanl.m4: New file.
31571         * m4/mathl.m4: Remove file.
31572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
31573         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
31574         Don't initialize GNULIB_MATHL.
31575         * modules/acosl: New file.
31576         * modules/asinl: New file.
31577         * modules/atanl: New file.
31578         * modules/cosl: New file.
31579         * modules/expl: New file.
31580         * modules/logl: New file.
31581         * modules/sinl: New file.
31582         * modules/sqrtl: New file.
31583         * modules/tanl: New file.
31584         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
31585         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
31586         substitute GNULIB_MATHL.
31587         * modules/mathl: Rewritten.
31588         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
31589         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
31590         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
31591         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
31592         * doc/posix-functions/expl.texi: Mention the 'expl' module.
31593         * doc/posix-functions/logl.texi: Mention the 'logl' module.
31594         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
31595         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
31596         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
31597
31598 2010-01-18  Bruno Haible  <bruno@clisp.org>
31599
31600         sqrt: Make gl_FUNC_SQRT requirable.
31601         * m4/sqrt.m4: New file.
31602         * modules/sqrt (Files): Add it.
31603         (configure.ac): Invoke gl_FUNC_SQRT.
31604
31605 2010-01-18  Bruno Haible  <bruno@clisp.org>
31606
31607         New modules for common <math.h> functions.
31608         * m4/mathfunc.m4: New file.
31609         * modules/acos: New file.
31610         * modules/asin: New file.
31611         * modules/atan: New file.
31612         * modules/atan2: New file.
31613         * modules/cbrt: New file.
31614         * modules/copysign: New file.
31615         * modules/cos: New file.
31616         * modules/cosh: New file.
31617         * modules/erf: New file.
31618         * modules/erfc: New file.
31619         * modules/exp: New file.
31620         * modules/fabs: New file.
31621         * modules/fmod: New file.
31622         * modules/hypot: New file.
31623         * modules/j0: New file.
31624         * modules/j1: New file.
31625         * modules/jn: New file.
31626         * modules/ldexp: New file.
31627         * modules/lgamma: New file.
31628         * modules/log: New file.
31629         * modules/log10: New file.
31630         * modules/log1p: New file.
31631         * modules/logb: New file.
31632         * modules/modf: New file.
31633         * modules/nextafter: New file.
31634         * modules/pow: New file.
31635         * modules/remainder: New file.
31636         * modules/rint: New file.
31637         * modules/sin: New file.
31638         * modules/sinh: New file.
31639         * modules/sqrt: New file.
31640         * modules/tan: New file.
31641         * modules/tanh: New file.
31642         * modules/y0: New file.
31643         * modules/y1: New file.
31644         * modules/yn: New file.
31645         * doc/posix-functions/acos.texi: Mention the 'acos' module.
31646         * doc/posix-functions/asin.texi: Mention the 'asin' module.
31647         * doc/posix-functions/atan.texi: Mention the 'atan' module.
31648         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
31649         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
31650         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
31651         * doc/posix-functions/cos.texi: Mention the 'cos' module.
31652         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
31653         * doc/posix-functions/erf.texi: Mention the 'erf' module.
31654         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
31655         * doc/posix-functions/exp.texi: Mention the 'exp' module.
31656         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
31657         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
31658         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
31659         * doc/posix-functions/j0.texi: Mention the 'j0' module.
31660         * doc/posix-functions/j1.texi: Mention the 'j1' module.
31661         * doc/posix-functions/jn.texi: Mention the 'jn' module.
31662         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
31663         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
31664         * doc/posix-functions/log.texi: Mention the 'log' module.
31665         * doc/posix-functions/log10.texi: Mention the 'log10' module.
31666         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
31667         * doc/posix-functions/logb.texi: Mention the 'logb' module.
31668         * doc/posix-functions/modf.texi: Mention the 'modf' module.
31669         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
31670         * doc/posix-functions/pow.texi: Mention the 'pow' module.
31671         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
31672         * doc/posix-functions/rint.texi: Mention the 'rint' module.
31673         * doc/posix-functions/sin.texi: Mention the 'sin' module.
31674         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
31675         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
31676         * doc/posix-functions/tan.texi: Mention the 'tan' module.
31677         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
31678         * doc/posix-functions/y0.texi: Mention the 'y0' module.
31679         * doc/posix-functions/y1.texi: Mention the 'y1' module.
31680         * doc/posix-functions/yn.texi: Mention the 'yn' module.
31681
31682 2010-01-18  Jim Meyering  <meyering@redhat.com>
31683
31684         ignore-value: relax license to LGPLv2+
31685         * modules/ignore-value (License): Relax to LGPLv2+.
31686
31687         getdate: don't leak when TZ contains two or more '"'s
31688         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
31689         double quote in TZ after the first one.
31690
31691         readtokens: do not leak internal token_lengths buffer
31692         * lib/readtokens.c (readtokens): Free the local, lengths,
31693         when the supplied "token_lengths" parameter is NULL.
31694
31695 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31696
31697         Fix a couple of missing LIBTHREAD link failures on AIX.
31698         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
31699         $(LIBTHREAD).
31700         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
31701
31702         Link test-poll against INET_PTON_LIB.
31703         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
31704         for inet_pton on Solaris 10.
31705
31706 2010-01-17  Bruno Haible  <bruno@clisp.org>
31707
31708         unistdio/*-sprintf: Fix typo in module description.
31709         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
31710         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
31711         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
31712         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
31713         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
31714         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
31715         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
31716         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31717
31718 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31719
31720         gnulib-tool: fix filelist for AIX, HP-UX ksh.
31721         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
31722         variables in shell case patterns, for AIX and HP-UX ksh.
31723
31724         Split large sed scripts, for HP-UX sed.
31725         * modules/stdio: Split sed scripts around 50 sed commands,
31726         to avoid HP-UX limit of 99 commands, in the near future.
31727         * modules/string: Likewise.
31728         * modules/unistd: Likewise.
31729
31730         gnulib-tool: avoid writing in the current directory.
31731         * gnulib-tool (func_emit_lib_Makefile_am)
31732         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
31733         not in the current directory, so concurrent gnulib-tool
31734         instances do not interfere.
31735
31736 2010-01-16  Jim Meyering  <meyering@redhat.com>
31737
31738         doc: update users.txt
31739         * users.txt: Add grep.
31740         (diffutils, gzip): Update URLs.
31741
31742 2010-01-12  Bruno Haible  <bruno@clisp.org>
31743
31744         posix_spawn: Avoid test failure on Cygwin.
31745         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
31746         characters.
31747         Reported by Simon Josefsson.
31748
31749 2010-01-12  Bruno Haible  <bruno@clisp.org>
31750
31751         * tests/test-cond.c (main): When skipping the test, show the reason.
31752
31753 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31754
31755         * lib/striconv.c (str_cd_iconv): Avoid if before free.
31756
31757 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31758
31759         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
31760         VC_LIST_ALWAYS_EXCLUDE_REGEX.
31761
31762 2010-01-12  Eric Blake  <ebb9@byu.net>
31763
31764         build: guarantee AS_VAR_IF
31765         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
31766         (gl_AS_VAR_IF): Move...
31767         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
31768         Reported by Simon Josefsson.
31769
31770 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31771
31772         * lib/stdio.in.h: Fix typo.
31773
31774 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31775
31776         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
31777         libgpg-error.
31778
31779 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31780
31781         * tests/test-xalloc-die.sh: Use $EXEEXT.
31782
31783 2010-01-12  Simon Josefsson  <simon@josefsson.org>
31784             Bruno Haible  <bruno@clisp.org>
31785
31786         getlogin, getlogin_r: Avoid test failure.
31787         * tests/test-getlogin.c: Include <stdio.h>.
31788         (main): Skip the test when the function fails because stdin is not a
31789         tty.
31790         * tests/test-getlogin_r.c: Include <stdio.h>.
31791         (main): Skip the test when the function fails because stdin is not a
31792         tty.
31793
31794 2010-01-11  Eric Blake  <ebb9@byu.net>
31795
31796         tests: avoid more large file warnings
31797         * tests/test-fflush.c: Avoid warning about ftell use.
31798         * tests/test-fseek.c: Avoid warning about fseek use.
31799
31800 2010-01-10  Bruno Haible  <bruno@clisp.org>
31801
31802         nproc: Work better on Linux when /proc and /sys are not mounted.
31803         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
31804         as lower bound when, on glibc/Linux systems,
31805         sysconf (_SC_NPROCESSORS_CONF) returns 1.
31806         Suggested by Pádraig Brady <P@draigbrady.com>.
31807         Reported by Dmitry V. Levin <ldv@altlinux.org>.
31808
31809         nproc: Refactor.
31810         * lib/nproc.c (num_processors_via_affinity_mask): New function,
31811         extracted from num_processors.
31812         (num_processors): Call it.
31813
31814 2010-01-11  Jim Meyering  <meyering@redhat.com>
31815
31816         utimecmp: avoid new warning from upcoming gcc-4.5.0
31817         * lib/utimecmp.c (BILLION): Define using #define rather than an
31818         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
31819
31820 2010-01-11  Eric Blake  <ebb9@byu.net>
31821
31822         math: add portability warnings for classification macros
31823         * modules/math (Depends-on): Add warn-on-use.
31824         (Makefile.am): Provide new substitutions.
31825         * m4/math_h.m4 (gl_MATH_H): Require inline.
31826         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
31827         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
31828         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
31829         implement warnings.
31830
31831         unistd: warn on use of environ without module
31832         * modules/unistd (Depends-on): Add warn-on-use.
31833         (Makefile.am): Provide new substitutions.
31834         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
31835         * lib/unistd.in.h (environ): Wrap with a warning helper function.
31836
31837         stdio: warn on suspicious uses
31838         * modules/stdio (Depends-on): Add warn-on-use.
31839         (Makefile.am): Provide new substitutions.
31840         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
31841         fseeko.
31842         * lib/stdio.in.h (gets): Always warn on use.
31843         (fseek, ftell): Adjust when warnings are issued, and honor
31844         _GL_NO_LARGE_FILES as a way to silence the warning.
31845         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
31846         any warning about large file offsets.
31847         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
31848         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
31849         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
31850         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
31851         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
31852         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
31853         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
31854         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
31855
31856         warn-on-use: new module
31857         * modules/warn-on-use: New file.
31858         * build-aux/warn-on-use.h: Likewise.
31859         * m4/warn-on-use.m4: Likewise.
31860         * MODULES.html.sh (Support for building): Mention it.
31861
31862 2010-01-10  Bruno Haible  <bruno@clisp.org>
31863
31864         Tests for module 'unistr/u32-strdup'.
31865         * modules/unistr/u32-strdup-tests: New file.
31866         * tests/unistr/test-u32-strdup.c: New file.
31867
31868         Tests for module 'unistr/u16-strdup'.
31869         * modules/unistr/u16-strdup-tests: New file.
31870         * tests/unistr/test-u16-strdup.c: New file.
31871
31872         Tests for module 'unistr/u8-strdup'.
31873         * modules/unistr/u8-strdup-tests: New file.
31874         * tests/unistr/test-u8-strdup.c: New file.
31875         * tests/unistr/test-strdup.h: New file.
31876
31877         Tests for module 'unistr/u32-strncmp'.
31878         * modules/unistr/u32-strncmp-tests: New file.
31879         * tests/unistr/test-u32-strncmp.c: New file.
31880
31881         Tests for module 'unistr/u16-strncmp'.
31882         * modules/unistr/u16-strncmp-tests: New file.
31883         * tests/unistr/test-u16-strncmp.c: New file.
31884
31885         Tests for module 'unistr/u8-strncmp'.
31886         * modules/unistr/u8-strncmp-tests: New file.
31887         * tests/unistr/test-u8-strncmp.c: New file.
31888         * tests/unistr/test-strncmp.h: New file.
31889
31890         Tests for module 'unistr/u32-strcoll'.
31891         * modules/unistr/u32-strcoll-tests: New file.
31892         * tests/unistr/test-u32-strcoll.c: New file.
31893
31894         Tests for module 'unistr/u16-strcoll'.
31895         * modules/unistr/u16-strcoll-tests: New file.
31896         * tests/unistr/test-u16-strcoll.c: New file.
31897
31898         Tests for module 'unistr/u8-strcoll'.
31899         * modules/unistr/u8-strcoll-tests: New file.
31900         * tests/unistr/test-u8-strcoll.c: New file.
31901
31902         Tests for module 'unistr/u32-strcmp'.
31903         * modules/unistr/u32-strcmp-tests: New file.
31904         * tests/unistr/test-u32-strcmp.c: New file.
31905         * tests/unistr/test-u32-strcmp.h: New file.
31906
31907         Tests for module 'unistr/u16-strcmp'.
31908         * modules/unistr/u16-strcmp-tests: New file.
31909         * tests/unistr/test-u16-strcmp.c: New file.
31910         * tests/unistr/test-u16-strcmp.h: New file.
31911
31912         Tests for module 'unistr/u8-strcmp'.
31913         * modules/unistr/u8-strcmp-tests: New file.
31914         * tests/unistr/test-u8-strcmp.c: New file.
31915         * tests/unistr/test-u8-strcmp.h: New file.
31916         * tests/unistr/test-strcmp.h: New file.
31917
31918         Tests for module 'unistr/u32-strncat'.
31919         * modules/unistr/u32-strncat-tests: New file.
31920         * tests/unistr/test-u32-strncat.c: New file.
31921
31922         Tests for module 'unistr/u16-strncat'.
31923         * modules/unistr/u16-strncat-tests: New file.
31924         * tests/unistr/test-u16-strncat.c: New file.
31925
31926         Tests for module 'unistr/u8-strncat'.
31927         * modules/unistr/u8-strncat-tests: New file.
31928         * tests/unistr/test-u8-strncat.c: New file.
31929         * tests/unistr/test-strncat.h: New file.
31930
31931         Tests for module 'unistr/u32-strcat'.
31932         * modules/unistr/u32-strcat-tests: New file.
31933         * tests/unistr/test-u32-strcat.c: New file.
31934
31935         Tests for module 'unistr/u16-strcat'.
31936         * modules/unistr/u16-strcat-tests: New file.
31937         * tests/unistr/test-u16-strcat.c: New file.
31938
31939         Tests for module 'unistr/u8-strcat'.
31940         * modules/unistr/u8-strcat-tests: New file.
31941         * tests/unistr/test-u8-strcat.c: New file.
31942         * tests/unistr/test-strcat.h: New file.
31943
31944         Tests for module 'unistr/u32-stpncpy'.
31945         * modules/unistr/u32-stpncpy-tests: New file.
31946         * tests/unistr/test-u32-stpncpy.c: New file.
31947
31948         Tests for module 'unistr/u16-stpncpy'.
31949         * modules/unistr/u16-stpncpy-tests: New file.
31950         * tests/unistr/test-u16-stpncpy.c: New file.
31951
31952         Tests for module 'unistr/u8-stpncpy'.
31953         * modules/unistr/u8-stpncpy-tests: New file.
31954         * tests/unistr/test-u8-stpncpy.c: New file.
31955         * tests/unistr/test-stpncpy.h: New file.
31956
31957         Tests for module 'unistr/u32-strncpy'.
31958         * modules/unistr/u32-strncpy-tests: New file.
31959         * tests/unistr/test-u32-strncpy.c: New file.
31960
31961         Tests for module 'unistr/u16-strncpy'.
31962         * modules/unistr/u16-strncpy-tests: New file.
31963         * tests/unistr/test-u16-strncpy.c: New file.
31964
31965         Tests for module 'unistr/u8-strncpy'.
31966         * modules/unistr/u8-strncpy-tests: New file.
31967         * tests/unistr/test-u8-strncpy.c: New file.
31968         * tests/unistr/test-strncpy.h: New file.
31969
31970         Tests for module 'unistr/u32-stpcpy'.
31971         * modules/unistr/u32-stpcpy-tests: New file.
31972         * tests/unistr/test-u32-stpcpy.c: New file.
31973
31974         Tests for module 'unistr/u16-stpcpy'.
31975         * modules/unistr/u16-stpcpy-tests: New file.
31976         * tests/unistr/test-u16-stpcpy.c: New file.
31977
31978         Tests for module 'unistr/u8-stpcpy'.
31979         * modules/unistr/u8-stpcpy-tests: New file.
31980         * tests/unistr/test-u8-stpcpy.c: New file.
31981         * tests/unistr/test-stpcpy.h: New file.
31982
31983         Tests for module 'unistr/u32-strcpy'.
31984         * modules/unistr/u32-strcpy-tests: New file.
31985         * tests/unistr/test-u32-strcpy.c: New file.
31986
31987         Tests for module 'unistr/u16-strcpy'.
31988         * modules/unistr/u16-strcpy-tests: New file.
31989         * tests/unistr/test-u16-strcpy.c: New file.
31990
31991         Tests for module 'unistr/u8-strcpy'.
31992         * modules/unistr/u8-strcpy-tests: New file.
31993         * tests/unistr/test-u8-strcpy.c: New file.
31994         * tests/unistr/test-strcpy.h: New file.
31995
31996         Tests for module 'unistr/u32-strnlen'.
31997         * modules/unistr/u32-strnlen-tests: New file.
31998         * tests/unistr/test-u32-strnlen.c: New file.
31999
32000         Tests for module 'unistr/u16-strnlen'.
32001         * modules/unistr/u16-strnlen-tests: New file.
32002         * tests/unistr/test-u16-strnlen.c: New file.
32003
32004         Tests for module 'unistr/u8-strnlen'.
32005         * modules/unistr/u8-strnlen-tests: New file.
32006         * tests/unistr/test-u8-strnlen.c: New file.
32007         * tests/unistr/test-strnlen.h: New file.
32008
32009         Tests for module 'unistr/u32-strlen'.
32010         * modules/unistr/u32-strlen-tests: New file.
32011         * tests/unistr/test-u32-strlen.c: New file.
32012
32013         Tests for module 'unistr/u16-strlen'.
32014         * modules/unistr/u16-strlen-tests: New file.
32015         * tests/unistr/test-u16-strlen.c: New file.
32016
32017         Tests for module 'unistr/u8-strlen'.
32018         * modules/unistr/u8-strlen-tests: New file.
32019         * tests/unistr/test-u8-strlen.c: New file.
32020
32021         Tests for module 'unistr/u32-prev'.
32022         * modules/unistr/u32-prev-tests: New file.
32023         * tests/unistr/test-u32-prev.c: New file.
32024
32025         Tests for module 'unistr/u16-prev'.
32026         * modules/unistr/u16-prev-tests: New file.
32027         * tests/unistr/test-u16-prev.c: New file.
32028
32029         Tests for module 'unistr/u8-prev'.
32030         * modules/unistr/u8-prev-tests: New file.
32031         * tests/unistr/test-u8-prev.c: New file.
32032
32033         Tests for module 'unistr/u32-next'.
32034         * modules/unistr/u32-next-tests: New file.
32035         * tests/unistr/test-u32-next.c: New file.
32036
32037         Tests for module 'unistr/u16-next'.
32038         * modules/unistr/u16-next-tests: New file.
32039         * tests/unistr/test-u16-next.c: New file.
32040
32041         Tests for module 'unistr/u8-next'.
32042         * modules/unistr/u8-next-tests: New file.
32043         * tests/unistr/test-u8-next.c: New file.
32044
32045         Tests for module 'unistr/u32-strmbtouc'.
32046         * modules/unistr/u32-strmbtouc-tests: New file.
32047         * tests/unistr/test-u32-strmbtouc.c: New file.
32048
32049         Tests for module 'unistr/u16-strmbtouc'.
32050         * modules/unistr/u16-strmbtouc-tests: New file.
32051         * tests/unistr/test-u16-strmbtouc.c: New file.
32052
32053         Tests for module 'unistr/u8-strmbtouc'.
32054         * modules/unistr/u8-strmbtouc-tests: New file.
32055         * tests/unistr/test-u8-strmbtouc.c: New file.
32056
32057         Tests for module 'unistr/u32-strmblen'.
32058         * modules/unistr/u32-strmblen-tests: New file.
32059         * tests/unistr/test-u32-strmblen.c: New file.
32060
32061         Tests for module 'unistr/u16-strmblen'.
32062         * modules/unistr/u16-strmblen-tests: New file.
32063         * tests/unistr/test-u16-strmblen.c: New file.
32064
32065         Tests for module 'unistr/u8-strmblen'.
32066         * modules/unistr/u8-strmblen-tests: New file.
32067         * tests/unistr/test-u8-strmblen.c: New file.
32068
32069         Tests for module 'unistr/u32-cpy-alloc'.
32070         * modules/unistr/u32-cpy-alloc-tests: New file.
32071         * tests/unistr/test-u32-cpy-alloc.c: New file.
32072
32073         Tests for module 'unistr/u16-cpy-alloc'.
32074         * modules/unistr/u16-cpy-alloc-tests: New file.
32075         * tests/unistr/test-u16-cpy-alloc.c: New file.
32076
32077         Tests for module 'unistr/u8-cpy-alloc'.
32078         * modules/unistr/u8-cpy-alloc-tests: New file.
32079         * tests/unistr/test-u8-cpy-alloc.c: New file.
32080         * tests/unistr/test-cpy-alloc.h: New file.
32081
32082         Tests for module 'unistr/u32-mbsnlen'.
32083         * modules/unistr/u32-mbsnlen-tests: New file.
32084         * tests/unistr/test-u32-mbsnlen.c: New file.
32085
32086         Tests for module 'unistr/u16-mbsnlen'.
32087         * modules/unistr/u16-mbsnlen-tests: New file.
32088         * tests/unistr/test-u16-mbsnlen.c: New file.
32089
32090         Tests for module 'unistr/u8-mbsnlen'.
32091         * modules/unistr/u8-mbsnlen-tests: New file.
32092         * tests/unistr/test-u8-mbsnlen.c: New file.
32093
32094         Tests for module 'unistr/u32-chr'.
32095         * modules/unistr/u32-chr-tests: New file.
32096         * tests/unistr/test-u32-chr.c: New file.
32097
32098         Tests for module 'unistr/u16-chr'.
32099         * modules/unistr/u16-chr-tests: New file.
32100         * tests/unistr/test-u16-chr.c: New file.
32101
32102         Tests for module 'unistr/u8-chr'.
32103         * modules/unistr/u8-chr-tests: New file.
32104         * tests/unistr/test-u8-chr.c: New file.
32105         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
32106
32107         Tests for module 'unistr/u32-cmp2'.
32108         * modules/unistr/u32-cmp2-tests: New file.
32109         * tests/unistr/test-u32-cmp2.c: New file.
32110
32111         Tests for module 'unistr/u16-cmp2'.
32112         * modules/unistr/u16-cmp2-tests: New file.
32113         * tests/unistr/test-u16-cmp2.c: New file.
32114
32115         Tests for module 'unistr/u8-cmp2'.
32116         * modules/unistr/u8-cmp2-tests: New file.
32117         * tests/unistr/test-u8-cmp2.c: New file.
32118         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
32119
32120         Tests for module 'unistr/u32-cmp'.
32121         * modules/unistr/u32-cmp-tests: New file.
32122         * tests/unistr/test-u32-cmp.c: New file.
32123
32124         Tests for module 'unistr/u16-cmp'.
32125         * modules/unistr/u16-cmp-tests: New file.
32126         * tests/unistr/test-u16-cmp.c: New file.
32127
32128         Tests for module 'unistr/u8-cmp'.
32129         * modules/unistr/u8-cmp-tests: New file.
32130         * tests/unistr/test-u8-cmp.c: New file.
32131         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
32132
32133         Tests for module 'unistr/u32-set'.
32134         * modules/unistr/u32-set-tests: New file.
32135         * tests/unistr/test-u32-set.c: New file.
32136
32137         Tests for module 'unistr/u16-set'.
32138         * modules/unistr/u16-set-tests: New file.
32139         * tests/unistr/test-u16-set.c: New file.
32140
32141         Tests for module 'unistr/u8-set'.
32142         * modules/unistr/u8-set-tests: New file.
32143         * tests/unistr/test-u8-set.c: New file.
32144         * tests/unistr/test-set.h: New file.
32145
32146         Tests for module 'unistr/u32-move'.
32147         * modules/unistr/u32-move-tests: New file.
32148         * tests/unistr/test-u32-move.c: New file.
32149
32150         Tests for module 'unistr/u16-move'.
32151         * modules/unistr/u16-move-tests: New file.
32152         * tests/unistr/test-u16-move.c: New file.
32153
32154         Tests for module 'unistr/u8-move'.
32155         * modules/unistr/u8-move-tests: New file.
32156         * tests/unistr/test-u8-move.c: New file.
32157         * tests/unistr/test-move.h: New file.
32158
32159         Tests for module 'unistr/u32-cpy'.
32160         * modules/unistr/u32-cpy-tests: New file.
32161         * tests/unistr/test-u32-cpy.c: New file.
32162
32163         Tests for module 'unistr/u16-cpy'.
32164         * modules/unistr/u16-cpy-tests: New file.
32165         * tests/unistr/test-u16-cpy.c: New file.
32166
32167         Tests for module 'unistr/u8-cpy'.
32168         * modules/unistr/u8-cpy-tests: New file.
32169         * tests/unistr/test-u8-cpy.c: New file.
32170         * tests/unistr/test-cpy.h: New file.
32171
32172 2010-01-09  Bruno Haible  <bruno@clisp.org>
32173
32174         Tests for module 'unistr/u32-uctomb'.
32175         * modules/unistr/u32-uctomb-tests: New file.
32176         * tests/unistr/test-u32-uctomb.c: New file.
32177
32178         Tests for module 'unistr/u16-uctomb'.
32179         * modules/unistr/u16-uctomb-tests: New file.
32180         * tests/unistr/test-u16-uctomb.c: New file.
32181
32182         Tests for module 'unistr/u8-uctomb'.
32183         * modules/unistr/u8-uctomb-tests: New file.
32184         * tests/unistr/test-u8-uctomb.c: New file.
32185
32186         Tests for module 'unistr/u32-mbtoucr'.
32187         * modules/unistr/u32-mbtoucr-tests: New file.
32188         * tests/unistr/test-u32-mbtoucr.c: New file.
32189
32190         Tests for module 'unistr/u16-mbtoucr'.
32191         * modules/unistr/u16-mbtoucr-tests: New file.
32192         * tests/unistr/test-u16-mbtoucr.c: New file.
32193
32194         Tests for module 'unistr/u8-mbtoucr'.
32195         * modules/unistr/u8-mbtoucr-tests: New file.
32196         * tests/unistr/test-u8-mbtoucr.c: New file.
32197
32198         Tests for module 'unistr/u32-mbtouc'.
32199         * modules/unistr/u32-mbtouc-tests: New file.
32200         * tests/unistr/test-u32-mbtouc.c: New file.
32201
32202         Tests for module 'unistr/u16-mbtouc'.
32203         * modules/unistr/u16-mbtouc-tests: New file.
32204         * tests/unistr/test-u16-mbtouc.c: New file.
32205
32206         Tests for module 'unistr/u8-mbtouc'.
32207         * modules/unistr/u8-mbtouc-tests: New file.
32208         * tests/unistr/test-u8-mbtouc.c: New file.
32209
32210         Tests for module 'unistr/u32-mbtouc-unsafe'.
32211         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
32212         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
32213         * tests/unistr/test-u32-mbtouc.h: New file.
32214
32215         Tests for module 'unistr/u16-mbtouc-unsafe'.
32216         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
32217         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
32218         * tests/unistr/test-u16-mbtouc.h: New file.
32219
32220         Tests for module 'unistr/u8-mbtouc-unsafe'.
32221         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
32222         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
32223         * tests/unistr/test-u8-mbtouc.h: New file.
32224
32225         Tests for module 'unistr/u32-mblen'.
32226         * modules/unistr/u32-mblen-tests: New file.
32227         * tests/unistr/test-u32-mblen.c: New file.
32228
32229         Tests for module 'unistr/u16-mblen'.
32230         * modules/unistr/u16-mblen-tests: New file.
32231         * tests/unistr/test-u16-mblen.c: New file.
32232
32233         Tests for module 'unistr/u8-mblen'.
32234         * modules/unistr/u8-mblen-tests: New file.
32235         * tests/unistr/test-u8-mblen.c: New file.
32236
32237         Tests for module 'unistr/u32-to-u16'.
32238         * modules/unistr/u32-to-u16-tests: New file.
32239         * tests/unistr/test-u32-to-u16.c: New file.
32240
32241         Tests for module 'unistr/u32-to-u8'.
32242         * modules/unistr/u32-to-u8-tests: New file.
32243         * tests/unistr/test-u32-to-u8.c: New file.
32244
32245         Tests for module 'unistr/u16-to-u32'.
32246         * modules/unistr/u16-to-u32-tests: New file.
32247         * tests/unistr/test-u16-to-u32.c: New file.
32248
32249         Tests for module 'unistr/u16-to-u8'.
32250         * modules/unistr/u16-to-u8-tests: New file.
32251         * tests/unistr/test-u16-to-u8.c: New file.
32252
32253         Tests for module 'unistr/u8-to-u32'.
32254         * modules/unistr/u8-to-u32-tests: New file.
32255         * tests/unistr/test-u8-to-u32.c: New file.
32256
32257         Tests for module 'unistr/u8-to-u16'.
32258         * modules/unistr/u8-to-u16-tests: New file.
32259         * tests/unistr/test-u8-to-u16.c: New file.
32260
32261         Tests for module 'unistr/u32-check'.
32262         * modules/unistr/u32-check-tests: New file.
32263         * tests/unistr/test-u32-check.c: New file.
32264
32265         Tests for module 'unistr/u16-check'.
32266         * modules/unistr/u16-check-tests: New file.
32267         * tests/unistr/test-u16-check.c: New file.
32268
32269         Tests for module 'unistr/u8-check'.
32270         * modules/unistr/u8-check-tests: New file.
32271         * tests/unistr/test-u8-check.c: New file.
32272
32273         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
32274         (category_equals): New function.
32275         (main): Add more tests.
32276         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
32277
32278         * tests/unictype/test-bidi_byname.c (main): Add more tests.
32279
32280 2010-01-10  Bruno Haible  <bruno@clisp.org>
32281
32282         unistr/u*-strcoll: Try harder to distinguish different strings.
32283         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
32284         compare s1 and s2 to see if they are different.
32285
32286 2010-01-10  Bruno Haible  <bruno@clisp.org>
32287
32288         unistr/u*-stpncpy: Fix the return value.
32289         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
32290         description of the return value consistent with stpncpy in glibc.
32291         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
32292         written non-NUL unit.
32293
32294 2010-01-10  Bruno Haible  <bruno@clisp.org>
32295
32296         unistr/u*-next: Add missing dependencies.
32297         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
32298         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
32299         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
32300
32301 2010-01-10  Bruno Haible  <bruno@clisp.org>
32302
32303         unistr/u8-mbsnlen: Fix return value for incomplete character.
32304         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
32305         u8_mblen.
32306         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
32307         Remove unistr/u8-mblen.
32308         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
32309         u16_mblen.
32310         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
32311         Remove unistr/u16-mblen.
32312
32313 2010-01-10  Bruno Haible  <bruno@clisp.org>
32314
32315         wchar: Fix compilation error when <wchar.h> is used from coreutils.
32316         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
32317         Reported by Brian Gough <bjg@gnu.org> and
32318         Chris Clayton <chris2553@googlemail.com> via
32319         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
32320
32321 2010-01-09  Bruno Haible  <bruno@clisp.org>
32322
32323         unistr/u16-to-u32: Reject invalid input.
32324         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
32325         u16_mbtouc.
32326         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
32327         Remove unistr/u16-mbtouc.
32328
32329         unistr/u16-to-u8: Reject invalid input.
32330         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
32331         u16_mbtouc.
32332         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
32333         Remove unistr/u16-mbtouc.
32334
32335         unistr/u8-to-u32: Reject invalid input.
32336         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
32337         u8_mbtouc.
32338         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
32339         Remove unistr/u8-mbtouc.
32340
32341         unistr/u8-to-u16: Reject invalid input.
32342         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
32343         u8_mbtouc.
32344         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
32345         Remove unistr/u8-mbtouc.
32346
32347 2010-01-09  Bruno Haible  <bruno@clisp.org>
32348
32349         Tests for module 'getlogin'.
32350         * modules/getlogin-tests: New file.
32351         * tests/test-getlogin.c: New file.
32352
32353         New module 'getlogin'.
32354         * lib/unistd.in.h (getlogin): New declaration.
32355         * lib/getlogin.c: New file.
32356         * m4/getlogin.m4: New file.
32357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
32358         HAVE_GETLOGIN.
32359         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
32360         HAVE_GETLOGIN.
32361         * modules/getlogin: New file.
32362         * doc/posix-functions/getlogin.texi: Mention the new module.
32363         Reported by John W. Eaton <jwe@gnu.org>.
32364
32365 2010-01-09  Bruno Haible  <bruno@clisp.org>
32366
32367         getlogin_r: Support for native Windows.
32368         * lib/getlogin_r.c: Include <windows.h>
32369         (getlogin_r): Implement for native Windows.
32370         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
32371         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
32372         via John W. Eaton <jwe@gnu.org>.
32373
32374 2010-01-09  Bruno Haible  <bruno@clisp.org>
32375
32376         getlogin_r: Small fixes.
32377         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
32378         succeeds.
32379         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
32380         before testing whether getlogin_r is declared. No need to set
32381         HAVE_DECL_GETLOGIN_R to 1.
32382         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
32383
32384 2010-01-09  Bruno Haible  <bruno@clisp.org>
32385
32386         * lib/unistd.in.h (getlogin_r): Add comment.
32387
32388 2010-01-09  Bruno Haible  <bruno@clisp.org>
32389
32390         Tests for module 'getlogin_r'.
32391         * modules/getlogin_r-tests: New file.
32392         * tests/test-getlogin_r.c: New file.
32393
32394 2010-01-09  Jim Meyering  <meyering@redhat.com>
32395
32396         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
32397         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
32398         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
32399
32400 2010-01-08  Simon Josefsson  <simon@josefsson.org>
32401
32402         * lib/dup2.c (rpl_dup2): Improve comment.
32403
32404 2010-01-08  Eric Blake  <ebb9@byu.net>
32405
32406         maint.mk: allow packages to add makefile @@ exceptions
32407         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
32408         (sc_makefile_check): Rename...
32409         (sc_makefile_at_at_check): ...to this, and use hook.
32410
32411         dup2: work around mingw bug
32412         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
32413         Reported by Simon Josefsson.
32414
32415 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
32416
32417         glob: Fix C++ compilation.
32418         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
32419         C++.
32420
32421 2010-01-07  Bruno Haible  <bruno@clisp.org>
32422
32423         Fix indentation of wctype.in.h, broken since 2007-01-06.
32424         * lib/wctype.in.h: Fix indentation of preprocessor directives.
32425
32426 2010-01-07  Bruno Haible  <bruno@clisp.org>
32427
32428         mbslen: Avoid collision with system function.
32429         * lib/string.in.h [MirBSD]: Include <wchar.h>.
32430         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
32431         * m4/mbslen.m4: New file.
32432         * modules/mbslen (Files): Add it.
32433         (configure.ac): Invoke gl_MBSLEN.
32434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
32435         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
32436         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
32437         via Ian Beckwith <ianb@erislabs.net>.
32438
32439 2010-01-07  Bruno Haible  <bruno@clisp.org>
32440
32441         dirent: Document the last fix.
32442         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
32443
32444 2010-01-07  Bruno Haible  <bruno@clisp.org>
32445
32446         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
32447         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
32448         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
32449         va_list are defined.
32450         * doc/posix-headers/stdio.texi: Document the bug of missing types.
32451         Reported by Eric Blake.
32452
32453 2010-01-07  Bruno Haible  <bruno@clisp.org>
32454
32455         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
32456         * modules/xlist (Depends-on): Add 'list',
32457         * modules/xoset (Depends-on): Add 'oset'.
32458         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32459
32460 2010-01-07  Bruno Haible  <bruno@clisp.org>
32461
32462         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
32463         * doc/posix-functions/strncasecmp.texi: Likewise.
32464
32465 2010-01-07  Bruno Haible  <bruno@clisp.org>
32466
32467         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
32468
32469 2010-01-07  John W. Eaton  <jwe@octave.org>
32470
32471         wctype: allow C++ use
32472         * lib/wctype.in.h: Add extern "C" block for C++.
32473
32474 2010-01-06  Eric Blake  <ebb9@byu.net>
32475
32476         maint.mk: detect incorrect GFDL usage
32477         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
32478
32479 2010-01-06  Jim Meyering  <meyering@redhat.com>
32480         and Eric Blake  <ebb9@byu.net>
32481
32482         maint.mk: ignore multi-line copyright in NEWS
32483         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
32484
32485 2010-01-06  Eric Blake  <ebb9@byu.net>
32486
32487         select: add missing dependency
32488         * modules/select-tests (Depends-on): Move sockets dependency...
32489         * modules/select (Depends-on): ...here.
32490         Reported by Ian Beckwith.
32491
32492         doc: regenerate INSTALL
32493         * doc/INSTALL: Reflect recent autoconf update.
32494         * doc/INSTALL.ISO: Likewise.
32495         * doc/INSTALL.UTF-8: Likewise.
32496
32497         pread: fix compilation on glibc
32498         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
32499         Reported by Ralf Wildenhues.
32500
32501         dirent: fix test failure
32502         * lib/dirent.in.h (includes): Guarantee ino_t.
32503         Reported by Ralf Wildenhues.
32504
32505 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
32506
32507         linkat, renameat: avoid bad free
32508         * lib/at-func2.c (at_func2): Fix typo.
32509         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
32510
32511 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32512
32513         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
32514         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
32515         to avoid failure of symlink test later.
32516
32517 2010-01-06  Eric Blake  <ebb9@byu.net>
32518
32519         stdio, unistd: guarantee ssize_t
32520         * lib/unistd.in.h (includes): Ensure that types required by POSIX
32521         2008 are exposed when needed.
32522         * lib/stdio.in.h (includes): Likewise.
32523         Reported by Ralf Wildenhues.
32524
32525 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
32526
32527         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
32528         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
32529         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
32530
32531 2010-01-06  Jim Meyering  <meyering@redhat.com>
32532
32533         readtokens: this module *does* require xalloc.h
32534         It uses only functions that were omitted by the old syntax-check rule.
32535         * lib/readtokens.c: Include "xalloc.h" once again.
32536         * modules/readtokens (Depends-on): Add xalloc.
32537         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
32538
32539 2010-01-05  Eric Blake  <ebb9@byu.net>
32540
32541         maint: support 'make announcement' from a VPATH build
32542         * top/maint.mk (announcement): Look for correct NEWS file.
32543
32544 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
32545
32546         utimens (fdutimens): ignore a negative FD, per contract
32547         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
32548         when we have a valid file descriptor.  Otherwise, using a brand
32549         new glibc (with just-patched futimens that now fails with EBADF)
32550         would cause this function to fail with ENOSYS.
32551         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
32552         See also http://bugzilla.redhat.com/552320.
32553
32554 2010-01-05  Eric Blake  <ebb9@byu.net>
32555
32556         strcase: document what it provides
32557         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
32558         gnulib module.
32559         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
32560         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
32561
32562 2010-01-05  Jim Meyering  <meyering@redhat.com>
32563
32564         maint: remove useless inclusions of "xalloc.h"
32565         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
32566         * lib/readtokens.c: Likewise.
32567         * lib/same.c: Likewise.
32568         * modules/getloadavg (Depends-on): Remove xalloc.
32569         * modules/readtokens: Likewise.
32570         * modules/same: Likewise.
32571
32572         maint.mk: include 4 more function names in alloca.h-checking regexp
32573         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
32574         regexp.  Before, we would give a false-positive (saying alloca.h
32575         is included unnecessarily) when the only uses involved omitted symbols.
32576
32577         xalloc.h: use consistent formatting
32578         * lib/xalloc.h: Move declarations to start in the first column.
32579
32580 2010-01-05  Eric Blake  <ebb9@byu.net>
32581
32582         mkdir: avoid xalloc
32583         * lib/mkdir.c (includes): Drop unused header.
32584         Reported by John W. Eaton.
32585
32586 2010-01-04  Jim Meyering  <meyering@redhat.com>
32587
32588         nl_langinfo: avoid configure-time syntax error
32589         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
32590         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
32591         the empty string.  Don't let that provoke a shell syntax error.
32592
32593         regcomp, regexec, fnmatch: avoid array bounds read error
32594         * lib/regcomp.c (build_equiv_class): From glibc:
32595         Use only the low 24 bits of a findidx return value as an index
32596         into the weights array.  Patch by Ulrich Drepper:
32597         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
32598         * lib/regexec.c (check_node_accept_bytes): Likewise.
32599         * lib/fnmatch_loop.c (FCT): Likewise.
32600
32601         regcomp: skip collseq lookup when there are no rules
32602         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
32603         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
32604
32605         regcomp: recognize ill-formed { } expressions
32606         * lib/regcomp.c (parse_dup_op): From glibc:
32607         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
32608
32609         regcomp: fix typo in comment
32610         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
32611         s/satisfy/satisfies/.
32612
32613         regcomp: sync from glibc: remove dead store
32614         * lib/regcomp.c (duplicate_node_closure): Remove useless
32615         search_duplicated_node call and dead store.
32616
32617         regcomp: sync from glibc; always use nl_langinfo
32618         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
32619         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
32620         * modules/regex (Depends-on): Add nl_langinfo.
32621
32622 2010-01-04  Eric Blake  <ebb9@byu.net>
32623
32624         fdopendir: fix configure test
32625         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
32626
32627 2010-01-01  Bruno Haible  <bruno@clisp.org>
32628
32629         wchar: Remove unused configure check.
32630         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
32631
32632 2010-01-01  Eric Blake  <ebb9@byu.net>
32633
32634         headers: make check of system header explicit
32635         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
32636         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
32637         ourselves.
32638         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32640         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32641         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
32642         internals.
32643         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
32644         missing.
32645         Suggested by Bruno Haible.
32646
32647 2010-01-01  Jim Meyering  <meyering@redhat.com>
32648
32649         ChangeLog: tweak to eliminate unnecessary copyright line
32650         * ChangeLog: Remove a copyright line that was mistakenly updated
32651         by today's update-copyright run.  Reported by Eric Blake.
32652
32653         test-update-copyright: don't let envvar setting cause test failure
32654         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32655
32656 2010-01-01  Bruno Haible  <bruno@clisp.org>
32657
32658         localename: Avoid gcc warning.
32659         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
32660         function if it is not used.
32661
32662 2010-01-01  Jim Meyering  <meyering@redhat.com>
32663
32664         update nearly all FSF copyright year lists to include 2010
32665         Use the same procedure as for 2009, outlined in
32666         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
32667
32668         version-etc: set COPYRIGHT_YEAR to 2010
32669         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
32670
32671 2009-12-31  Eric Blake  <ebb9@byu.net>
32672
32673         doc: correct availability of cygwin 1.5.x getopt
32674         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
32675         variables.
32676         * doc/posix-functions/opterr.texi (opterr): Likewise.
32677         * doc/posix-functions/optind.texi (optind): Likewise.
32678         * doc/posix-functions/optopt.texi (optopt): Likewise.
32679         * doc/posix-functions/tzname.texi (tzname): Likewise.
32680
32681         openat: update maintainer
32682         * modules/openat (Maintainer): Add myself.
32683
32684         utimens: avoid shadowing warning
32685         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
32686         buffers into one, to avoid shadowing, as well as avoiding a
32687         redundant stat.
32688         Reported by Jim Meyering.
32689
32690         test-dup2: avoid compiler warning
32691         * tests/test-dup2.c (is_inheritable): Only define if used.
32692
32693 2010-01-01  Bruno Haible  <bruno@clisp.org>
32694
32695         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
32696         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
32697         defined, use wctomb instead of wcrtomb.
32698
32699 2010-01-01  Bruno Haible  <bruno@clisp.org>
32700
32701         iconv: Reject native Solaris iconv.
32702         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
32703         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
32704
32705 2009-12-31  Bruno Haible  <bruno@clisp.org>
32706
32707         * tests/test-signal.c (main): Remove test of 'SIG'.
32708
32709 2009-12-31  Bruno Haible  <bruno@clisp.org>
32710
32711         spawn: Fix incomplete fix.
32712         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32713         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32714         warnings for GNULIB_POSIXCHECK again.
32715         Reported by Eric Blake.
32716
32717 2009-12-31  Bruno Haible  <bruno@clisp.org>
32718
32719         Avoid namespace pollution on glibc systems.
32720         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
32721         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
32722         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
32723         glibc systems.
32724
32725 2009-12-31  Bruno Haible  <bruno@clisp.org>
32726
32727         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
32728         (gl_REPLACE_WCHAR_H): Turn into a no-op.
32729         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
32730         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
32731         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
32732         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
32733         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
32734
32735 2009-12-31  Bruno Haible  <bruno@clisp.org>
32736
32737         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32738         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
32739         afterwards.
32740
32741 2009-12-31  Bruno Haible  <bruno@clisp.org>
32742
32743         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
32744         SYS_UTSNAME_H.
32745
32746 2009-12-31  Bruno Haible  <bruno@clisp.org>
32747
32748         spawn: Fix misapplied patch.
32749         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
32750         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
32751         warnings for GNULIB_POSIXCHECK.
32752
32753 2009-12-31  Bruno Haible  <bruno@clisp.org>
32754
32755         times: Update after sys_times changed.
32756         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
32757         * modules/times (Files): Add it.
32758         (configure.ac): Invoke gl_FUNC_TIMES.
32759
32760 2009-12-31  Bruno Haible  <bruno@clisp.org>
32761
32762         Use AC_C_INLINE where necessary.
32763         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
32764         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
32765         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
32766         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32767         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32768         * m4/mbiter.m4 (gl_MBITER): Likewise.
32769         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32770         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32771         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
32772         * modules/u64 (configure.ac): Likewise.
32773
32774 2009-12-31  Bruno Haible  <bruno@clisp.org>
32775
32776         Use AC_C_INLINE instead of module 'inline' where possible.
32777         * modules/inline (Description): Clarify purpose.
32778         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
32779         * modules/count-one-bits (Depends-on): Remove inline.
32780         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
32781         * modules/openat (Depends-on): Remove inline.
32782         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
32783         instead of depending on module 'inline'.
32784         * modules/filevercmp (Depends-on, configure.ac): Likewise.
32785         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
32786         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
32787         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
32788         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
32789         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
32790         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
32791         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
32792         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
32793         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
32794         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
32795         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
32796         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
32797         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
32798         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
32799         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
32800         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
32801         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
32802         Likewise.
32803         * modules/unictype/property-ascii-hex-digit (Depends-on,
32804         configure.ac): Likewise.
32805         * modules/unictype/property-bidi-arabic-digit (Depends-on,
32806         configure.ac): Likewise.
32807         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
32808         configure.ac): Likewise.
32809         * modules/unictype/property-bidi-block-separator (Depends-on,
32810         configure.ac): Likewise.
32811         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
32812         configure.ac): Likewise.
32813         * modules/unictype/property-bidi-common-separator (Depends-on,
32814         configure.ac): Likewise.
32815         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
32816         Likewise.
32817         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
32818         configure.ac): Likewise.
32819         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
32820         configure.ac): Likewise.
32821         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
32822         configure.ac): Likewise.
32823         * modules/unictype/property-bidi-european-digit (Depends-on,
32824         configure.ac): Likewise.
32825         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
32826         configure.ac): Likewise.
32827         * modules/unictype/property-bidi-left-to-right (Depends-on,
32828         configure.ac): Likewise.
32829         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
32830         configure.ac): Likewise.
32831         * modules/unictype/property-bidi-other-neutral (Depends-on,
32832         configure.ac): Likewise.
32833         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
32834         Likewise.
32835         * modules/unictype/property-bidi-segment-separator (Depends-on,
32836         configure.ac): Likewise.
32837         * modules/unictype/property-bidi-whitespace (Depends-on,
32838         configure.ac): Likewise.
32839         * modules/unictype/property-combining (Depends-on, configure.ac):
32840         Likewise.
32841         * modules/unictype/property-composite (Depends-on, configure.ac):
32842         Likewise.
32843         * modules/unictype/property-currency-symbol (Depends-on,
32844         configure.ac): Likewise.
32845         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
32846         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
32847         Likewise.
32848         * modules/unictype/property-default-ignorable-code-point (Depends-on,
32849         configure.ac): Likewise.
32850         * modules/unictype/property-deprecated (Depends-on, configure.ac):
32851         Likewise.
32852         * modules/unictype/property-diacritic (Depends-on, configure.ac):
32853         Likewise.
32854         * modules/unictype/property-extender (Depends-on, configure.ac):
32855         Likewise.
32856         * modules/unictype/property-format-control (Depends-on, configure.ac):
32857         Likewise.
32858         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
32859         Likewise.
32860         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
32861         Likewise.
32862         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
32863         Likewise.
32864         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
32865         Likewise.
32866         * modules/unictype/property-hyphen (Depends-on, configure.ac):
32867         Likewise.
32868         * modules/unictype/property-id-continue (Depends-on, configure.ac):
32869         Likewise.
32870         * modules/unictype/property-id-start (Depends-on, configure.ac):
32871         Likewise.
32872         * modules/unictype/property-ideographic (Depends-on, configure.ac):
32873         Likewise.
32874         * modules/unictype/property-ids-binary-operator (Depends-on,
32875         configure.ac): Likewise.
32876         * modules/unictype/property-ids-trinary-operator (Depends-on,
32877         configure.ac): Likewise.
32878         * modules/unictype/property-ignorable-control (Depends-on,
32879         configure.ac): Likewise.
32880         * modules/unictype/property-iso-control (Depends-on, configure.ac):
32881         Likewise.
32882         * modules/unictype/property-join-control (Depends-on, configure.ac):
32883         Likewise.
32884         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
32885         Likewise.
32886         * modules/unictype/property-line-separator (Depends-on, configure.ac):
32887         Likewise.
32888         * modules/unictype/property-logical-order-exception (Depends-on,
32889         configure.ac): Likewise.
32890         * modules/unictype/property-lowercase (Depends-on, configure.ac):
32891         Likewise.
32892         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
32893         * modules/unictype/property-non-break (Depends-on, configure.ac):
32894         Likewise.
32895         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
32896         Likewise.
32897         * modules/unictype/property-numeric (Depends-on, configure.ac):
32898         Likewise.
32899         * modules/unictype/property-other-alphabetic (Depends-on,
32900         configure.ac): Likewise.
32901         * modules/unictype/property-other-default-ignorable-code-point
32902         (Depends-on, configure.ac): Likewise.
32903         * modules/unictype/property-other-grapheme-extend (Depends-on,
32904         configure.ac): Likewise.
32905         * modules/unictype/property-other-id-continue (Depends-on,
32906         configure.ac): Likewise.
32907         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
32908         Likewise.
32909         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
32910         Likewise.
32911         * modules/unictype/property-other-math (Depends-on, configure.ac):
32912         Likewise.
32913         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
32914         Likewise.
32915         * modules/unictype/property-paired-punctuation (Depends-on,
32916         configure.ac): Likewise.
32917         * modules/unictype/property-paragraph-separator (Depends-on,
32918         configure.ac): Likewise.
32919         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
32920         Likewise.
32921         * modules/unictype/property-pattern-white-space (Depends-on,
32922         configure.ac): Likewise.
32923         * modules/unictype/property-private-use (Depends-on, configure.ac):
32924         Likewise.
32925         * modules/unictype/property-punctuation (Depends-on, configure.ac):
32926         Likewise.
32927         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
32928         Likewise.
32929         * modules/unictype/property-radical (Depends-on, configure.ac):
32930         Likewise.
32931         * modules/unictype/property-sentence-terminal (Depends-on,
32932         configure.ac): Likewise.
32933         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
32934         Likewise.
32935         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
32936         * modules/unictype/property-terminal-punctuation (Depends-on,
32937         configure.ac): Likewise.
32938         * modules/unictype/property-titlecase (Depends-on, configure.ac):
32939         Likewise.
32940         * modules/unictype/property-unassigned-code-value (Depends-on,
32941         configure.ac): Likewise.
32942         * modules/unictype/property-unified-ideograph (Depends-on,
32943         configure.ac): Likewise.
32944         * modules/unictype/property-uppercase (Depends-on, configure.ac):
32945         Likewise.
32946         * modules/unictype/property-variation-selector (Depends-on,
32947         configure.ac): Likewise.
32948         * modules/unictype/property-white-space (Depends-on, configure.ac):
32949         Likewise.
32950         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
32951         Likewise.
32952         * modules/unictype/property-xid-start (Depends-on, configure.ac):
32953         Likewise.
32954         * modules/unictype/property-zero-width (Depends-on, configure.ac):
32955         Likewise.
32956         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
32957         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
32958         Likewise.
32959
32960 2009-12-31  Bruno Haible  <bruno@clisp.org>
32961
32962         Remove unnecessary AC_C_INLINE invocation.
32963         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
32964         since 2009-08-21.
32965
32966 2009-12-31  Jim Meyering  <meyering@redhat.com>
32967
32968         maint.mk: don't require explicit gpg_key_ID in cfg.mk
32969         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
32970         With this change, we can all remove the gpg_key_ID = ... definition
32971         from our respective cfg.mk files.
32972
32973         maint.mk: create announcement template in ~/, not in /tmp
32974         * top/maint.mk (emit_upload_commands): Adjust.
32975         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
32976         Remove temporary file, .ci-msg.
32977
32978 2009-12-31  Eric Blake  <ebb9@byu.net>
32979
32980         link-warning: always build headers with link warnings
32981         * modules/arpa_inet (Makefile.am): Always build replacement
32982         header.
32983         * modules/ctype (Makefile.am): Likewise.
32984         * modules/dirent (Makefile.am): Likewise.
32985         * modules/inttypes (Makefile.am): Likewise.
32986         * modules/langinfo (Makefile.am): Likewise.
32987         * modules/locale (Makefile.am): Likewise.
32988         * modules/spawn (Makefile.am): Likewise.
32989         * modules/sys_file (Makefile.am): Likewise.
32990         * modules/sys_ioctl (Makefile.am): Likewise.
32991         * modules/sys_select (Makefile.am): Likewise.
32992         * modules/sys_socket (Makefile.am): Likewise.
32993         * modules/sys_times (Makefile.am): Likewise.
32994         * modules/sys_utsname (Makefile.am): Likewise.
32995         * modules/sys_wait (Makefile.am): Likewise.
32996         * modules/wchar (Makefile.am): Likewise.
32997         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
32998         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
32999         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
33000         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
33001         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
33002         Likewise.
33003         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33004         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33005         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
33006         Likewise.
33007         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
33008         Likewise.
33009         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
33010         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
33011         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
33012         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33013         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33014         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33015         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33016         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
33017         (gl_WCHAR_H_DEFAULTS): Likewise.
33018
33019 2009-12-31  Eric Blake  <ebb9@byu.net>
33020
33021         signal, spawn: use link warnings
33022         * lib/signal.in.h (sigset_t): Make unconditional.
33023         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
33024         (sigpending, sigprocmask, sigaction): Add link warnings.
33025         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
33026         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
33027         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
33028         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
33029         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
33030         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
33031         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
33032         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
33033         (posix_spawn_file_actions_destroy)
33034         (posix_spawn_file_actions_addopen)
33035         (posix_spawn_file_actions_addclose)
33036         (posix_spawn_file_actions_adddup2): Likewise.
33037         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
33038         * tests/test-signal.c (main): Enhance test.
33039
33040         spawn: improve wrapper support
33041         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
33042         (gl_SPAWN_H_DEFAULTS): New defaults.
33043         * modules/spawn (Makefile.am): Substitute them.
33044         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
33045         Only declare if missing or broken.
33046
33047         sys_times, sys_utsname: use include_next
33048         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
33049         header.
33050         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
33051         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33052         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33053         * modules/sys_times (Depends-on): Add include_next.
33054         (Makefile.am): Substitute additional values.
33055         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33056         * lib/sys_times.in.h (includes): Include native header, if
33057         available.
33058         * lib/sys_utsname.in.h (includes): Likewise.
33059         * tests/test-sys_times.c (main): Enhance test.
33060
33061         fdutimensat: revert prior patch
33062         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
33063         utimens.h.
33064         Reported by Bruno Haible.
33065
33066 2009-12-30  Eric Blake  <ebb9@byu.net>
33067
33068         sys_wait: drop link-warning dependency
33069         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
33070         link-warning efforts.
33071         * lib/sys_wait.in.h: Likewise.
33072
33073         fdutimensat: remove bogus dependency
33074         * modules/fdutimensat (Depends-on): Drop inline.
33075
33076         unistd: fix typo
33077         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
33078
33079 2009-12-30  Bruno Haible  <bruno@clisp.org>
33080
33081         Fix compilation error with Solaris cc.
33082         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
33083         * lib/unicase/u16-is-invariant.c: Likewise.
33084         * lib/unicase/u32-is-invariant.c: Likewise.
33085         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33086
33087 2009-12-30  Bruno Haible  <bruno@clisp.org>
33088
33089         Fix test crash.
33090         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
33091         locales.
33092         Reported by Simon Josefsson <simon@josefsson.org>.
33093
33094 2009-12-30  Bruno Haible  <bruno@clisp.org>
33095
33096         Fix compilation error on most platforms.
33097         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
33098         Reported by Simon Josefsson <simon@josefsson.org>
33099         and Nelson H. F. Beebe <beebe@math.utah.edu>.
33100
33101 2009-12-30  Eric Blake  <ebb9@byu.net>
33102
33103         futimens, utimensat: work around ntfs-3g bug
33104         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
33105         a ctime bug is present, and expand workaround to cover ntfs-3g.
33106         * lib/utimens.c (fdutimens, lutimens): Likewise.
33107         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
33108         (validate_timespec): Adjust return value.
33109         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
33110         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33111         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
33112
33113 2009-12-29  Eric Blake  <ebb9@byu.net>
33114
33115         link-warning: make usage consistent
33116         * modules/ctype (Depends-on): Add link-warning.
33117         (Makefile.am): Update rules accordingly.
33118         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33119         * modules/locale (Depends-on, Makefile.am): Likewise.
33120         * modules/sys_file (Makefile.am): Likewise.
33121         * modules/getopt-posix (Makefile.am): Delete unused link warning
33122         efforts.
33123         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
33124         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
33125         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
33126         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
33127
33128         stdio: remove unused variables
33129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
33130         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
33131         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
33132
33133         tests: test more substitute headers
33134         * modules/ctype-tests: New file.
33135         * modules/dirent-tests: Likewise.
33136         * modules/spawn-tests: Likewise.
33137         * modules/sys_file-tests: Likewise.
33138         * modules/sys_ioctl-tests: Likewise.
33139         * modules/sys_wait-tests: Likewise.
33140         * tests/test-ctype.c: Likewise.
33141         * tests/test-dirent.c: Likewise.
33142         * tests/test-spawn.c: Likewise.
33143         * tests/test-sys_file.c: Likewise.
33144         * tests/test-sys_ioctl.c: Likewise.
33145         * tests/test-sys_wait.c: Likewise.
33146         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
33147         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
33148         whether or not flock is in use.
33149
33150         tests: remove License section from module
33151         * modules/arpa_inet-tests: Remove unneeded section.
33152         * modules/byteswap-tests: Likewise.
33153         * modules/ceilf-tests: Likewise.
33154         * modules/ceill-tests: Likewise.
33155         * modules/crypto/des-tests: Likewise.
33156         * modules/crypto/gc-arcfour-tests: Likewise.
33157         * modules/crypto/gc-arctwo-tests: Likewise.
33158         * modules/crypto/gc-des-tests: Likewise.
33159         * modules/crypto/gc-hmac-md5-tests: Likewise.
33160         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33161         * modules/crypto/gc-md2-tests: Likewise.
33162         * modules/crypto/gc-md4-tests: Likewise.
33163         * modules/crypto/gc-md5-tests: Likewise.
33164         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33165         * modules/crypto/gc-rijndael-tests: Likewise.
33166         * modules/crypto/gc-sha1-tests: Likewise.
33167         * modules/crypto/gc-tests: Likewise.
33168         * modules/crypto/md2-tests: Likewise.
33169         * modules/crypto/md4-tests: Likewise.
33170         * modules/fcntl-h-tests: Likewise.
33171         * modules/floorf-tests: Likewise.
33172         * modules/floorl-tests: Likewise.
33173         * modules/frexp-nolibm-tests: Likewise.
33174         * modules/frexp-tests: Likewise.
33175         * modules/frexpl-nolibm-tests: Likewise.
33176         * modules/frexpl-tests: Likewise.
33177         * modules/getaddrinfo-tests: Likewise.
33178         * modules/inttypes-tests: Likewise.
33179         * modules/isfinite-tests: Likewise.
33180         * modules/isinf-tests: Likewise.
33181         * modules/ldexpl-tests: Likewise.
33182         * modules/locale-tests: Likewise.
33183         * modules/math-tests: Likewise.
33184         * modules/netdb-tests: Likewise.
33185         * modules/netinet_in-tests: Likewise.
33186         * modules/printf-frexp-tests: Likewise.
33187         * modules/printf-frexpl-tests: Likewise.
33188         * modules/priv-set-tests: Likewise.
33189         * modules/random_r-tests: Likewise.
33190         * modules/round-tests: Likewise.
33191         * modules/roundf-tests: Likewise.
33192         * modules/roundl-tests: Likewise.
33193         * modules/search-tests: Likewise.
33194         * modules/select-tests: Likewise.
33195         * modules/signal-tests: Likewise.
33196         * modules/stdbool-tests: Likewise.
33197         * modules/stddef-tests: Likewise.
33198         * modules/stdint-tests: Likewise.
33199         * modules/stdio-tests: Likewise.
33200         * modules/stdlib-tests: Likewise.
33201         * modules/string-tests: Likewise.
33202         * modules/strings-tests: Likewise.
33203         * modules/sys_select-tests: Likewise.
33204         * modules/sys_socket-tests: Likewise.
33205         * modules/sys_stat-tests: Likewise.
33206         * modules/sys_time-tests: Likewise.
33207         * modules/sys_utsname-tests: Likewise.
33208         * modules/sysexits-tests: Likewise.
33209         * modules/time-tests: Likewise.
33210         * modules/trunc-tests: Likewise.
33211         * modules/truncf-tests: Likewise.
33212         * modules/truncl-tests: Likewise.
33213         * modules/tsearch-tests: Likewise.
33214         * modules/unistd-tests: Likewise.
33215         * modules/wchar-tests: Likewise.
33216         * modules/wctype-tests: Likewise.
33217
33218         tests: fix license on several tests
33219         * tests/test-des.c: Update to GPLv3+.
33220         * tests/test-flock.c: Likewise.
33221         * tests/test-fsync.c: Likewise.
33222         * tests/test-futimens.h: Likewise.
33223         * tests/test-gc-arcfour.c: Likewise.
33224         * tests/test-gc-arctwo.c: Likewise.
33225         * tests/test-gc-des.c: Likewise.
33226         * tests/test-gc-hmac-md5.c: Likewise.
33227         * tests/test-gc-hmac-sha1.c: Likewise.
33228         * tests/test-gc-md2.c: Likewise.
33229         * tests/test-gc-md4.c: Likewise.
33230         * tests/test-gc-md5.c: Likewise.
33231         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33232         * tests/test-gc-rijndael.c: Likewise.
33233         * tests/test-gc-sha1.c: Likewise.
33234         * tests/test-gc.c: Likewise.
33235         * tests/test-getcwd.c: Likewise.
33236         * tests/test-link.c: Likewise.
33237         * tests/test-link.h: Likewise.
33238         * tests/test-lutimens.h: Likewise.
33239         * tests/test-md2.c: Likewise.
33240         * tests/test-md4.c: Likewise.
33241         * tests/test-mkdir.h: Likewise.
33242         * tests/test-rename.c: Likewise.
33243         * tests/test-rename.h: Likewise.
33244         * tests/test-safe-alloc.c: Likewise.
33245         * tests/test-utimens-common.h: Likewise.
33246         * tests/test-utimens.h: Likewise.
33247
33248         maint: sync license texts
33249         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
33250         * doc/gpl-3.0.texi: Revert copyright year update.
33251         * doc/lgpl-3.0.texi: Likewise.
33252
33253 2009-12-29  Jim Meyering  <meyering@redhat.com>
33254
33255         update nearly all FSF copyright year lists to include 2009
33256         The files named by the following are exempted:
33257             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
33258               test -f "$dst" && { echo "$dst"; continue; }
33259               test -d "$dst" || continue
33260               echo "$dst"/$(basename "$src")
33261             done > exempt
33262             git ls-files tests/unictype >> exempt
33263         In the remaining files, convert to all-interval notation if
33264         - there is already at least one year interval like 2000-2003
33265         - the file is maintained by me
33266         - the file is in lib/uni*/, where that style already prevails
33267         Otherwise, use update-copyright's default.
33268
33269 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33270         and Eric Blake  <ebb9@byu.net>
33271
33272         tests: don't require debug system() to pass
33273         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
33274         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33275         * tests/test-unlink.h (test_unlink_func): Likewise.
33276         * tests/test-fstatat.c (main): ...into callers.
33277         * tests/test-lstat.c (main): Likewise.
33278         * tests/test-rmdir.c (main): Likewise.
33279         * tests/test-unlink.c (main): Likewise.
33280         * tests/test-unlinkat.c (main): Likewise.
33281         * tests/test-areadlink-with-size.c (main): Don't require a
33282         debug-only system call to pass, aiding cross-testing to mingw.
33283         * tests/test-areadlink.c (main): Likewise.
33284         * tests/test-areadlinkat-with-size.c (main): Likewise.
33285         * tests/test-areadlinkat.c (main): Likewise.
33286         * tests/test-canonicalize-lgpl.c (main): Likewise.
33287         * tests/test-canonicalize.c (main): Likewise.
33288         * tests/test-chown.c (main): Likewise.
33289         * tests/test-fchownat.c (main): Likewise.
33290         * tests/test-lchown.c (main): Likewise.
33291         * tests/test-fdutimensat.c (main): Likewise.
33292         * tests/test-futimens.c (main): Likewise.
33293         * tests/test-link.c (main): Likewise.
33294         * tests/test-linkat.c (main): Likewise.
33295         * tests/test-mkdir.c (main): Likewise.
33296         * tests/test-mkdirat.c (main): Likewise.
33297         * tests/test-mkfifo.c (main): Likewise.
33298         * tests/test-mkfifoat.c (main): Likewise.
33299         * tests/test-mknod.c (main): Likewise.
33300         * tests/test-readlink.c (main): Likewise.
33301         * tests/test-remove.c (main): Likewise.
33302         * tests/test-rename.c (main): Likewise.
33303         * tests/test-renameat.c (main): Likewise.
33304         * tests/test-symlink.c (main): Likewise.
33305         * tests/test-symlinkat.c (main): Likewise.
33306         * tests/test-utimens.c (main): Likewise.
33307         * tests/test-utimensat.c (main): Likewise.
33308
33309 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33310
33311         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
33312         on $(UNUSED_PARAMETER_H) to avoid build failure.
33313
33314 2009-12-28  Jim Meyering  <meyering@redhat.com>
33315
33316         update-copyright: you may specify a max. line length other than 72
33317         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33318
33319         maint: use consistent FSF copyright line syntax
33320         * lib/posixtm.c: Add missing comma in FSF copyright line.
33321         * lib/posixtm.h: Likewise.
33322         * lib/getugroups.c: Add missing ", Inc.".
33323
33324         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
33325         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
33326         FSF copyright line.  Remove trailing blanks.
33327
33328 2009-12-28  Eric Blake  <ebb9@byu.net>
33329
33330         test-dup2: reduce dependencies
33331         * modules/cloexec (Configure.ac): Set witness.
33332         * modules/dup2-tests (Depends-on): Drop cloexec.
33333         * tests/test-dup2.c (main): Skip portion of test if cloexec module
33334         not present.
33335         Suggested by Bruno Haible.
33336
33337 2009-12-26  Bruno Haible  <bruno@clisp.org>
33338
33339         Remove an unneeded dependency.
33340         * modules/fseterr (Depends-on): Remove dup2.
33341
33342 2009-12-26  Eric Blake  <ebb9@byu.net>
33343
33344         tests: use macros.h in more places
33345         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
33346         (ASSERT_STREAM): Provide default of stderr.
33347         * tests/test-dirent-safer.c: Include macros.h, using alternate
33348         stream for assertions.
33349         * tests/test-dup-safer.c: Likewise.
33350         * tests/test-freopen-safer.c: Likewise.
33351         * tests/test-getopt.c: Likewise.
33352         * tests/test-openat-safer.c: Likewise.
33353         * tests/test-pipe.c: Likewise.
33354         * tests/test-popen-safer.c: Likewise.
33355         * modules/dirent-safer-tests (Files): Include macros.h.
33356         * modules/unistd-safer-tests (Files): Likewise.
33357         * modules/freopen-safer-tests (Files): Likewise.
33358         * modules/getopt-posix-tests (Files): Likewise.
33359         * modules/openat-safer-tests (Files): Likewise.
33360         * modules/pipe-tests (Files): Likewise.
33361
33362 2009-12-26  Bruno Haible  <bruno@clisp.org>
33363
33364         javacomp: Portability fix.
33365         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
33366         that it also works on Solaris.
33367
33368 2009-12-26  Bruno Haible  <bruno@clisp.org>
33369
33370         localename: Fix storage allocation of gl_locale_name_thread's result.
33371         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
33372         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
33373         all platforms that have 'uselocale'.
33374         (gl_locale_name_thread_unsafe): New function, extracted from
33375         gl_locale_name_thread.
33376         (gl_locale_name_thread): Call struniq on all platforms that have
33377         'uselocale'.
33378         * tests/test-localename.c (test_locale_name_thread): Check that the
33379         resulting strings are permanently allocated.
33380         * modules/localename-tests (Depends-on): Add strdup.
33381
33382 2009-12-26  Bruno Haible  <bruno@clisp.org>
33383
33384         * tests/test-localename.c (categories): Fill in the strings.
33385
33386 2009-12-26  Jim Meyering  <meyering@redhat.com>
33387
33388         isdir: complete the removal of m4/isdir.m4
33389         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
33390
33391         isdir: clean up, since at least grep still uses it
33392         * lib/isdir.c: Include "isdir.h".
33393         (S_ISDIR): Remove now-unneeded definition.
33394         * modules/isdir (Files): Add lib/isdir.h.
33395         * lib/isdir.h: New file, with declaration.
33396         * m4/isdir.m4: Remove file -- unneeded.
33397
33398 2009-12-25  Bruno Haible  <bruno@clisp.org>
33399
33400         selinux-h: Make generated .h files standalone.
33401         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
33402         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
33403         * lib/se-selinux.in.h: Likewise.
33404         * modules/selinux-h (Depends-on): Add unused-parameter.
33405         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
33406         selinux/selinux.h and selinux/context.h.
33407         Suggested by Eric Blake.
33408
33409 2009-12-25  Bruno Haible  <bruno@clisp.org>
33410
33411         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
33412         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
33413         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
33414         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
33415         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
33416
33417 2009-12-24  Bruno Haible  <bruno@clisp.org>
33418
33419         openat: Fix warning.
33420         * lib/openat-proc.c: Include <unistd.h>.
33421
33422 2009-12-24  Bruno Haible  <bruno@clisp.org>
33423
33424         New module 'unused-parameter'.
33425         * build-aux/unused-parameter.h: New file, extracted from earlier
33426         gnulib-common.m4.
33427         * modules/unused-parameter: New file.
33428         * lib/unistr.h: Include unused-parameter.h.
33429         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
33430         _GL_UNUSED.
33431         * modules/unistr/base (Depends-on): Add unused-parameter.
33432
33433 2009-12-24  Bruno Haible  <bruno@clisp.org>
33434
33435         Add missing dependencies to 'extensions' module.
33436         * m4/extensions.m4: Add comment.
33437         * modules/accept4 (Depends-on): Add extensions.
33438         * modules/dup3 (Depends-on): Likewise.
33439         * modules/fcntl (Depends-on): Likewise.
33440         * modules/futimens (Depends-on): Likewise.
33441         * modules/mknod (Depends-on): Likewise.
33442         * modules/pipe2 (Depends-on): Likewise.
33443         * modules/stat-time (Depends-on): Likewise.
33444         * modules/strcasestr-simple (Depends-on): Likewise.
33445         * modules/strsignal (Depends-on): Likewise.
33446         * modules/utimensat (Depends-on): Likewise.
33447         * modules/localcharset (Depends-on): Likewise. Needed because of
33448         gl_FCNTL_O_FLAGS.
33449         * modules/wcrtomb (Depends-on): Likewise. Needed because of
33450         AC_TYPE_MBSTATE_T.
33451         * modules/wcsnrtombs (Depends-on): Likewise.
33452         * modules/wcsrtombs (Depends-on): Likewise.
33453
33454 2009-12-24  Bruno Haible  <bruno@clisp.org>
33455
33456         binary-io: Avoid gcc warning due to SET_BINARY.
33457         * lib/binary-io.h (SET_BINARY): Cast the result to void.
33458         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
33459
33460 2009-12-24  Bruno Haible  <bruno@clisp.org>
33461
33462         Avoid future namespace pollution on glibc systems.
33463         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
33464         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
33465         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
33466         glibc systems.
33467
33468 2009-12-24  Bruno Haible  <bruno@clisp.org>
33469
33470         Refactor common macros used in tests.
33471         * tests/macros.h: New file.
33472         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
33473         and/or <stdlib.h>, if appropriate.
33474         (ASSERT, SIZEOF): Remove macros.
33475         * tests/test-areadlink-with-size.c: Likewise.
33476         * tests/test-areadlinkat.c: Likewise.
33477         * tests/test-areadlinkat-with-size.c: Likewise.
33478         * tests/test-argmatch.c: Likewise.
33479         * tests/test-argv-iter.c: Likewise.
33480         * tests/test-array-mergesort.c: Likewise.
33481         * tests/test-array_list.c: Likewise.
33482         * tests/test-array_oset.c: Likewise.
33483         * tests/test-avltree_list.c: Likewise.
33484         * tests/test-avltree_oset.c: Likewise.
33485         * tests/test-avltreehash_list.c: Likewise.
33486         * tests/test-base64.c: Likewise.
33487         * tests/test-binary-io.c: Likewise.
33488         * tests/test-bitrotate.c: Likewise.
33489         * tests/test-btowc.c: Likewise.
33490         * tests/test-byteswap.c: Likewise.
33491         * tests/test-c-ctype.c: Likewise.
33492         * tests/test-c-stack.c: Likewise.
33493         * tests/test-c-strcasecmp.c: Likewise.
33494         * tests/test-c-strcasestr.c: Likewise.
33495         * tests/test-c-strncasecmp.c: Likewise.
33496         * tests/test-c-strstr.c: Likewise.
33497         * tests/test-canonicalize-lgpl.c: Likewise.
33498         * tests/test-canonicalize.c: Likewise.
33499         * tests/test-carray_list.c: Likewise.
33500         * tests/test-ceilf1.c: Likewise.
33501         * tests/test-ceilf2.c: Likewise.
33502         * tests/test-ceill.c: Likewise.
33503         * tests/test-chown.c: Likewise.
33504         * tests/test-cloexec.c: Likewise.
33505         * tests/test-copy-acl.c: Likewise.
33506         * tests/test-copy-file.c: Likewise.
33507         * tests/test-count-one-bits.c: Likewise.
33508         * tests/test-dprintf-posix.c: Likewise.
33509         * tests/test-dup2.c: Likewise.
33510         * tests/test-dup3.c: Likewise.
33511         * tests/test-duplocale.c: Likewise.
33512         * tests/test-fbufmode.c: Likewise.
33513         * tests/test-fchdir.c: Likewise.
33514         * tests/test-fchownat.c: Likewise.
33515         * tests/test-fcntl-safer.c: Likewise.
33516         * tests/test-fcntl.c: Likewise.
33517         * tests/test-fdopendir.c: Likewise.
33518         * tests/test-fdutimensat.c: Likewise.
33519         * tests/test-fflush2.c: Likewise.
33520         * tests/test-file-has-acl.c: Likewise.
33521         * tests/test-filevercmp.c: Likewise.
33522         * tests/test-flock.c: Likewise.
33523         * tests/test-floorf1.c: Likewise.
33524         * tests/test-floorf2.c: Likewise.
33525         * tests/test-floorl.c: Likewise.
33526         * tests/test-fnmatch.c: Likewise.
33527         * tests/test-fopen.h: Likewise.
33528         * tests/test-fpending.c: Likewise.
33529         * tests/test-fprintf-posix.c: Likewise.
33530         * tests/test-fpurge.c: Likewise.
33531         * tests/test-freadable.c: Likewise.
33532         * tests/test-freadahead.c: Likewise.
33533         * tests/test-freading.c: Likewise.
33534         * tests/test-freadptr.c: Likewise.
33535         * tests/test-freadptr2.c: Likewise.
33536         * tests/test-freadseek.c: Likewise.
33537         * tests/test-freopen.c: Likewise.
33538         * tests/test-frexp.c: Likewise.
33539         * tests/test-frexpl.c: Likewise.
33540         * tests/test-fseek.c: Likewise.
33541         * tests/test-fseeko.c: Likewise.
33542         * tests/test-fstatat.c: Likewise.
33543         * tests/test-fstrcmp.c: Likewise.
33544         * tests/test-fsync.c: Likewise.
33545         * tests/test-ftell.c: Likewise.
33546         * tests/test-ftello.c: Likewise.
33547         * tests/test-func.c: Likewise.
33548         * tests/test-futimens.c: Likewise.
33549         * tests/test-fwritable.c: Likewise.
33550         * tests/test-fwriting.c: Likewise.
33551         * tests/test-getcwd.c: Likewise.
33552         * tests/test-getdate.c: Likewise.
33553         * tests/test-getdelim.c: Likewise.
33554         * tests/test-getdtablesize.c: Likewise.
33555         * tests/test-getgroups.c: Likewise.
33556         * tests/test-getline.c: Likewise.
33557         * tests/test-getndelim2.c: Likewise.
33558         * tests/test-glob.c: Likewise.
33559         * tests/test-hash.c: Likewise.
33560         * tests/test-i-ring.c: Likewise.
33561         * tests/test-iconv-utf.c: Likewise.
33562         * tests/test-iconv.c: Likewise.
33563         * tests/test-idpriv-drop.c: Likewise.
33564         * tests/test-idpriv-droptemp.c: Likewise.
33565         * tests/test-inet_ntop.c: Likewise.
33566         * tests/test-inet_pton.c: Likewise.
33567         * tests/test-isblank.c: Likewise.
33568         * tests/test-isfinite.c: Likewise.
33569         * tests/test-isinf.c: Likewise.
33570         * tests/test-isnan.c: Likewise.
33571         * tests/test-isnand.h: Likewise.
33572         * tests/test-isnanf.h: Likewise.
33573         * tests/test-isnanl.h: Likewise.
33574         * tests/test-lchown.c: Likewise.
33575         * tests/test-ldexpl.c: Likewise.
33576         * tests/test-link.c: Likewise.
33577         * tests/test-linkat.c: Likewise.
33578         * tests/test-linked_list.c: Likewise.
33579         * tests/test-linkedhash_list.c: Likewise.
33580         * tests/test-localename.c: Likewise.
33581         * tests/test-lseek.c: Likewise.
33582         * tests/test-lstat.c: Likewise.
33583         * tests/test-mbmemcasecmp.c: Likewise.
33584         * tests/test-mbmemcasecoll.c: Likewise.
33585         * tests/test-mbrtowc.c: Likewise.
33586         * tests/test-mbscasecmp.c: Likewise.
33587         * tests/test-mbscasestr1.c: Likewise.
33588         * tests/test-mbscasestr2.c: Likewise.
33589         * tests/test-mbscasestr3.c: Likewise.
33590         * tests/test-mbscasestr4.c: Likewise.
33591         * tests/test-mbschr.c: Likewise.
33592         * tests/test-mbscspn.c: Likewise.
33593         * tests/test-mbsinit.c: Likewise.
33594         * tests/test-mbsncasecmp.c: Likewise.
33595         * tests/test-mbsnrtowcs.c: Likewise.
33596         * tests/test-mbspbrk.c: Likewise.
33597         * tests/test-mbspcasecmp.c: Likewise.
33598         * tests/test-mbsrchr.c: Likewise.
33599         * tests/test-mbsrtowcs.c: Likewise.
33600         * tests/test-mbsspn.c: Likewise.
33601         * tests/test-mbsstr1.c: Likewise.
33602         * tests/test-mbsstr2.c: Likewise.
33603         * tests/test-mbsstr3.c: Likewise.
33604         * tests/test-memchr.c: Likewise.
33605         * tests/test-memchr2.c: Likewise.
33606         * tests/test-memcmp.c: Likewise.
33607         * tests/test-memmem.c: Likewise.
33608         * tests/test-memrchr.c: Likewise.
33609         * tests/test-mkdir.c: Likewise.
33610         * tests/test-mkdirat.c: Likewise.
33611         * tests/test-mkfifo.c: Likewise.
33612         * tests/test-mkfifoat.c: Likewise.
33613         * tests/test-mknod.c: Likewise.
33614         * tests/test-nanosleep.c: Likewise.
33615         * tests/test-nl_langinfo.c: Likewise.
33616         * tests/test-obstack-printf.c: Likewise.
33617         * tests/test-open.c: Likewise.
33618         * tests/test-openat.c: Likewise.
33619         * tests/test-pipe-filter-gi1.c: Likewise.
33620         * tests/test-pipe-filter-gi2-main.c: Likewise.
33621         * tests/test-pipe-filter-ii1.c: Likewise.
33622         * tests/test-pipe-filter-ii2-main.c: Likewise.
33623         * tests/test-pipe2.c: Likewise.
33624         * tests/test-popen.h: Likewise.
33625         * tests/test-posixtm.c: Likewise.
33626         * tests/test-pread.c: Likewise.
33627         * tests/test-printf-frexp.c: Likewise.
33628         * tests/test-printf-frexpl.c: Likewise.
33629         * tests/test-printf-posix.c: Likewise.
33630         * tests/test-priv-set.c: Likewise.
33631         * tests/test-quotearg.c: Likewise.
33632         * tests/test-random_r.c: Likewise.
33633         * tests/test-rawmemchr.c: Likewise.
33634         * tests/test-rbtree_list.c: Likewise.
33635         * tests/test-rbtree_oset.c: Likewise.
33636         * tests/test-rbtreehash_list.c: Likewise.
33637         * tests/test-readlink.c: Likewise.
33638         * tests/test-remove.c: Likewise.
33639         * tests/test-rename.c: Likewise.
33640         * tests/test-renameat.c: Likewise.
33641         * tests/test-rmdir.c: Likewise.
33642         * tests/test-round1.c: Likewise.
33643         * tests/test-roundf1.c: Likewise.
33644         * tests/test-roundl.c: Likewise.
33645         * tests/test-safe-alloc.c: Likewise.
33646         * tests/test-sameacls.c: Likewise.
33647         * tests/test-set-mode-acl.c: Likewise.
33648         * tests/test-setenv.c: Likewise.
33649         * tests/test-sigaction.c: Likewise.
33650         * tests/test-signbit.c: Likewise.
33651         * tests/test-sleep.c: Likewise.
33652         * tests/test-snprintf-posix.c: Likewise.
33653         * tests/test-snprintf.c: Likewise.
33654         * tests/test-sprintf-posix.c: Likewise.
33655         * tests/test-stat-time.c: Likewise.
33656         * tests/test-stat.c: Likewise.
33657         * tests/test-strcasestr.c: Likewise.
33658         * tests/test-strchrnul.c: Likewise.
33659         * tests/test-strerror.c: Likewise.
33660         * tests/test-striconv.c: Likewise.
33661         * tests/test-striconveh.c: Likewise.
33662         * tests/test-striconveha.c: Likewise.
33663         * tests/test-strsignal.c: Likewise.
33664         * tests/test-strstr.c: Likewise.
33665         * tests/test-strtod.c: Likewise.
33666         * tests/test-strverscmp.c: Likewise.
33667         * tests/test-symlink.c: Likewise.
33668         * tests/test-symlinkat.c: Likewise.
33669         * tests/test-trunc1.c: Likewise.
33670         * tests/test-trunc2.c: Likewise.
33671         * tests/test-truncf1.c: Likewise.
33672         * tests/test-truncf2.c: Likewise.
33673         * tests/test-truncl.c: Likewise.
33674         * tests/test-uname.c: Likewise.
33675         * tests/test-unlink.c: Likewise.
33676         * tests/test-unlinkat.c: Likewise.
33677         * tests/test-unsetenv.c: Likewise.
33678         * tests/test-usleep.c: Likewise.
33679         * tests/test-utimens.c: Likewise.
33680         * tests/test-utimensat.c: Likewise.
33681         * tests/test-vasnprintf-posix.c: Likewise.
33682         * tests/test-vasnprintf-posix2.c: Likewise.
33683         * tests/test-vasnprintf.c: Likewise.
33684         * tests/test-vasprintf-posix.c: Likewise.
33685         * tests/test-vasprintf.c: Likewise.
33686         * tests/test-vdprintf-posix.c: Likewise.
33687         * tests/test-vfprintf-posix.c: Likewise.
33688         * tests/test-vprintf-posix.c: Likewise.
33689         * tests/test-vsnprintf-posix.c: Likewise.
33690         * tests/test-vsnprintf.c: Likewise.
33691         * tests/test-vsprintf-posix.c: Likewise.
33692         * tests/test-wcrtomb.c: Likewise.
33693         * tests/test-wcsnrtombs.c: Likewise.
33694         * tests/test-wcsrtombs.c: Likewise.
33695         * tests/test-wctype.c: Likewise.
33696         * tests/test-wcwidth.c: Likewise.
33697         * tests/test-xfprintf-posix.c: Likewise.
33698         * tests/test-xmemdup0.c: Likewise.
33699         * tests/test-xprintf-posix.c: Likewise.
33700         * tests/test-xvasprintf.c: Likewise.
33701         * tests/unicase/test-locale-language.c: Likewise.
33702         * tests/unicase/test-mapping-part1.h: Likewise.
33703         * tests/unicase/test-predicate-part1.h: Likewise.
33704         * tests/unicase/test-u8-casecmp.c: Likewise.
33705         * tests/unicase/test-u8-casecoll.c: Likewise.
33706         * tests/unicase/test-u8-casefold.c: Likewise.
33707         * tests/unicase/test-u8-is-cased.c: Likewise.
33708         * tests/unicase/test-u8-is-casefolded.c: Likewise.
33709         * tests/unicase/test-u8-is-lowercase.c: Likewise.
33710         * tests/unicase/test-u8-is-titlecase.c: Likewise.
33711         * tests/unicase/test-u8-is-uppercase.c: Likewise.
33712         * tests/unicase/test-u8-tolower.c: Likewise.
33713         * tests/unicase/test-u8-totitle.c: Likewise.
33714         * tests/unicase/test-u8-toupper.c: Likewise.
33715         * tests/unicase/test-u16-casecmp.c: Likewise.
33716         * tests/unicase/test-u16-casecoll.c: Likewise.
33717         * tests/unicase/test-u16-casefold.c: Likewise.
33718         * tests/unicase/test-u16-is-cased.c: Likewise.
33719         * tests/unicase/test-u16-is-casefolded.c: Likewise.
33720         * tests/unicase/test-u16-is-lowercase.c: Likewise.
33721         * tests/unicase/test-u16-is-titlecase.c: Likewise.
33722         * tests/unicase/test-u16-is-uppercase.c: Likewise.
33723         * tests/unicase/test-u16-tolower.c: Likewise.
33724         * tests/unicase/test-u16-totitle.c: Likewise.
33725         * tests/unicase/test-u16-toupper.c: Likewise.
33726         * tests/unicase/test-u32-casecmp.c: Likewise.
33727         * tests/unicase/test-u32-casecoll.c: Likewise.
33728         * tests/unicase/test-u32-casefold.c: Likewise.
33729         * tests/unicase/test-u32-is-cased.c: Likewise.
33730         * tests/unicase/test-u32-is-casefolded.c: Likewise.
33731         * tests/unicase/test-u32-is-lowercase.c: Likewise.
33732         * tests/unicase/test-u32-is-titlecase.c: Likewise.
33733         * tests/unicase/test-u32-is-uppercase.c: Likewise.
33734         * tests/unicase/test-u32-tolower.c: Likewise.
33735         * tests/unicase/test-u32-totitle.c: Likewise.
33736         * tests/unicase/test-u32-toupper.c: Likewise.
33737         * tests/unicase/test-ulc-casecmp.c: Likewise.
33738         * tests/unicase/test-ulc-casecoll.c: Likewise.
33739         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33740         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
33741         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33742         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33743         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
33744         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
33745         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33746         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33747         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33748         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
33749         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33750         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33751         * tests/unictype/test-bidi_byname.c: Likewise.
33752         * tests/unictype/test-bidi_name.c: Likewise.
33753         * tests/unictype/test-bidi_of.c: Likewise.
33754         * tests/unictype/test-bidi_test.c: Likewise.
33755         * tests/unictype/test-block_list.c: Likewise.
33756         * tests/unictype/test-block_of.c: Likewise.
33757         * tests/unictype/test-block_test.c: Likewise.
33758         * tests/unictype/test-categ_and.c: Likewise.
33759         * tests/unictype/test-categ_and_not.c: Likewise.
33760         * tests/unictype/test-categ_byname.c: Likewise.
33761         * tests/unictype/test-categ_name.c: Likewise.
33762         * tests/unictype/test-categ_none.c: Likewise.
33763         * tests/unictype/test-categ_of.c: Likewise.
33764         * tests/unictype/test-categ_or.c: Likewise.
33765         * tests/unictype/test-categ_test_withtable.c: Likewise.
33766         * tests/unictype/test-combining.c: Likewise.
33767         * tests/unictype/test-decdigit.c: Likewise.
33768         * tests/unictype/test-digit.c: Likewise.
33769         * tests/unictype/test-mirror.c: Likewise.
33770         * tests/unictype/test-numeric.c: Likewise.
33771         * tests/unictype/test-pr_byname.c: Likewise.
33772         * tests/unictype/test-pr_test.c: Likewise.
33773         * tests/unictype/test-predicate-part1.h: Likewise.
33774         * tests/unictype/test-scripts.c: Likewise.
33775         * tests/unictype/test-sy_c_ident.c: Likewise.
33776         * tests/unictype/test-sy_java_ident.c: Likewise.
33777         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
33778         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
33779         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
33780         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
33781         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
33782         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
33783         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
33784         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
33785         * tests/uninorm/test-canonical-decomposition.c: Likewise.
33786         * tests/uninorm/test-compat-decomposition.c: Likewise.
33787         * tests/uninorm/test-composition.c: Likewise.
33788         * tests/uninorm/test-decomposing-form.c: Likewise.
33789         * tests/uninorm/test-decomposition.c: Likewise.
33790         * tests/uninorm/test-u8-nfc.c: Likewise.
33791         * tests/uninorm/test-u8-nfd.c: Likewise.
33792         * tests/uninorm/test-u8-nfkc.c: Likewise.
33793         * tests/uninorm/test-u8-nfkd.c: Likewise.
33794         * tests/uninorm/test-u8-normcmp.c: Likewise.
33795         * tests/uninorm/test-u8-normcoll.c: Likewise.
33796         * tests/uninorm/test-u16-nfc.c: Likewise.
33797         * tests/uninorm/test-u16-nfd.c: Likewise.
33798         * tests/uninorm/test-u16-nfkc.c: Likewise.
33799         * tests/uninorm/test-u16-nfkd.c: Likewise.
33800         * tests/uninorm/test-u16-normcmp.c: Likewise.
33801         * tests/uninorm/test-u16-normcoll.c: Likewise.
33802         * tests/uninorm/test-u32-nfc.c: Likewise.
33803         * tests/uninorm/test-u32-nfd.c: Likewise.
33804         * tests/uninorm/test-u32-nfkc.c: Likewise.
33805         * tests/uninorm/test-u32-nfkd.c: Likewise.
33806         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33807         * tests/uninorm/test-u32-normcmp.c: Likewise.
33808         * tests/uninorm/test-u32-normcoll.c: Likewise.
33809         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
33810         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
33811         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
33812         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
33813         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
33814         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
33815         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
33816         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
33817         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
33818         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
33819         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
33820         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
33821         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
33822         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
33823         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
33824         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
33825         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
33826         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
33827         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
33828         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
33829         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
33830         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
33831         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
33832         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
33833         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
33834         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
33835         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
33836         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
33837         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
33838         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
33839         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
33840         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
33841         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
33842         * tests/uniwidth/test-u8-strwidth.c: Likewise.
33843         * tests/uniwidth/test-u8-width.c: Likewise.
33844         * tests/uniwidth/test-u16-strwidth.c: Likewise.
33845         * tests/uniwidth/test-u16-width.c: Likewise.
33846         * tests/uniwidth/test-u32-strwidth.c: Likewise.
33847         * tests/uniwidth/test-u32-width.c: Likewise.
33848         * tests/uniwidth/test-uc_width.c: Likewise.
33849         * tests/uniwidth/test-uc_width2.c: Likewise.
33850         * modules/acl-tests (Files): Add tests/macros.h.
33851         * modules/areadlink-tests (Files): Likewise.
33852         * modules/areadlink-with-size-tests (Files): Likewise.
33853         * modules/areadlinkat-tests (Files): Likewise.
33854         * modules/areadlinkat-with-size-tests (Files): Likewise.
33855         * modules/argmatch-tests (Files): Likewise.
33856         * modules/argv-iter-tests (Files): Likewise.
33857         * modules/array-list-tests (Files): Likewise.
33858         * modules/array-mergesort-tests (Files): Likewise.
33859         * modules/array-oset-tests (Files): Likewise.
33860         * modules/avltree-list-tests (Files): Likewise.
33861         * modules/avltree-oset-tests (Files): Likewise.
33862         * modules/avltreehash-list-tests (Files): Likewise.
33863         * modules/base64-tests (Files): Likewise.
33864         * modules/binary-io-tests (Files): Likewise.
33865         * modules/bitrotate-tests (Files): Likewise.
33866         * modules/btowc-tests (Files): Likewise.
33867         * modules/byteswap-tests (Files): Likewise.
33868         * modules/c-ctype-tests (Files): Likewise.
33869         * modules/c-stack-tests (Files): Likewise.
33870         * modules/c-strcase-tests (Files): Likewise.
33871         * modules/c-strcasestr-tests (Files): Likewise.
33872         * modules/c-strstr-tests (Files): Likewise.
33873         * modules/canonicalize-lgpl-tests (Files): Likewise.
33874         * modules/canonicalize-tests (Files): Likewise.
33875         * modules/carray-list-tests (Files): Likewise.
33876         * modules/ceilf-tests (Files): Likewise.
33877         * modules/ceill-tests (Files): Likewise.
33878         * modules/chown-tests (Files): Likewise.
33879         * modules/cloexec-tests (Files): Likewise.
33880         * modules/copy-file-tests (Files): Likewise.
33881         * modules/count-one-bits-tests (Files): Likewise.
33882         * modules/dprintf-posix-tests (Files): Likewise.
33883         * modules/dup2-tests (Files): Likewise.
33884         * modules/dup3-tests (Files): Likewise.
33885         * modules/duplocale-tests (Files): Likewise.
33886         * modules/fbufmode-tests (Files): Likewise.
33887         * modules/fchdir-tests (Files): Likewise.
33888         * modules/fcntl-safer-tests (Files): Likewise.
33889         * modules/fcntl-tests (Files): Likewise.
33890         * modules/fdopendir-tests (Files): Likewise.
33891         * modules/fdutimensat-tests (Files): Likewise.
33892         * modules/fflush-tests (Files): Likewise.
33893         * modules/filevercmp-tests (Files): Likewise.
33894         * modules/flock-tests (Files): Likewise.
33895         * modules/floorf-tests (Files): Likewise.
33896         * modules/floorl-tests (Files): Likewise.
33897         * modules/fnmatch-tests (Files): Likewise.
33898         * modules/fopen-safer-tests (Files): Likewise.
33899         * modules/fopen-tests (Files): Likewise.
33900         * modules/fpending-tests (Files): Likewise.
33901         * modules/fprintf-posix-tests (Files): Likewise.
33902         * modules/fpurge-tests (Files): Likewise.
33903         * modules/freadable-tests (Files): Likewise.
33904         * modules/freadahead-tests (Files): Likewise.
33905         * modules/freading-tests (Files): Likewise.
33906         * modules/freadptr-tests (Files): Likewise.
33907         * modules/freadseek-tests (Files): Likewise.
33908         * modules/freopen-tests (Files): Likewise.
33909         * modules/frexp-nolibm-tests (Files): Likewise.
33910         * modules/frexp-tests (Files): Likewise.
33911         * modules/frexpl-nolibm-tests (Files): Likewise.
33912         * modules/frexpl-tests (Files): Likewise.
33913         * modules/fseek-tests (Files): Likewise.
33914         * modules/fseeko-tests (Files): Likewise.
33915         * modules/fstrcmp-tests (Files): Likewise.
33916         * modules/fsync-tests (Files): Likewise.
33917         * modules/ftell-tests (Files): Likewise.
33918         * modules/ftello-tests (Files): Likewise.
33919         * modules/func-tests (Files): Likewise.
33920         * modules/futimens-tests (Files): Likewise.
33921         * modules/fwritable-tests (Files): Likewise.
33922         * modules/fwriting-tests (Files): Likewise.
33923         * modules/getcwd-tests (Files): Likewise.
33924         * modules/getdate-tests (Files): Likewise.
33925         * modules/getdelim-tests (Files): Likewise.
33926         * modules/getdtablesize-tests (Files): Likewise.
33927         * modules/getgroups-tests (Files): Likewise.
33928         * modules/getline-tests (Files): Likewise.
33929         * modules/getndelim2-tests (Files): Likewise.
33930         * modules/glob-tests (Files): Likewise.
33931         * modules/hash-tests (Files): Likewise.
33932         * modules/i-ring-tests (Files): Likewise.
33933         * modules/iconv-tests (Files): Likewise.
33934         * modules/iconv_open-utf-tests (Files): Likewise.
33935         * modules/idpriv-drop-tests (Files): Likewise.
33936         * modules/idpriv-droptemp-tests (Files): Likewise.
33937         * modules/inet_ntop-tests (Files): Likewise.
33938         * modules/inet_pton-tests (Files): Likewise.
33939         * modules/isblank-tests (Files): Likewise.
33940         * modules/isfinite-tests (Files): Likewise.
33941         * modules/isinf-tests (Files): Likewise.
33942         * modules/isnan-tests (Files): Likewise.
33943         * modules/isnand-nolibm-tests (Files): Likewise.
33944         * modules/isnand-tests (Files): Likewise.
33945         * modules/isnanf-nolibm-tests (Files): Likewise.
33946         * modules/isnanf-tests (Files): Likewise.
33947         * modules/isnanl-nolibm-tests (Files): Likewise.
33948         * modules/isnanl-tests (Files): Likewise.
33949         * modules/lchown-tests (Files): Likewise.
33950         * modules/ldexpl-tests (Files): Likewise.
33951         * modules/link-tests (Files): Likewise.
33952         * modules/linkat-tests (Files): Likewise.
33953         * modules/linked-list-tests (Files): Likewise.
33954         * modules/linkedhash-list-tests (Files): Likewise.
33955         * modules/localename-tests (Files): Likewise.
33956         * modules/lseek-tests (Files): Likewise.
33957         * modules/lstat-tests (Files): Likewise.
33958         * modules/mbmemcasecmp-tests (Files): Likewise.
33959         * modules/mbmemcasecoll-tests (Files): Likewise.
33960         * modules/mbrtowc-tests (Files): Likewise.
33961         * modules/mbscasecmp-tests (Files): Likewise.
33962         * modules/mbscasestr-tests (Files): Likewise.
33963         * modules/mbschr-tests (Files): Likewise.
33964         * modules/mbscspn-tests (Files): Likewise.
33965         * modules/mbsinit-tests (Files): Likewise.
33966         * modules/mbsncasecmp-tests (Files): Likewise.
33967         * modules/mbsnrtowcs-tests (Files): Likewise.
33968         * modules/mbspbrk-tests (Files): Likewise.
33969         * modules/mbspcasecmp-tests (Files): Likewise.
33970         * modules/mbsrchr-tests (Files): Likewise.
33971         * modules/mbsrtowcs-tests (Files): Likewise.
33972         * modules/mbsspn-tests (Files): Likewise.
33973         * modules/mbsstr-tests (Files): Likewise.
33974         * modules/memchr-tests (Files): Likewise.
33975         * modules/memchr2-tests (Files): Likewise.
33976         * modules/memcmp-tests (Files): Likewise.
33977         * modules/memmem-tests (Files): Likewise.
33978         * modules/memrchr-tests (Files): Likewise.
33979         * modules/mkdir-tests (Files): Likewise.
33980         * modules/mkfifo-tests (Files): Likewise.
33981         * modules/mkfifoat-tests (Files): Likewise.
33982         * modules/mknod-tests (Files): Likewise.
33983         * modules/nanosleep-tests (Files): Likewise.
33984         * modules/nl_langinfo-tests (Files): Likewise.
33985         * modules/obstack-printf-tests (Files): Likewise.
33986         * modules/open-tests (Files): Likewise.
33987         * modules/openat-tests (Files): Likewise.
33988         * modules/pipe-filter-gi-tests (Files): Likewise.
33989         * modules/pipe-filter-ii-tests (Files): Likewise.
33990         * modules/pipe2-tests (Files): Likewise.
33991         * modules/popen-safer-tests (Files): Likewise.
33992         * modules/popen-tests (Files): Likewise.
33993         * modules/posixtm-tests (Files): Likewise.
33994         * modules/pread-tests (Files): Likewise.
33995         * modules/printf-frexp-tests (Files): Likewise.
33996         * modules/printf-frexpl-tests (Files): Likewise.
33997         * modules/printf-posix-tests (Files): Likewise.
33998         * modules/priv-set-tests (Files): Likewise.
33999         * modules/quotearg-tests (Files): Likewise.
34000         * modules/random_r-tests (Files): Likewise.
34001         * modules/rawmemchr-tests (Files): Likewise.
34002         * modules/rbtree-list-tests (Files): Likewise.
34003         * modules/rbtree-oset-tests (Files): Likewise.
34004         * modules/rbtreehash-list-tests (Files): Likewise.
34005         * modules/readlink-tests (Files): Likewise.
34006         * modules/remove-tests (Files): Likewise.
34007         * modules/rename-tests (Files): Likewise.
34008         * modules/renameat-tests (Files): Likewise.
34009         * modules/rmdir-tests (Files): Likewise.
34010         * modules/round-tests (Files): Likewise.
34011         * modules/roundf-tests (Files): Likewise.
34012         * modules/roundl-tests (Files): Likewise.
34013         * modules/safe-alloc-tests (Files): Likewise.
34014         * modules/setenv-tests (Files): Likewise.
34015         * modules/sigaction-tests (Files): Likewise.
34016         * modules/signbit-tests (Files): Likewise.
34017         * modules/sleep-tests (Files): Likewise.
34018         * modules/snprintf-posix-tests (Files): Likewise.
34019         * modules/snprintf-tests (Files): Likewise.
34020         * modules/sprintf-posix-tests (Files): Likewise.
34021         * modules/stat-tests (Files): Likewise.
34022         * modules/stat-time-tests (Files): Likewise.
34023         * modules/strcasestr-tests (Files): Likewise.
34024         * modules/strchrnul-tests (Files): Likewise.
34025         * modules/strerror-tests (Files): Likewise.
34026         * modules/striconv-tests (Files): Likewise.
34027         * modules/striconveh-tests (Files): Likewise.
34028         * modules/striconveha-tests (Files): Likewise.
34029         * modules/strsignal-tests (Files): Likewise.
34030         * modules/strstr-tests (Files): Likewise.
34031         * modules/strtod-tests (Files): Likewise.
34032         * modules/strverscmp-tests (Files): Likewise.
34033         * modules/symlink-tests (Files): Likewise.
34034         * modules/symlinkat-tests (Files): Likewise.
34035         * modules/trunc-tests (Files): Likewise.
34036         * modules/truncf-tests (Files): Likewise.
34037         * modules/truncl-tests (Files): Likewise.
34038         * modules/uname-tests (Files): Likewise.
34039         * modules/unicase/cased-tests (Files): Likewise.
34040         * modules/unicase/ignorable-tests (Files): Likewise.
34041         * modules/unicase/locale-language-tests (Files): Likewise.
34042         * modules/unicase/tolower-tests (Files): Likewise.
34043         * modules/unicase/totitle-tests (Files): Likewise.
34044         * modules/unicase/toupper-tests (Files): Likewise.
34045         * modules/unicase/u8-casecmp-tests (Files): Likewise.
34046         * modules/unicase/u8-casecoll-tests (Files): Likewise.
34047         * modules/unicase/u8-casefold-tests (Files): Likewise.
34048         * modules/unicase/u8-is-cased-tests (Files): Likewise.
34049         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
34050         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
34051         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
34052         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
34053         * modules/unicase/u8-tolower-tests (Files): Likewise.
34054         * modules/unicase/u8-totitle-tests (Files): Likewise.
34055         * modules/unicase/u8-toupper-tests (Files): Likewise.
34056         * modules/unicase/u16-casecmp-tests (Files): Likewise.
34057         * modules/unicase/u16-casecoll-tests (Files): Likewise.
34058         * modules/unicase/u16-casefold-tests (Files): Likewise.
34059         * modules/unicase/u16-is-cased-tests (Files): Likewise.
34060         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
34061         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
34062         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
34063         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
34064         * modules/unicase/u16-tolower-tests (Files): Likewise.
34065         * modules/unicase/u16-totitle-tests (Files): Likewise.
34066         * modules/unicase/u16-toupper-tests (Files): Likewise.
34067         * modules/unicase/u32-casecmp-tests (Files): Likewise.
34068         * modules/unicase/u32-casecoll-tests (Files): Likewise.
34069         * modules/unicase/u32-casefold-tests (Files): Likewise.
34070         * modules/unicase/u32-is-cased-tests (Files): Likewise.
34071         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
34072         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
34073         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
34074         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
34075         * modules/unicase/u32-tolower-tests (Files): Likewise.
34076         * modules/unicase/u32-totitle-tests (Files): Likewise.
34077         * modules/unicase/u32-toupper-tests (Files): Likewise.
34078         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
34079         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
34080         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
34081         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
34082         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
34083         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
34084         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
34085         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
34086         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
34087         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
34088         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
34089         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
34090         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
34091         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
34092         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
34093         * modules/unictype/bidicategory-name-tests (Files): Likewise.
34094         * modules/unictype/bidicategory-of-tests (Files): Likewise.
34095         * modules/unictype/bidicategory-test-tests (Files): Likewise.
34096         * modules/unictype/block-list-tests (Files): Likewise.
34097         * modules/unictype/block-of-tests (Files): Likewise.
34098         * modules/unictype/block-test-tests (Files): Likewise.
34099         * modules/unictype/category-C-tests (Files): Likewise.
34100         * modules/unictype/category-Cc-tests (Files): Likewise.
34101         * modules/unictype/category-Cf-tests (Files): Likewise.
34102         * modules/unictype/category-Cn-tests (Files): Likewise.
34103         * modules/unictype/category-Co-tests (Files): Likewise.
34104         * modules/unictype/category-Cs-tests (Files): Likewise.
34105         * modules/unictype/category-L-tests (Files): Likewise.
34106         * modules/unictype/category-Ll-tests (Files): Likewise.
34107         * modules/unictype/category-Lm-tests (Files): Likewise.
34108         * modules/unictype/category-Lo-tests (Files): Likewise.
34109         * modules/unictype/category-Lt-tests (Files): Likewise.
34110         * modules/unictype/category-Lu-tests (Files): Likewise.
34111         * modules/unictype/category-M-tests (Files): Likewise.
34112         * modules/unictype/category-Mc-tests (Files): Likewise.
34113         * modules/unictype/category-Me-tests (Files): Likewise.
34114         * modules/unictype/category-Mn-tests (Files): Likewise.
34115         * modules/unictype/category-N-tests (Files): Likewise.
34116         * modules/unictype/category-Nd-tests (Files): Likewise.
34117         * modules/unictype/category-Nl-tests (Files): Likewise.
34118         * modules/unictype/category-No-tests (Files): Likewise.
34119         * modules/unictype/category-P-tests (Files): Likewise.
34120         * modules/unictype/category-Pc-tests (Files): Likewise.
34121         * modules/unictype/category-Pd-tests (Files): Likewise.
34122         * modules/unictype/category-Pe-tests (Files): Likewise.
34123         * modules/unictype/category-Pf-tests (Files): Likewise.
34124         * modules/unictype/category-Pi-tests (Files): Likewise.
34125         * modules/unictype/category-Po-tests (Files): Likewise.
34126         * modules/unictype/category-Ps-tests (Files): Likewise.
34127         * modules/unictype/category-S-tests (Files): Likewise.
34128         * modules/unictype/category-Sc-tests (Files): Likewise.
34129         * modules/unictype/category-Sk-tests (Files): Likewise.
34130         * modules/unictype/category-Sm-tests (Files): Likewise.
34131         * modules/unictype/category-So-tests (Files): Likewise.
34132         * modules/unictype/category-Z-tests (Files): Likewise.
34133         * modules/unictype/category-Zl-tests (Files): Likewise.
34134         * modules/unictype/category-Zp-tests (Files): Likewise.
34135         * modules/unictype/category-Zs-tests (Files): Likewise.
34136         * modules/unictype/category-and-not-tests (Files): Likewise.
34137         * modules/unictype/category-and-tests (Files): Likewise.
34138         * modules/unictype/category-byname-tests (Files): Likewise.
34139         * modules/unictype/category-name-tests (Files): Likewise.
34140         * modules/unictype/category-none-tests (Files): Likewise.
34141         * modules/unictype/category-of-tests (Files): Likewise.
34142         * modules/unictype/category-or-tests (Files): Likewise.
34143         * modules/unictype/category-test-withtable-tests (Files): Likewise.
34144         * modules/unictype/combining-class-tests (Files): Likewise.
34145         * modules/unictype/ctype-alnum-tests (Files): Likewise.
34146         * modules/unictype/ctype-alpha-tests (Files): Likewise.
34147         * modules/unictype/ctype-blank-tests (Files): Likewise.
34148         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
34149         * modules/unictype/ctype-digit-tests (Files): Likewise.
34150         * modules/unictype/ctype-graph-tests (Files): Likewise.
34151         * modules/unictype/ctype-lower-tests (Files): Likewise.
34152         * modules/unictype/ctype-print-tests (Files): Likewise.
34153         * modules/unictype/ctype-punct-tests (Files): Likewise.
34154         * modules/unictype/ctype-space-tests (Files): Likewise.
34155         * modules/unictype/ctype-upper-tests (Files): Likewise.
34156         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
34157         * modules/unictype/decimal-digit-tests (Files): Likewise.
34158         * modules/unictype/digit-tests (Files): Likewise.
34159         * modules/unictype/mirror-tests (Files): Likewise.
34160         * modules/unictype/numeric-tests (Files): Likewise.
34161         * modules/unictype/property-alphabetic-tests (Files): Likewise.
34162         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
34163         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
34164         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
34165         Likewise.
34166         * modules/unictype/property-bidi-block-separator-tests (Files):
34167         Likewise.
34168         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
34169         Likewise.
34170         * modules/unictype/property-bidi-common-separator-tests (Files):
34171         Likewise.
34172         * modules/unictype/property-bidi-control-tests (Files): Likewise.
34173         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
34174         Likewise.
34175         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
34176         Likewise.
34177         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
34178         Likewise.
34179         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
34180         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
34181         Likewise.
34182         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
34183         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
34184         Likewise.
34185         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
34186         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
34187         * modules/unictype/property-bidi-segment-separator-tests (Files):
34188         Likewise.
34189         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
34190         * modules/unictype/property-byname-tests (Files): Likewise.
34191         * modules/unictype/property-combining-tests (Files): Likewise.
34192         * modules/unictype/property-composite-tests (Files): Likewise.
34193         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
34194         * modules/unictype/property-dash-tests (Files): Likewise.
34195         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
34196         * modules/unictype/property-default-ignorable-code-point-tests (Files):
34197         Likewise.
34198         * modules/unictype/property-deprecated-tests (Files): Likewise.
34199         * modules/unictype/property-diacritic-tests (Files): Likewise.
34200         * modules/unictype/property-extender-tests (Files): Likewise.
34201         * modules/unictype/property-format-control-tests (Files): Likewise.
34202         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
34203         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
34204         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
34205         * modules/unictype/property-hex-digit-tests (Files): Likewise.
34206         * modules/unictype/property-hyphen-tests (Files): Likewise.
34207         * modules/unictype/property-id-continue-tests (Files): Likewise.
34208         * modules/unictype/property-id-start-tests (Files): Likewise.
34209         * modules/unictype/property-ideographic-tests (Files): Likewise.
34210         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
34211         * modules/unictype/property-ids-trinary-operator-tests (Files):
34212         Likewise.
34213         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
34214         * modules/unictype/property-iso-control-tests (Files): Likewise.
34215         * modules/unictype/property-join-control-tests (Files): Likewise.
34216         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
34217         * modules/unictype/property-line-separator-tests (Files): Likewise.
34218         * modules/unictype/property-logical-order-exception-tests (Files):
34219         Likewise.
34220         * modules/unictype/property-lowercase-tests (Files): Likewise.
34221         * modules/unictype/property-math-tests (Files): Likewise.
34222         * modules/unictype/property-non-break-tests (Files): Likewise.
34223         * modules/unictype/property-not-a-character-tests (Files): Likewise.
34224         * modules/unictype/property-numeric-tests (Files): Likewise.
34225         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
34226         * modules/unictype/property-other-default-ignorable-code-point-tests
34227         (Files): Likewise.
34228         * modules/unictype/property-other-grapheme-extend-tests (Files):
34229         Likewise.
34230         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
34231         * modules/unictype/property-other-id-start-tests (Files): Likewise.
34232         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
34233         * modules/unictype/property-other-math-tests (Files): Likewise.
34234         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
34235         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
34236         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
34237         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
34238         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
34239         * modules/unictype/property-private-use-tests (Files): Likewise.
34240         * modules/unictype/property-punctuation-tests (Files): Likewise.
34241         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
34242         * modules/unictype/property-radical-tests (Files): Likewise.
34243         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
34244         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
34245         * modules/unictype/property-space-tests (Files): Likewise.
34246         * modules/unictype/property-terminal-punctuation-tests (Files):
34247         Likewise.
34248         * modules/unictype/property-test-tests (Files): Likewise.
34249         * modules/unictype/property-titlecase-tests (Files): Likewise.
34250         * modules/unictype/property-unassigned-code-value-tests (Files):
34251         Likewise.
34252         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
34253         * modules/unictype/property-uppercase-tests (Files): Likewise.
34254         * modules/unictype/property-variation-selector-tests (Files): Likewise.
34255         * modules/unictype/property-white-space-tests (Files): Likewise.
34256         * modules/unictype/property-xid-continue-tests (Files): Likewise.
34257         * modules/unictype/property-xid-start-tests (Files): Likewise.
34258         * modules/unictype/property-zero-width-tests (Files): Likewise.
34259         * modules/unictype/scripts-tests (Files): Likewise.
34260         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
34261         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
34262         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
34263         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
34264         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
34265         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
34266         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
34267         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
34268         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
34269         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
34270         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
34271         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
34272         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
34273         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
34274         * modules/uninorm/composition-tests (Files): Likewise.
34275         * modules/uninorm/decomposing-form-tests (Files): Likewise.
34276         * modules/uninorm/decomposition-tests (Files): Likewise.
34277         * modules/uninorm/filter-tests (Files): Likewise.
34278         * modules/uninorm/nfc-tests (Files): Likewise.
34279         * modules/uninorm/nfd-tests (Files): Likewise.
34280         * modules/uninorm/nfkc-tests (Files): Likewise.
34281         * modules/uninorm/nfkd-tests (Files): Likewise.
34282         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
34283         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
34284         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
34285         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
34286         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
34287         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
34288         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
34289         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34290         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
34291         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
34292         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
34293         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
34294         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34295         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
34296         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
34297         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
34298         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
34299         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34300         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
34301         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
34302         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
34303         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
34304         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34305         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
34306         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
34307         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
34308         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
34309         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
34310         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
34311         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
34312         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
34313         * modules/uniwidth/u8-width-tests (Files): Likewise.
34314         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
34315         * modules/uniwidth/u16-width-tests (Files): Likewise.
34316         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
34317         * modules/uniwidth/u32-width-tests (Files): Likewise.
34318         * modules/uniwidth/width-tests (Files): Likewise.
34319         * modules/unlink-tests (Files): Likewise.
34320         * modules/unsetenv-tests (Files): Likewise.
34321         * modules/usleep-tests (Files): Likewise.
34322         * modules/utimens-tests (Files): Likewise.
34323         * modules/utimensat-tests (Files): Likewise.
34324         * modules/vasnprintf-posix-tests (Files): Likewise.
34325         * modules/vasnprintf-tests (Files): Likewise.
34326         * modules/vasprintf-posix-tests (Files): Likewise.
34327         * modules/vasprintf-tests (Files): Likewise.
34328         * modules/vdprintf-posix-tests (Files): Likewise.
34329         * modules/vfprintf-posix-tests (Files): Likewise.
34330         * modules/vprintf-posix-tests (Files): Likewise.
34331         * modules/vsnprintf-posix-tests (Files): Likewise.
34332         * modules/vsnprintf-tests (Files): Likewise.
34333         * modules/vsprintf-posix-tests (Files): Likewise.
34334         * modules/wcrtomb-tests (Files): Likewise.
34335         * modules/wcsnrtombs-tests (Files): Likewise.
34336         * modules/wcsrtombs-tests (Files): Likewise.
34337         * modules/wctype-tests (Files): Likewise.
34338         * modules/wcwidth-tests (Files): Likewise.
34339         * modules/xmemdup0-tests (Files): Likewise.
34340         * modules/xprintf-posix-tests (Files): Likewise.
34341         * modules/xvasprintf-tests (Files): Likewise.
34342
34343 2009-12-24  Eric Blake  <ebb9@byu.net>
34344
34345         test-nanosleep: fix typo
34346         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
34347         patch.
34348         Reported by Bruno Haible.
34349
34350 2009-12-24  Bruno Haible  <bruno@clisp.org>
34351
34352         Reduce namespace pollution on glibc systems.
34353         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
34354         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
34355         systems.
34356         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
34357         <getopt.h> on glibc systems.
34358         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
34359         systems.
34360         * lib/fcntl.c: Include <unistd.h> here instead.
34361
34362 2009-12-24  Bruno Haible  <bruno@clisp.org>
34363
34364         * lib/stdlib.in.h (includes): Fix typo in today's commit.
34365
34366 2009-12-24  Eric Blake  <ebb9@byu.net>
34367
34368         tests: add signature checks
34369         * tests/signature.h (SIGNATURE_CHECK): New file.
34370         * modules/atexit-tests (Files): Use it.
34371         * modules/btowc-tests (Files): Likewise.
34372         * modules/canonicalize-lgpl-tests (Files): Likewise.
34373         * modules/ceilf-tests (Files): Likewise.
34374         * modules/ceill-tests (Files): Likewise.
34375         * modules/chown-tests (Files): Likewise.
34376         * modules/dprintf-posix-tests (Files): Likewise.
34377         * modules/dup2-tests (Files): Likewise.
34378         * modules/dup3-tests (Files): Likewise.
34379         * modules/duplocale-tests (Files): Likewise.
34380         * modules/fchdir-tests (Files): Likewise.
34381         * modules/fcntl-tests (Files): Likewise.
34382         * modules/fdopendir-tests (Files): Likewise.
34383         * modules/fflush-tests (Files): Likewise.
34384         * modules/flock-tests (Files): Likewise.
34385         * modules/floorf-tests (Files): Likewise.
34386         * modules/floorl-tests (Files): Likewise.
34387         * modules/fnmatch-tests (Files): Likewise.
34388         * modules/fopen-tests (Files): Likewise.
34389         * modules/fprintf-posix-tests (Files): Likewise.
34390         * modules/freopen-tests (Files): Likewise.
34391         * modules/frexp-nolibm-tests (Files): Likewise.
34392         * modules/frexp-tests (Files): Likewise.
34393         * modules/frexpl-nolibm-tests (Files): Likewise.
34394         * modules/frexpl-tests (Files): Likewise.
34395         * modules/fseek-tests (Files): Likewise.
34396         * modules/fseeko-tests (Files): Likewise.
34397         * modules/fsync-tests (Files): Likewise.
34398         * modules/ftell-tests (Files): Likewise.
34399         * modules/ftello-tests (Files): Likewise.
34400         * modules/futimens-tests (Files): Likewise.
34401         * modules/getaddrinfo-tests (Files): Likewise.
34402         * modules/getcwd-tests (Files): Likewise.
34403         * modules/getdelim-tests (Files): Likewise.
34404         * modules/getdtablesize-tests (Files): Likewise.
34405         * modules/getgroups-tests (Files): Likewise.
34406         * modules/gethostname-tests (Files): Likewise.
34407         * modules/getline-tests (Files): Likewise.
34408         * modules/getopt-posix-tests (Files): Likewise.
34409         * modules/gettimeofday-tests (Files): Likewise.
34410         * modules/glob-tests (Files): Likewise.
34411         * modules/iconv-tests (Files): Likewise.
34412         * modules/inet_ntop-tests (Files): Likewise.
34413         * modules/inet_pton-tests (Files): Likewise.
34414         * modules/isblank-tests (Files): Likewise.
34415         * modules/lchown-tests (Files): Likewise.
34416         * modules/ldexpl-tests (Files): Likewise.
34417         * modules/link-tests (Files): Likewise.
34418         * modules/linkat-tests (Files): Likewise.
34419         * modules/lseek-tests (Files): Likewise.
34420         * modules/lstat-tests (Files): Likewise.
34421         * modules/mbrtowc-tests (Files): Likewise.
34422         * modules/mbsinit-tests (Files): Likewise.
34423         * modules/mbsnrtowcs-tests (Files): Likewise.
34424         * modules/mbsrtowcs-tests (Files): Likewise.
34425         * modules/memchr-tests (Files): Likewise.
34426         * modules/memcmp-tests (Files): Likewise.
34427         * modules/memmem-tests (Files): Likewise.
34428         * modules/memrchr-tests (Files): Likewise.
34429         * modules/mkdir-tests (Files): Likewise.
34430         * modules/mkfifo-tests (Files): Likewise.
34431         * modules/mkfifoat-tests (Files): Likewise.
34432         * modules/mknod-tests (Files): Likewise.
34433         * modules/nanosleep-tests (Files): Likewise.
34434         * modules/nl_langinfo-tests (Files): Likewise.
34435         * modules/obstack-printf-tests (Files): Likewise.
34436         * modules/open-tests (Files): Likewise.
34437         * modules/openat-tests (Files): Likewise.
34438         * modules/perror-tests (Files): Likewise.
34439         * modules/pipe2-tests (Files): Likewise.
34440         * modules/poll-tests (Files): Likewise.
34441         * modules/popen-tests (Files): Likewise.
34442         * modules/posix_spawn-tests (Files): Likewise.
34443         * modules/posix_spawnp-tests (Files): Likewise.
34444         * modules/pread-tests (Files): Likewise.
34445         * modules/printf-posix-tests (Files): Likewise.
34446         * modules/pty-tests (Files): Likewise.
34447         * modules/random_r-tests (Files): Likewise.
34448         * modules/rawmemchr-tests (Files): Likewise.
34449         * modules/readlink-tests (Files): Likewise.
34450         * modules/remove-tests (Files): Likewise.
34451         * modules/rename-tests (Files): Likewise.
34452         * modules/renameat-tests (Files): Likewise.
34453         * modules/rmdir-tests (Files): Likewise.
34454         * modules/round-tests (Files): Likewise.
34455         * modules/roundf-tests (Files): Likewise.
34456         * modules/roundl-tests (Files): Likewise.
34457         * modules/select-tests (Files): Likewise.
34458         * modules/setenv-tests (Files): Likewise.
34459         * modules/sigaction-tests (Files): Likewise.
34460         * modules/sleep-tests (Files): Likewise.
34461         * modules/snprintf-posix-tests (Files): Likewise.
34462         * modules/snprintf-tests (Files): Likewise.
34463         * modules/sprintf-posix-tests (Files): Likewise.
34464         * modules/stat-tests (Files): Likewise.
34465         * modules/strcasestr-tests (Files): Likewise.
34466         * modules/strchrnul-tests (Files): Likewise.
34467         * modules/strerror-tests (Files): Likewise.
34468         * modules/strsignal-tests (Files): Likewise.
34469         * modules/strstr-tests (Files): Likewise.
34470         * modules/strtod-tests (Files): Likewise.
34471         * modules/strverscmp-tests (Files): Likewise.
34472         * modules/symlink-tests (Files): Likewise.
34473         * modules/symlinkat-tests (Files): Likewise.
34474         * modules/times-tests (Files): Likewise.
34475         * modules/trunc-tests (Files): Likewise.
34476         * modules/truncf-tests (Files): Likewise.
34477         * modules/truncl-tests (Files): Likewise.
34478         * modules/tsearch-tests (Files): Likewise.
34479         * modules/uname-tests (Files): Likewise.
34480         * modules/unlink-tests (Files): Likewise.
34481         * modules/unsetenv-tests (Files): Likewise.
34482         * modules/usleep-tests (Files): Likewise.
34483         * modules/utimensat-tests (Files): Likewise.
34484         * modules/vasprintf-tests (Files): Likewise.
34485         * modules/vdprintf-posix-tests (Files): Likewise.
34486         * modules/vfprintf-posix-tests (Files): Likewise.
34487         * modules/vprintf-posix-tests (Files): Likewise.
34488         * modules/vsnprintf-posix-tests (Files): Likewise.
34489         * modules/vsnprintf-tests (Files): Likewise.
34490         * modules/vsprintf-posix-tests (Files): Likewise.
34491         * modules/wcrtomb-tests (Files): Likewise.
34492         * modules/wcsnrtombs-tests (Files): Likewise.
34493         * modules/wcsrtombs-tests (Files): Likewise.
34494         * modules/wcwidth-tests (Files): Likewise.
34495         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
34496         * tests/test-isinf.c (isinf): Likewise.
34497         * tests/test-isnan.c (isnan): Likewise.
34498         * tests/test-signbit.c (signbit): Likewise.
34499         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
34500         declaration, either as macro or with correct signature.
34501         (select): Ensure function under test is declared with correct
34502         signature in correct header.
34503         * tests/test-atexit.c (atexit): Likewise.
34504         * tests/test-btowc.c (btowc): Likewise.
34505         * tests/test-canonicalize-lgpl.c (realpath)
34506         (canonicalize_file_name): Likewise.
34507         * tests/test-ceilf1.c (ceilf): Likewise.
34508         * tests/test-ceill.c (ceill): Likewise.
34509         * tests/test-chown.c (chown): Likewise.
34510         * tests/test-dprintf-posix.c (dprintf): Likewise.
34511         * tests/test-dup2.c (dup2): Likewise.
34512         * tests/test-dup3.c (dup3): Likewise.
34513         * tests/test-duplocale.c (duplocale): Likewise.
34514         * tests/test-fchdir.c (fchdir): Likewise.
34515         * tests/test-fchownat.c (fchownat): Likewise.
34516         * tests/test-fcntl.c (fcntl): Likewise.
34517         * tests/test-fdopendir.c (fdopendir): Likewise.
34518         * tests/test-fflush.c (fflush): Likewise.
34519         * tests/test-flock.c (flock): Likewise.
34520         * tests/test-floorf1.c (floorf): Likewise.
34521         * tests/test-floorl.c (floorl): Likewise.
34522         * tests/test-fnmatch.c (fnmatch): Likewise.
34523         * tests/test-fopen.c (fopen): Likewise.
34524         * tests/test-fprintf-posix.c (fprintf): Likewise.
34525         * tests/test-freopen.c (freopen): Likewise.
34526         * tests/test-frexp.c (frexp): Likewise.
34527         * tests/test-frexpl.c (frexpl): Likewise.
34528         * tests/test-fseek.c (fseek): Likewise.
34529         * tests/test-fseeko.c (fseeko): Likewise.
34530         * tests/test-fstatat.c (fstatat): Likewise.
34531         * tests/test-fsync.c (fsync): Likewise.
34532         * tests/test-ftell.c (ftell): Likewise.
34533         * tests/test-ftello.c (ftello): Likewise.
34534         * tests/test-futimens.c (futimens): Likewise.
34535         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
34536         (gai_strerror): Likewise.
34537         * tests/test-getcwd.c (getcwd): Likewise.
34538         * tests/test-getdelim.c (getdelim): Likewise.
34539         * tests/test-getdtablesize.c (getdtablesize): Likewise.
34540         * tests/test-getgroups.c (getgroups): Likewise.
34541         * tests/test-gethostname.c (gethostname): Likewise.
34542         * tests/test-getline.c (getline): Likewise.
34543         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
34544         Likewise.
34545         * tests/test-gettimeofday.c (gettimeofday): Likewise.
34546         * tests/test-glob.c (glob, globfree): Likewise.
34547         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
34548         * tests/test-inet_ntop.c (inet_ntop): Likewise.
34549         * tests/test-inet_pton.c (inet_pton): Likewise.
34550         * tests/test-isblank.c (isblank): Likewise.
34551         * tests/test-lchown.c (lchown): Likewise.
34552         * tests/test-ldexpl.c (ldexpl): Likewise.
34553         * tests/test-link.c (link): Likewise.
34554         * tests/test-linkat.c (linkat): Likewise.
34555         * tests/test-lseek.c (lseek): Likewise.
34556         * tests/test-lstat.c (lstat): Likewise.
34557         * tests/test-mbrtowc.c (mbrtowc): Likewise.
34558         * tests/test-mbsinit.c (mbsinit): Likewise.
34559         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
34560         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
34561         * tests/test-memchr.c (memchr): Likewise.
34562         * tests/test-memcmp.c (memcmp): Likewise.
34563         * tests/test-memmem.c (memmem): Likewise.
34564         * tests/test-memrchr.c (memrchr): Likewise.
34565         * tests/test-mkdir.c (mkdir): Likewise.
34566         * tests/test-mkdirat.c (mkdirat): Likewise.
34567         * tests/test-mkfifo.c (mkfifo): Likewise.
34568         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
34569         * tests/test-mknod.c (mknod): Likewise.
34570         * tests/test-nanosleep.c (nanosleep): Likewise.
34571         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
34572         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
34573         Likewise.
34574         * tests/test-open.c (open): Likewise.
34575         * tests/test-openat.c (openat): Likewise.
34576         * tests/test-perror.c (perror): Likewise.
34577         * tests/test-pipe2.c (pipe2): Likewise.
34578         * tests/test-poll.c (poll): Likewise.
34579         * tests/test-popen.c (popen, pclose): Likewise.
34580         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
34581         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
34582         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
34583         (posix_spawn_file_actions_destroy)
34584         (posix_spawn_file_actions_addclose)
34585         (posix_spawn_file_actions_addopen)
34586         (posix_spawn_file_actions_adddup2): Likewise.
34587         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
34588         * tests/test-pread.c (pread): Likewise.
34589         * tests/test-printf-posix.c (printf): Likewise.
34590         * tests/test-pty.c (openpty, forkpty): Likewise.
34591         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
34592         (random_r): Likewise.
34593         * tests/test-rawmemchr.c (rawmemchr): Likewise.
34594         * tests/test-readlink.c (readlink): Likewise.
34595         * tests/test-remove.c (remove): Likewise.
34596         * tests/test-rename.c (rename): Likewise.
34597         * tests/test-renameat.c (renameat): Likewise.
34598         * tests/test-rmdir.c (rmdir): Likewise.
34599         * tests/test-round1.c (round): Likewise.
34600         * tests/test-roundf1.c (roundf): Likewise.
34601         * tests/test-roundl.c (roundl): Likewise.
34602         * tests/test-setenv.c (setenv): Likewise.
34603         * tests/test-sigaction.c (sigaction): Likewise.
34604         * tests/test-sleep.c (sleep): Likewise.
34605         * tests/test-snprintf.c (snprintf): Likewise.
34606         * tests/test-sprintf-posix.c (sprintf): Likewise.
34607         * tests/test-stat.c (stat): Likewise.
34608         * tests/test-stpncpy.c (stpncpy): Likewise.
34609         * tests/test-strcasestr.c (strcasestr): Likewise.
34610         * tests/test-strchrnul.c (strchrnul): Likewise.
34611         * tests/test-strerror.c (strerror): Likewise.
34612         * tests/test-strsignal.c (strsignal): Likewise.
34613         * tests/test-strstr.c (strstr): Likewise.
34614         * tests/test-strtod.c (strtod): Likewise.
34615         * tests/test-strverscmp.c (strverscmp): Likewise.
34616         * tests/test-symlink.c (symlink): Likewise.
34617         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
34618         * tests/test-times.c (times): Likewise.
34619         * tests/test-trunc1.c (trunc): Likewise.
34620         * tests/test-truncf1.c (truncf): Likewise.
34621         * tests/test-truncl.c (truncl): Likewise.
34622         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
34623         Likewise.
34624         * tests/test-uname.c (uname): Likewise.
34625         * tests/test-unlink.c (unlink): Likewise.
34626         * tests/test-unlinkat.c (unlinkat): Likewise.
34627         * tests/test-unsetenv.c (unsetenv): Likewise.
34628         * tests/test-usleep.c (usleep): Likewise.
34629         * tests/test-utimensat.c (utimensat): Likewise.
34630         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
34631         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
34632         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
34633         * tests/test-vprintf-posix.c (vprintf): Likewise.
34634         * tests/test-vsnprintf.c (vsnprintf): Likewise.
34635         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
34636         * tests/test-wcrtomb.c (wcrtomb): Likewise.
34637         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
34638         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
34639         * tests/test-wcwidth.c (wcwidth): Likewise.
34640
34641         build: pull in conditional headers during GNULIB_POSIXCHECK
34642         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
34643         definitions from any conditionally-included headers.
34644         * lib/stdlib.in.h (includes): Likewise.
34645         * lib/unistd.in.h (includes): Likewise.
34646
34647 2009-12-24  Bruno Haible  <bruno@clisp.org>
34648
34649         * tests/test-argv-iter.c: Include header file being tested immediately
34650         after config.h.
34651         * tests/test-base64.c: Likewise.
34652         * tests/test-flock.c: Likewise.
34653         * tests/test-fsync.c: Likewise.
34654         * tests/test-getdate.c: Likewise.
34655         * tests/test-getndelim2.c: Likewise.
34656         * tests/test-isfinite.c: Likewise.
34657         * tests/test-isinf.c: Likewise.
34658         * tests/test-strerror.c: Likewise.
34659         * tests/test-strsignal.c: Likewise.
34660
34661 2009-12-23  Eric Blake  <ebb9@byu.net>
34662
34663         unistd: work around cygwin bug
34664         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
34665         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
34666         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34667
34668 2009-12-23  Bruno Haible  <bruno@clisp.org>
34669
34670         localename: More tests.
34671         * tests/test-localename.c (SIZEOF): New macro.
34672         (categories): New variable.
34673         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
34674         test_locale_name_default): Add test w.r.t. thread locale.
34675         (test_locale_name_thread): New function.
34676         (main): Invoke it.
34677
34678         localename: Make aware of thread locale.
34679         * lib/localename.h (gl_locale_name_thread): New declaration.
34680         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
34681         behaviour with respect to thread locale.
34682         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
34683         <langinfo.h>, glthread/lock.h.
34684         (SIZE_BITS): New macro.
34685         (string_hash): New function.
34686         (struct hash_node): New type.
34687         (HASH_TABLE_SIZE): New macro.
34688         (struniq_hash_table, struniq_lock): New variables.
34689         (struniq): New function.
34690         (gl_locale_name_thread): New function.
34691         (gl_locale_name): Invoke it.
34692         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
34693         * modules/localename (Depends-on): Add lock.
34694         Reported by Mike Gran <spk121@yahoo.com>.
34695
34696 2009-12-23  Eric Blake  <ebb9@byu.net>
34697
34698         va-args: new module
34699         * modules/va-args: New file.
34700         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
34701         * MODULES.html.sh (Core language properties): Mention it.
34702
34703         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
34704         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
34705         named alias for __attribute__((__unused__)).
34706         * lib/chown.c: Update client.
34707         * lib/fchmodat.c: Likewise.
34708         * lib/fts.c: Likewise.
34709         * lib/getdate.y: Likewise.
34710         * lib/getgroups.c: Likewise.
34711         * lib/getopt.c: Likewise.
34712         * lib/getugroups.c: Likewise.
34713         * lib/mkdir.c: Likewise.
34714         * lib/mkfifo.c: Likewise.
34715         * lib/mkfifoat.c: Likewise.
34716         * lib/mknod.c: Likewise.
34717         * lib/mknodat.c: Likewise.
34718         * lib/readlink.c: Likewise.
34719         * lib/se-context.in.h: Likewise.
34720         * lib/se-selinux.in.h: Likewise.
34721         * lib/sockets.c: Likewise.
34722         * lib/symlink.c: Likewise.
34723         * lib/symlinkat.c: Likewise.
34724         * lib/unicodeio.c: Likewise.
34725         * lib/unistr.h: Likewise.
34726         * tests/test-areadlink.c: Likewise.
34727         * tests/test-areadlinkat.c: Likewise.
34728         * tests/test-filenamecat.c: Likewise.
34729         * tests/test-fseeko.c: Likewise.
34730         * tests/test-ftello.c: Likewise.
34731         * tests/test-getdate.c: Likewise.
34732         * tests/test-getgroups.c: Likewise.
34733         * tests/test-gethostname.c: Likewise.
34734         * tests/test-quotearg.c: Likewise.
34735         * tests/test-version-etc.c: Likewise.
34736         * tests/test-xalloc-die.c: Likewise.
34737         * tests/test-xfprintf-posix.c: Likewise.
34738         * tests/test-xprintf-posix.c: Likewise.
34739         * tests/test-xvasprintf.c: Likewise.
34740
34741         tests: avoid compiler warnings
34742         * tests/test-fcntl.c (main): Delete unused parameters.
34743         * tests/test-freopen-safer.c (main): Likewise.
34744         * tests/test-xalloc-die.c (main): Mark unused parameters.
34745         * tests/test-fseeko.c (main): Likewise.
34746         * tests/test-ftello.c (main): Likewise.
34747         * tests/test-nanosleep.c (main): Avoid declaration warning.
34748         * tests/test-sleep.c (main): Likewise.
34749         * tests/test-unsetenv.c (main): Silence warning about string
34750         literal.
34751         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
34752
34753 2009-12-23  Bruno Haible  <bruno@clisp.org>
34754
34755         * tests/test-localename.c (test_locale_name): New function, extracted
34756         from main. Also test mixed situations.
34757         (test_locale_name_posix, test_locale_name_environ,
34758         test_locale_name_default): New functions.
34759         (main): Invoke them all.
34760         * modules/localename-tests (configure.ac): Test for newlocale.
34761
34762 2009-12-23  Bruno Haible  <bruno@clisp.org>
34763
34764         unistd: Ensure getcwd gets declared before being overridden.
34765         * lib/unistd.in.h: Conditionally include <io.h>.
34766
34767 2009-12-22  Bruno Haible  <bruno@clisp.org>
34768
34769         wchar: Diagnose broken combination of glibc and gcc versions and flags.
34770         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
34771         (gl_WCHAR_H): Invoke it.
34772         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
34773         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
34774         Reported by Karl Berry <karl@freefriends.org>.
34775
34776 2009-12-22  Eric Blake  <ebb9@byu.net>
34777
34778         math, unistd: avoid redundant includes
34779         * lib/math.in.h (isnan): No need to re-include <math.h>.
34780         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
34781
34782         getsubopt: work around cygwin bug
34783         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
34784         avoid conflicting with system getsubopt.
34785         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
34786         bug.
34787
34788         getopt: synchronize from glibc
34789         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
34790         parameter order.  Adjust all callers.
34791         (_getopt_internal_r, main): Adjust quoting in error messages.
34792         Drop considerations for outdated POSIX 1003.2 error message.
34793         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
34794         callers.
34795         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
34796
34797         test-getopt: test stderr behavior
34798         * modules/getopt-posix-tests (Depends-on): Add dup2.
34799         * tests/test-getopt.c (ASSERT): Avoid stderr.
34800         (main): Move stderr to a temporary file.
34801         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
34802         Instead, add parameter to inform caller if output occurred.
34803         (test_getopt): Adjust all existing tests to expect silence, and
34804         add new tests of leading ":".
34805         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34806         glibc shortcomings with leading "-:" or "+:" in optstring.
34807         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34808         Likewise.
34809         * doc/posix-functions/getopt.texi (getopt): Likewise.
34810
34811         test-getopt: enhance test
34812         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
34813         supports optind=0.
34814         * tests/test-getopt.c (OPTIND_MIN): Move...
34815         * tests/test-getopt.h (OPTIND_MIN): ...here.
34816         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
34817         Require that optind=0 works, since modern BSD supports it in
34818         addition to optreset, and since coreutils expects it.
34819         (test_getopt_long_only): New test.
34820         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
34821         glibc shortcomings with 'W;', and enforcement of optind=0.
34822         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34823         Likewise.
34824
34825 2009-12-21  Bruno Haible  <bruno@clisp.org>
34826
34827         localename: Improvements for MacOS X and Cygwin.
34828         * lib/localename.h (gl_locale_name_environ): New declaration.
34829         * lib/localename.c (gl_locale_name_environ): New function, extracted from
34830         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
34831         (gl_locale_name_posix): Invoke it.
34832         (gl_locale_name_default): Add comments. Use Windows native API also on
34833         Cygwin.
34834
34835 2009-12-21  Bruno Haible  <bruno@clisp.org>
34836
34837         Update list of Win32 locale ids.
34838         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
34839         (LANG_SAMI): Renamed from LANG_SAAMI.
34840         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
34841         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
34842         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
34843         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
34844         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
34845         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
34846         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
34847         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
34848         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
34849         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
34850         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
34851         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
34852         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
34853         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
34854         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
34855         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
34856         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
34857         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
34858         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
34859         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
34860         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
34861         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
34862         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
34863         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
34864         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
34865         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
34866         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
34867         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
34868         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
34869         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
34870         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
34871         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
34872         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
34873         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
34874         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
34875         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
34876         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
34877         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
34878         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
34879         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
34880         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
34881         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
34882         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
34883         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
34884         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
34885         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
34886         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
34887         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
34888         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
34889         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
34890         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
34891         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
34892         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
34893         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
34894         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
34895         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
34896         Add more languages and countries for Sami, Sorbian. Add more countries
34897         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
34898         for Pashto. Change country for Syriac, Tswana.
34899
34900 2009-12-21  Eric Blake  <ebb9@byu.net>
34901
34902         test-utimens: avoid spurious failure
34903         * tests/test-chown.h (nap): Factor...
34904         * tests/nap.h: ...into new file.
34905         * tests/test-lchown.h (nap): Avoid duplication.
34906         * tests/test-utimens-common.h (nap): Use shared implementation,
34907         necessary on file systems with 1-second resolution.
34908         * modules/chown-tests (Files): Include new file.
34909         * modules/fdutimensat-tests (Files): Likewise.
34910         * modules/futimens-tests (Files): Likewise.
34911         * modules/lchown-tests (Files): Likewise.
34912         * modules/openat-tests (Files): Likewise.
34913         * modules/utimens-tests (Files): Likewise.
34914         * modules/utimensat-tests (Files): Likewise.
34915
34916 2009-12-19  Eric Blake  <ebb9@byu.net>
34917
34918         futimens, utimensat: work around Linux bug
34919         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
34920         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34921         * lib/utimensat.c (rpl_utimensat): Work around it.
34922         * lib/futimens.c (rpl_futimens): Adjust comment.
34923
34924         utimens: work around Linux ctime bug
34925         * lib/utimens.c (detect_ctime_bug): New helper function.
34926         (update_timespec): Differentiate between workaround needed for
34927         this bug vs. what is needed for systems that lack utimensat.
34928         (fdutimens, lutimens): Work around bug.
34929
34930         utimens: check for ctime update
34931         * tests/test-utimens-common.h (check_ctime): Define.
34932         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
34933         * tests/test-futimens.h (test_futimens): Likewise.
34934         * tests/test-lutimens.h (test_lutimens): Likewise.
34935         * doc/posix-functions/futimens.texi (futimens): Document the bug.
34936         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34937
34938 2009-12-19  Bruno Haible  <bruno@clisp.org>
34939
34940         dprintf-posix: Check against memory leak fixed on 2009-12-15.
34941         * tests/test-dprintf-posix2.sh: New file.
34942         * tests/test-dprintf-posix2.c: New file.
34943         * modules/dprintf-posix-tests (Files): Add them.
34944         (configure.ac): Check for getrlimit and setrlimit.
34945         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34946
34947 2009-12-19  Bruno Haible  <bruno@clisp.org>
34948
34949         fprintf-posix: Check against memory leak fixed on 2009-12-15.
34950         * tests/test-fprintf-posix3.sh: New file.
34951         * tests/test-fprintf-posix3.c: New file.
34952         * modules/fprintf-posix-tests (Files): Add them.
34953         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
34954
34955 2009-12-19  Eric Blake  <ebb9@byu.net>
34956
34957         dirfd: fix prototype
34958         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
34959         * lib/dirfd.c (dirfd): Likewise.
34960
34961         canonicalize: reduce memory usage
34962         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
34963         allocation to size.
34964         Reported by Solar Designer <solar@openwall.com>.
34965
34966 2009-12-19  Bruno Haible  <bruno@clisp.org>
34967
34968         New module attribute 'Applicability'.
34969         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
34970         * gnulib-tool: New option --extract-applicability.
34971         (func_usage): Document it.
34972         (sed_extract_prog): Recognize it.
34973         (func_get_applicability): New function.
34974         (func_import): Generalize handling of 'link-warning' module.
34975         * modules/link-warning (Applicability): New section.
34976         * modules/arg-nonnull (Applicability): New section.
34977         Repoted by Simon Josefsson <simon@josefsson.org>.
34978
34979 2009-12-19  Bruno Haible  <bruno@clisp.org>
34980
34981         fflush: tweak
34982         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
34983         * lib/fseeko.c (rpl_fseeko): Likewise.
34984
34985 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
34986
34987         * lib/gl_list.h: Fix typo in comment.
34988
34989 2009-12-16  Eric Blake  <ebb9@byu.net>
34990
34991         fcntl: use to simplify other modules
34992         * modules/cloexec (Depends-on): Add fcntl.
34993         * modules/fchdir (Depends-on): Likewise.
34994         * modules/fd-safer-flag (Depends-on): Likewise.
34995         * modules/unistd-safer (Depends-on): Likewise.
34996         * modules/dup3 (configure.ac): Set module indicator.
34997         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
34998         missing.
34999         * lib/fchdir.c (_gl_register_dup): Fix comment.
35000         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
35001         * lib/dup-safer.c (dup_safer): Likewise.
35002         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
35003         * lib/dup3.c (dup3): Likewise.
35004         * tests/test-fchdir.c (main): Enhance test.
35005         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
35006
35007         fcntl: port portions of fcntl to mingw
35008         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
35009         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
35010         replacement for mingw.
35011         * modules/fcntl (Description): Update.
35012         (Depends-on): Add dup2.
35013         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
35014         * modules/fcntl-h (Makefile.am): Substitute it.
35015         * lib/fcntl.in.h (fcntl): Update declaration.
35016         (F_DUPFD, F_GETFD): New macros, when needed.
35017         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35018         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
35019         * tests/test-fcntl.c (check_flags, main): Enhance test for items
35020         we now guarantee.
35021
35022         fcntl: work around cygwin bug in F_DUPFD
35023         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
35024         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
35025         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
35026         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
35027         * doc/posix-functions/fcntl.texi (fcntl): Document it.
35028
35029         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
35030         * modules/fcntl (Files): List new files.
35031         (configure.ac): Run a test.
35032         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
35033         * lib/fcntl.c (rpl_fcntl): Likewise.
35034         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
35035         (gl_FCNTL_H): Always replace fcntl.h.
35036         * modules/fcntl-h (Makefile.am): Substitute witnesses.
35037         * lib/fcntl.in.h (fcntl): Declare replacement.
35038         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
35039         needed, plus a witness.
35040         * doc/posix-functions/fcntl.texi (fcntl): Document this.
35041         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35042         * tests/test-fcntl.c: New file.
35043         * modules/fcntl-tests: Likewise.
35044
35045         binary-io: avoid potential compilation warning
35046         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
35047         directives.
35048
35049         fflush: avoid compilation error on NetBSD
35050         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
35051         between off_t and fpos_t, since the latter is sometimes a struct.
35052         * lib/fseeko.c (rpl_fseeko): Likewise.
35053         Reported by Alexander Nasonov <alnsn@yandex.ru>.
35054
35055 2009-12-15  Eric Blake  <ebb9@byu.net>
35056
35057         fcntl-h, stdio, sys_ioctl: fix declarations
35058         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
35059         function must not take arguments.
35060         * lib/sys_ioctl.in.h (ioctl): Likewise.
35061         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
35062         (open): Add a link warning.
35063
35064 2009-12-15  Jim Meyering  <meyering@redhat.com>
35065
35066         areadlink, areadlink-with-size: relax license to LGPLv2+
35067         * modules/areadlink (License): Relax to LGPLv2+.
35068         * modules/areadlink-with-size (License): Likewise.
35069
35070 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
35071             Bruno Haible  <bruno@clisp.org>
35072
35073         *printf: Fix memory leak.
35074         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
35075         * lib/vfprintf.c (vfprintf): Likewise.
35076         * lib/dprintf.c (dprintf): Likewise.
35077         * lib/vdprintf.c (vdprintf): Likewise.
35078
35079 2009-12-14  Eric Blake  <ebb9@byu.net>
35080
35081         accept4: adjust module dependencies
35082         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
35083
35084         utimens: one more try at avoiding compiler warning
35085         * lib/utimens.c (lutimens): Lower scope of result.
35086
35087 2009-12-13  Bruno Haible  <bruno@clisp.org>
35088
35089         Move the malloc checking from module 'list' to new module 'xlist'.
35090         * modules/xlist: New file.
35091         * lib/gl_xlist.h: New file.
35092         * lib/gl_xlist.c: New file.
35093         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
35094         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
35095         gl_list_add_last, gl_list_add_before, gl_list_add_after,
35096         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
35097         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
35098         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
35099         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
35100         gl_sortedlist_nx_add): New declarations.
35101         (struct gl_list_implementation): Rename and change methods accordingly.
35102         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
35103         (gl_list_nx_create): Renamed from gl_list_create.
35104         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35105         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35106         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35107         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35108         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35109         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35110         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35111         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35112         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
35113         gl_list_create_empty.
35114         (gl_list_nx_create): Renamed from gl_list_create.
35115         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35116         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35117         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35118         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35119         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35120         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35121         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35122         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35123         * lib/gl_array_list.c: Don't include xalloc.h.
35124         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
35125         NULL upon out-of-memory.
35126         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
35127         out-of-memory.
35128         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
35129         Change return type to 'int'.
35130         (gl_array_nx_set_at): Renamed from gl_array_set_at.
35131         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35132         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
35133         upon out-of-memory.
35134         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
35135         upon out-of-memory.
35136         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
35137         upon out-of-memory.
35138         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
35139         upon out-of-memory.
35140         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
35141         out-of-memory.
35142         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
35143         Update.
35144         (gl_array_list_implementation): Update.
35145         * lib/gl_carray_list.c: Don't include xalloc.h.
35146         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
35147         Return NULL upon out-of-memory.
35148         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
35149         out-of-memory.
35150         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
35151         Change return type to 'int'.
35152         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
35153         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35154         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
35155         upon out-of-memory.
35156         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
35157         upon out-of-memory.
35158         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
35159         out-of-memory.
35160         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
35161         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
35162         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
35163         Update.
35164         (gl_carray_list_implementation): Update.
35165         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
35166         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
35167         gl_linked_create_empty. Return NULL upon out-of-memory.
35168         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
35169         out-of-memory.
35170         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
35171         Change return type to 'int'. Return -1 upon out-of-memory.
35172         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
35173         out-of-memory.
35174         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
35175         upon out-of-memory.
35176         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
35177         upon out-of-memory.
35178         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
35179         NULL upon out-of-memory.
35180         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
35181         upon out-of-memory.
35182         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
35183         out-of-memory.
35184         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
35185         Update.
35186         * lib/gl_linked_list.c: Don't include xalloc.h.
35187         (gl_linked_list_implementation): Update.
35188         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
35189         (add_to_bucket): Change return type to 'int'.
35190         (gl_linkedhash_list_implementation): Update.
35191         * lib/gl_anytree_list1.h (free_subtree): New function.
35192         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
35193         gl_tree_create_empty. Return NULL upon out-of-memory.
35194         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
35195         Change return type to 'int'. Return -1 upon out-of-memory.
35196         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
35197         out-of-memory.
35198         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
35199         (gl_tree_remove_node): New function, moved here from
35200         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
35201         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
35202         Update.
35203         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
35204         malloc, not xmalloc. Return NULL upon out-of-memory.
35205         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35206         out-of-memory.
35207         (gl_tree_remove_node_from_tree): New function, extracted from
35208         gl_tree_remove_node.
35209         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35210         upon out-of-memory.
35211         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35212         out-of-memory.
35213         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35214         upon out-of-memory.
35215         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35216         upon out-of-memory.
35217         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35218         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
35219         not xmalloc. Return NULL upon out-of-memory.
35220         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35221         out-of-memory.
35222         (gl_tree_remove_node_from_tree): New function, extracted from
35223         gl_tree_remove_node.
35224         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35225         upon out-of-memory.
35226         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35227         out-of-memory.
35228         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35229         upon out-of-memory.
35230         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35231         upon out-of-memory.
35232         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35233         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
35234         gl_anytree_list1.h before gl_anyavltree_list2.h.
35235         (gl_avltree_list_implementation): Update.
35236         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
35237         gl_anytree_list1.h before gl_anyavltree_list2.h.
35238         (gl_rbtree_list_implementation): Update.
35239         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
35240         Change return type to 'int'. Return -1 upon out-of-memory. Use
35241         __builtin_expect.
35242         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
35243         (gl_avltreehash_list_implementation): Update.
35244         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
35245         (gl_rbtreehash_list_implementation): Update.
35246         * modules/array-list (Depends-on): Remove xalloc.
35247         * modules/carray-list (Depends-on): Likewise.
35248         * modules/linked-list (Depends-on): Likewise.
35249         * modules/linkedhash-list (Depends-on): Likewise.
35250         * modules/avltree-list (Depends-on): Likewise.
35251         * modules/rbtree-list (Depends-on): Likewise.
35252         * modules/avltreehash-list (Depends-on): Likewise.
35253         * modules/rbtreehash-list (Depends-on): Likewise.
35254
35255         * modules/xsublist: New file.
35256         * lib/gl_xsublist.h: New file.
35257         * lib/gl_xsublist.c: New file.
35258         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
35259         (gl_sublist_nx_create): New declaration.
35260         * lib/gl_sublist.c: Don't include xalloc.h.
35261         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
35262         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
35263         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
35264         Change return type to 'int'. Return -1 upon out-of-memory.
35265         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
35266         upon out-of-memory.
35267         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
35268         NULL upon out-of-memory.
35269         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
35270         upon out-of-memory.
35271         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
35272         NULL upon out-of-memory.
35273         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
35274         NULL upon out-of-memory.
35275         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
35276         upon out-of-memory.
35277         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
35278         (gl_sublist_list_implementation): Update.
35279         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
35280         upon out-of-memory.
35281         * modules/sublist (Depends-on): Remove xalloc.
35282
35283         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
35284         * tests/test-carray_list.c: Likewise.
35285         * tests/test-linked_list.c: Likewise.
35286         * tests/test-linkedhash_list.c: Likewise.
35287         * tests/test-avltree_list.c: Likewise.
35288         * tests/test-rbtree_list.c: Likewise.
35289         * tests/test-avltreehash_list.c: Likewise.
35290         * tests/test-rbtreehash_list.c: Likewise.
35291         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
35292         * modules/carray-list-tests (Makefile.am): Likewise.
35293         * modules/linked-list-tests (Makefile.am): Likewise.
35294         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35295         * modules/avltree-list-tests (Makefile.am): Likewise.
35296         * modules/rbtree-list-tests (Makefile.am): Likewise.
35297         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35298         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35299
35300         * NEWS: Mention the changes.
35301
35302         * lib/clean-temp.c: Include gl_xlist.h.
35303         * modules/clean-temp (Depends-on): Add xlist.
35304
35305         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
35306         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
35307
35308         * tests/test-array_oset.c: Include gl_xlist.h.
35309         * modules/array-oset-tests (Depends-on): Add xlist.
35310
35311         Reported by José E. Marchesi <jemarch@gnu.org>.
35312
35313 2009-12-13  Bruno Haible  <bruno@clisp.org>
35314
35315         Move the malloc checking from module 'oset' to new module 'xoset'.
35316         * modules/xoset: New file.
35317         * lib/gl_xoset.h: New file.
35318         * lib/gl_xoset.c: New file.
35319         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
35320         declarations.
35321         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
35322         (struct gl_oset_implementation): Rename and change methods accordingly.
35323         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
35324         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
35325         'int'. Mark as __warn_unused_result__.
35326         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
35327         gl_oset_create_empty.
35328         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
35329         'int'.
35330         * lib/gl_array_oset.c: Don't include xalloc.h.
35331         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
35332         malloc, not xmalloc.
35333         (grow): Change return type to 'int'. Don't call xalloc_die.
35334         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
35335         to 'int'.
35336         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
35337         'int'.
35338         (gl_array_oset_implementation): Update.
35339         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
35340         gl_tree_create_empty.
35341         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
35342         'int'.
35343         * lib/gl_avltree_oset.c: Don't include xalloc.h.
35344         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
35345         xmalloc.
35346         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
35347         not xmalloc.
35348         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
35349         xmalloc.
35350         (gl_avltree_oset_implementation): Update.
35351         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
35352         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
35353         xmalloc.
35354         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
35355         not xmalloc.
35356         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
35357         xmalloc.
35358         (gl_rbtree_oset_implementation): Update.
35359         * modules/array-oset (Depends-on): Remove xalloc.
35360         * modules/avltree-oset (Depends-on): Likewise.
35361         * modules/rbtree-oset (Depends-on): Likewise.
35362         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
35363         * tests/test-avltree_oset.c: Likewise.
35364         * tests/test-rbtree_oset.c: Likewise.
35365         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
35366         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
35367         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35368         * NEWS: Mention the change.
35369
35370 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
35371
35372         maint.mk: allow a project to override release-prep commands
35373         * top/maint.mk (alpha, beta, stable): Move release-preparatory
35374         commands into a new rule.
35375         (release-prep): New rule.
35376         (release-prep-hook): New overridable variable.
35377
35378 2009-12-13  Bruno Haible  <bruno@clisp.org>
35379
35380         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
35381
35382 2009-12-13  Jim Meyering  <meyering@redhat.com>
35383
35384         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
35385         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
35386
35387 2009-12-12  Bruno Haible  <bruno@clisp.org>
35388
35389         duplocale: Tweak.
35390         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
35391
35392 2009-12-12  Karl Berry  <karl@gnu.org>
35393
35394         * config/srclist.txt (strtoll.c): tab changes, no more sync.
35395
35396 2009-12-12  Bruno Haible  <bruno@clisp.org>
35397
35398         * m4/po.m4: Undo incorrect untabification.
35399
35400 2009-12-12  Bruno Haible  <bruno@clisp.org>
35401
35402         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
35403         * modules/c-strtod (Depends-on): Add locale.
35404         * modules/c-strtold (Depends-on): Likewise.
35405
35406 2009-12-12  Bruno Haible  <bruno@clisp.org>
35407
35408         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
35409
35410 2009-12-11  Eric Blake  <ebb9@byu.net>
35411
35412         setenv: relax requirement in light of POSIX ruling
35413         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
35414         not NULL.
35415         * tests/test-setenv.c (main): Relax test.
35416         * tests/test-unsetenv.c (main): Likewise.
35417         * doc/posix-functions/setenv.texi (setenv): Document this.
35418         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35419
35420 2009-12-11  Bruno Haible  <bruno@clisp.org>
35421
35422         New module 'fd-safer-flag'.
35423         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
35424         * lib/dup-safer.c (dup_safer_flag): Remove function.
35425         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
35426         * lib/fd-safer.c (fd_safer_flag): Remove function.
35427         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
35428         * modules/cloexec (configure.ac): Drop indicator macro.
35429         * modules/fd-safer-flag: New file.
35430         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
35431         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
35432         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
35433
35434 2009-12-11  Bruno Haible  <bruno@clisp.org>
35435
35436         Tests for module 'nl_langinfo'.
35437         * modules/nl_langinfo-tests: New file.
35438         * tests/test-nl_langinfo.sh: New file.
35439         * tests/test-nl_langinfo.c: New file.
35440
35441         New module 'nl_langinfo'.
35442         * lib/nl_langinfo.c: New file.
35443         * m4/nl_langinfo.m4: New file.
35444         * modules/nl_langinfo: New file.
35445         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
35446
35447 2009-12-11  Bruno Haible  <bruno@clisp.org>
35448
35449         Tests for module 'langinfo'.
35450         * modules/langinfo-tests: New file.
35451         * tests/test-langinfo.c: New file.
35452
35453         New module 'langinfo'.
35454         * lib/langinfo.in.h: New file.
35455         * m4/langinfo_h.m4: New file.
35456         * modules/langinfo: New file.
35457         * doc/posix-headers/langinfo.texi: Mention the new module.
35458
35459 2009-12-11  Bruno Haible  <bruno@clisp.org>
35460
35461         * lib/config.charset: Untabify.
35462
35463 2009-12-11  Bruno Haible  <bruno@clisp.org>
35464
35465         * modules/unistd-safer (configure.ac): Drop indicator macro.
35466
35467 2009-12-11  Bruno Haible  <bruno@clisp.org>
35468
35469         Move pipe2-safer code to its own file.
35470         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
35471         * lib/pipe-safer.c (pipe2_safer): Remove function.
35472         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
35473         (Makefile.am): Add it to lib_SOURCES.
35474
35475 2009-12-10  Bruno Haible  <bruno@clisp.org>
35476
35477         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
35478
35479 2009-12-10  Bruno Haible  <bruno@clisp.org>
35480
35481         Declare which arguments expect non-NULL values, for GCC and clang.
35482         * build-aux/arg-nonnull.h: New file.
35483         * modules/arg-nonnull: New file.
35484         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
35485         (inet_ntop, inet_pton): Use it.
35486         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
35487         (closedir, dirfd, opendir, scandir, alphasort): Use it.
35488         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
35489         (open, openat): Use it.
35490         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
35491         (fnmatch): Use it.
35492         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
35493         (getopt, getopt_long, getopt_long_only): Use it.
35494         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
35495         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
35496         Use it.
35497         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
35498         (iconv_open): Use it.
35499         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
35500         (strtoimax, strtoumax): Use it.
35501         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
35502         (duplocale): Use it.
35503         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
35504         (frexp, frexpl): Use it.
35505         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
35506         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
35507         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
35508         (tsearch, tfind, tdelete, twalk): Use it.
35509         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
35510         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35511         sigpending): Use it.
35512         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
35513         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35514         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35515         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35516         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35517         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35518         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35519         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35520         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35521         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35522         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35523         Use it.
35524         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
35525         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
35526         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
35527         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
35528         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
35529         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
35530         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
35531         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
35532         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
35533         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
35534         strtoull, unsetenv): Use it.
35535         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
35536         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35537         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35538         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
35539         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
35540         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
35541         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
35542         (strcasecmp, strncasecmp): Use it.
35543         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
35544         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
35545         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
35546         rpl_setsockopt): Use it.
35547         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
35548         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
35549         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
35550         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
35551         (gettimeofday): Use it.
35552         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
35553         (times): Use it.
35554         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
35555         (uname): Use it.
35556         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
35557         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
35558         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
35559         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
35560         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
35561         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
35562         unlinkat, write): Use it.
35563         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
35564         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
35565         * lib/argv-iter.h: Include arg-nonnull.h.
35566         (_ATTRIBUTE_NONNULL_): Remove macro.
35567         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
35568         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
35569         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
35570         optimization.
35571         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
35572         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
35573         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
35574         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
35575         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
35576         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
35577         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
35578         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
35579         * modules/arpa_inet (Depends-on): Add arg-nonnull.
35580         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
35581         * modules/dirent (Depends-on): Add arg-nonnull.
35582         (Makefile.am): Insert arg-nonnull.h into dirent.h.
35583         * modules/fcntl-h (Depends-on): Add arg-nonnull.
35584         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
35585         * modules/fnmatch (Depends-on): Add arg-nonnull.
35586         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
35587         * modules/getopt-posix (Depends-on): Add arg-nonnull.
35588         (Makefile.am): Insert arg-nonnull.h into getopt.h.
35589         * modules/glob (Depends-on): Add arg-nonnull.
35590         (Makefile.am): Insert arg-nonnull.h into glob.h.
35591         * modules/iconv_open (Depends-on): Add arg-nonnull.
35592         (Makefile.am): Insert arg-nonnull.h into iconv.h.
35593         * modules/inttypes (Depends-on): Add arg-nonnull.
35594         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
35595         * modules/locale (Depends-on): Add arg-nonnull.
35596         (Makefile.am): Insert arg-nonnull.h into locale.h.
35597         * modules/math (Depends-on): Add arg-nonnull.
35598         (Makefile.am): Insert arg-nonnull.h into math.h.
35599         * modules/netdb (Depends-on): Add arg-nonnull.
35600         (Makefile.am): Insert arg-nonnull.h into netdb.h.
35601         * modules/search (Depends-on): Add arg-nonnull.
35602         (Makefile.am): Insert arg-nonnull.h into search.h.
35603         * modules/signal (Depends-on): Add arg-nonnull.
35604         (Makefile.am): Insert arg-nonnull.h into signal.h.
35605         * modules/spawn (Depends-on): Add arg-nonnull.
35606         (Makefile.am): Insert arg-nonnull.h into spawn.h.
35607         * modules/stdio (Depends-on): Add arg-nonnull.
35608         (Makefile.am): Insert arg-nonnull.h into stdio.h.
35609         * modules/stdlib (Depends-on): Add arg-nonnull.
35610         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
35611         * modules/string (Depends-on): Add arg-nonnull.
35612         (Makefile.am): Insert arg-nonnull.h into string.h.
35613         * modules/strings (Depends-on): Add arg-nonnull.
35614         (Makefile.am): Insert arg-nonnull.h into strings.h.
35615         * modules/sys_socket (Depends-on): Add arg-nonnull.
35616         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
35617         * modules/sys_stat (Depends-on): Add arg-nonnull.
35618         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
35619         * modules/sys_time (Depends-on): Add arg-nonnull.
35620         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
35621         * modules/sys_times (Depends-on): Add arg-nonnull.
35622         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
35623         * modules/sys_utsname (Depends-on): Add arg-nonnull.
35624         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
35625         * modules/time (Depends-on): Add arg-nonnull.
35626         (Makefile.am): Insert arg-nonnull.h into time.h.
35627         * modules/unistd (Depends-on): Add arg-nonnull.
35628         (Makefile.am): Insert arg-nonnull.h into unistd.h.
35629         * modules/wchar (Depends-on): Add arg-nonnull.
35630         (Makefile.am): Insert arg-nonnull.h into wchar.h.
35631         * modules/argv-iter (Depends-on): Add arg-nonnull.
35632         * tests/test-canonicalize.c (null_ptr): New function.
35633         (main): Use it.
35634         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
35635         (main): Use it.
35636         * tests/test-memmem.c (null_ptr): New function.
35637         (main): Use it.
35638         Reported by Jim Meyering.
35639
35640 2009-12-10  Bruno Haible  <bruno@clisp.org>
35641
35642         Use spaces for indentation, not tabs.
35643         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
35644         * m4/*.m4: Untabify.
35645         * build-aux/*.h: Untabify.
35646         * tests/**/*.[hc]: Untabify.
35647         * README: New section "Indent with spaces, not TABs", based on
35648         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
35649         * NEWS: Mention the change.
35650
35651 2009-12-10  Bruno Haible  <bruno@clisp.org>
35652
35653         pty test: Fix link error.
35654         * modules/pty-tests (Makefile.am): Add the default LDADD value to
35655         test_pty_LDADD.
35656
35657 2009-12-07  Simon Josefsson  <simon@josefsson.org>
35658
35659         * modules/pty: New file.
35660         * modules/pty-tests: New file.
35661         * m4/pty.m4: New file.
35662         * tests/test-pty.c: New file.
35663         * doc/glibc-headers/pty.texi: Modified.
35664         * doc/glibc-functions/forkpty.texi: Modified.
35665         * doc/glibc-functions/openpty.texi: Modified.
35666
35667 2009-12-10  Bruno Haible  <bruno@clisp.org>
35668
35669         Avoid syntax error in C++ mode.
35670         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
35671
35672 2009-12-10  Bruno Haible  <bruno@clisp.org>
35673
35674         Use sed with option -e.
35675         * gnulib-tool (func_version, func_emit_copyright_notice,
35676         func_emit_initmacro_end, func_import, func_create_testdir): Pass
35677         option -e to sed.
35678         * modules/link-warning (Makefile.am): Likewise.
35679
35680 2009-12-10  Jim Meyering  <meyering@redhat.com>
35681
35682         mgetgroups: do not write bytes beyond end of malloc'd buffer
35683         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
35684         username, we call getgroups with a one-element-shorter buffer,
35685         but still told it the length was original, max_n_groups.
35686
35687 2009-12-09  Eric Blake  <ebb9@byu.net>
35688
35689         cloexec: relax license
35690         * modules/cloexec (Maintainer): Add myself.
35691         (License): Use LGPL, not GPL.
35692
35693         link-warning: optimize generation
35694         * modules/link-warning (Makefile.am): Reduce process usage.
35695
35696 2009-12-09  Bruno Haible  <bruno@clisp.org>
35697
35698         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
35699         workaround was added on 2009-11-17.
35700
35701 2009-12-09  Jim Meyering  <meyering@redhat.com>
35702             Bruno Haible  <bruno@clisp.org>
35703
35704         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
35705         * modules/link-warning (Makefile.am): Make the comment-removing sed
35706         command more robust in the face of bootstrap-prepended comment lines.
35707
35708 2009-12-09  Bruno Haible  <bruno@clisp.org>
35709
35710         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
35711         most one group.
35712
35713 2009-12-09  Simon Josefsson <simon@josefsson.org>
35714             Bruno Haible  <bruno@clisp.org>
35715
35716         * build-aux/link-warning.h: Add copyright notice.
35717         * modules/link-warning (Makefile.am): Generate link-warning.h from
35718         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
35719         * NEWS: Mention change in link-warning module.
35720         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
35721         * modules/dirent (Makefile.am): Add dependency to dirent.h.
35722         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
35723         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
35724         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
35725         * modules/math (Makefile.am): Add dependency to math.h.
35726         * modules/search (Makefile.am): Add dependency to search.h.
35727         * modules/signal (Makefile.am): Add dependency to signal.h.
35728         * modules/spawn (Makefile.am): Add dependency to spawn.h.
35729         * modules/stdio (Makefile.am): Add dependency to stdio.h.
35730         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
35731         * modules/string (Makefile.am): Add dependency to string.h.
35732         * modules/strings (Makefile.am): Add dependency to strings.h.
35733         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
35734         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
35735         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
35736         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
35737         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
35738         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
35739         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
35740         * modules/unistd (Makefile.am): Add dependency to unistd.h.
35741         * modules/wchar (Makefile.am): Add dependency to wchar.h.
35742
35743 2009-12-09  Bruno Haible  <bruno@clisp.org>
35744
35745         fchdir: Optimize away rpl_fstat when possible.
35746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
35747         REPLACE_OPEN_DIRECTORY.
35748         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
35749
35750 2009-12-09  Bruno Haible  <bruno@clisp.org>
35751
35752         * lib/fchdir.c: Update comment.
35753
35754 2009-12-09  Bruno Haible  <bruno@clisp.org>
35755
35756         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
35757
35758 2009-12-08  Eric Blake  <ebb9@byu.net>
35759
35760         fchdir: avoid memory leak on re-registration.
35761         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
35762
35763 2009-12-08  Jim Meyering  <meyering@redhat.com>
35764
35765         init.sh: avoid Solaris 10 /bin/sh portability problem
35766         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
35767         sourced script:
35768           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
35769           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
35770           bar
35771         tests/init.sh relied on that, accepting a --set-path=DIR argument,
35772         and two tests used that idiom.
35773         * tests/init.sh: Update suggested usage comments.
35774         (path_prepend_): New function, to be used in place
35775         of the --src-path=DIR option.
35776         (setup_): Move PATH-prepending code into path_prepend_.
35777         * tests/test-pread.sh: Adapt to new usage.
35778         * tests/test-xalloc-die.sh: Likewise.
35779
35780 2009-12-08  Simon Josefsson  <simon@josefsson.org>
35781
35782         * doc/gnulib.texi (Glibc pty.h): Add.
35783         * doc/glibc-functions/forkpty.texi: Add.
35784         * doc/glibc-functions/openpty.texi: Add.
35785         Suggested by Bruno Haible.
35786
35787 2009-12-08  Eric Blake  <ebb9@byu.net>
35788
35789         fchdir: fix logic bugs
35790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
35791         * tests/test-fchdir.c (main): Enhance test.
35792         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
35793         is in use.
35794
35795         dup2: fix logic bugs
35796         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
35797         REPLACE_DUP2 to decide when rpl_dup2 is needed.
35798         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
35799         exists.
35800         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
35801
35802 2009-12-07  Eric Blake  <ebb9@byu.net>
35803
35804         unlink: fix m4 detection
35805         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
35806
35807         unistd-safer: add unit test
35808         * modules/unistd-safer-tests: New file.
35809         * tests/test-dup-safer.c: Likewise.
35810         * tests/test-cloexec.c (setmode): Avoid compiler warning.
35811         * tests/test-dup2.c (setmode): Likewise.
35812         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
35813
35814         cloexec: preserve text vs. binary across dup_cloexec
35815         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
35816         mode.
35817         * modules/dup2-tests (Depends-on): Add binary-io.
35818         * modules/cloexec-tests (Depends-on): Likewise.
35819         * tests/test-dup2.c (setmode, is_mode): New helpers.
35820         (main): Add tests that translation mode is preserved.
35821         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
35822         Reported by Bruno Haible.
35823
35824         mgetgroups: reduce duplicate listings
35825         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
35826         resulting array.
35827         * tests/test-chown.h (test_chown): Simplify client.
35828         * tests/test-lchown.h (test_lchown): Likewise.
35829
35830 2009-12-06  Bruno Haible  <bruno@clisp.org>
35831
35832         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
35833         value.
35834
35835 2009-12-06  Bruno Haible  <bruno@clisp.org>
35836
35837         * lib/progname.c: Include stdio.h, stdlib.h.
35838         (set_program_name): Reject a NULL argument.
35839
35840 2009-12-05  Eric Blake  <ebb9@byu.net>
35841
35842         pipe2-safer: new module
35843         * modules/pipe2-safer: New file.
35844         * lib/unistd-safer.h (pipe2_safer): New prototype.
35845         * lib/unistd--.h (pipe2): New wrapper.
35846         * lib/pipe-safer.c (pipe2_safer): New function.
35847         * modules/pipe (Depends-on): Add pipe2-safer.
35848         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
35849
35850         stdlib-safer: preserve cloexec flag for mkostemp[s]
35851         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
35852         fd_safer_flag.
35853
35854         unistd-safer: allow preservation of cloexec status via flag
35855         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
35856         prototypes.
35857         * lib/dup-safer.c (dup_safer_flag): New function.
35858         * lib/fd-safer.c (fd_safer_flag): Likewise.
35859         * modules/cloexec (configure.ac): Set witness.
35860
35861         test-dup2: enhance test
35862         * modules/dup2-tests (Depends-on): Add cloexec.
35863         * tests/test-dup2.c (main): Enhance test.
35864
35865         cloexec: add dup_cloexec
35866         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
35867         header and comments.
35868         * lib/cloexec.c (set_cloexec_flag): Add comments.
35869         (dup_cloexec): New function, with mingw implementation borrowed
35870         from...
35871         * lib/w32spawn.h (dup_noinherit): ...here.
35872         * modules/execute (Depends-on): Add cloexec.
35873         * modules/pipe (Depends-on): Likewise.
35874         * modules/cloexec (Depends-on): Add dup2.
35875         * modules/cloexec-tests (Files): New file.
35876         * tests/test-cloexec.c: Likewise.
35877
35878         test-xalloc-die: fix test for mingw
35879         * modules/xalloc-die-tests (Files): Add tests/init.sh.
35880         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
35881         directory and .exe suffix off argv[0] output.
35882
35883         test-fseeko: fix test for mingw
35884         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
35885         than undefining fseek, so test will pass on mingw.
35886
35887 2009-12-05  Bruno Haible  <bruno@clisp.org>
35888
35889         * lib/progname.h (set_program_name): Clarify specification.
35890         * lib/progname.c (set_program_name): Likewise.
35891         Reported by Jim Meyering.
35892
35893 2009-12-05  Jim Meyering  <meyering@redhat.com>
35894
35895         maint.mk: backslash-escape parens in default regexp
35896         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
35897         backslash-escape the literal parentheses.
35898
35899         maint.mk: news-date-check: use grep -E
35900         * top/maint.mk (today): Define a Make variable, not a...
35901         (news-date-check): ...shell variable.
35902         (news-date-regexp): Use the Make variable.
35903         Use grep's -E option.  Change the failing diagnostic to mention
35904         the variable, $(news-date-regexp).
35905
35906 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
35907
35908         maintainer-makefile: allow customization of NEWS entry format
35909         * top/maint.mk (news-date-regexp): New overridable variable.
35910         (news-date-check): Use it.
35911
35912 2009-12-04  Eric Blake  <ebb9@byu.net>
35913
35914         mgetgroups: add xgetgroups, and avoid ENOSYS failures
35915         * lib/mgetgroups.h (xgetgroups): New prototype.
35916         * lib/mgetgroups.c (xgetgroups): New wrapper.
35917         (mgetgroups): Handle ENOSYS.
35918         * modules/mgetgroups (Depends-on): Add realloc.
35919         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
35920
35921         mgetgroups: avoid argument promotion issues with -1
35922         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
35923         for invalid gid_t.
35924         * tests/test-chown.h (getegid, test_chown): Likewise.
35925         * tests/test-lchown.h (getegid, test_lchown): Likewise.
35926
35927 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
35928
35929         exclude: Fix header file problems.
35930         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
35931
35932 2009-12-01  Jim Meyering  <meyering@redhat.com>
35933
35934         fts: fts_open: do not let an empty string cause immediate failure
35935         This is required in support of GNU rm, for which the command
35936         "rm A '' B" must process and remove both A and B, in spite of
35937         the empty string argument.
35938         * lib/fts.c (fts_open): Do not let the presence of an empty string
35939         cause fts_open to fail immediately.  Most fts-using tools must be
35940         able to process all arguments, in order, and can be expected to
35941         diagnose such arguments themselves.
35942
35943 2009-11-30  Eric Blake  <ebb9@byu.net>
35944
35945         utimens: fix compilation error
35946         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
35947         Declare variable at right scope.
35948
35949 2009-11-29  Jim Meyering  <meyering@redhat.com>
35950
35951         bootstrap: handle perl-5.11's changed --version output
35952         * build-aux/bootstrap (get_version): Handle perl separately,
35953         since perl-5.11's --version output is different.
35954
35955 2009-11-28  Jim Meyering  <meyering@redhat.com>
35956
35957         userspec: depend on the inttostr module, too
35958         * modules/userspec (Depends-on): Add inttostr.
35959
35960         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
35961         * lib/userspec.c (parse_with_separator): Do not accept a user ID
35962         number of MAXUID when it evaluates to (uid_t) -1.
35963         Likewise for group ID.  Reported by Matt McCutchen in
35964         <http://savannah.gnu.org/bugs/?28113>
35965
35966         userspec: reformat to use spaces, not TABs
35967         * lib/userspec.c: Expand TABs to spaces.
35968         Add Emacs' "indent-tabs-mode: nil" hint.
35969
35970 2009-11-27  Eric Blake  <ebb9@byu.net>
35971
35972         getopt-gnu: flush out another BSD bug
35973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
35974         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
35975         flush out BSD bug.
35976         * tests/test-getopt.h (test_getopt): End lists with NULL.
35977         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35978         (test_getopt_long_posix): Enhance test.
35979         * modules/getopt-posix-tests (Depends-on): Add stdbool.
35980         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
35981         getopt-gnu.
35982         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35983         Likewise.
35984
35985 2009-11-27  Simon Josefsson  <simon@josefsson.org>
35986
35987         * modules/idpriv-droptemp-tests (Notice): Fix text.
35988
35989 2009-11-27  Jim Meyering  <meyering@redhat.com>
35990
35991         test-xalloc-die: avoid spurious failure due to libtool argv difference
35992         In a libtool-enabled project, this test would fail due to a difference
35993         in the emitted program name, e.g.,
35994         -test-xalloc-die: memory exhausted
35995         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
35996         Use program to avoid that.
35997         * modules/xalloc-die-tests (Depends-on): Add progname.
35998         * tests/test-xalloc-die.c: Include progname.h".
35999         (program_name): Remove decl.
36000         (main): Call set_program_name.
36001         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
36002
36003 2009-11-26  Richard Jones  <rjones@redhat.com>
36004
36005         w32sock: leave win32 error in place.
36006         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
36007
36008 2009-11-26  Eric Blake  <ebb9@byu.net>
36009
36010         init.sh: suggest to use skip_ and fail_ functions in comments
36011         * tests/init.sh: Add a sentence.
36012
36013 2009-11-25  Bruno Haible  <bruno@clisp.org>
36014
36015         init.sh: add documentation in comments
36016         * tests/init.sh: Add some developer and user documentation.
36017
36018 2009-11-26  Jim Meyering  <meyering@redhat.com>
36019
36020         init.sh: accommodate even those who specify bogus srcdir manually
36021         * tests/init.sh: Normally, srcdir is guaranteed by automake and
36022         configure-time tests to be sanitized, so that there is no need to
36023         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
36024         (with no double quotes) suffices.  However, since tests may be
36025         invoked manually, and since you may explicitly set srcdir to the
36026         name of a directory containing spaces, do quote its uses here.
36027         * tests/test-pread.sh: Likewise.
36028         Suggested by Bruno Haible.
36029
36030         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
36031         * tests/test-pread.sh: Write no data into the pipe, because
36032         test-pread actually reads none.  This avoids a diagnostic,
36033         "bash: echo: write error: Broken pipe", that arises in the unusual
36034         event something is ignoring SIGPIPE, and might be interpreted
36035         as some sort of failure.  Reported by Bruno Haible.
36036
36037 2009-11-25  Jim Meyering  <meyering@redhat.com>
36038
36039         test-pread: cover failure with ESPIPE and EINVAL
36040         * tests/test-pread.c (main): Test for failure, too.
36041         * tests/test-pread.sh: Invoke with stdin on a pipe.
36042         Suggested by Eric Blake.
36043
36044         pread: improvement and fix
36045         * modules/pread (Depends-on): Depend on lseek, for portability to
36046         e.g., mingw.  Suggested by Eric Blake.
36047         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
36048
36049         unistd.in.h: correct declaration of pread
36050         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
36051         Reported by Richard W.M. Jones.
36052
36053         test-pread.sh: distribute the test script
36054         * modules/pread-tests (Files): Include test-pread.sh.
36055
36056         test-pread.sh: clean up
36057         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
36058         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
36059         That is unnecessary, since it's always ".".
36060         Suggestion from Eric Blake.
36061
36062         test-pread.sh: make executable
36063         * tests/test-pread.sh: Set executable bit.
36064         Reported by Eric Blake.
36065
36066         correct typo in test-pread.sh
36067         * tests/test-pread.sh: Add #! line.
36068
36069         test pread
36070         * tests/test-pread.c: New file.
36071         * tests/test-pread.sh: Likewise.
36072         * modules/pread-tests: Likewise.
36073
36074         pread: new module
36075         * modules/pread: New file.
36076         * lib/unistd.in.h (pread): Define/declare.
36077         * lib/pread.c (pread): New file.
36078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
36079         * modules/unistd (Makefile.am): Substitute witnesses.
36080         * doc/posix-functions/pread.texi (pread): Update.
36081         * MODULES.html.sh: Add pread.
36082
36083 2009-11-25  Jim Meyering  <meyering@redhat.com>
36084
36085         tests/init.sh: new file to be used via most *.sh tests
36086         * tests/init.sh: New file.
36087
36088 2009-11-25  Eric Blake  <ebb9@byu.net>
36089
36090         utimens: work around older Linux failure with symlinks
36091         * lib/utimens.c (lutimensat_works_really): New variable.
36092         (fdutimens, lutimens): Use it to manage kernels that support
36093         nanosecond times on files, but not on symlinks.
36094         Reported by OndÅ™ej Vašík.
36095
36096         utimes: fix configure grammar
36097         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
36098
36099 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
36100
36101         regex: Fix fastmap for multibyte character ranges.
36102         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
36103         characters when a multibyte character range is included.
36104
36105 2009-11-22  Andy Wingo  <wingo@pobox.com>
36106
36107         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
36108         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
36109
36110 2009-11-24  Bruno Haible  <bruno@clisp.org>
36111
36112         doc: Most *_l functions exist in MacOS X 10.5.
36113         * doc/posix-functions/duplocale.texi: Update platforms list.
36114         * doc/posix-functions/freelocale.texi: Likewise.
36115         * doc/posix-functions/newlocale.texi: Likewise.
36116         * doc/posix-functions/uselocale.texi: Likewise.
36117         * doc/posix-functions/isalnum_l.texi: Likewise.
36118         * doc/posix-functions/isalpha_l.texi: Likewise.
36119         * doc/posix-functions/isblank_l.texi: Likewise.
36120         * doc/posix-functions/iscntrl_l.texi: Likewise.
36121         * doc/posix-functions/isdigit_l.texi: Likewise.
36122         * doc/posix-functions/isgraph_l.texi: Likewise.
36123         * doc/posix-functions/islower_l.texi: Likewise.
36124         * doc/posix-functions/isprint_l.texi: Likewise.
36125         * doc/posix-functions/ispunct_l.texi: Likewise.
36126         * doc/posix-functions/isspace_l.texi: Likewise.
36127         * doc/posix-functions/isupper_l.texi: Likewise.
36128         * doc/posix-functions/iswalnum_l.texi: Likewise.
36129         * doc/posix-functions/iswalpha_l.texi: Likewise.
36130         * doc/posix-functions/iswblank_l.texi: Likewise.
36131         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36132         * doc/posix-functions/iswctype_l.texi: Likewise.
36133         * doc/posix-functions/iswdigit_l.texi: Likewise.
36134         * doc/posix-functions/iswgraph_l.texi: Likewise.
36135         * doc/posix-functions/iswlower_l.texi: Likewise.
36136         * doc/posix-functions/iswprint_l.texi: Likewise.
36137         * doc/posix-functions/iswpunct_l.texi: Likewise.
36138         * doc/posix-functions/iswspace_l.texi: Likewise.
36139         * doc/posix-functions/iswupper_l.texi: Likewise.
36140         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36141         * doc/posix-functions/isxdigit_l.texi: Likewise.
36142         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
36143         * doc/posix-functions/strcasecmp_l.texi: Likewise.
36144         * doc/posix-functions/strcoll_l.texi: Likewise.
36145         * doc/posix-functions/strfmon_l.texi: Likewise.
36146         * doc/posix-functions/strftime_l.texi: Likewise.
36147         * doc/posix-functions/strncasecmp_l.texi: Likewise.
36148         * doc/posix-functions/strxfrm_l.texi: Likewise.
36149         * doc/posix-functions/tolower_l.texi: Likewise.
36150         * doc/posix-functions/toupper_l.texi: Likewise.
36151         * doc/posix-functions/towctrans_l.texi: Likewise.
36152         * doc/posix-functions/towlower_l.texi: Likewise.
36153         * doc/posix-functions/towupper_l.texi: Likewise.
36154         * doc/posix-functions/wcscoll_l.texi: Likewise.
36155         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36156         * doc/posix-functions/wctrans_l.texi: Likewise.
36157         * doc/posix-functions/wctype_l.texi: Likewise.
36158         * doc/glibc-functions/strptime_l.texi: Likewise.
36159         * doc/glibc-functions/strtod_l.texi: Likewise.
36160         * doc/glibc-functions/strtof_l.texi: Likewise.
36161         * doc/glibc-functions/strtol_l.texi: Likewise.
36162         * doc/glibc-functions/strtold_l.texi: Likewise.
36163         * doc/glibc-functions/strtoll_l.texi: Likewise.
36164         * doc/glibc-functions/strtoul_l.texi: Likewise.
36165         * doc/glibc-functions/strtoull_l.texi: Likewise.
36166         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36167         * doc/glibc-functions/wcstod_l.texi: Likewise.
36168         * doc/glibc-functions/wcstof_l.texi: Likewise.
36169         * doc/glibc-functions/wcstol_l.texi: Likewise.
36170         * doc/glibc-functions/wcstold_l.texi: Likewise.
36171         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36172         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36173         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36174
36175 2009-11-24  Bruno Haible  <bruno@clisp.org>
36176
36177         duplocale: Fix logic bug.
36178         * lib/duplocale.c: Don't include <langinfo.h>.
36179         (_NL_LOCALE_NAME): Remove macro.
36180         (rpl_duplocale): Use setlocale instead of nl_langinfo.
36181         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
36182
36183 2009-11-23  Jim Meyering  <meyering@redhat.com>
36184
36185         test-update-copyright: don't hard-code /usr/bin/perl
36186         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
36187         perl to print the current year.  Gilles Espinasse reported that
36188         the replaced use of perl was hard-coded as /usr/bin/perl.
36189
36190 2009-11-23  Bruno Haible  <bruno@clisp.org>
36191
36192         duplocale: Add support for glibc 2.3.x.
36193         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
36194
36195 2009-11-22  Bruno Haible  <bruno@clisp.org>
36196
36197         vasnprintf: Tiny optimization.
36198         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
36199         MacOS X.
36200
36201 2009-11-22  Bruno Haible  <bruno@clisp.org>
36202
36203         Tests for module 'duplocale'.
36204         * modules/duplocale-tests: New file.
36205         * tests/test-duplocale.c: New file.
36206
36207         New module 'duplocale'.
36208         * m4/duplocale.m4: New file.
36209         * lib/locale.in.h (duplocale): New declaration.
36210         * lib/duplocale.c: New file.
36211         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
36212         gl_LOCALE_H_DEFAULTS): New macros.
36213         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
36214         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
36215         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
36216         REPLACE_DUPLOCALE.
36217         * modules/duplocale: New file.
36218         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
36219
36220 2009-11-22  Bruno Haible  <bruno@clisp.org>
36221
36222         * modules/locale-tests (configure.ac): Test for newlocale function.
36223         * tests/test-locale.c: When the system has extended locale functions,
36224         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
36225
36226         locale: Make locale_t available when possible.
36227         * lib/locale.in.h: Include <xlocale.h> when it exists.
36228         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
36229         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
36230         * modules/locale (Depends-on): Add extensions.
36231         (Makefile.am): Also substitute HAVE_XLOCALE_H.
36232         * doc/posix-headers/locale.texi: Document the problem with locale_t.
36233
36234 2009-11-22  Bruno Haible  <bruno@clisp.org>
36235
36236         Add comments.
36237         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
36238         invocation.
36239         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36240         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36241         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36242
36243 2009-11-22  Bruno Haible  <bruno@clisp.org>
36244
36245         error: account for the possibility of freopen (stdout).
36246         * lib/error.c: Include <unistd.h>.
36247         (flush_stdout): New function, extracted from error and error_at_line.
36248         Determine stdout's fd dynamically.
36249         (error, error_at_line): Invoke flush_stdout.
36250         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
36251         * modules/error (Depends-on): Add unistd.
36252
36253 2009-11-22  Bruno Haible  <bruno@clisp.org>
36254
36255         diffseq: Add comment.
36256         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
36257
36258 2009-11-22  Jim Meyering  <meyering@redhat.com>
36259
36260         c-stack: avoid defining an unused static function
36261         * lib/c-stack.c (find_stack_direction): Do not define this function
36262         when it will not be used.
36263
36264         diffseq: avoid spurious gcc warnings
36265         * lib/diffseq.h (IF_LINT2): Define.
36266         (compareseq): Use it to initialize two members of "part".
36267         This avoids two used-uninitialized warnings.
36268
36269 2009-11-21  Jim Meyering  <meyering@redhat.com>
36270
36271         c-stack: avoid "ignoring return value of `write'" warning
36272         * lib/c-stack.c: Include "ignore-value.h".
36273         (die): Explicitly ignore each write return value.
36274         * modules/c-stack (Depends-on): Add ignore-value.
36275
36276 2009-11-21  Bruno Haible  <bruno@clisp.org>
36277
36278         diffseq: reduce scope of variable 'best'.
36279         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
36280         variable, earlier used for two different purposes.
36281
36282 2009-11-21  Jim Meyering  <meyering@redhat.com>
36283
36284         diffseq: remove useless assignment to "best"
36285         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
36286         assignment.  At that point "best" is already guaranteed to be zero.
36287
36288 2009-11-20  Eric Blake  <ebb9@byu.net>
36289
36290         build: mention ftp redirector in release announcements
36291         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
36292         values that used to come from cfg.mk; mention FTP redirect URL.
36293         * build-aux/announce-gen: Mention the mirror list.
36294         Suggested by Karl Berry.
36295
36296         nanosleep: improve port to mingw
36297         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
36298         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
36299         LIB_NANOSLEEP, but only when needed.
36300         * modules/select (Link): Document LIBSOCKET.
36301         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
36302         enough.
36303
36304         nanosleep: work around cygwin bug
36305         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
36306         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
36307         bug.
36308         (getnow): Delete, not needed.
36309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
36310         LIB_CLOCK_GETTIME.
36311         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
36312         clock-time, gettime.
36313         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
36314         bug.
36315         * modules/nanosleep-tests: New test.
36316         * tests/test-nanosleep.c: New file.
36317
36318         sleep: work around cygwin bug
36319         * lib/sleep.c (rpl_sleep): Work around the bug.
36320         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
36321         (gl_PREREQ_SLEEP): Delete unused macro.
36322         * modules/sleep (Depends-on): Add verify.
36323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
36324         * modules/unistd (Makefile.am): Substitute witness.
36325         * lib/unistd.in.h (sleep): Update prototype.
36326         * doc/posix-functions/sleep.texi (sleep): Document the bug.
36327         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
36328         * modules/sleep-tests (Depends-on): Check for alarm.
36329
36330 2009-11-20  Jim Meyering  <meyering@redhat.com>
36331
36332         maint.mk: improve sc_prohibit_magic_number_exit
36333         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
36334         so it does not match uses like System.exit(1).
36335         Add comments showing how to correct all offenders.
36336
36337 2009-11-19  Eric Blake  <ebb9@byu.net>
36338
36339         xalloc-die-tests: add missing library
36340         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
36341
36342         test-xvasprintf: silence compiler warnings
36343         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
36344         empty string from gcc.
36345
36346 2009-11-19  Jim Meyering  <meyering@redhat.com>
36347
36348         xfreopen: new module, from coreutils
36349         * modules/xfreopen: New module.
36350         * lib/xfreopen.c: New file.
36351         * lib/xfreopen.h: New file.
36352         * MODULES.html.sh (File stream based Input/Output"): Add it.
36353
36354 2009-11-19  Eric Blake  <ebb9@byu.net>
36355
36356         manywarnings: depend on warnings
36357         * modules/manywarnings (Depends-on): Add warnings.
36358
36359         build: avoid compiler warnings
36360         * lib/select.c (rpl_select): Delete unused variable.
36361         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
36362
36363 2009-11-18  Eric Blake  <ebb9@byu.net>
36364
36365         tests: avoid false negative with --with-packager
36366         * tests/test-version-etc.sh: Discard packager information.
36367         * tests/test-argp-version-etc-1.sh: Likewise.
36368         Reported by Mike Frysinger.
36369
36370         utimens: fix regression on Solaris
36371         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
36372         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
36373         can only change fd timestamps via futimesat.  Instead, use an
36374         additional witness macro to avoid BSD bug.
36375         Reported by Jim Meyering.
36376
36377 2009-11-17  Eric Blake  <ebb9@byu.net>
36378
36379         usleep: use it to simplify tests
36380         * modules/stat-time-tests (Depends-on): Add usleep.
36381         (configure.ac): Drop usleep check.
36382         * modules/chown-tests (Depends-on, configure.ac): Likewise.
36383         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
36384         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
36385         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
36386         * modules/openat-tests (Depends-on, configure.ac): Likewise.
36387         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
36388         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
36389         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
36390         Likewise.
36391         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
36392         * tests/test-lchown.h (nap): Likewise.
36393         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
36394         * tests/test-stat-time.c (nap): Likewise.
36395         * tests/test-utimens-common.h (nap): Update comments.
36396
36397         usleep: new module
36398         * modules/usleep: New file.
36399         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
36400         * lib/usleep.c (usleep): Likewise.
36401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36402         * modules/unistd (Makefile.am): Substitute witnesses.
36403         * lib/unistd.in.h (usleep): Add declaration.
36404         * doc/pastposix-functions/usleep.texi (usleep): Document this.
36405         * MODULES.html.sh (Date and time): Likewise.
36406         * modules/usleep-tests (Depends-on): New test.
36407         * tests/test-usleep.c: New file.
36408
36409         chown: work around OpenBSD bug
36410         * lib/chown.c (rpl_chown): Work around the bug.
36411         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
36412         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
36413         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
36414         * modules/chown (Depends-on): Add stdbool.
36415         * modules/lchown (Depends-on): Likewise.
36416         * doc/posix-functions/chown.texi (chown): Document the bug.
36417         * doc/posix-functions/lchown.texi (lchown): Likewise.
36418         * tests/test-lchown.h (test_chown): Relax test.
36419
36420         mkstemp: avoid conflict with C++ keyword template
36421         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
36422         * lib/mkostemp.c (mkostemp): Likewise.
36423         * lib/mkostemps.c (mkostemps): Likewise.
36424         * lib/mkstemp.c (mkstemp): Likewise.
36425         * lib/mkstemps.c (mkstemps): Likewise.
36426
36427         xalloc-die-tests: optimize
36428         * tests/test-xalloc-die.sh: Reduce number of processes.
36429
36430 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36431
36432         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
36433         patch from ludo@gnu.org (Ludovic Courtès).
36434
36435 2009-11-17  Jim Meyering  <meyering@redhat.com>
36436
36437         version-etc: use proper license string
36438         * modules/version-etc (License): Use LGPL, not LGPLv3+.
36439         * modules/version-etc-fsf: Likewise.
36440
36441 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36442
36443         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
36444         printed to stdout.  Deal with EOL differences.
36445
36446 2009-11-17  Eric Blake  <ebb9@byu.net>
36447
36448         unsetenv: work around Solaris bug
36449         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
36450         * lib/unsetenv.c (rpl_unsetenv): Work around it.
36451         Reported by Jim Meyering.
36452
36453         vasnprintf: avoid compiler warnings
36454         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
36455         variables.
36456         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
36457
36458 2009-11-17  Simon Josefsson  <simon@josefsson.org>
36459
36460         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
36461         settings since xalloc-die is no longer the self test,
36462         xalloc-die.sh is.
36463
36464 2009-11-17  Jim Meyering  <meyering@redhat.com>
36465
36466         test-xalloc-die.sh: make the code agree with the commit log
36467         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
36468         at the end, just in case you happen to have a test-xalloc-die
36469         program in some other PATH directory.
36470
36471         test-xalloc-die.sh: fix a portability bug
36472         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
36473         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
36474         Otherwise, argv[0] (as often seen in diagnostics) would be too
36475         system-dependent, sometimes with, and sometimes without the leading "./".
36476
36477         version-etc-fsf: relax license to LGPLv3+
36478         * modules/version-etc-fsf (License): Relax license.
36479
36480 2009-11-16  Eric Blake  <ebb9@byu.net>
36481
36482         xalloc-die-tests: avoid printing null pointer
36483         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
36484         shell script.
36485         * tests/test-xalloc-die.c (program_name): Declare.
36486         * tests/test-xalloc-die.sh (tmpfiles): New file.
36487
36488         setenv, unsetenv: work around various bugs
36489         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
36490         (setenv) [HAVE_SETENV]: Work around bugs.
36491         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
36492         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
36493         for bugs.
36494         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
36495         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
36496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
36497         * modules/stdlib (Makefile.am): Update substitutions.
36498         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
36499         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
36500         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36501         * modules/setenv-tests: New test.
36502         * modules/unsetenv-tests: Likewise.
36503         * tests/test-setenv.c: New file.
36504         * tests/test-unsetenv.c: Likewise.
36505
36506 2009-11-16  Jim Meyering  <meyering@redhat.com>
36507
36508         version-etc: relax license to LGPLv3+
36509         * modules/version-etc (License): Relax license.
36510
36511         better AC_REQUIRE expanded-before-required-warning avoidance
36512         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
36513         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
36514         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
36515         which is no longer needed.
36516
36517 2009-11-16  Eric Blake  <ebb9@byu.net>
36518
36519         test-freading: clean up temporary file
36520         * tests/test-freading.c (main): Remove file on success, and use
36521         ASSERT more liberally.
36522         Reported by Jim Meyering.
36523
36524 2009-11-16  Jim Meyering  <meyering@redhat.com>
36525
36526         avoid new AC_REQUIRE expanded-before-required warnings
36527         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
36528         merely using it.
36529         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
36530         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
36531
36532 2009-11-15  Simon Josefsson  <simon@josefsson.org>
36533
36534         * tests/test-xalloc-die.c: New file.
36535         * modules/xalloc-die-tests: New file.
36536         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
36537         XFAIL_TESTS so it can be appended by modules.
36538
36539 2009-11-15  Simon Josefsson  <simon@josefsson.org>
36540
36541         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
36542         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
36543
36544 2009-11-14  Eric Blake  <ebb9@byu.net>
36545
36546         fnmatch: avoid compiler warning
36547         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
36548         to silence compiler warning about mismatch signedness in ?:.
36549         Reported by Robert Millan.
36550
36551         intprops: add double-inclusion guard
36552         * lib/intprops.h: Allow idempotent includes.
36553         Suggested by Bruce Korb.
36554
36555         openat: detect Solaris fchownat bug
36556         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
36557         penalizing glibc chownat when only lchownat is broken.
36558         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
36559         trailing slash bugs.
36560         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
36561         * modules/openat-tests (Files): Include more files.
36562         (Depends-on): Add mgetgroups, sleep, stat-time.
36563         (configure.ac): Add additional checks.
36564         (Makefile.am): Build new test.
36565         * tests/test-fchownat.c: New file.
36566
36567         lchown: detect Solaris and FreeBSD bug
36568         * lib/lchown.c (rpl_lchown): Work around bug.
36569         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
36570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36571         * modules/unistd (Makefile.am): Populate it.
36572         * lib/unistd.in.h (lchown): Update declaration.
36573         * doc/posix-functions/lchown.texi (lchown): Document the bug.
36574         * modules/lchown-tests: New file.
36575         * tests/test-lchown.h (test_lchown): Likewise.
36576         * tests/test-lchown.c (main): Likewise.
36577
36578         chown: detect Solaris and FreeBSD bug
36579         * lib/chown.c (rpl_chown): Work around bug.
36580         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
36581         (gl_PREREQ_CHOWN): Delete.
36582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36583         * modules/unistd (Makefile.am): Populate it.
36584         * lib/unistd.in.h (chown): Update declaration.
36585         * lib/lchown.c (chown): Update client.
36586         * modules/lchown (Depends-on): Add lstat.
36587         * doc/posix-functions/chown.texi (chown): Document the bug.
36588         * doc/posix-functions/getgroups.texi (getgroups): Document
36589         getgroups pitfall.
36590         * modules/chown-tests: New file.
36591         * tests/test-chown.h (test_chown): Likewise.
36592         * tests/test-chown.c (main): Likewise.
36593
36594 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
36595
36596         gnulib-tool: correctly detect absence of m4 directories
36597         * gnulib-tool: Avoid extra newline on data passed to wc -l.
36598
36599 2009-11-14  Jim Meyering  <meyering@redhat.com>
36600
36601         maint.mk: Prohibit inclusion of "xalloc.h" without use.
36602         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36603
36604 2009-11-14  John W. Eaton  <jwe@gnu.org>
36605
36606         strftime.h: wrap funtion declaration in extern "C" block
36607         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
36608
36609 2009-11-13  Eric Blake  <ebb9@byu.net>
36610
36611         getgroups: avoid compiler warning
36612         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
36613
36614         getgroups: work around FreeBSD bug
36615         * lib/getgroups.c (rpl_getgroups): Work around the bug.
36616         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
36617         * doc/posix-functions/getgroups.texi (getgroups): Document it.
36618         * tests/test-getgroups.c (main): Fix buffer overrun.
36619
36620         getgroups: avoid compilation failure
36621         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
36622         * modules/getgroups (Depends-on): Add stdint.
36623
36624 2009-11-13  Jim Meyering  <meyering@redhat.com>
36625
36626         test-getgroups: avoid compilation failure
36627         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
36628
36629 2009-11-13  Eric Blake  <ebb9@byu.net>
36630
36631         mgetgroups: new module, taken from coreutils
36632         * modules/mgetgroups: New file.
36633         * lib/mgetgroups.h: Likewise.
36634         * lib/mgetgroups.c (mgetgroups): Likewise.
36635         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
36636         * MODULES.html.sh (Users and groups): Mention it.
36637
36638         getgroups: don't expose GETGROUPS_T to user
36639         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
36640         an element at a time if GETGROUPS_T is wrong size.
36641         * lib/getugroups.h (getugroups): Change signature.
36642         * lib/unistd.in.h (getgroups): Likewise.
36643         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
36644         signature needs fixing.
36645         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
36646         AC_TYPE_GETGROUPS.
36647         * modules/group-member (Depends-on): Add getgroups.
36648         * lib/group-member.c (group_info, get_group_info): Use gid_t.
36649         (group_member): Rely on getgroups replacement.
36650         * lib/getugroups.c (getugroups): Use gid_t.
36651         * tests/test-getgroups.c (main): Likewise.
36652         * NEWS: Mention the signature change.
36653         * doc/posix-functions/getgroups.texi (getgroups): Mention the
36654         problem with signature.
36655         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
36656         GETGROUPS_T is still useful for setgroups.
36657
36658         getgroups, getugroups: provide stubs for mingw
36659         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
36660         * lib/getugroups.c (getugroups): Likewise.
36661         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
36662         function.  Modernize replacement scheme.
36663         (gl_PREREQ_GETGROUPS): Delete.
36664         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
36665         * modules/getgroups (configure.ac): Declare witness.
36666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
36667         * modules/unistd (Depends-on): Substitute witness.
36668         * lib/unistd.in.h (getgroups): Declare replacement.
36669
36670         getgroups: avoid calling exit
36671         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
36672         drop xalloc.
36673         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
36674         dependencies.
36675         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
36676         exiting, in the rare case of malloc failure.
36677
36678         getgroups: fix logic error
36679         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
36680         has more than 20 groups.
36681         * modules/getgroups-tests: New test.
36682         * tests/test-getgroups.c: New file.
36683
36684 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36685
36686         * tests/test-base64.c: Improve.
36687
36688 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36689
36690         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
36691         Blake <ebb9@byu.net>.
36692
36693 2009-11-13  Simon Josefsson  <simon@josefsson.org>
36694
36695         * tests/test-xvasprintf.c: Add %s%s related checks.
36696
36697 2009-11-12  Eric Blake  <ebb9@byu.net>
36698
36699         version-etc: match standards.texi style
36700         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
36701         and use <> only for URLs.
36702
36703 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
36704
36705         fts: do not fail on a submount during traversal
36706         * lib/fts.c (fts_build): Read the stat info again after opening
36707         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
36708         Original report at http://bugzilla.redhat.com/501848.
36709
36710 2009-11-12  Jim Meyering  <meyering@redhat.com>
36711
36712         bootstrap: sync from coreutils
36713         * build-aux/bootstrap (bootstrap_epilogue): New function.
36714         Use git_modules_config in one more place.  This make bootstrap's
36715         --gnulib-srcdir option more useful for testing.
36716
36717         bootstrap: generalize autoheader check
36718         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
36719         AC_CONFIG_HEADERS.
36720
36721 2009-11-11  Eric Blake  <ebb9@byu.net>
36722
36723         mkfifoat: use new modules for Solaris and BSD bugs
36724         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
36725         * lib/mkfifoat.c (mknodat): Split...
36726         * lib/mknodat.c (mknodat): ...into new file.
36727         * modules/mkfifoat (Files): Ship new file.
36728         (Depends-on): Add mkfifo, mknod.
36729         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
36730         (Depends-on): Add symlink.
36731         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
36732         redundant with test_mkfifo.h.
36733         (do_mkfifoat, do_mknodat): New helpers.
36734
36735         mknod: new module
36736         * modules/mknod: New file.
36737         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
36738         * lib/mknod.c (mknod): Likewise.
36739         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36740         defaults.
36741         * modules/sys_stat (Makefile.am): Substitute them.
36742         * lib/sys_stat.in.h (mknod): Declare replacement.
36743         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36744         Document it.
36745         * doc/posix-functions/mknod.texi (mknod): Likewise.
36746         * modules/mknod-tests: New test.
36747         * tests/test-mknod.c: Likewise.
36748
36749         mkfifo: new module
36750         * modules/mkfifo: New file.
36751         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
36752         * lib/mkfifo.c (mkfifo): Likewise.
36753         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
36754         defaults.
36755         * modules/sys_stat (Makefile.am): Substitute them.
36756         * lib/sys_stat.in.h (mkfifo): Declare replacement.
36757         * MODULES.html.sh (Support for systems lacking POSIX:2008):
36758         Document it.
36759         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
36760         * modules/mkfifo-tests: New test.
36761         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
36762         from test-mkfifoat.c.
36763         * tests/test-mkfifo.c: New file.
36764
36765         readlink: detect FreeBSD bug
36766         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
36767         slash on symlink.
36768         * doc/posix-functions/readlink.texi (readlink): Document the bug.
36769         * tests/test-readlink.h (test_readlink): Enhance test.
36770
36771         symlink: detect FreeBSD bug
36772         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
36773         slash on symlink.
36774         * doc/posix-functions/symlink.texi (symlink): Document the bug.
36775         * tests/test-symlink.h (test_symlink): Enhance test.
36776
36777 2009-11-10  Eric Blake  <ebb9@byu.net>
36778
36779         link: detect FreeBSD bug
36780         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
36781         symlink.
36782         * doc/posix-functions/link.texi (link): Document the bug.
36783         * tests/test-link.h (test_link): Enhance test.
36784         * tests/test-linkat.c (main): Update caller.
36785
36786         unlink, remove: detect FreeBSD bug
36787         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
36788         slash on symlink.
36789         * doc/posix-functions/unlink.texi (unlink): Document the bug.
36790         * doc/posix-functions/remove.texi (remove): Likewise.
36791         * tests/test-unlink.h (test_unlink): Enhance test.
36792         * tests/test-remove.c (main): Likewise.
36793
36794 2009-11-09  Eric Blake  <ebb9@byu.net>
36795
36796         rename: detect FreeBSD bug
36797         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
36798         slash on symlink.
36799         * modules/renameat-tests (Depends-on): Add filenamecat.
36800         * tests/test-rename.h (test_rename): Allow one more errno.
36801         * tests/test-renameat.c (main): Likewise.
36802         * doc/posix-functions/rename.texi (rename): Document the bug.
36803
36804         open: detect FreeBSD bug
36805         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
36806         symlink.
36807         * doc/posix-functions/open.texi (open): Document the bug.
36808         * doc/posix-functions/utimes.texi (utimes): Likewise.
36809         * tests/test-open.h (test_open): Add parameters, and test symlink
36810         handling.
36811         * tests/test-open.c (main): Adjust caller.
36812         * tests/test-fcntl-safer.c (main): Likewise.
36813         * modules/open-tests (Depends-on): Add stdbool, symlink.
36814         * modules/fcntl-safer-tests (Depends-on): Likewise.
36815         * tests/test-openat.c (main): Add test-open tests.
36816
36817         stat: detect FreeBSD bug
36818         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
36819         symlink.
36820         * doc/posix-functions/stat.texi (stat): Document the bug.
36821         * tests/test-stat.h (test_stat_func): Add argument.
36822         * tests/test-stat.c (main): Adjust caller.
36823         * tests/test-fstatat.c (main): Likewise.
36824         * modules/stat-tests (Depends-on): Add stdbool, symlink.
36825         Reported by Jim Meyering.
36826
36827 2009-11-09  James Youngman  <jay@gnu.org>
36828
36829         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
36830         * lib/strftime.c: Correct placement of #include "ignore-value.h".
36831
36832 2009-11-08  Jim Meyering  <meyering@redhat.com>
36833
36834         utimens: remove invalid futimesat call
36835         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
36836         It used the file descriptor of the target file as the DIR_FD
36837         parameter and NULL as the file name.  That caused failure with
36838         errno == EFAULT on FreeBSD-8.0-rc2
36839
36840 2009-11-07  Eric Blake  <ebb9@byu.net>
36841
36842         fflush, freadseek: use fseeko, not fseek
36843         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36844         (clear_ungetc_buffer): Avoid potential problems on large files.
36845         * lib/freadseek.c (freadseek): Likewise.
36846         * modules/freadseek (Depends-on): Add fseeko.
36847         * modules/fseek (configure.ac): Set a witness.
36848         * tests/test-fflush.c (main): Use fseeko.
36849         * tests/test-fpurge.c (fseek): Disable link warning.
36850         * tests/test-freadable.c (fseek): Likewise.
36851         * tests/test-freading.c (fseek): Likewise.
36852         * tests/test-fseeko.c (fseek): Likewise.
36853         * tests/test-ftell.c (fseek): Likewise.
36854         * tests/test-ftello.c (fseek): Likewise.
36855         * tests/test-fwritable.c (fseek): Likewise.
36856         * tests/test-fwriting.c (fseek): Likewise.
36857
36858 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36859
36860         * modules/memchr (Depends-on): Drop getpagesize dependency.
36861
36862 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36863
36864         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
36865         Reported by Ludovic Courtès.
36866         * build-aux/pmccabe2html: Improve example usage.
36867         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
36868
36869 2009-11-06  Jim Meyering  <meyering@redhat.com>
36870
36871         do-release-commit-and-tag: New module.
36872         Automate the release-commit and tag process.
36873         * build-aux/do-release-commit-and-tag: New script, from coreutils.
36874         * modules/do-release-commit-and-tag: New file.
36875         * MODULES.html.sh (Support for maintaining and releasing): Add it.
36876
36877 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36878
36879         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
36880         because test-select.c uses inet_pton.
36881
36882 2009-11-06  Simon Josefsson  <simon@josefsson.org>
36883
36884         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
36885         GETADDRINFO_LIB.  Bump serial number.
36886         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
36887         Suggested by Eric Blake <ebb9@byu.net>.
36888
36889 2009-11-05  Eric Blake  <ebb9@byu.net>
36890
36891         strtod: detect darwin bug
36892         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
36893         Reported by Leo Davis.
36894
36895         freopen-safer: new module
36896         * modules/freopen-safer: New module.
36897         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
36898         * lib/freopen-safer.c (freopen_safer): New file.
36899         * lib/stdio-safer.h (freopen_safer): New declaration.
36900         * lib/stdio--.h (freopen): New override.
36901         * MODULES.html.sh (File stream based Input/Output): Mention it.
36902         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
36903         freopen-safer module.
36904         * doc/posix-functions/stderr.texi (stderr): Likewise.
36905         * doc/posix-functions/stdin.texi (stdin): Likewise.
36906         * doc/posix-functions/stdout.texi (stdout): Likewise.
36907         * modules/freopen-safer-tests: New test.
36908         * tests/test-reopen-safer.c: New file.
36909
36910 2009-11-05  Jim Meyering  <meyering@redhat.com>
36911
36912         maint.mk: Prohibit inclusion of "close-stream.h" without use.
36913         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
36914
36915 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36916
36917         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
36918
36919 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36920
36921         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
36922
36923 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36924
36925         Fix link error.
36926         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36927         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36928
36929 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36930
36931         * tests/test-func.c: Also test value of __func__.
36932
36933 2009-11-05  Simon Josefsson  <simon@josefsson.org>
36934
36935         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
36936         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
36937
36938 2009-11-05  Bruno Haible  <bruno@clisp.org>
36939
36940         Fix link error.
36941         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
36942         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36943         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
36944
36945 2009-11-05  Bruno Haible  <bruno@clisp.org>
36946
36947         Tests for module 'inet_pton'.
36948         * modules/inet_pton-tests: New file.
36949         * tests/test-inet_pton.c: New file.
36950
36951 2009-11-05  Bruno Haible  <bruno@clisp.org>
36952
36953         Tests for module 'inet_ntop'.
36954         * modules/inet_ntop-tests: New file.
36955         * tests/test-inet_ntop.c: New file.
36956
36957 2009-11-04  Eric Blake  <ebb9@byu.net>
36958
36959         stdlib-safer: wrap all mkstemp variants
36960         * modules/mkostemp (configure.ac): Set witness.
36961         * modules/mkostemps (configure.ac): Likewise.
36962         * modules/mkstemps (configure.ac): Likewise.
36963         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
36964         (mkstemps_safer): Wrap more functions.
36965         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
36966         wrapping.
36967         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
36968         (mkstemps_safer): Implement the wrappers.
36969
36970         mkstemps, mkostemps: new modules
36971         * modules/mkostemps: New module.
36972         * modules/mkstemps: Likewise.
36973         * lib/mkostemps.c (mkostemps): New file.
36974         * lib/mkstemps.c (mkstemps): Likewise.
36975         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
36976         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
36977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
36978         * modules/stdlib (Makefile.am): Substitute them.
36979         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
36980         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
36981         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
36982         * doc/gnulib.texi (Glibc stdlib.h): Include them.
36983         * MODULES.html.sh (File system functions): Mention them.
36984
36985         tempname: resync from glibc
36986         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
36987         same values for __GT_FILE as glibc.  Abort even when assertions
36988         are disabled.
36989         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
36990         match its value otherwise.  Allow idempotent inclusion.
36991         * lib/mkdtemp.c (mkdtemp): Adjust caller.
36992         * lib/mkostemp.c (mkostemp): Likewise.
36993         * lib/mkstemp.c (mkstemp): Likewise.
36994         * lib/tmpfile.c (tmpfile): Likewise.
36995         * NEWS: Document this.
36996
36997         utimens: fix use of futimens on older Linux
36998         * lib/utimens.c (fdutimens): Use updated, rather than original,
36999         timespec to avoid bug in older Linux kernel.
37000         Reported by Simon Josefsson.
37001
37002 2009-11-04  Bruno Haible  <bruno@clisp.org>
37003
37004         Make num_processors more flexible and consistent.
37005         * lib/nproc.h (enum nproc_query): New type.
37006         (num_processors): Add a 'query' argument.
37007         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
37008         (num_processors): Add a 'query' argument. Test the value of the
37009         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
37010         mingw, count the number of CPUs available for the current process.
37011         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
37012         Check for sched_getaffinity and sched_getaffinity_np.
37013         * modules/nproc (Depends-on): Add c-ctype, extensions.
37014         * NEWS: Mention the change.
37015
37016 2009-11-03  Bruno Haible  <bruno@clisp.org>
37017
37018         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
37019
37020 2009-11-03  Jim Meyering  <meyering@redhat.com>
37021
37022         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
37023         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
37024         if it is defined.
37025
37026 2009-11-02  Eric Blake  <ebb9@byu.net>
37027
37028         mktime, timegm: share common declaration
37029         * lib/mktime-internal.h: New file.
37030         * lib/mktime.c: Use it rather than open-coding a declaration.
37031         * lib/timegm.c: Likewise.
37032         * modules/mktime (Files): Ship it.
37033         * modules/timegm (Files): Likewise.
37034         Suggested by Bruno Haible.
37035
37036         test-update-copyright: update test to match script changes
37037         * tests/test-update-copyright.sh: Avoid hard-coding perl
37038         location.  Don't update *.bak created by earlier runs.
37039
37040 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
37041             Simon Josefsson  <simon@josefsson.org>
37042             Bruno Haible  <bruno@clisp.org>
37043
37044         Fix link error on Solaris 8.
37045         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
37046         also in libnsl. Define also INET_PTON_LIB.
37047         * modules/inet_pton (Link): New section.
37048
37049 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37050             Bruno Haible  <bruno@clisp.org>
37051
37052         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
37053         * modules/inet_ntop (Link): New section.
37054         Reported by Boyan Kasarov <bkasarov@gmail.com>.
37055
37056 2009-11-02  Eric Blake  <ebb9@byu.net>
37057
37058         maint: avoid compiler warnings in m4 macros
37059         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
37060         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
37061
37062 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37063
37064         * m4/pmccabe2html.m4: Remove file.
37065         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
37066         function.  Change maintainer.
37067         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
37068         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
37069         Courtès).
37070
37071 2009-10-31  Eric Blake  <ebb9@byu.net>
37072
37073         fseeko: fix m4 regression
37074         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
37075         regression from 2009-10-27.
37076         Reported by Ralf Wildenhues.
37077
37078 2009-10-31  Jim Meyering  <meyering@redhat.com>
37079
37080         inttostr: aesthetics and improved (compile-time) safety
37081         Define inttype_is_signed rather than inttype_is_unsigned,
37082         since the sole use is via "#if inttype_is_signed".
37083         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
37084         inttype_is_unsigned.
37085         * lib/offtostr.c (inttype_is_signed): Likewise.
37086         * lib/uinttostr.c (inttype_is_signed): Likewise.
37087         * lib/umaxtostr.c (inttype_is_signed): Likewise.
37088         * lib/inttostr.c (inttostr): Use verify to cross-check the
37089         inttype_is_signed value and the signedness of the actual type.
37090         * modules/inttostr (Depends-on): Add verify.
37091
37092 2009-10-30  Eric Blake  <ebb9@byu.net>
37093
37094         build: avoid compiler warnings
37095         * lib/fchmodat.c (lchmod): Mark unused variables.
37096         * lib/getopt.c (_getopt_initialize): Likewise.
37097         * lib/mktime.c (__mktime_internal): Provide prototype.
37098         * lib/inttostr.c (inttostr): Avoid compiler warning even with
37099         older gcc that do not understand #pragma GCC diagnostic.
37100         * lib/uinttostr.c (inttype_is_unsigned): Define.
37101         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
37102
37103 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
37104
37105         stat: fix compilation on AIX
37106         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
37107         only see struct stat64.
37108
37109 2009-10-30  Eric Blake  <ebb9@byu.net>
37110
37111         exclude: make more robust
37112         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
37113         rather than masking a coding bug.
37114         Suggested by Bruno Haible.
37115
37116 2009-10-30  Jim Meyering  <meyering@redhat.com>
37117
37118         perl scripts: remove #!/usr/bin/perl in favor of more portable...
37119         Rather than putting #!/usr/bin/perl on the first line,
37120         start with a variant of what's recommended by "man perlrun" that
37121         invokes the first "perl" program from your shell's search path.
37122         * build-aux/gitlog-to-changelog: Replace #!... as above.
37123         Add a "Local Variables" perl mode setting.
37124         Prompted by a patch from Ludovic Courtès.
37125         Improved by Eric Blake.
37126         * build-aux/useless-if-before-free: Likewise.
37127         * build-aux/announce-gen: Likewise.
37128         * build-aux/update-copyright: Likewise.
37129
37130 2009-10-29  Eric Blake  <ebb9@byu.net>
37131
37132         filenamecat-lgpl: adjust clients
37133         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
37134         filenamecat.
37135         * modules/renameat (Depends-on): Likewise.
37136
37137         filenamecat: split into filenamecat-lgpl
37138         * modules/filenamecat-lgpl: New module.
37139         * modules/filenamecat (Files): Move library-safe files into
37140         filenamecat-lgpl.
37141         (Depends-on): Add filenamecat-lgpl.
37142         (configure.ac): Declare witness.
37143         * lib/filenamecat.h (file_name_concat): Only declare when using
37144         GPL module.
37145         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
37146         Move...
37147         * lib/filenamecat-lgpl.c: ...into new file.
37148         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
37149         (gl_FILE_NAME_CONCAT): Use it.
37150         * MODULES.html.sh (File system functions): Mention new module.
37151
37152         argp: avoid memory leak
37153         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
37154         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
37155         base_name, since the latter malloc()s and can call exit().
37156         Leak introduced 2006-07-03.
37157
37158         dirname-lgpl: adjust clients that don't need full dirname
37159         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
37160         * modules/filenamecat (Depends-on): Likewise.
37161         * modules/linkat (Depends-on): Likewise.
37162         * modules/mkancesdirs (Depends-on): Likewise.
37163         * modules/mkdir (Depends-on): Likewise.
37164         * modules/openat (Depends-on): Likewise.
37165         * modules/savewd (Depends-on): Likewise.
37166         * modules/rename (Depends-on): Likewise.
37167         (License): Relax license.
37168         * modules/mkdir-tests (Depends-on): Drop progname.
37169         (Makefile.am): Delete unneeded LDADD.
37170         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
37171
37172         dirname: split into dirname-lgpl
37173         * modules/dirname-lgpl: New module.
37174         * modules/dirname (Files): Move library-safe files into
37175         dirname-lgpl.
37176         (Depends-on): Add dirname-lgpl.
37177         (configure.ac): Declare witness.
37178         * modules/double-slash-root (License): Relax license.
37179         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
37180         module.
37181         * lib/dirname.c (dir_len, mdir_name): Move...
37182         * lib/dirname-lgpl.c: ...into new file.
37183         * lib/basename.c (last_component, base_len): Move...
37184         * lib/basename-lgpl.c: ...into new file.
37185         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
37186         (gl_DIRNAME): Use it.
37187         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
37188         Mention new module.
37189         * modules/dirname-tests (Depends-on): Add progname.
37190         * tests/test-dirname.c (program_name): Delete.
37191
37192         mkdir: make safe for libraries
37193         * modules/mkdir (Depends-on): Drop xalloc.
37194         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
37195         exit.
37196
37197         tests: avoid some compiler warnings
37198         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
37199         literals.
37200         * tests/test-memchr.c (main): Avoid type mismatch.
37201         * tests/test-arpa_inet.c (main): Avoid unused parameters.
37202         * tests/test-base64.c (main): Likewise.
37203         * tests/test-getdelim.c (main): Likewise.
37204         * tests/test-gethostname.c (main): Likewise.
37205         * tests/test-getline.c (main): Likewise.
37206         * tests/test-netinet_in.c (main): Likewise.
37207         * tests/test-select.c (open_server_socket, main): Likewise.
37208         * tests/test-select-stdin.c (main): Likewise.
37209         * tests/test-sockets.c (main): Likewise.
37210         * tests/test-strsignal.c (main): Likewise.
37211         * tests/test-sys_select.c (main): Likewise.
37212         * tests/test-sys_socket.c (main): Likewise.
37213         * tests/test-u64.c (main): Likewise.
37214         * tests/test-xfprintf-posix.c (main): Likewise.
37215         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
37216
37217         sockets: avoid compiler warning
37218         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
37219
37220         maint: detect usage(1) and other suspicious exits
37221         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
37222
37223 2009-10-29  Jim Meyering  <meyering@redhat.com>
37224
37225         timespec: long-to-int truncation could make timespec_cmp malfunction
37226         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
37227         a multiple of 2^32 nanoseconds as no difference.
37228
37229 2009-10-28  Jim Meyering  <meyering@redhat.com>
37230
37231         fprintftime: wrap macro code argument in "do {...} while(0)"
37232         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
37233         cpy macro must be a statement that can be followed by a semicolon.
37234         Now that the else clause contains a comment and is hence longer
37235         than one line, I require curly braces.  That in turn requires
37236         that we wrap this code block in the standard do...while(0).
37237
37238         fprintftime: remove stray semicolon from previous change
37239         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
37240
37241         fprintftime: avoid a warning about ignored fwrite return value
37242         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
37243         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
37244         that is unsafe.
37245         * modules/fprintftime (Depends-on): Add ignore-value.
37246
37247         exclude: avoid an unwarranted warning
37248         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
37249
37250 2009-10-27  Eric Blake  <ebb9@byu.net>
37251
37252         fseek: avoid compilation failure when fflush is replaced
37253         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
37254         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
37255         module is in use.
37256         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
37257         module is not in use; since REPLACE_FSEEK worked otherwise.
37258         (GNULIB_FTELLO): Likewise for ftell.
37259         Reported by Ian Beckwith and others.
37260
37261 2009-10-27  Bruno Haible  <bruno@clisp.org>
37262
37263         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
37264         Reported by Jim Meyering.
37265
37266 2009-10-27  Jim Meyering  <jim@meyering.net>
37267             Bruno Haible  <bruno@clisp.org>
37268
37269         Avoid warning despite dropping the return value of fwrite.
37270         * lib/unicodeio.c: Include ignore-value.h.
37271         (fwrite_success_callback): Explicitly ignore fwrite's return value.
37272         * modules/unicodeio (Depends-on): Add ignore-value.
37273
37274 2009-10-26  Eric Blake  <ebb9@byu.net>
37275
37276         areadlinkat: fix fallback path
37277         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
37278         pointer and zero.
37279
37280 2009-10-22  Pádraig Brady  <P@draigBrady.com>
37281
37282         Use a better IO block size for modern systems
37283         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
37284         * lib/md2.c: Likewise.
37285         * lib/md4.c: Likewise.
37286         * lib/md5.c: Likewise.
37287         * lib/sha1.c: Likewise.
37288         * lib/sha256.c: Likewise.
37289         * lib/sha512.c: Likewise.
37290
37291 2009-10-22  Eric Blake  <ebb9@byu.net>
37292
37293         tests: avoid several compiler warnings
37294         * tests/test-getcwd.c (main): Avoid buffer underflow.
37295         * tests/test-getdate.c (main): String literals are not safe with
37296         putenv, so use setenv.  Declare unused argument.
37297         * modules/getdate-tests (Depends-on): Add setenv.
37298         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
37299         problems with string literals in char *.
37300         * tests/test-hash.c (main): Avoid shadowing declaration.
37301         (insert_new): Treat string literals as char const *.
37302         * tests/test-getopt.h (test_getopt): Likewise.
37303         (getopt_loop): Alter types to minimize casting elsewhere.
37304         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
37305         (test_getopt_long_posix): Likewise.
37306         (do_getopt_long): Add wrapper to minimize casting.
37307         * tests/test-atexit.c (clear_temp_file): Use void.
37308         * tests/test-areadlink-with-size.c (main): Declare unused
37309         arguments.
37310         * tests/test-areadlink.c (main): Likewise.
37311         * tests/test-areadlinkat-with-size.c (main): Likewise.
37312         * tests/test-areadlinkat.c (main): Likewise.
37313         * tests/test-canonicalize-lgpl.c (main): Likewise.
37314         * tests/test-canonicalize.c (main): Likewise.
37315         * tests/test-dirent-safer.c (main): Likewise.
37316         * tests/test-dirname.c (main): Likewise.
37317         * tests/test-dup2.c (main): Likewise.
37318         * tests/test-fchdir.c (main): Likewise.
37319         * tests/test-fcntl-h.c (main): Likewise.
37320         * tests/test-fcntl-safer.c (main): Likewise.
37321         * tests/test-fdopendir.c (main): Likewise.
37322         * tests/test-fdutimensat.c (main): Likewise.
37323         * tests/test-fflush.c (main): Likewise.
37324         * tests/test-filenamecat.c (main): Likewise.
37325         * tests/test-filevercmp.c (main): Likewise.
37326         * tests/test-fopen-safer.c (main): Likewise.
37327         * tests/test-fopen.c (main): Likewise.
37328         * tests/test-fpending.c (main): Likewise.
37329         * tests/test-fpurge.c (main): Likewise.
37330         * tests/test-freading.c (main): Likewise.
37331         * tests/test-fstatat.c (main): Likewise.
37332         * tests/test-fsync.c (main): Likewise.
37333         * tests/test-futimens.c (main): Likewise.
37334         * tests/test-getndelim2.c (main): Likewise.
37335         * tests/test-gettimeofday.c (main): Likewise.
37336         * tests/test-getopt.c (main): Likewise.
37337         * tests/test-i-ring.c (main): Likewise.
37338         * tests/test-inttypes.c (main): Likewise.
37339         * tests/test-link.c (main): Likewise.
37340         * tests/test-lstat.c (main): Likewise.
37341         * tests/test-math.c (main): Likewise.
37342         * tests/test-md5.c (main): Likewise.
37343         * tests/test-memchr2.c (main): Likewise.
37344         * tests/test-memrchr.c (main): Likewise.
37345         * tests/test-mkdir.c (main): Likewise.
37346         * tests/test-mkdirat.c (main): Likewise.
37347         * tests/test-mkfifoat.c (main): Likewise.
37348         * tests/test-open.c (main): Likewise.
37349         * tests/test-openat-safer.c (main): Likewise.
37350         * tests/test-openat.c (main): Likewise.
37351         * tests/test-quotearg.c (main): Likewise.
37352         * tests/test-rawmemchr.c (main): Likewise.
37353         * tests/test-readlink.c (main): Likewise.
37354         * tests/test-remove.c (main): Likewise.
37355         * tests/test-rename.c (main): Likewise.
37356         * tests/test-renameat.c (main): Likewise.
37357         * tests/test-rmdir.c (main): Likewise.
37358         * tests/test-sha1.c (main): Likewise.
37359         * tests/test-signal.c (main): Likewise.
37360         * tests/test-sigaction.c (main): Likewise.
37361         * tests/test-stat.c (main): Likewise.
37362         * tests/test-stat-time.c (main): Likewise.
37363         * tests/test-stddef.c (main): Likewise.
37364         * tests/test-stdint.c (main): Likewise.
37365         * tests/test-stdio.c (main): Likewise.
37366         * tests/test-stdlib.c (main): Likewise.
37367         * tests/test-strchrnul.c (main): Likewise.
37368         * tests/test-strerror.c (main): Likewise.
37369         * tests/test-string.c (main): Likewise.
37370         * tests/test-strtod.c (main): Likewise.
37371         * tests/test-strverscmp.c (main): Likewise.
37372         * tests/test-symlink.c (main): Likewise.
37373         * tests/test-symlinkat.c (main): Likewise.
37374         * tests/test-sys_stat.c (main): Likewise.
37375         * tests/test-sys_time.c (main): Likewise.
37376         * tests/test-time.c (main): Likewise.
37377         * tests/test-unistd.c (main): Likewise.
37378         * tests/test-unlink.c (main): Likewise.
37379         * tests/test-unlinkat.c (main): Likewise.
37380         * tests/test-utimens.c (main): Likewise.
37381         * tests/test-utimensat.c (main): Likewise.
37382         * tests/test-version-etc.c (main): Likewise.
37383         * tests/test-wchar.c (main): Likewise.
37384         * tests/test-wctype.c (main): Likewise.
37385         * tests/test-xprintf-posix.c (main): Likewise.
37386         * tests/test-posixtm.c (main): Likewise.
37387         (STREQ): Delete unused macro.
37388         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
37389         shadowed variables.
37390         * tests/test-memchr.c (main): Likewise.
37391
37392 2009-10-21  Eric Blake  <ebb9@byu.net>
37393
37394         areadlinkat: avoid failure on older glibc
37395         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
37396         rather than mis-comparing 0 against FUNC_RESULT of char*.
37397
37398 2009-10-21  Bruno Haible  <bruno@clisp.org>
37399
37400         * modules/stpncpy (License): Relicense under LGPLv2+.
37401         Reported by David Lutterkort <lutter@redhat.com>.
37402
37403 2009-10-20  Eric Blake  <ebb9@byu.net>
37404
37405         utimensat: work around Solaris 9 bug
37406         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
37407         has trailing slash bugs.
37408         * tests/test-lutimens.h (test_lutimens): Enhance test.
37409         * tests/test-utimens.h (test_utimens): Likewise.
37410         * doc/posix-functions/utime.texi (utime): Enhance documentation.
37411         * doc/posix-functions/utimes.texi (utimes): Likewise.
37412         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37413         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
37414         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
37415         * doc/posix-functions/futimens.texi (futimens): Likewise.
37416
37417         fdutimensat: new module
37418         * modules/fdutimensat: New file.
37419         * lib/fdutimensat.c (fdutimensat): Likewise.
37420         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
37421         * MODULES.html.sh (File system functions): Mention module.
37422         * modules/fdutimensat-tests: New test.
37423         * tests/test-fdutimensat.c: Likewise.
37424
37425         doc: regenerate INSTALL
37426         * doc/INSTALL: Reflect recent autoconf update.
37427         * doc/INSTALL.ISO: Likewise.
37428         * doc/INSTALL.UTF-8: Likewise.
37429
37430 2009-10-20  Pádraig Brady  <P@draigBrady.com>
37431
37432         acl: warn if ACL support is not detected
37433         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
37434
37435 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
37436
37437         * lib/nproc.h: Add extern "C" block for C++.
37438
37439 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
37440             Bruno Haible  <bruno@clisp.org>
37441
37442         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
37443         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
37444         * doc/posix-functions/isalpha.texi: Likewise.
37445         * doc/posix-functions/isblank.texi: Likewise.
37446         * doc/posix-functions/iscntrl.texi: Likewise.
37447         * doc/posix-functions/isdigit.texi: Likewise.
37448         * doc/posix-functions/isgraph.texi: Likewise.
37449         * doc/posix-functions/islower.texi: Likewise.
37450         * doc/posix-functions/isprint.texi: Likewise.
37451         * doc/posix-functions/ispunct.texi: Likewise.
37452         * doc/posix-functions/isspace.texi: Likewise.
37453         * doc/posix-functions/isupper.texi: Likewise.
37454         * doc/posix-functions/isxdigit.texi: Likewise.
37455
37456 2009-10-18  Bruno Haible  <bruno@clisp.org>
37457
37458         Tests for module 'isblank'.
37459         * modules/isblank-tests: New file.
37460         * tests/test-isblank.c: New file.
37461
37462         New module 'isblank'.
37463         * lib/isblank.c: New file.
37464         * m4/isblank.m4: New file.
37465         * modules/isblank: New file.
37466         * doc/posix-functions/isblank.texi: Mention the new module.
37467
37468 2009-10-18  Bruno Haible  <bruno@clisp.org>
37469
37470         New module 'ctype'.
37471         * lib/ctype.in.h: New file.
37472         * m4/ctype.m4: New file.
37473         * modules/ctype: New file.
37474         * doc/posix-headers/ctype.texi: Mention the new module.
37475
37476 2009-10-18  Jim Meyering  <meyering@redhat.com>
37477
37478         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
37479         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
37480         right after its initialization, rather than farther down.
37481         Keeping these in close proximity makes it easier to ensure
37482         that each such variable is initialized.  E.g.,
37483
37484             LIB_CLOCK_GETTIME=
37485             AC_SUBST([LIB_CLOCK_GETTIME])
37486
37487         This change also increments these serial numbers.
37488         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
37489         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37490         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37491
37492 2009-10-18  Bruno Haible  <bruno@clisp.org>
37493
37494         Don't let environment variables perturb build.
37495         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
37496         (gl_PREREQ_GETHRXTIME): ... not here.
37497
37498 2009-10-18  Bruno Haible  <bruno@clisp.org>
37499
37500         Avoid symlink attack in localcharset module.
37501         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
37502         (O_NOFOLLOW): Define fallback.
37503         (get_charset_aliases): Don't open the file if it is a symbolic link.
37504         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
37505         gl_FCNTL_H.
37506         (gl_FCNTL_H): Require it.
37507         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
37508         * modules/localcharset (Files): Add m4/fcntl_h.m4.
37509         Reported by Fergal Glynn <fglynn@veracode.com>.
37510
37511 2009-10-18  Bruno Haible  <bruno@clisp.org>
37512
37513         Implement nproc for mingw.
37514         * lib/nproc.c: Include <windows.h>
37515         (num_processors): On native Windows platforms, try GetSystemInfo.
37516
37517 2009-10-18  Bruno Haible  <bruno@clisp.org>
37518
37519         Implement nproc for IRIX.
37520         * lib/nproc.c: Include <sys/sysmp.h>.
37521         (num_processors): On IRIX systems, try sysmp.
37522         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
37523
37524 2009-10-18  Bruno Haible  <bruno@clisp.org>
37525
37526         Implement nproc for HP-UX.
37527         * lib/nproc.c: Include <sys/pstat.h>
37528         (num_processors): On HP-UX systems, try pstat_getdynamic.
37529         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
37530         pstat_getdynamic.
37531
37532 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
37533             Bruno Haible  <bruno@clisp.org>
37534
37535         Implement nproc for NetBSD, OpenBSD.
37536         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
37537         (ARRAY_SIZE): New macro.
37538         (num_processors): On BSD systems, try sysctl of HW_NCPU.
37539         * m4/nproc.m4: New file.
37540         * modules/nproc (Files): Add m4/nproc.m4.
37541         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
37542         (Makefile.am): Instead, augment lib_SOURCES.
37543
37544 2009-10-18  Bruno Haible  <bruno@clisp.org>
37545
37546         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
37547         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
37548         sys/param.h.
37549
37550 2009-10-16  Eric Blake  <ebb9@byu.net>
37551
37552         utimensat: new module
37553         * modules/utimensat: New file.
37554         * lib/utimensat.c (utimensat): Likewise.
37555         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37556         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
37557         so we can work around Linux bugs.
37558         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37559         * modules/sys_stat (Makefile.am): Substitute them.
37560         * lib/sys_stat.in.h (utimensat): Declare it.
37561         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37562         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37563         * modules/utimensat-tests: New test.
37564         * tests/test-utimensat.c: Likewise.
37565
37566         utimens: let lutimens work on non-symlinks
37567         * lib/utimens.c (lutimens): Fall back to utimens rather than
37568         failing with ENOSYS, when file is not a symlink.
37569         (utimens): Reduce redirection.
37570         * tests/test-lutimens.h (test_lutimens): Update test to cover
37571         non-symlinks.
37572         * tests/test-utimens.h (test_utimens): Update test to cover
37573         symlinks.
37574         * tests/test-utimens.c (main): Update caller.
37575
37576         utimens: cache whether utimensat syscall works
37577         * lib/utimens.c (utimensat_works_really): New cache variable.
37578         (fdutimens, lutimens): Use it to avoid failing syscall.
37579
37580         test-stat-time, test-utimens: improve portability
37581         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
37582         ext4 on alpha, and for cygwin.
37583         * tests/test-utimens-common.h: New file.
37584         (nap): Factor delays into single function.
37585         * tests/test-lutimens.h (test_lutimens): Use new header.
37586         * tests/test-futimens.h (test_futimens): Likewise.
37587         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
37588         timestamps to occur from same machine, as was done previously for
37589         test_utimens.
37590         * modules/utimens-tests (Files): Ship new file.
37591         * modules/futimens-tests (Files): Likewise.
37592         Reported in part by Jim Meyering.
37593
37594         sys_stat: sort replacement declarations
37595         * lib/sys_stat.in.h: Sort declarations.
37596         * lib/futimens.c (futimens): Fix typo.
37597
37598 2009-10-15  Jim Meyering  <meyering@redhat.com>
37599
37600         don't let environment settings perturb build
37601         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
37602         could cause a configure-time and/or build-time malfunction.
37603         Typically, a configure-time function-in-library test is performed
37604         via code like this:
37605
37606           LIB_VAR=
37607           AC_SUBST([LIB_VAR])
37608           prefix_saved_LIBS=$LIBS
37609             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
37610                        [test "$ac_cv_search_FUNC" = "none required" ||
37611                         LIB_VAR=$ac_cv_search_FUNC])
37612           LIBS=$prefix_saved_LIBS
37613
37614         However, in each of the files affected by this change, the LIB_VAR=
37615         initialization was omitted.  Thus, when set in the environment, its
37616         value would propagate into generated Makefiles when FUNC is not found
37617         in LIB_NAME.
37618         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
37619         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37621
37622 2009-10-14  Eric Blake  <ebb9@byu.net>
37623
37624         fchdir: avoid infinite recursion in mingw
37625         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
37626         recursing.
37627
37628         test-stat-time: port to mingw
37629         * tests/test-stat-time.c (force_unlink): Return a value.
37630         (test_ctime) [W32]: Fix compilation error.
37631         (nap): Don't call usleep with too large an argument.  Use
37632         force_unlink.
37633         * doc/pastposix-functions/usleep.texi (usleep): Document the
37634         portability issue.
37635
37636 2009-10-13  Jim Meyering  <meyering@redhat.com>
37637
37638         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
37639         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
37640         * modules/pipe-filter-ii: Likewise.
37641         * modules/sys_socket-tests: Likewise.
37642         * modules/tsearch-tests: Likewise.
37643         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
37644         (check): Depend on it.
37645
37646 2009-10-12  Eric Blake  <ebb9@byu.net>
37647
37648         utimens-tests: port to NFS file systems
37649         * tests/test-utimens.h (test_utimens): Refactor utimecmp
37650         comparisons to avoid spurious failures from timestamp drift
37651         between NFS machines.
37652
37653 2009-10-12  Eric Blake  <ebb9@byu.net>
37654
37655         stat-time-tests: minor cleanups
37656         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
37657         * tests/test-stat-time.c (nap): Separate assignment from call.
37658         Suggested by Paolo Bonzini and Bruno Haible.
37659
37660         sys_stat: guarantee struct timespec
37661         * lib/sys_stat.in.h (includes): Always include <time.h>
37662         * modules/sys_stat (Depends-on): Add time.
37663         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
37664         mode_t permission values.
37665         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
37666         get at subsecond timestamps.
37667
37668 2009-10-10  Eric Blake  <ebb9@byu.net>
37669
37670         futimens: new module
37671         * modules/futimens: New file.
37672         * lib/futimens.c (futimens): Likewise.
37673         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
37674         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
37675         we can work around Linux bugs.
37676         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37677         * modules/sys_stat (Makefile.am): Substitute them.
37678         * lib/sys_stat.in.h (futimens): Declare it.
37679         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37680         * doc/posix-functions/futimens.texi (futimens): Likewise.
37681         * modules/futimens-tests: New test.
37682         * tests/test-futimens.c: Likewise.
37683
37684         utimens: introduce fdutimens
37685         * lib/utimens.h (fdutimens): New prototype.
37686         * lib/utimens.c (gl_futimens): Move guts...
37687         (fdutimens): ...to new interface.
37688         * tests/test-utimens.c (do_fdutimens): Use it.
37689
37690         utimens: add UTIME_NOW and UTIME_OMIT support
37691         * lib/utimens.c (validate_timespec, update_timespec): New helper
37692         functions.
37693         (gl_futimens, lutimens): Use them.
37694         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
37695         stdbool, sys_stat.
37696         (Link): Mention resulting library dependency.
37697         * modules/utimecmp (Link): Likewise.
37698         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
37699         (Makefile.am): Pick up library dependency.
37700         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
37701         definition.
37702         * tests/test-sys_stat.c: Test the definitions.
37703         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
37704         * NEWS: Document library dependency.
37705
37706         utimecmp: support symlink timestamps
37707         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
37708         hashing when possible.  Use pathconf when available.
37709         (SYSCALL_RESOLUTION): Recognize tighter resolution.
37710         * modules/utimecmp (Depends-on): Add lstat.
37711
37712         utimens: add lutimens interface
37713         * lib/utimens.c (lutimens): New function.
37714         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
37715         * lib/utimens.h (lutimens): Declare new interface.
37716         * tests/test-utimens.c (main): Enhance test.
37717         * tests/test-lutimens.h (test_lutimens): New file.
37718         * modules/utimens-tests (Files): Distribute it.
37719         (Depends-on): Add symlink.
37720         (configure.ac): Check for usleep.
37721
37722         utimens: validate futimens usage
37723         * lib/utimens.c (gl_futimens): Require valid fd up front, using
37724         fewer syscalls on failure later on.  Avoid compiler warning on
37725         mingw.
37726         * modules/utimens (Depends-on): Add dup2.
37727
37728         utimens: add test
37729         * modules/utimens-tests: New test.
37730         * tests/test-utimens.h: New file.
37731         * tests/test-futimens.h: Likewise.
37732         * tests/test-utimens.c: Likewise.
37733
37734         doc: mention timestamp portability issues
37735         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
37736         instead.
37737         * doc/posix-functions/utime.texi (utime): Likewise.
37738         * doc/posix-functions/utimes.texi (utimes): Likewise.
37739         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
37740         instead.
37741         * doc/posix-functions/futimens.texi (futimens): Mention utimens
37742         module.
37743         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37744         Mention weakness with symlink timestamps.
37745         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
37746         to utimensat/futimens instead.
37747         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
37748
37749         test-dup2: enhance test
37750         * tests/test-dup2.c (main): Also check AT_FDCWD.
37751
37752         test-stat-time: avoid more spurious failures
37753         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
37754         xfs; and avoid race if the two timestamps cross quantization edge.
37755
37756         relocatable: prefer 'file system' over 'filesystem'
37757         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
37758         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
37759         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
37760         * doc/relocatable.texi (Enabling Relocatability): Likewise.
37761         * lib/relocatable.c (compute_curr_prefix): Likewise.
37762
37763 2009-10-10  Jim Meyering  <meyering@redhat.com>
37764
37765         stat-time-tests: check for the usleep function
37766         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
37767
37768 2009-10-10  Bruno Haible  <bruno@clisp.org>
37769
37770         * modules/xnanosleep: Put the Link section after the Include section.
37771
37772 2009-10-09  Eric Blake  <ebb9@byu.net>
37773
37774         dup2: work around FreeBSD 6.1 bug
37775         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
37776         * doc/posix-functions/dup2.texi (dup2): Document it.
37777         Reported by Nelson H. F. Beebe and Jim Meyering.
37778
37779         test-stat-time: port to buggy NFS clients
37780         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
37781         (test_ctime): Also skip test if mtime and ctime are skewed.
37782
37783         maint: prefer 'file system' over 'filesystem'
37784         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37785         * doc/posix-functions/lstat.texi (lstat): Likewise.
37786         * lib/file-has-acl.c (file_has_acl): Likewise.
37787         * lib/fwriteerror.c [TEST]: Likewise.
37788         * tests/test-areadlink.h (test_areadlink): Likewise.
37789         * tests/test-areadlinkat-with-size.c (main): Likewise.
37790         * tests/test-areadlinkat.c (main): Likewise.
37791         * tests/test-canonicalize-lgpl.c (main): Likewise.
37792         * tests/test-canonicalize.c (main): Likewise.
37793         * tests/test-fstatat.c (main): Likewise.
37794         * tests/test-linkat.c (main): Likewise.
37795         * tests/test-lstat.h (test_lstat_func): Likewise.
37796         * tests/test-mkdir.h (test_mkdir): Likewise.
37797         * tests/test-readlink.h (test_readlink): Likewise.
37798         * tests/test-remove.c (main): Likewise.
37799         * tests/test-rename.h (test_rename): Likewise.
37800         * tests/test-renameat.c (main): Likewise.
37801         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37802         * tests/test-symlink.h (test_symlink): Likewise.
37803         * tests/test-symlinkat.c (main): Likewise.
37804         * tests/test-unlink.h (test_unlink_func): Likewise.
37805         * tests/test-unlinkat.c (main): Likewise.
37806
37807         maint: make realtime library usage explicit
37808         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
37809         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
37810         * modules/settime (Link): Likewise.
37811         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
37812
37813         test-stat-time: speed up execution
37814         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
37815         warning on mingw.
37816         (nap): New helper function.
37817         (prepare_test): Use it to reduce sleep time.
37818         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
37819         execution.
37820         * modules/stat-time-tests (configure.ac): Check for usleep.
37821
37822 2009-10-09  Jim Meyering  <meyering@redhat.com>
37823
37824         selinux-h: always use getfilecon wrappers
37825         * lib/getfilecon.c: New file.
37826         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
37827         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
37828         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
37829         (fgetfilecon): Provide a stub.
37830         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
37831         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
37832         file unconditionally.
37833         When <selinux/selinux.h> is found, arrange to use wrappers.
37834         * modules/selinux-h (Files): Add getfilecon.c.
37835         (Makefile.am): Substitute include-next-related bits
37836         into the now-always-generated selinux/selinux.h file.
37837         * doc/glibc-functions/lgetfilecon.texi: New file.
37838         * doc/glibc-functions/fgetfilecon.texi: New file.
37839         * doc/glibc-functions/getfilecon.texi: New file.
37840         * doc/glibc-functions/getfilecon-desc.texi: New file.
37841         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
37842         which to pull in the new files.
37843         * MODULES.html.sh (Misc): Add selinux-h.
37844
37845 2009-10-08  Jim Meyering  <meyering@redhat.com>
37846
37847         unistd: fix comment typo
37848         * lib/unistd.in.h (euidaccess): Fix a comment typo.
37849
37850 2009-10-08  Eric Blake  <ebb9@byu.net>
37851
37852         areadlink: use SIZE_MAX consistently
37853         * modules/areadlink (Depends-on): Add stdint.
37854         * modules/areadlink-with-size (Depends-on): Likewise.
37855         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
37856         gives NULL; drop sys/types, since unistd gives size_t; and add
37857         stdint for SIZE_MAX.
37858         (SIZE_MAX): Rely on headers.
37859         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
37860         and add stdint.
37861         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
37862         (SIZE_MAX): Likewise.
37863         (INITIAL_BUF_SIZE): Turn into enum.
37864         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
37865
37866 2009-10-08  Jim Meyering  <meyering@redhat.com>
37867
37868         areadlinkat: avoid compilation failure
37869         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
37870         Fix typo in comment.
37871
37872 2009-10-07  Eric Blake  <ebb9@byu.net>
37873
37874         areadlinkat-with-size: new module
37875         * modules/areadlinkat-with-size: New module.
37876         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
37877         * lib/areadlink.h (areadlinkat): Declare it.
37878         * MODULES.html.sh (File system functions): Mention it.
37879         * modules/areadlinkat-with-size-tests: New test.
37880         * tests/test-areadlinkat-with-size.c: New file.
37881
37882         xreadlinkat: new module
37883         * modules/xreadlinkat: New module.
37884         * lib/xreadlinkat.c (xreadlinkat): New file.
37885         * lib/xreadlink.h (xreadlinkat): Declare it.
37886         * MODULES.html.sh (File system functions): Mention it.
37887
37888         areadlinkat: new module
37889         * lib/at-func.c (FUNC_FAIL): New define.
37890         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
37891         * modules/areadlinkat: New module.
37892         * lib/linkat.c (areadlinkat): Move...
37893         * lib/areadlinkat.c (areadlinkat): ...to new file.
37894         * lib/areadlink.h (areadlinkat): Declare it.
37895         * modules/linkat (Depends-on): Add areadlinkat.
37896         * MODULES.html.sh (File system functions): Mention it.
37897         * modules/areadlinkat-tests: New test.
37898         * tests/test-areadlinkat.c: New file.
37899
37900         areadlink, areadlink-with-size: add tests
37901         * modules/areadlink-tests: New test.
37902         * modules/areadlink-with-size-tests: Likewise.
37903         * tests/test-areadlink.h: New file.
37904         * tests/test-areadlink.c: Likewise.
37905         * tests/test-areadlink-with-size.c: Likewise.
37906
37907         maint: minor cleanups
37908         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
37909         _UNUSED_PARAMETER_ instead.
37910         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
37911         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
37912         * modules/linkat-tests (Files): Distribute test-link.h.
37913
37914         openat, utimens: whitespace cleanup
37915         * lib/openat.c: Prefer space throughout, rather than mix of 8
37916         spaces vs. tabs.
37917         * lib/at-func.c: Likewise.
37918         * lib/utimens.c: Likewise.
37919
37920         openat: avoid using wrong fd
37921         * lib/openat.c (openat_permissive): Reject user's fd if saving the
37922         working directory chooses same fd.
37923         * lib/at-func.c (AT_FUNC_NAME): Likewise.
37924
37925         mkdir, mkdirat: fix cygwin 1.5.x bug
37926         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
37927         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
37928         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
37929         bug.
37930         (gl_PREREQ_MKDIR): Delete unused macro.
37931         * modules/mkdir (Files): Track file rename.
37932         (configure.ac): Update macro name.
37933         * modules/openat (Depends-on): Add mkdir.
37934         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
37935
37936         mkdir, mkdirat: add tests
37937         * modules/mkdir-tests: New test.
37938         * tests/test-mkdir.h: New file.
37939         * tests/test-mkdir.c: Likewise.
37940         * tests/test-mkdirat.c: Likewise.
37941         * modules/openat-tests (Files): Add new files.
37942         (Makefile.am): Run new test.
37943
37944 2009-10-06  Eric Blake  <ebb9@byu.net>
37945
37946         doc: tweak *at function documentation
37947         * doc/posix-functions/faccessat.texi (faccessat): Mention
37948         known issue with replacement.
37949         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
37950         * doc/posix-functions/linkat.texi (linkat): Likewise.
37951         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37952         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37953         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37954         * doc/posix-functions/renameat.texi (renameat): Likewise.
37955         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37956
37957         openat: fix GNU/Hurd bug in unlinkat
37958         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
37959         broken.
37960         * doc/posix-functions/unlink.texi (unlink): Document this.
37961         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
37962
37963         fdopendir: fix GNU/Hurd bug
37964         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
37965         allowing non-directory fds.
37966         * lib/fdopendir.c (rpl_fdopendir): Work around it.
37967         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
37968         * modules/dirent (Makefile.am): Substitute it.
37969         * lib/dirent.in.h (fdopendir): Declare replacement.
37970         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
37971         * tests/test-fdopendir.c (main): Test something other than
37972         /dev/null, since on Hurd that behaves like a directory.
37973
37974         test-symlink: port to GNU/Hurd
37975         * tests/test-symlink.h (test_symlink): Relax expected errno.
37976
37977         doc: tweak more cygwin information
37978         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
37979         now compatible with glibc.
37980         * doc/posix-functions/getopt.texi (getopt): Likewise.
37981
37982         getopt-gnu: add another test
37983         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
37984         guarantee behavior relied on by m4.
37985         * tests/test-getopt.c (main): Use it.
37986         * modules/getopt-posix-tests (Depends-on): Add setenv.
37987         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
37988
37989         getopt: fix compilation on darwin
37990         * lib/getopt.in.h (includes): Leave breadcrumbs during system
37991         include.
37992         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
37993         Reported by Ludovic Courtès.
37994
37995 2009-10-06  Bruno Haible  <bruno@clisp.org>
37996
37997         * modules/size_max (Description): Discourage its use.
37998         Reported by Simon Josefsson.
37999
38000 2009-10-06  Jim Meyering  <meyering@redhat.com>
38001
38002         linkat: avoid compilation failure
38003         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
38004
38005 2009-10-05  Eric Blake  <ebb9@byu.net>
38006
38007         linkat: support Linux 2.6.17
38008         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
38009         linkat on Linux, but allow cache variable override.
38010         * lib/linkat.c (rpl_linkat): Define override.
38011         * modules/linkat (Depends-on): Add symlinkat.
38012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
38013         * modules/unistd (Makefile.am): Substitute it.
38014         * lib/unistd.in.h (linkat): Declare replacement.
38015         Reported by Pádraig Brady.
38016
38017         quotearg: port test to systems with C.UTF-8 locale
38018         * tests/test-quotearg.c (struct result_strings): Add another
38019         member, differentiating between C.ASCII and C.UTF-8 handling.
38020         (compare_strings): Add parameter.
38021         (main): Adjust all callers.
38022
38023         getopt: avoid clash with FreeBSD _getopt_internal
38024         * lib/getopt.in.h (_getopt_internal): Override the name.
38025         * lib/getopt_int.h (includes): Pick up any overrides.
38026         Reported by Reuben Thomas.
38027
38028         hash: allow C89 compilation
38029         * lib/hash.c (check_tuning): Move declaration before statement.
38030         Reported by Reuben Thomas.
38031
38032 2009-10-05  Karl Berry  <karl@gnu.org>
38033
38034         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
38035
38036 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
38037             Bruno Haible  <bruno@clisp.org>
38038
38039         * lib/uname.c (uname): Use a table-driven algorithm to compute
38040         Windows NT versions.
38041
38042 2009-10-04  Bruno Haible  <bruno@clisp.org>
38043
38044         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
38045         program_invocation_short_name.
38046         * modules/progname (configure.ac): Test for presence of
38047         program_invocation_short_name.
38048         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38049
38050 2009-10-04  Bruno Haible  <bruno@clisp.org>
38051
38052         * lib/progname.c (set_program_name): Fix comment.
38053         Reported by Jim Meyering.
38054
38055 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38056             Bruno Haible  <bruno@clisp.org>
38057
38058         * lib/uname.c: Include <string.h>.
38059         (uname): Do only one call to GetVersionEx in the common case.
38060
38061 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38062             Bruno Haible  <bruno@clisp.org>
38063
38064         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
38065         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
38066         (uname): Add support for Windows CE and various non-x86 CPU types.
38067
38068 2009-10-03  Bruno Haible  <bruno@clisp.org>
38069
38070         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
38071         invocation to tests/configure.ac.
38072         Reported by Ian Beckwith <ianb@erislabs.net>.
38073
38074 2009-10-02  Eric Blake  <ebb9@byu.net>
38075
38076         fchdir: avoid compiler warning
38077         * lib/fchdir.c (canonicalize_file_name)
38078         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
38079
38080         test-open: support mingw errno values
38081         * tests/test-open.h (test_open): Relax test.
38082         * tests/test-fopen.h (test_fopen): Likewise.
38083         * tests/test-openat-safer.c (main): Likewise.
38084
38085         open: fix opening directory on mingw
38086         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
38087
38088         test-open: on GNU/Hurd, /dev/null is a directory
38089         * tests/test-fopen.h (main): Rename...
38090         (test_fopen): ...to this.  Use a guaranteed non-directory when
38091         confirming open behavior on trailing slash.
38092         * tests/test-openat-safer.c (main): Likewise.
38093         * tests/test-open.h (main): Likewise....
38094         (test_open): ...to this.
38095         * tests/test-fopen.c (main): Adjust caller.
38096         * tests/test-fopen-safer.c (main): Likewise.
38097         * tests/test-open.c (main): Likewise.
38098         * tests/test-fcntl-safer.c (main): Likewise.
38099         Reported by Samuel Thibault.
38100
38101         rename, fchdir: don't ignore chdir failure
38102         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
38103         * lib/rename.c (rpl_rename) [W32]: Likewise.
38104         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
38105         an empty destination directory if source cannot be renamed,
38106         although there is still possibility for failure.
38107         * doc/posix-functions/rename.texi (rename): Document the race.
38108         Reported by Jim Meyering.
38109
38110         maint: cleanup whitespace in recent commits
38111         * lib/rename.c (rpl_rename): Remove tabs.
38112         * tests/test-link.h (test_link): Likewise.
38113         * lib/fchdir.c (get_name): Likewise.
38114         Reported by Jim Meyering.
38115
38116 2009-10-02  Ben Pfaff  <blp@gnu.org>
38117
38118         relocatable-prog-wrapper: Add missing dependency on
38119         double-slash-root.
38120         * modules/relocatable-prog-wrapper: Add dependency.
38121         Reported by Ian Beckwith <ianb@erislabs.net>.
38122
38123 2009-10-02  Eric Blake  <ebb9@byu.net>
38124
38125         renameat: fix Solaris bugs
38126         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
38127         needed fixing.
38128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
38129         * modules/stdio (Makefile.am): Substitute it.
38130         * lib/stdio.in.h (renameat): Declare replacement.
38131         * lib/renameat.c (rpl_renameat): Implement fix.
38132
38133         renameat: new module
38134         * modules/renameat: New file.
38135         * lib/renameat.c (renameat): Likewise.
38136         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
38137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38138         * modules/stdio (Makefile.am): Substitute them.
38139         * lib/stdio.in.h (renameat): Declare it.
38140         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38141         * doc/posix-functions/renameat.texi (renameat): Likewise.
38142         * modules/renameat-tests: New test.
38143         * tests/test-renameat.c: Likewise.
38144
38145         rename: fix mingw bugs
38146         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
38147         directory overwrite bugs.
38148
38149         rename: fix another cygwin 1.5 bug
38150         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
38151         checks.
38152         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
38153         unnecessary cygwin workarounds.  Also work around bug with moving
38154         full directory onto an empty one.
38155         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
38156
38157         rename-dest-slash: merge into rename module
38158         * modules/rename-dest-slash (Status): Mark obsolete.
38159         (Depends-on): Add rename.
38160         (Files): Let rename do it all.
38161         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
38162         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
38163         * m4/rename-dest-slash.m4: ...so this file can be deleted.
38164         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
38165         * lib/rename.c (rpl_rename): Update comments.
38166
38167         rename: fix cygwin 1.5.x bugs
38168         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
38169         * lib/rename.c (rpl_rename): Work around them.
38170         * modules/rename (Depends-on): Add same-inode.
38171
38172         rename: fix Solaris 10 bug
38173         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38174         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
38175         was the only bug.
38176
38177         rename: fix Solaris 9 bug
38178         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
38179         on non-directory.  Avoid calling exit.
38180         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
38181         strdup.
38182         * modules/rename-tests (Depends-on): Drop lstat.
38183         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38184         (gl_PREREQ_RENAME): Delete unused macro.
38185
38186         rename-dest-slash: fix NetBSD bug
38187         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
38188         links.
38189         * modules/rename-dest-slash (Depends-on): Add same-inode.
38190
38191         rename-tests: new test, exposes several platform bugs
38192         * modules/rename-tests: New file.
38193         * tests/test-rename.h: Likewise.
38194         * tests/test-rename.c: Likewise.
38195         * doc/posix-functions/rename.texi (rename): Improve documentation,
38196         including bugs that will eventually be fixed in gnulib.
38197
38198 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
38199
38200         * lib/uname.c: Include <stdlib.h>
38201         (uname): Assume version info is available.
38202
38203 2009-10-02  Jim Meyering  <meyering@redhat.com>
38204
38205         gnu-web-doc-update: correct --help output
38206         * build-aux/gnu-web-doc-update: Make --help output relevant.
38207
38208         gnu-web-doc-update: add standard options
38209         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
38210
38211         gnu-web-doc-update: New module.
38212         Use this script to automatically update the on-line web documentation
38213         for your GNU project at http://www.gnu.org/software/$pkg/manual/
38214         * modules/gnu-web-doc-update: New file, from coreutils.
38215         * build-aux/gnu-web-doc-update: New script.
38216
38217 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
38218
38219         link: LoadLibrary is not needed.
38220         * lib/link.c: Use GetModuleHandle.
38221
38222 2009-10-01  Eric Blake  <ebb9@byu.net>
38223
38224         getopt: bump serial number
38225         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
38226         change.
38227
38228         tests: tighten link, rmdir, and remove tests
38229         * tests/test-link.h (includes): No need to use <config.h> here.
38230         Clean up if directory hard link was created, otherwise test for
38231         trailing '.'.
38232         * tests/test-linkat.c (main): Simplify.
38233         * tests/test-remove.c (main): Enhance test for trailing '.'.
38234         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38235
38236 2009-10-01  Jim Meyering  <meyering@redhat.com>
38237
38238         maint.mk: requiring "make major" was annoying, for a "minor" release.
38239         What is intended is "stable", to contrast with alpha and beta,
38240         so require "make stable", not "make major".
38241         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
38242         (get_tool_versions): Likewise.
38243         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
38244
38245 2009-09-30  Ben Pfaff  <blp@gnu.org>
38246
38247         Fix broken build of replacement for Windows tmpfile().
38248         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
38249         flags argument added along with the 'mkostemp' module.
38250
38251 2009-09-28  Bruno Haible  <bruno@clisp.org>
38252
38253         Avoid identifier clash with POSIX function 'remove' defined as a macro.
38254         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
38255         to 'remove_elt'.
38256         (gl_list_remove): Update.
38257         * lib/gl_list.c (gl_list_remove): Update.
38258         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
38259         to 'remove_elt'.
38260         (gl_oset_remove): Update.
38261         * lib/gl_list.c (gl_oset_remove): Update.
38262         Reported by Eric Blake.
38263
38264 2009-09-28  Eric Blake  <ebb9@byu.net>
38265
38266         doc: mention yet more cygwin 1.7 status
38267         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
38268         cygwin.
38269         * doc/glibc-functions/execvpe.texi (execvpe): New file.
38270         * doc/gnulib.texi (Glibc unistd.h): Mention it.
38271
38272         argp: fix test failure
38273         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
38274         that are not upper-case.  Pass correct range to tolower.
38275
38276 2009-09-27  Jim Meyering  <meyering@redhat.com>
38277
38278         test-yesno: work around sparc-dash here-document infelicity
38279         Without this change, the literal \177 byte in a here document
38280         would make dash 0.5.5.1-3 access uninitialized memory.
38281         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
38282         Instead, use a marker, "@", and filter through tr to create the desired
38283         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
38284
38285 2009-09-27  Bruno Haible  <bruno@clisp.org>
38286
38287         Disable untested support for new flavours of ACLs on AIX.
38288         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
38289         progress.
38290         * lib/set-mode-acl.c (qset_acl): Likewise.
38291
38292 2008-12-07  Bruno Haible  <bruno@clisp.org>
38293
38294         Add support for new flavours of ACLs on AIX. (Untested.)
38295         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
38296         (file_has_acl): Add support for newer AIX.
38297         * lib/set-mode-acl.c (qset_acl): Likewise.
38298         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
38299         Rainer Tammer <tammer@tammer.net>.
38300
38301 2009-09-26  Eric Blake  <ebb9@byu.net>
38302
38303         argp: fix compilation of getopt
38304         * lib/getopt.in.h (includes): Use different guard than glibc.
38305         Reported by Sergey Poznyakoff.
38306
38307         doc: mention more cygwin 1.7 status
38308         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
38309         bug.
38310         * doc/posix-functions/execl.texi (execl): Likewise.
38311         * doc/posix-functions/execle.texi (execle): Likewise.
38312         * doc/posix-functions/execlp.texi (execlp): Likewise.
38313         * doc/posix-functions/execv.texi (execv): Likewise.
38314         * doc/posix-functions/execve.texi (execve): Likewise.
38315         * doc/posix-functions/execvp.texi (execvp): Likewise.
38316         * doc/glibc-functions/canonicalize_file_name.texi
38317         (canonicalize_file_name): Cygwin 1.7 now provides this.
38318         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
38319         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
38320         on AT_SYMLINK_NOFOLLOW.
38321
38322 2009-09-24  Eric Blake  <ebb9@byu.net>
38323
38324         test-linkat: make test more robust
38325         * tests/test-linkat.c (main): Avoid collision with EEXIST.
38326
38327         getopt: fix inclusion guards for cygwin
38328         * modules/getopt-posix (Depends-on): Add include-next.
38329         (Makefile.am): Substitute more items in replacement header.
38330         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
38331         <getopt.h>.
38332         * lib/getopt.in.h (includes): Use split inclusion guard, and
38333         prefer <getopt.h> over include <unistd.h> when one is present.
38334         (option): Also override name of 'struct option'.
38335
38336         same-inode: revert prior change; it is not yet ready
38337         * NEWS: Undo mention of this change.
38338         * lib/same-inode.h (same-inode.h): Undo tri-state change.
38339         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
38340         * lib/cycle-check.c (cycle_check): Likewise.
38341         * lib/same.c (same_name): Likewise.
38342         * lib/at-func2.c (at_func2): Likewise.
38343
38344 2009-09-23  Eric Blake  <ebb9@byu.net>
38345
38346         linkat: new module
38347         * modules/linkat: New file.
38348         * lib/at-func2.c (at_func2): Likewise.
38349         * lib/linkat.c (linkat): Likewise.
38350         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
38351         * lib/openat-priv.h (at_func2): Add declaration.
38352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38353         * modules/unistd (Makefile.am): Substitute them.
38354         * lib/unistd.in.h (linkat): Declare it.
38355         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38356         * doc/posix-functions/linkat.texi (linkat): Likewise.
38357         * doc/posix-functions/link.texi (link): Tweak wording.
38358         * tests/test-link.c (main): Move guts...
38359         * tests/test-link.h (test_link): ...into new file.
38360         * modules/linkat-tests: New test.
38361         * tests/test-linkat.c: Likewise.
38362         * modules/link-tests (Files): Ship new file.
38363         (Depends-on): Add stdbool.
38364
38365         dirname: add library-safe mdir_name
38366         * lib/dirname.h (mdir_name): New prototype.
38367         * lib/dirname.c (dir_name): Move guts...
38368         (mdir_name): ...to new function that avoids xalloc_die.
38369
38370         fchdir: another mingw fix
38371         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
38372         * lib/fchdir.c (get_name): New helper method; skips canonicalize
38373         on mingw (where it has not yet been ported), and make it optional
38374         elsewhere.
38375         (_gl_register_fd): Use it.
38376
38377         same-inode: make SAME_INODE tri-state, to port to mingw
38378         * NEWS: Mention this change.
38379         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
38380         st_ino always being 0.
38381         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
38382         * lib/cycle-check.c (cycle_check): Likewise.
38383         * lib/same.c (same_name): Likewise.
38384
38385         lstat: avoid mingw compilation error
38386         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
38387         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
38388         lstat ourselves.
38389         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
38390         was adequate.
38391         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
38392         the checks for lstat.
38393         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
38394
38395         link: fix test failure on Solaris 9
38396         * lib/link.c (rpl_link): Don't assume link will catch bogus
38397         trailing slash on source.
38398
38399         test-symlinkat: enhance test
38400         * tests/test-readlink.c (main): Move guts...
38401         * tests/test-readlink.h (test_readlink): ...into new file.
38402         * tests/test-symlink.c (main): Move guts...
38403         * tests/test-symlink.h (test_symlink): ...into new file.
38404         * tests/test-symlinkat.c (main): Use new files for further
38405         coverage.
38406         (do_symlink, do_readlink): New helper functions.
38407         * modules/symlink-tests (Files): Ship new file.
38408         (Depends-on): Add stdbool.
38409         * modules/readlink-tests (Files): Ship new file.
38410         (Depends-on): Add stdbool.
38411         * modules/symlinkat-tests (Files): Use new files.
38412
38413 2009-09-23  Eric Blake  <ebb9@byu.net>
38414
38415         readlink: document portability issue with symlink length
38416         * doc/posix-functions/lstat.texi (lstat): Mention that some file
38417         systems have bogus st_size on symlinks, and mention the
38418         areadlink-with-size module.
38419         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38420         * doc/posix-functions/readlink.texi (readlink): Mention the
38421         areadlink module, and ERANGE failure.
38422         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38423         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
38424
38425         readlink: fix Solaris 9 bug with trailing slash
38426         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
38427         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
38428         * doc/posix-functions/readlink.texi (readlink): Document this.
38429         * modules/readlink-tests: New test.
38430         * tests/test-readlink.c: Likewise.
38431
38432         readlink: fix cygwin 1.5.x bug with return type
38433         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
38434         * lib/unistd.in.h (readlink): Use ssize_t.
38435         * lib/readlink.c (readlink): Likewise.
38436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38437         * modules/unistd (Makefile.am): Substitute it.
38438         * lib/unistd.in.h (readlink): Declare replacement.
38439         * doc/posix-functions/readlink.texi (readlink): Document this.
38440
38441         symlink: use throughout gnulib
38442         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
38443         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
38444         symlink is not used.
38445         * modules/symlinkat (Depends-on): Add symlink.
38446         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38447         * modules/canonicalize-tests (Depends-on): Likewise.
38448         * modules/lstat-tests (Depends-on): Likewise.
38449         * modules/openat-tests (Depends-on): Likewise.
38450         * modules/remove-tests (Depends-on): Likewise.
38451         * modules/rmdir-tests (Depends-on): Likewise.
38452         * modules/unlink-tests (Depends-on): Likewise.
38453         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
38454         * tests/test-canonicalize.c (symlink): Likewise.
38455         * tests/test-fstatat.c (symlink): Likewise.
38456         * tests/test-lstat.c (symlink): Likewise.
38457         * tests/test-remove.c (symlink): Likewise.
38458         * tests/test-rmdir.c (symlink): Likewise.
38459         * tests/test-unlink.c (symlink): Likewise.
38460         * tests/test-unlinkat.c (symlink): Likewise.
38461
38462         symlink: new module, for Solaris 9 bug
38463         * modules/symlink: New file.
38464         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
38465         * lib/symlink.c: Likewise.
38466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38467         * modules/unistd (Makefile.am): Substitute them.
38468         * lib/unistd.in.h (symlink): Declare replacement.
38469         * MODULES.html.sh (File system functions): Mention it.
38470         * doc/posix-functions/symlink.texi (symlink): Likewise.
38471         * modules/symlink-tests: New test.
38472         * tests/test-symlink.c: Likewise.
38473
38474 2009-09-23  Bruno Haible  <bruno@clisp.org>
38475
38476         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
38477         when needed.
38478         Test case: gnulib-tool --import --with-tests atexit inttypes.
38479         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
38480
38481 2009-09-23  Bruno Haible  <bruno@clisp.org>
38482
38483         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
38484         subcommand, not in a subshell.
38485
38486 2009-09-22  Eric Blake  <ebb9@byu.net>
38487
38488         unistd: sort replacement declarations
38489         * lib/unistd.in.h: Sort declarations.
38490
38491         open, openat: minor optimization
38492         * lib/open.c (open): If open succeeded, len is non-zero.
38493         * lib/openat.c (rpl_openat): Likewise.
38494
38495         link-follow: ensure correct result
38496         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
38497         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
38498         distinguish between possible failures.
38499
38500 2009-09-21  Eric Blake  <ebb9@byu.net>
38501
38502         fts: avoid compiler warning
38503         * lib/fts.c (dirent_inode_sort_may_be_useful)
38504         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
38505
38506 2009-09-19  Bruno Haible  <bruno@clisp.org>
38507
38508         * lib/progreloc.c (canonicalize_file_name): New declaration.
38509
38510 2009-09-19  Eric Blake  <ebb9@byu.net>
38511
38512         link: fix quoting
38513         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
38514
38515         openat: fix openat bugs on Solaris 9
38516         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
38517         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
38518         * modules/openat (Depends-on): Add open.
38519         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
38520         * modules/fcntl-h (Makefile.am): Substitute it.
38521         * lib/fcntl.in.h (openat): Declare replacement.
38522         * doc/posix-functions/openat.texi (openat): Document this.
38523
38524         openat: move fstatat and unlinkat into correct files
38525         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
38526         compiled.
38527         * lib/openat.c (fstatat, unlinkat): Move...
38528         * lib/fstatat.c (fstatat): ...into correct files.
38529         * lib/unlinkat.c (unlinkat): Likewise.
38530
38531         openat: fix unlinkat bugs on Solaris 9
38532         * lib/unlinkat.c (unlinkat): New file.
38533         * modules/openat (Depends-on): Add unlink.
38534         (Files): Distribute it.
38535         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
38536         trailing slash behavior is broken.
38537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38538         * modules/unistd (Makefile.am): Substitute it.
38539         * lib/unistd.in.h (unlinkat): Declare replacement.
38540         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
38541
38542         openat: fix fstatat bugs on Solaris 9
38543         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
38544         stat.
38545         * doc/posix-functions/fstatat.texi (fstatat): Document this.
38546
38547         test-unlinkat: enhance test, to expose Solaris 9 bug
38548         * tests/test-unlink.c (main): Factor guts...
38549         * tests/test-unlink.h (test_rmdir_func): ...into new file.
38550         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
38551         * tests/test-rmdir.c (main): Adjust caller.
38552         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
38553         (unlinker): New helper function.
38554         (rmdirat): Enhance check.
38555         * modules/rmdir-tests (Depends-on): Add stdbool.
38556         * modules/unlink-tests (Depends-on): Likewise.
38557         (Files): Add test-unlink.h.
38558         * modules/openat-tests (Files): Likewise.
38559         (Depends-on): Add unlinkdir.
38560
38561         test-fstatat: new test, to expose Solaris 9 bugs
38562         * tests/test-stat.c (main): Factor guts...
38563         * tests/test-stat.h (test_stat_func): ...into new file.
38564         * tests/test-lstat.c (main): Factor guts...
38565         * tests/test-lstat.h (test_lstat_func): ...into new file.
38566         * tests/test-fstatat.c: New file.
38567         * modules/stat-tests (Files): Add test-stat.h.
38568         * modules/lstat-tests (Files): Add test-lstat.h.
38569         (Depends-on): Add stdbool.
38570         * modules/openat-tests (Depends-on): Add pathmax.
38571         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
38572         (Makefile.am): Run new test.
38573
38574         remove: new module, for mingw and Solaris 9 bugs
38575         * modules/remove: New file.
38576         * lib/remove.c: Likewise.
38577         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
38578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38579         * modules/stdio (Makefile.am): Use them.
38580         * lib/stdio.in.h (remove): Declare replacement.
38581         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38582         * doc/posix-functions/remove.texi (remove): Likewise.
38583         * modules/remove-tests: New test.
38584         * tests/test-remove.c: Likewise.
38585
38586         unlink: new module, for Solaris 9 bug
38587         * modules/unlink: New file.
38588         * lib/unlink.c: Likewise.
38589         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38591         * modules/unistd (Makefile.am): Use them.
38592         * lib/unistd.in.h (stat): Declare replacement.
38593         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38594         * doc/posix-functions/unlink.texi (unlink): Likewise.
38595         * modules/unlink-tests: New test.
38596         * tests/test-unlink.c: Likewise.
38597
38598         lstat: fix Solaris 9 bug
38599         * lib/lstat.c (lstat): Also check for trailing slash on
38600         non-symlink, non-directories.  Use stat module to simplify logic.
38601         * doc/posix-functions/lstat.texi (lstat): Document it.
38602         * modules/lstat-tests (Depends-on): Add errno, same-inode.
38603         (configure.ac): Check for symlink.
38604         * tests/test-lstat.c (main): Add more tests.
38605
38606         stat: add as dependency to other modules
38607         * modules/chown (Depends-on): Add stat.
38608         * modules/euidaccess (Depends-on): Likewise.
38609         * modules/fchdir (Depends-on): Likewise.
38610         * modules/isdir (Depends-on): Likewise.
38611         * modules/link (Depends-on): Likewise.
38612         * modules/lstat (Depends-on): Likewise.
38613         * modules/mkdir-p (Depends-on): Likewise.
38614         * modules/modechange (Depends-on): Likewise.
38615         * modules/open (Depends-on): Likewise.
38616         * modules/readlink (Depends-on): Likewise.
38617         * modules/same (Depends-on): Likewise.
38618
38619         stat: fix Solaris 9 bug
38620         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
38621         slash.
38622         * lib/stat.c (rpl_stat): Work around it.
38623         * doc/posix-functions/stat.texi (stat): Update documentation.
38624
38625         stat: new module, for mingw bug
38626         * modules/stat: New file.
38627         * lib/stat.c: Likewise.
38628         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38630         * modules/sys_stat (Makefile.am): Use them.
38631         * lib/sys_stat.in.h (stat): Declare replacement.
38632         * lib/openat.c (fstatat): Deal with lstat and stat being function
38633         macros.
38634         * modules/openat (Depends-on): Add inline.
38635         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38636         * doc/posix-functions/stat.texi (stat): Likewise.
38637         * modules/stat-tests: New test.
38638         * tests/test-stat.c: Likewise.
38639
38640 2009-09-19  Jim Meyering  <meyering@redhat.com>
38641
38642         syntax-check: detect unnecessary inclusion of canonicalize.h
38643         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
38644
38645 2009-09-19  Eric Blake  <ebb9@byu.net>
38646
38647         canonicalize-lgpl: adjust clients to use correct header
38648         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38649         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
38650         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
38651         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
38652         * lib/progreloc.c (includes): Likewise.
38653
38654 2009-09-19  Jim Meyering  <meyering@redhat.com>
38655
38656         test-posixtm.c: correct a comment
38657         * tests/test-posixtm.c: Correct first-line comment.
38658         Spotted by Eric Blake.
38659
38660 2009-09-16  Jim Meyering  <meyering@redhat.com>
38661
38662         posixtm-tests: make T const-correct; add a test case
38663         * tests/test-posixtm.c (T): Declare const.
38664         Add a test for -(2^31+1).
38665         Remove useless can-succeed-only-in-2002 test.
38666
38667         posixtm-tests: adjust the sole failing test
38668         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
38669         expected output matches what mktime now produces.  Cross-checked via
38670         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
38671
38672         posixtm: move #ifdef'd tests into a new module
38673         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
38674         * tests/test-posixtm.c: ... this new file.
38675         * modules/posixtm-tests: New module.
38676
38677 2009-09-19  Eric Blake  <ebb9@byu.net>
38678
38679         openat: simplify use of at-func.c
38680         * lib/at-func.c (includes): Include prerequisites here, to
38681         simplify requirements on client files.
38682         * lib/openat-priv.h: Add double-inclusion guard.
38683         * lib/faccessat.c (includes): Simplify.
38684         * lib/fchmodat.c (includes): Likewise.
38685         * lib/fchownat.c (includes): Likewise.
38686         * lib/mkdirat.c (includes): Likewise.
38687         * lib/mkfifoat.c (includes): Likewise.
38688         * lib/symlinkat.c (includes): Likewise.
38689
38690         openat: allow return of fd 0
38691         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
38692         * modules/save-cwd (Depends-on): Replace fcntl-safer with
38693         unistd-safer.
38694         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
38695         <fcntl.h>; this module does not leak fds.
38696         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
38697         must be allowed to return 0, leaving openat_safer to add the
38698         safety.
38699         (openat_permissive): Avoid writing to just-opened fd 2 if
38700         restoring the current directory fails.
38701         * lib/openat-die.c (openat_restore_fail): Add comment.
38702         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
38703         (save_cwd): Guarantee safe fd, but without use of open_safer.
38704         * tests/test-openat.c: New test.
38705         * modules/openat-tests (Files, Makefile.am): Distribute and build
38706         new file.
38707
38708         relocatable-prog-wrapper: fix build
38709         * modules/relocatable-prog-wrapper (Files): Update name of
38710         canonicalize m4 file, broken on 2009-09-17.
38711         Reported by emad hajjar <aleppos@hotmail.com>.
38712
38713 2009-09-19  Bruno Haible  <bruno@clisp.org>
38714
38715         * lib/safe-alloc.h: Use the standard header with GPL copyright.
38716         * lib/safe-alloc.c: Likewise.
38717         Reported by Ian Beckwith <ianb@erislabs.net>.
38718
38719 2009-09-18  Bruno Haible  <bruno@clisp.org>
38720
38721         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
38722         Reported by <erobles@sensacd.com.mx>.
38723
38724 2009-09-17  Eric Blake  <ebb9@byu.net>
38725
38726         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
38727         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
38728         slashes when checking if last component is missing.
38729         * tests/test-canonicalize.c (main): Test this.
38730
38731         canonicalize, canonicalize-lgpl: honor // if distinct from /
38732         * modules/canonicalize (Files): Add double-slash-root.m4.
38733         * modules/canonicalize-lgpl (Files): Likewise.
38734         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38735         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
38736         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
38737         fallback definition.
38738         (canonicalize_filename_mode): Use it to protect //.
38739         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
38740         (__realpath): Likewise.
38741         * tests/test-canonicalize.c (main): Test this.
38742         * tests/test-canonicalize-lgpl.c (main): Likewise.
38743         * modules/canonicalize-tests (Depends-on): Add same-inode.
38744         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38745
38746         canonicalize-lgpl: fix glibc bug with trailing slash
38747         * m4/canonicalize-lgpl.m4: Move contents...
38748         * m4/canonicalize.m4: ...here.
38749         (gl_CANONICALIZE_LGPL): Factor realpath check...
38750         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
38751         glibc 2.3.5 bug, fixed 2005-04-27.
38752         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
38753         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
38754         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
38755         * modules/canonicalize-lgpl (Files): Manage file rename.
38756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38757         * modules/stdlib (Makefile.am): Substitute witness.
38758         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
38759         is needed.
38760         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
38761         replacement is required.
38762         * lib/canonicalize.c (canonicalize_file_name): Likewise.
38763         * doc/glibc-functions/canonicalize_file_name.texi
38764         (canonicalize_file_name): Document this.
38765         * doc/posix-functions/realpath.texi (realpath): Likewise.
38766
38767         canonicalize-lgpl: reject non-directory with trailing slash
38768         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
38769         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
38770         catches failures in glibc 2.3.5.
38771         * tests/test-canonicalize.c (main): Likewise.
38772
38773         canonicalize-lgpl: use native realpath if it works
38774         * lib/canonicalize-lgpl.c (realpath): Guard with
38775         FUNC_REALPATH_WORKS.
38776         * lib/stdlib.in.h (realpath): Make declaration optional based on
38777         HAVE_REALPATH.
38778         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
38779         native realpath works.
38780         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
38781         * modules/stdlib (Makefile.am): Substitute witness.
38782
38783         canonicalize, canonicalize-lgpl: use <stdlib.h>
38784         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
38785         (Include): Mention <stdlib.h>.
38786         (configure.ac): Mention functions we provide.
38787         * modules/canonicalize (configure.ac): Likewise.
38788         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
38789         realpath if canonicalize_file_name is missing.
38790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
38791         * modules/stdlib (Makefile.am): Substitute witnesses.
38792         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
38793         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
38794         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
38795         * NEWS: Document this.
38796         * doc/glibc-functions/canonicalize_file_name.texi
38797         (canonicalize_file_name): Likewise.
38798         * doc/posix-functions/realpath.texi (realpath): Likewise.
38799         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
38800
38801         test-canonicalize: consolidate into single C program
38802         * tests/test-canonicalize.sh: Delete; move setup into...
38803         * tests/test-canonicalize.c (main): ...the program, making it
38804         easier to run in debugger.  Add some tests.
38805         * modules/canonicalize-tests (Files): Remove unused file.
38806         (Depends-on): Add progname.
38807         (configure.ac, Makefile.am): Simplify.
38808
38809         test-canonicalize-lgpl: consolidate into single C program
38810         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
38811         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
38812         easier to run in debugger.  Add some tests.
38813         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
38814         (configure.ac, Makefile.am): Simplify.
38815
38816         canonicalize: avoid resolvepath
38817         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
38818         unnecessary checks.
38819         * lib/canonicalize.c (includes): Simplify.
38820         (canonicalize_file_name): Drop resolvepath implementation.
38821         * modules/canonicalize (Depends-on): Drop filenamecat.
38822
38823         canonicalize: don't lose errno
38824         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
38825         over calls to free.
38826
38827         canonicalize: simplify errno handling
38828         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
38829         assignment.
38830
38831         canonicalize, canonicalize-lgpl: update module dependencies
38832         * modules/canonicalize (Depends-on): Add extensions, lstat,
38833         pathmax, stdlib.
38834         (Files): Drop pathmax.h.
38835         (configure.ac): Adjust macro name.
38836         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
38837         lstat, stdlib, sys_stat.
38838         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
38839         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
38840         extensions.
38841         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
38842         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
38843         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
38844         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
38845         declaration, if available.
38846         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
38847         we can rely on the readlink module.
38848         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
38849         (includes): Use <unistd.h> unconditionally.
38850
38851 2009-09-17  Eric Blake  <ebb9@byu.net>
38852
38853         maint: make Include sections of modules consistent
38854         * modules/alloca: Use only header name; no need to list #include.
38855         * modules/alloca-opt: Likewise.
38856         * modules/arpa_inet: Likewise.
38857         * modules/canon-host: Likewise.
38858         * modules/configmake: Likewise.
38859         * modules/dirent: Likewise.
38860         * modules/eealloc: Likewise.
38861         * modules/environ: Likewise.
38862         * modules/fchdir: Likewise.
38863         * modules/fcntl: Likewise.
38864         * modules/fcntl-h: Likewise.
38865         * modules/gethrxtime: Likewise.
38866         * modules/gettime: Likewise.
38867         * modules/ignore-value: Likewise.
38868         * modules/inet_ntop: Likewise.
38869         * modules/inet_pton: Likewise.
38870         * modules/inttypes: Likewise.
38871         * modules/isnand-nolibm: Likewise.
38872         * modules/isnanf-nolibm: Likewise.
38873         * modules/mbchar: Likewise.
38874         * modules/mbfile: Likewise.
38875         * modules/mbiter: Likewise.
38876         * modules/mbuiter: Likewise.
38877         * modules/netdb: Likewise.
38878         * modules/netinet_in: Likewise.
38879         * modules/nproc: Likewise.
38880         * modules/pagealign_alloc: Likewise.
38881         * modules/poll: Likewise.
38882         * modules/printf-frexp: Likewise.
38883         * modules/pthread: Likewise.
38884         * modules/putenv: Likewise.
38885         * modules/random_r: Likewise.
38886         * modules/relocatable-prog: Likewise.
38887         * modules/search: Likewise.
38888         * modules/select: Likewise.
38889         * modules/selinux-h: Likewise.
38890         * modules/settime: Likewise.
38891         * modules/signal: Likewise.
38892         * modules/size_max: Likewise.
38893         * modules/socklen: Likewise.
38894         * modules/ssize_t: Likewise.
38895         * modules/stdarg: Likewise.
38896         * modules/stdbool: Likewise.
38897         * modules/stddef: Likewise.
38898         * modules/stdint: Likewise.
38899         * modules/stdio: Likewise.
38900         * modules/stdlib: Likewise.
38901         * modules/string: Likewise.
38902         * modules/strings: Likewise.
38903         * modules/sys_file: Likewise.
38904         * modules/sys_ioctl: Likewise.
38905         * modules/sys_select: Likewise.
38906         * modules/sys_socket: Likewise.
38907         * modules/sys_stat: Likewise.
38908         * modules/sys_time: Likewise.
38909         * modules/sys_times: Likewise.
38910         * modules/sys_utsname: Likewise.
38911         * modules/sys_wait: Likewise.
38912         * modules/sysexits: Likewise.
38913         * modules/time: Likewise.
38914         * modules/times: Likewise.
38915         * modules/tmpfile: Likewise.
38916         * modules/trim: Likewise.
38917         * modules/unistd: Likewise.
38918         * modules/wchar: Likewise.
38919         * modules/wctype: Likewise.
38920
38921 2009-09-17  Bruno Haible  <bruno@clisp.org>
38922
38923         Make getdate.y compile on QNX and NetBSD 5 / i386.
38924         * m4/getdate.m4 (gl_GETDATE): Conditionally define
38925         TIME_T_FITS_IN_LONG_INT.
38926         * lib/getdate.y (long_time_t): New type.
38927         (relative_time): Change type of 'seconds' field to long_time_t.
38928         (get_date): Update types of local variables. Check against overflow
38929         during conversion from long_time_t to time_t.
38930         Reported by Matt Kraai <kraai@ftbfs.org>
38931         and Hasso Tepper <hasso@netbsd.org>.
38932
38933 2009-09-17  Bruno Haible  <bruno@clisp.org>
38934
38935         * modules/COPYING: Update copyright years.
38936         * modules/README: Likeiwse.
38937         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
38938         Reported by Ian Beckwith <ianb@erislabs.net>.
38939
38940 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38941
38942         * users.txt: Update references for gnuit package.
38943
38944 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
38945
38946         * m4/getdelim.m4: Fix typo in copyright line.
38947
38948 2009-09-17  Bruno Haible  <bruno@clisp.org>
38949
38950         * lib/atoll.c: Use the standard header with GPL copyright.
38951         * lib/argz.in.h: Likewise.
38952         * lib/glob.c: Likewise.
38953         * lib/glob-libc.h: Likewise.
38954         * lib/random_r.c: Likewise.
38955         * lib/siglist.h: Likewise.
38956         * lib/strsignal.c: Likewise.
38957         Reported by Ian Beckwith <ianb@erislabs.net>.
38958
38959 2009-09-17  Eric Blake  <ebb9@byu.net>
38960
38961         rmdir: ensure correct dependency order
38962         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
38963
38964 2009-09-17  Bruno Haible  <bruno@clisp.org>
38965
38966         Disable assertion that fails on NetBSD 5 / i386.
38967         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
38968         Reported by Sam Steingold <sds@gnu.org>
38969         and Hasso Tepper <hasso@netbsd.org>.
38970
38971 2009-09-16  Eric Blake  <ebb9@byu.net>
38972
38973         unlinkdir: port to mingw
38974         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
38975         on which no one can unlink a directory.
38976
38977         stdlib: sort witness names
38978         * modules/stdlib (Makefile.am): Sort replacements.
38979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
38980         * lib/stdlib.in.h: Likewise.
38981
38982         parse-duration-tests: avoid link failure
38983         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
38984         LIBINTL.
38985         Reported by Tom G. Christensen.
38986
38987         openat-tests: ensure unlinkat behaves like rmdir
38988         * tests/test-rmdir.c (main): Factor guts...
38989         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
38990         * modules/rmdir-tests (Files): Ship new file.
38991         * modules/openat-tests: New test.
38992         * tests/test-unlinkat.c: Likewise.
38993
38994         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
38995         * modules/rmdir-errno (Status, Notice): Now obsolete.
38996
38997         rmdir: work around cygwin 1.5.x and mingw bugs
38998         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
38999         * lib/rmdir.c (rmdir): Work around it.
39000         * modules/rmdir (Status, Notice): No longer obsolete.
39001         (Files): Add dos.m4.
39002         (Depends-on): Add unistd.
39003         (configure.ac): Set witnesses.
39004         (License): Relax to LGPLv2+.
39005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
39006         * modules/unistd (Makefile.am): Substitute witnesses.
39007         * lib/unistd.in.h (rmdir): Declare replacement.
39008         * doc/posix-functions/rmdir.texi (rmdir): Document this.
39009         * modules/rmdir-tests: New tests.
39010         * tests/test-rmdir.c: Likewise.
39011
39012 2009-09-15  Eric Blake  <ebb9@byu.net>
39013
39014         fchdir: improve use of replacement functions
39015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
39016         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
39017         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
39018         REPLACE_CLOSEDIR.
39019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
39020         * modules/sys_stat (Makefile.am): Substitute correct witness.
39021         * modules/dirent (Makefile.am): Likewise.
39022         * modules/unistd (Makefile.am): Likewise.
39023         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
39024         * lib/unistd.in.h (dup): Likewise.
39025         * lib/sys_stat.in.h (fstat): Likewise.
39026
39027         maint: ignore gnulib-tool temp files
39028         * .gitignore: Ignore files created during gnulib-tool --test.
39029
39030 2009-09-13  Jim Meyering  <meyering@redhat.com>
39031
39032         posixtm: don't reject a time that specify "60" as the number of seconds
39033         * lib/posixtm.c (posixtime): The code to reject invalid dates
39034         would also reject a time specified with the .60 suffix.
39035         But POSIX allows that, in order to accommodate leap seconds.
39036         So don't reject it.
39037         (main): Adjust tests accordingly.
39038         * modules/posixtm (Depends-on): Add stpcpy.
39039
39040 2009-09-11  Jim Meyering  <meyering@redhat.com>
39041
39042         announce-gen: include [$release_type] in emitted Subject:
39043         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
39044         e.g., [stable] in the emitted Subject: line.
39045
39046 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39047
39048         Remove obsolete macros from several modules.
39049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
39050         obsolete Autoconf macros with their modern counterparts.
39051         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
39052         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
39053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
39054         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39055         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
39056         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39058         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39059         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
39060         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
39061         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
39062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
39063         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
39064         * m4/sockets.m4 (gl_SOCKETS): Likewise.
39065         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
39066         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
39067         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39068         * m4/time_r.m4 (gl_TIME_R): Likewise.
39069         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
39070         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
39071         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39072
39073         Fix copyright header in build-aux scripts.
39074         * build-aux/git-version-gen: Fix copyright header to match GPLv3
39075         recommendation.
39076         * build-aux/ncftpput-ftp: Likewise.
39077         * build-aux/update-copyright: Likewise.
39078
39079 2009-09-09  Eric Blake  <ebb9@byu.net>
39080
39081         test-link: allow Linux choice of errno
39082         * tests/test-link.c (main): Relax test for alternate error.
39083
39084         strndup: fix improper m4 caching
39085         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
39086         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
39087         (gl_PREREQ_STRNDUP): Delete.
39088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
39089         * modules/string (Makefile.am): Substitute it.
39090         * lib/string.in.h (strndup): Modernize prototype.
39091
39092         getcwd: port to mingw
39093         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
39094         different from the POSIX assumptions made throughout the getcwd
39095         module; fortunately, the mingw getcwd does not need replacement.
39096         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
39097         * modules/getcwd-tests: New test.
39098         * tests/test-getcwd.c: Likewise.
39099
39100         link: fix platform bugs
39101         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
39102         * lib/link.c (link): Work around them.  Fix related mingw bug.
39103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
39104         * modules/unistd (Makefile.am): Substitute it.
39105         * lib/unistd.in.h (link): Declare replacement.
39106         * doc/posix-functions/link.texi (link): Document this.
39107         * modules/link (Depends-on): Add strdup-posix, sys_stat.
39108
39109         test-link: consolidate into single C program, test more cases
39110         * tests/test-link.sh: Delete.
39111         * tests/test-link.c: Test more error conditions.  Exposes bugs on
39112         at least Cygwin and Solaris.
39113         * modules/link-tests (Files): Remove unused file.
39114         (Depends-on): Add errno, sys_stat.
39115         (Makefile.am): Simplify.
39116
39117 2009-09-08  Bruno Haible  <bruno@clisp.org>
39118
39119         Work around towlower, towupper bug on mingw.
39120         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
39121         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
39122         * doc/posix-functions/towlower.texi: Mention the mingw bug.
39123         * doc/posix-functions/towupper.texi: Likewise.
39124         Reported by Eric Blake.
39125
39126 2009-09-08  Jim Meyering  <meyering@redhat.com>
39127
39128         build: don't try to run autoheader if we don't use it
39129         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
39130         is not used in configure.ac.
39131
39132 2009-09-08  Eric Blake  <ebb9@byu.net>
39133
39134         euidaccess: fix compilation error
39135         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
39136
39137         rawmemchr: relax license
39138         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
39139         okay.
39140         Reported by Jim Meyering.
39141
39142         mkfifoat: new module
39143         * modules/mkfifoat: New file.
39144         * lib/mkfifoat.c: Likewise.
39145         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
39146         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39147         * modules/sys_stat (Makefile.am): Use them.
39148         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
39149         * MODULES.html.sh (File system functions): Mention module.
39150         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39151         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39152         * modules/mkfifoat-tests: New test.
39153         * tests/test-mkfifoat.c: Likewise.
39154
39155         strchrnul: relax license
39156         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
39157         okay.
39158         Reported by Jim Meyering.
39159
39160 2009-09-08  Eric Blake  <ebb9@byu.net>
39161
39162         fstatat: fix compilation on Solaris
39163         * lib/fstatat.c (includes): Add fcntl.h.
39164         Reported by Pádraig Brady.
39165
39166 2009-09-07  Eric Blake  <ebb9@byu.net>
39167
39168         rename: modernize replacement
39169         * modules/rename (Depends-on): Add stdio.
39170         (configure.ac): Declare witness.
39171         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
39172         stdio take care of replacement.
39173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39174         * modules/stdio (Makefile.am): Substitute them.
39175         * lib/stdio.in.h (rename): Declare replacement.
39176         * lib/rename.c (includes): Allow cross-compilation to non-windows
39177         machines.
39178         * doc/posix-functions/rename.texi (rename): Improve
39179         documentation.
39180
39181         stdio: sort witness names
39182         * modules/stdio (Makefile.am): Sort replacements.
39183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39184         * lib/stdio.in.h: Likewise.
39185
39186         getcwd: minor cleanups
39187         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
39188         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
39189
39190         openat: provide more convenience names
39191         * modules/faccessat (configure.ac): Add C witness.
39192         * lib/unistd.in.h (readlinkat): Fix typo.
39193         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
39194         convenience wrappers.
39195         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
39196         wrappers in syntax checks.
39197
39198 2009-09-06  Eric Blake  <ebb9@byu.net>
39199
39200         doc: fix comments in recent patches
39201         * lib/faccessat.c: Mention correct function.
39202         * lib/fchmodat.c: Likewise.
39203         * lib/fchownat.c: Likewise.
39204         * lib/symlinkat.c: Likewise.
39205         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
39206         constants.
39207
39208         faccessat, symlinkat: continue cleanup of previous patch
39209         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
39210         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39211         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
39212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
39213         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
39214         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
39215         set.
39216
39217 2009-09-06  Bruno Haible  <bruno@clisp.org>
39218
39219         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
39220         (fstatat): Declare if GNULIB_FSTATAT is set.
39221         (mkdirat): Declare if GNULIB_MKDIRAT is set.
39222         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
39223         (unlinkat): Declare if GNULIB_UNLINKAT is set.
39224         * modules/fcntl-h (Files): Remove m4/openat.m4.
39225         * modules/sys_stat (Files): Remove m4/openat.m4.
39226         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
39227         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
39228         * modules/unistd (Files): Remove m4/openat.m4.
39229         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
39230         GNULIB_OPENAT.
39231         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
39232         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
39233         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
39234         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
39235         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
39236         gl_OPENAT_DEFAULTS.
39237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
39238         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
39239         Don't require gl_OPENAT_DEFAULTS.
39240         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
39241         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
39242         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
39243         (gl_OPENAT_DEFAULTS): Remove macro.
39244
39245 2009-09-06  Bruno Haible  <bruno@clisp.org>
39246
39247         * modules/openat (configure.ac): Remove unneeded witness.
39248
39249 2009-09-06  Bruno Haible  <bruno@clisp.org>
39250
39251         Set errno to ENOSYS when a function is entirely unsupported.
39252         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
39253         EOPNOTSUPP.
39254         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39255         * modules/chown (Depends-on): Remove errno.
39256
39257 2009-09-06  Bruno Haible  <bruno@clisp.org>
39258
39259         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
39260
39261 2009-09-06  Bruno Haible  <bruno@clisp.org>
39262
39263         * lib/sys_stat.in.h: Fix preprocessor command indentation.
39264
39265 2009-09-06  Ben Pfaff  <blp@gnu.org>
39266             Bruno Haible  <bruno@clisp.org>
39267
39268         Work around a glibc bug in strtok_r.
39269         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
39270         Undefine if UNDEFINE_STRTOK_R is set.
39271         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
39272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39273         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
39274         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
39275         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
39276         UNDEFINE_STRTOK_R.
39277         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
39278
39279 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
39280
39281         exclude: minor fix
39282         * lib/exclude.c: Include wctype.h
39283
39284 2009-09-06  Akim Demaille  <demaille@gostai.com>
39285
39286         bootstrap: improve error message
39287         * build-aux/bootstrap (find_tool): Upon failure, report the list
39288         of candidates.
39289         Honor the initial value of the envvar.
39290
39291 2009-09-05  Eric Blake  <ebb9@byu.net>
39292
39293         symlinkat: new module
39294         * modules/symlinkat: New file.
39295         * lib/symlinkat.c: Likewise.
39296         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
39297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39298         * modules/unistd (Makefile.am): Use them.
39299         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
39300         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
39301         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
39302         * MODULES.html.sh (File system functions): Mention module.
39303         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39304         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39305         * modules/symlinkat-tests: New test.
39306         * tests/test-symlinkat.c: Likewise.
39307
39308         test-openat-safer: add more checks
39309         * tests/test-openat-safer.c (main): Check more code paths.
39310
39311 2009-09-05  Jim Meyering  <meyering@redhat.com>
39312
39313         syntax-check: detect unnecessary inclusion of openat.h
39314         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
39315
39316 2009-09-05  Bruno Haible  <bruno@clisp.org>
39317
39318         Support towlower, towupper.
39319         * doc/posix-functions/towlower.texi: Mention module wctype.
39320         * doc/posix-functions/towupper.texi: Likewise.
39321         * lib/wctype.in.h (towlower, towupper): New functions.
39322         * tests/test-wctype.c: Include stdio.h, stdlib.h.
39323         (ASSERT): New macro.
39324         (e): New variable.
39325         (main): Test also towlower, towupper. Test WEOF argument.
39326         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39327
39328 2009-09-05  Bruno Haible  <bruno@clisp.org>
39329
39330         Fix conversion behaviour when the input is invalid.
39331         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
39332         mark occurring in first pass of indirect conversion.
39333         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
39334         input.
39335         Found by clang's static analyzer.
39336
39337 2009-09-05  Bruno Haible  <bruno@clisp.org>
39338
39339         * tests/test-striconveh.c (main): Test indirect conversion on platforms
39340         where direct conversion is possible.
39341
39342 2009-09-04  Eric Blake  <ebb9@byu.net>
39343
39344         openat: fail with ENOENT on empty name
39345         * lib/openat-proc.c (openat_proc_name): Special-case the empty
39346         buffer.
39347
39348         link-follow: fix logic bug in prior patch
39349         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
39350         reversed sense of yes and no in prior patch.  Avoid confusing
39351         compilation failure with desired semantics.
39352
39353         link-follow: accomodate mingw and cross-compilation
39354         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
39355         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
39356         cross-compilation results to -1, to make linkat easier to
39357         implement when cross-compiling.  Trivially support mingw.
39358         * modules/link-follow (configure.ac): Call new name.
39359         * NEWS: Mention this.
39360
39361 2009-09-03  Eric Blake  <ebb9@byu.net>
39362
39363         faccessat: compile replacement
39364         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
39365         needed.
39366
39367         fts: fix compilation error
39368         * lib/fts.c (includes): Re-add "openat.h", for
39369         openat_needs_fchdir.
39370
39371         faccessat: new module
39372         * modules/faccessat: New file.
39373         * lib/faccessat.c: Likewise.
39374         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39376         * modules/unistd (Makefile.am): Use it.
39377         * lib/unistd.in.h (faccessat): Declare it.
39378         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
39379         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
39380         * MODULES.html.sh (File system functions): Mention it.
39381         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
39382         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39383
39384         euidaccess: prefer POSIX over non-standard implementation
39385         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
39386         * lib/euidaccess.c (euidaccess): Use it if available.
39387
39388         openat: make template easier to use
39389         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
39390         AT_FUNC_F2 to be undefined.
39391         (VALIDATE_FLAG): New macro; use it to reject bad flags.
39392         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
39393         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
39394         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
39395         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
39396         Likewise.
39397         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
39398         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
39399         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
39400         Likewise.
39401
39402         openat: declare in POSIX headers
39403         * NEWS: Mention this.
39404         * modules/openat (configure.ac): Declare witnesses.
39405         (Depends-on): Add fcntl-h, sys_stat, unistd.
39406         (Include): Mention correct headers.
39407         * modules/fcntl-h (Depends-on): Add link-warning.
39408         (Files): Add openat.m4.
39409         (Makefile.am): Substitute witnesses.
39410         * modules/sys_stat (Files, Makefile.am): Likewise.
39411         * modules/unistd (Files, Makefile.am): Likewise.
39412         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
39413         (gl_OPENAT_DEFAULTS): New macro.
39414         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
39415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
39416         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
39417         (SYS_STAT_H): Remove unused variable.
39418         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
39419         * lib/fcntl--.h (includes): Remove unneeded header.
39420         * lib/openat-safer.c (includes): Likewise.
39421         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
39422         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
39423         appropriate headers.
39424         (__OPENAT_PREFIX): Delete.
39425         * lib/fcntl.in.h (openat): Provide declaration.
39426         (AT_FDCWD): Fix Solaris bug.
39427         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
39428         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
39429         * lib/fchmodat.c (includes):  Adjust to find declaration.
39430         * lib/fchownat.c (includes): Likewise.
39431         * lib/mkdirat.c (includes): Likewise.
39432         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
39433         still visible.
39434
39435 2009-09-02  Eric Blake  <ebb9@byu.net>
39436
39437         errno: use consistently
39438         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
39439         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
39440         * lib/canonicalize.c (ELOOP): Likewise.
39441         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
39442         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
39443         * lib/lchown.c (EOPNOTSUPP): Likewise.
39444         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
39445         * lib/savewd.c (ESTALE): Likewise.
39446         * lib/settime.c (ENOSYS): Likewise.
39447         * lib/utimens.c (ENOSYS): Likewise.
39448         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
39449         * lib/chdir-safer.c (ELOOP): Likewise.
39450         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
39451         * modules/c-stack (Depends-on): Add errno.
39452         * modules/canonicalize (Depends-on): Likewise.
39453         * modules/chdir-safer (Depends-on): Likewise.
39454         * modules/fdopendir (Depends-on): Likewise.
39455         * modules/inet_ntop (Depends-on): Likewise.
39456         * modules/inet_pton (Depends-on): Likewise.
39457         * modules/lchown (Depends-on): Likewise.
39458         * modules/openat (Depends-on): Likewise.
39459         * modules/savewd (Depends-on): Likewise.
39460         * modules/settime (Depends-on): Likewise.
39461         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
39462
39463         fts: avoid leaking fds
39464         * modules/fts (Depends-on): Add cloexec.
39465         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
39466         flag.
39467
39468         fts: make directory fds more robust
39469         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
39470         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
39471
39472         backupfile, chdir-long, fts, savedir: make safer
39473         * lib/backupfile.c (includes): Use "dirent--.h", since
39474         numbered_backup can write to stderr during readdir.
39475         * lib/savedir.c (includes): Likewise.
39476         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
39477         emulation can write to stderr on failure.
39478         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
39479         * lib/getcwd.c: Document why opendir_safer is unused.
39480         * lib/glob.c: Likewise.
39481         * lib/scandir.c: Likewise.
39482         * lib/openat-proc.c: Likewise, for open_safer.
39483         * modules/backupfile (Depends-on): Add dirent-safer.
39484         * modules/savedir (Depends-on): Likewise.
39485         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
39486         * modules/chdir-long (Depends-on): Add openat-safer.
39487
39488         openat-safer: new module
39489         * modules/openat-safer: New file.
39490         * lib/openat-safer.c: Likewise.
39491         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
39492         * lib/fcntl-safer.h (openat_safer): Declare.
39493         * lib/fcntl--.h (openat): Override.
39494         * MODULES.html.sh (File descriptor based I/O): Mention it.
39495         * lib/openat.h: Add double-inclusion guards.
39496         * lib/openat.c (includes): Only include "fcntl-safer.h", not
39497         "fcntl--.h", so we can implement openat.
39498         * modules/openat-safer-tests: New test.
39499         * tests/test-openat-safer.c: New file.
39500
39501         dirent-safer: new module
39502         * modules/dirent-safer: New file.
39503         * lib/dirent--.h: Likewise.
39504         * lib/dirent-safer.h: Likewise.
39505         * lib/opendir-safer.c: Likewise.
39506         * m4/dirent-safer.m4: Likewise.
39507         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
39508         * modules/dirent-safer-tests: New test.
39509         * tests/test-dirent-safer.c: New file.
39510         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
39511
39512         fdopendir: optimize on mingw
39513         * lib/unistd.in.h (_gl_directory_name): New prototype.
39514         * lib/fchdir.c (_gl_directory_name): Implement it.
39515         (fchdir): Use it to simplify implementation.
39516         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
39517         fchdir, when available, to avoid calling [f]chdir().
39518
39519         fdopendir: split into its own module
39520         * lib/openat.c (fdopendir): Move...
39521         * lib/fdopendir.c: ...into new file.
39522         * modules/fdopendir: New module.
39523         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
39524         * modules/openat (Depends-on): Add fdopendir.
39525         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
39526         fdopendir here.
39527         * modules/savedir (Depends-on): Only need fdopendir, not full
39528         openat.
39529         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
39530         * lib/openat.h (fdopendir): Drop prototype.
39531         * lib/dirent.in.h (fdopendir): Provide prototype.
39532         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
39533         * modules/dirent (Makefile.am): Substitute them.
39534         * MODULES.html.sh (File system functions): Mention it.
39535         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
39536         * modules/fdopendir-tests: New file.
39537         * tests/test-fdopendir.c: Likewise.
39538
39539         fchdir: use more consistent macro convention
39540         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
39541         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
39542         REPLACE_FCHDIR, rather than relying on config.h macros.
39543         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
39544         inside a single make-time REPLACE_FCHDIR block, rather than using
39545         the config.h FCHDIR_REPLACEMENT.
39546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
39547         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
39548         Manage fstat replacement.
39549         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
39550         REPLACE_FCHDIR.
39551         * modules/sys_stat (Files): Add m4/unistd_h.m4.
39552         (Makefile.am): Substitute REPLACE_FCHDIR.
39553         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
39554         FCHDIR_REPLACEMENT.
39555         * lib/dup-safer.c (dup_safer): Likewise.
39556         * lib/dup2.c (rpl_dup2): Likewise.
39557         * lib/dup3.c (rpl_dup3): Likewise.
39558         * lib/open.c (rpl_open): Likewise.
39559
39560         fchdir: simplify error handling, and support dup3
39561         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
39562         stdbool, malloc-posix, realloc-posix.
39563         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
39564         (ensure_dirs_slot): Return false on allocation failure.
39565         (rpl_dup2): Delete.
39566         (_gl_register_dup): New function.
39567         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
39568         (_gl_register_fd): Close fd on allocation failure.
39569         * lib/fcntl.in.h (_gl_register_fd): Update signature.
39570         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
39571         prototype.
39572         (rpl_dup2_fchdir): Delete prototype.
39573         * lib/open.c (open): Update caller.
39574         * lib/dup2.c (dup2): Track fchdir metadata.
39575         * lib/dup3.c (dup3): Likewise.
39576         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
39577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
39578
39579 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39580
39581         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
39582         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
39583         don't pass arguments to AC_OUTPUT.
39584
39585 2009-09-02  Bruno Haible  <bruno@clisp.org>
39586
39587         * modules/mkdtemp (License): Relicense under LGPLv2+.
39588         Reported by Paolo Bonzini.
39589
39590 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39591
39592         Replace uses of obsolete autoconf macros in Jim's modules.
39593         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
39594         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
39595         can evoke a warning from autoconf when run with -Wobsolete
39596         enabled.  They were declared obsolete for good reasons (see
39597         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
39598         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
39599         should not continue using the deprecated macros.
39600         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
39601         obsolete Autoconf macros with modern counterparts.
39602         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
39603         * m4/dos.m4 (gl_AC_DOS): Likewise.
39604         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
39605         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
39606         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
39607         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
39608         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
39609         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
39610         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
39611         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
39612         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
39613         Likewise.
39614         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
39615         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
39616         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
39617         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
39618         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39619         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
39620
39621 2009-09-01  Eric Blake  <ebb9@byu.net>
39622
39623         fchdir: fix off-by-one bug in previous patch
39624         * lib/fchdir.c (rpl_fstat): Use correct bounds.
39625         (_gl_unregister_fd): Delete useless if.
39626
39627 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
39628
39629         maint.mk: sort the list of syntax-check rules
39630         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
39631         easier to get a sense of progress when the rules are run sequentially
39632         and take a long time.
39633
39634 2009-09-01  Simon Josefsson  <simon@josefsson.org>
39635
39636         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
39637         * modules/netinet_in: Likewise.
39638         * modules/sys_file: Likewise.
39639         * modules/sys_ioctl: Likewise.
39640         * modules/sys_select: Likewise.
39641         * modules/sys_socket: Likewise.
39642         * modules/sys_stat: Likewise.
39643         * modules/sys_time: Likewise.
39644         * modules/sys_times: Likewise.
39645         * modules/sys_utsname: Likewise.
39646         * modules/sys_wait: Likewise.
39647
39648 2009-09-01  Jim Meyering  <meyering@redhat.com>
39649
39650         fts: help ensure that return values are not ignored
39651         * lib/fts_.h (__GNUC_PREREQ): Define.
39652         (__attribute_warn_unused_result__): Define.
39653         (fts_children, fts_close, fts_open, fts_read): Declare with
39654         __attribute_warn_unused_result__.
39655
39656         fts: fts_close now fails also when closing a dir file descriptor fails
39657         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
39658         and propagate to caller, along with errno.
39659
39660         announce-gen: correct formatting in --help output
39661         * build-aux/announce-gen (usage): Move the one-line description in
39662         --help output "up", to where it belongs, just after Usage:.
39663
39664 2009-08-31  Eric Blake  <ebb9@byu.net>
39665
39666         fchdir: port to mingw
39667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
39668         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
39669         opened, then use a substitute.
39670         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
39671         replacement.
39672         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
39673         (_gl_register_fd): No need to check stat if open already filters
39674         all directories.
39675         (fchdir): Fix error condition to match POSIX.
39676         * modules/fchdir (Depends-on): Add sys_stat.
39677         * doc/posix-functions/open.texi (open): Document the limitation.
39678         * modules/fchdir-tests: New file.
39679         * tests/test-fchdir.c: Likewise.
39680
39681         canonicalize: allow cross-testing from cygwin to mingw
39682         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
39683         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
39684         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
39685         Likewise.
39686         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
39687         target does not support symlinks.
39688         * tests/test-canonicalize-lgpl.sh: Likewise.
39689
39690         chown: avoid compilation warning on mingw
39691         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
39692         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
39693         mingw.
39694         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39695         * modules/chown (Depends-on): Add errno.
39696
39697 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
39698
39699         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
39700         command.
39701
39702 2009-08-31  Jim Meyering  <meyering@redhat.com>
39703
39704         canonicalize: remove useless initialization
39705         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
39706         initialization of local, "end".
39707
39708 2009-08-30  Bruno Haible  <bruno@clisp.org>
39709
39710         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
39711         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
39712         ENOSYS.
39713
39714 2009-08-30  Bruno Haible  <bruno@clisp.org>
39715
39716         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
39717         /usr/xpg4/bin/tr when it exists.
39718         * tests/test-pipe-filter-gi1.sh: Likewise.
39719
39720 2009-08-30  Bruno Haible  <bruno@clisp.org>
39721
39722         Work around deficient /usr/bin/id program on Solaris.
39723         * tests/test-file-has-acl.sh (ID): New variable.
39724         * tests/test-set-mode-acl.sh (ID): Likewise.
39725         * tests/test-copy-acl.sh (ID): Likewise.
39726         * tests/test-copy-file.sh (ID): Likewise.
39727
39728 2009-08-30  Bruno Haible  <bruno@clisp.org>
39729
39730         New module 'xstriconveh'.
39731         * lib/xstriconveh.h: New file.
39732         * lib/xstriconveh.c: New file.
39733         * modules/xstriconveh: New file.
39734
39735 2009-08-30  Bruno Haible  <bruno@clisp.org>
39736
39737         Make it easier to use mem_cd_iconveh.
39738         * lib/striconveh.h (iconveh_t): New type.
39739         (iconveh_open, iconveh_close): New declarations.
39740         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39741         with a single 'const iconveh_t *' argument.
39742         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
39743         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
39744         with a single 'const iconveh_t *' argument.
39745         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
39746         * tests/test-striconveh.c (main): Update.
39747         * NEWS: Mention the change.
39748
39749 2009-08-30  Bruno Haible  <bruno@clisp.org>
39750
39751         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
39752         problem.
39753
39754 2009-08-30  Bruno Haible  <bruno@clisp.org>
39755
39756         Work around iconv_open problem on Solaris.
39757         * lib/iconv_open-solaris.gperf: New file.
39758         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
39759         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
39760         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
39761         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
39762         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
39763         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
39764
39765 2009-08-29  Jim Meyering  <meyering@redhat.com>
39766
39767         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
39768         * top/maint.mk (cvs-check): Remove target; it was just an alias
39769         to the better-named vc-diff-check.
39770         (maintainer-distcheck): Remove rule.  It was used only from
39771         the (alpha/beta/major) target, and all of its commands but one
39772         were coreutils-specific.
39773         (vc-dist): Remove rule.
39774         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
39775         Run vc-diff-check, not vc-dist.
39776         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
39777
39778 2009-08-27  Bruno Haible  <bruno@clisp.org>
39779
39780         * tests/test-bitrotate.c (main): Remove test that uses a shift count
39781         of 0.
39782
39783 2009-08-27  Bruno Haible  <bruno@clisp.org>
39784
39785         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
39786         compilers.
39787         * doc/func.texi: Document the SunPRO C bug.
39788
39789 2009-08-27  Bruno Haible  <bruno@clisp.org>
39790
39791         Fix link error on Solaris.
39792         * tests/test-parse-duration.c (xstrdup): Remove function.
39793
39794 2009-08-26  Pádraig Brady  <P@draigbrady.com>
39795
39796         ignore-value: handle pointer types, too
39797         * lib/ignore-value.h (__attribute__): Remove definition.
39798         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
39799         of a more concise and more-often effective "(void) i" statement.
39800         (ignore_ptr): New function to suppress warnings from functions that
39801         return pointers, and to make it explicit that one function doesn't
39802         handle all cases.
39803
39804 2009-08-25  Bruno Haible  <bruno@clisp.org>
39805
39806         dup2: work around a Linux bug.
39807         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
39808         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
39809         * doc/posix-functions/dup2.texi: Mention the Linux bug.
39810         Reported by Simon Josefsson.
39811
39812 2009-08-25  Jim Meyering  <meyering@redhat.com>
39813
39814         libguestfs uses gnulib
39815         * users.txt: Add libguestfs.
39816
39817 2009-08-24  Eric Blake  <ebb9@byu.net>
39818
39819         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
39820         * lib/pipe2.c (includes): Add binary-io.h.
39821         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
39822
39823 2009-08-24  Bruno Haible  <bruno@clisp.org>
39824
39825         Tolerate declared but missing accept4 syscall.
39826         * lib/accept4.c (accept4): Invoke original accept4 function first, if
39827         available.
39828         * lib/sys_socket.in.h (accept4): If the function is already present,
39829         override it.
39830         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
39831         * modules/accept4 (Makefile.am): Compile accept4.c always.
39832         Reported by Paolo Bonzini and Eric Blake.
39833
39834 2009-08-23  Bruno Haible  <bruno@clisp.org>
39835
39836         New module 'accept4'.
39837         * lib/sys_socket.in.h (accept4): New declaration.
39838         * lib/accept4.c: New file.
39839         * m4/accept4.m4: New file.
39840         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39841         GNULIB_ACCEPT4, HAVE_ACCEPT4.
39842         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
39843         HAVE_ACCEPT4.
39844         * modules/accept4: New file.
39845         * doc/glibc-functions/accept4.texi: Mention the new module.
39846
39847 2009-08-24  Jim Meyering  <meyering@redhat.com>
39848
39849         progname: also set global program_invocation_name, when possible
39850         Before this change, a libtool-enabled program that calls glibc's
39851         error function would report the program name as
39852         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
39853         * modules/progname (configure.ac): Check for a declaration of
39854         program_invocation_name.
39855         * lib/progname.c:  Include <errno.h>.
39856         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
39857         Set program_invocation_name.
39858
39859 2009-08-23  Bruno Haible  <bruno@clisp.org>
39860
39861         * lib/dup3.c: Include <string.h>.
39862
39863 2009-08-23  Bruno Haible  <bruno@clisp.org>
39864
39865         * lib/dup3.c (dup3): Test only once whether the system actually exists.
39866         * lib/pipe2.c (pipe2): Likewise.
39867         Suggested by Eric Blake.
39868
39869 2009-08-23  Bruno Haible  <bruno@clisp.org>
39870
39871         Tolerate declared but missing dup3 syscall.
39872         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
39873         * lib/unistd.in.h (dup3): If the function is already present,
39874         override it.
39875         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
39876         * modules/dup3 (Makefile.am): Compile dup3.c always.
39877         Reported by Paolo Bonzini.
39878
39879 2009-08-23  Bruno Haible  <bruno@clisp.org>
39880
39881         Tolerate declared but missing pipe2 syscall.
39882         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
39883         available.
39884         * lib/unistd.in.h (pipe2): If the function is already present,
39885         override it.
39886         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
39887         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
39888         Reported by Paolo Bonzini.
39889
39890 2009-08-23  Bruno Haible  <bruno@clisp.org>
39891
39892         * lib/pipe2.c (pipe2): Move #ifs inside function.
39893
39894 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39895
39896         quotearg: document limitations of quote_these_too
39897         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
39898         those limitations are created.
39899         * lib/quotearg.h (set_char_quoting): Document that digits and
39900         letters that are special after backslash are not permitted.
39901         (quotearg_char): Cross-reference set_char_quoting documentation.
39902
39903 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
39904
39905         quotearg: implement custom_quoting_style
39906         * lib/quotearg.c: (struct quoting_options): Add left_quote and
39907         right_quote fields.
39908         (set_custom_quoting): New public function.
39909         (quotearg_buffer_restyled): Add left_quote and right_quote
39910         arguments, handle them very much like locale quoting, and update
39911         all uses.
39912         (quotearg_n_custom): New public function.
39913         (quotearg_n_custom_mem): New public function.
39914         (quotearg_custom): New public function.
39915         (quotearg_custom_mem): New public function.
39916         * lib/quotearg.h: Prototype and document new public functions.
39917         (enum quoting_style): For escape_quoting_style and
39918         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
39919         ignored even though they're otherwise like c_quoting_style.
39920         Add custom_quoting_style member and document with comparison to
39921         clocale_quoting_style.
39922         * tests/test-quotearg.c (custom_quotes): New array.
39923         (custom_results): New array.
39924         (main): Extend to test custom quoting.
39925
39926 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39927
39928         quotearg: fix right quote escaping when it's in quote_these_too
39929         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
39930         quote, be sure to prepend only one backslash.
39931         * tests/test-quotearg.c (use_quote_double_quotes): New function.
39932         (main): Test it.
39933
39934 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
39935
39936         quotearg-tests: test escaping of embedded locale quotes
39937         * tests/test-quotearg.c (struct result_strings): Add member for
39938         new input.
39939         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
39940         (inputs): Add new input.
39941         (results_g): Add expected results.
39942         (flag_results): Likewise.
39943         (locale_results): Likewise.
39944         (compare_strings): Check those.
39945
39946 2009-08-23  Bruno Haible  <bruno@clisp.org>
39947
39948         Tests for module 'dup3'.
39949         * modules/dup3-tests: New file.
39950         * tests/test-dup3.c: New file.
39951
39952         New module 'dup3'.
39953         * lib/unistd.in.h (dup3): New declaration.
39954         * lib/dup3.c: New file.
39955         * m4/dup3.m4: New file.
39956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
39957         HAVE_DUP3.
39958         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
39959         * modules/dup3: New file.
39960         * doc/glibc-functions/dup3.texi: Mention the new module.
39961
39962 2009-08-23  Bruno Haible  <bruno@clisp.org>
39963
39964         Tweak the dup2 test.
39965         * tests/test-dup2.c (main): Create the test file empty. Verify that an
39966         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
39967         the test file is still empty. Fix argument order of lseek.
39968
39969 2009-08-23  Bruno Haible  <bruno@clisp.org>
39970
39971         Avoid test link errors when the modules getopt-gnu, gettext are used.
39972         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
39973         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39974
39975 2009-08-23  Bruno Haible  <bruno@clisp.org>
39976
39977         Fix getdtablesize() on mingw.
39978         * lib/getdtablesize.c (getdtablesize): Implement differently.
39979         * lib/unistd.in.h (getdtablesize): Improve comment.
39980
39981 2009-08-23  Bruno Haible  <bruno@clisp.org>
39982
39983         New module 'mkostemp'.
39984         Based on Ulrich Drepper's 2007-08-10 change in glibc.
39985         * lib/stdlib.in.h (mksotemp): New declaration.
39986         * lib/mkostemp.c: New file, from glibc with modifications.
39987         * lib/tempname.h (GT_FILE): Remove outdated comment.
39988         (gen_tempname): Add flags argument.
39989         * lib/tempname.c (__GT_BIGFILE): Remove macro.
39990         (__GT_FILE): Map to 1.
39991         (small_open, large_open): Remove macros.
39992         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
39993         * lib/mkstemp.c (mkstemp): Update.
39994         * lib/mkdtemp.c (mkdtemp): Likewise.
39995         * m4/mkostemp.m4: New file.
39996         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
39997         HAVE_MKOSTEMP.
39998         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
39999         HAVE_MKOSTEMP.
40000         * modules/mkostemp: New file, based on modules/mkstemp.
40001         * doc/glibc-functions/mkostemp.texi: Mention the new module.
40002         * NEWS: Mention the change.
40003
40004 2009-08-23  Bruno Haible  <bruno@clisp.org>
40005
40006         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
40007         Reported by Eric Blake.
40008
40009 2009-08-23  Bruno Haible  <bruno@clisp.org>
40010
40011         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
40012         Reported by Eric Blake.
40013
40014 2009-08-23  Bruno Haible  <bruno@clisp.org>
40015
40016         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
40017         * modules/pipe2 (Depends-on): Likewise.
40018
40019 2009-08-23  Eric Blake  <ebb9@byu.net>
40020
40021         fcntl-h: add O_TTY_INIT support
40022         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
40023         * tests/test-fcntl-h.c (o): Test it.
40024         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40025
40026         fcntl-h: rename from fcntl, in preparation for fcntl(2)
40027         * modules/fcntl: Move <fcntl.h> header replacement...
40028         * modules/fcntl-h: ...to new name, so as not to collide with
40029         like-named function.
40030         * tests/test-fcntl.c: Rename...
40031         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
40032         * modules/fcntl-tests: Rename...
40033         * modules/fcntl-h-tests: ...to this.  Update test file name.
40034         * modules/chdir-long (Depends-on): Update clients.
40035         * modules/chdir-safer (Depends-on): Likewise.
40036         * modules/fcntl-safer (Depends-on): Likewise.
40037         * modules/fts (Depends-on): Likewise.
40038         * modules/mkancesdirs (Depends-on): Likewise.
40039         * modules/mkdir-p (Depends-on): Likewise.
40040         * modules/open (Depends-on): Likewise.
40041         * modules/savewd (Depends-on): Likewise.
40042         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
40043         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40044
40045 2009-08-22  Bruno Haible  <bruno@clisp.org>
40046
40047         * modules/binary-io (License): Relicense under LGPL.
40048         * modules/pipe2 (License): Likewise.
40049
40050 2009-08-22  Bruno Haible  <bruno@clisp.org>
40051
40052         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
40053         return value.
40054         * lib/pipe-filter-gi.c (filter_init): Likewise.
40055         Reported by Eric Blake.
40056
40057 2009-08-22  Bruno Haible  <bruno@clisp.org>
40058
40059         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
40060         * modules/pipe (Depends-on): Add pipe2.
40061
40062 2009-08-22  Bruno Haible  <bruno@clisp.org>
40063
40064         Tests for module 'pipe2'.
40065         * modules/pipe2-tests: New file.
40066         * tests/test-pipe2.c: New file.
40067
40068         New module 'pipe2'.
40069         * lib/unistd.in.h (pipe2): New declaration.
40070         * lib/pipe2.c: New file.
40071         * m4/pipe2.m4: New file.
40072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
40073         HAVE_PIPE2.
40074         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
40075         * modules/pipe2: New file.
40076         * doc/glibc-functions/pipe2.texi: Mention the new module.
40077
40078 2009-08-22  Bruno Haible  <bruno@clisp.org>
40079
40080         Reference some new glibc functions.
40081         * doc/glibc-functions/accept4.texi: New file.
40082         * doc/glibc-functions/dup3.texi: New file.
40083         * doc/glibc-functions/mkostemp.texi: New file.
40084         * doc/glibc-functions/pipe2.texi: New file.
40085         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
40086         (Glibc sys/socket.h): Refer to accept4.
40087         (Glibc unistd.h): Refer to dup3, pipe2.
40088         Reported by Eric Blake.
40089
40090 2009-08-22  Jim Meyering  <meyering@redhat.com>
40091             Bruno Haible  <bruno@clisp.org>
40092
40093         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
40094         This makes it so packages using automake-1.11's silent-rules option
40095         can print e.g., a single "GEN    configmake.h" line, rather than
40096         the 30+ statements that perform the job.  If you want to see the
40097         actual commands, you can still run "make V=1".
40098         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
40099         so that make output is abbreviated when those variables are defined
40100         appropriately.
40101         * modules/argz: Likewise.
40102         * modules/arpa_inet: Likewise.
40103         * modules/byteswap: Likewise.
40104         * modules/configmake: Likewise.
40105         * modules/dirent: Likewise.
40106         * modules/errno: Likewise.
40107         * modules/fcntl: Likewise.
40108         * modules/float: Likewise.
40109         * modules/fnmatch: Likewise.
40110         * modules/getopt-posix: Likewise.
40111         * modules/glob: Likewise.
40112         * modules/iconv_open: Likewise.
40113         * modules/inttypes: Likewise.
40114         * modules/localcharset: Likewise.
40115         * modules/locale: Likewise.
40116         * modules/math: Likewise.
40117         * modules/netdb: Likewise.
40118         * modules/netinet_in: Likewise.
40119         * modules/poll: Likewise.
40120         * modules/posix_spawnp-tests: Likewise.
40121         * modules/sched: Likewise.
40122         * modules/search: Likewise.
40123         * modules/selinux-h: Likewise.
40124         * modules/signal: Likewise.
40125         * modules/spawn: Likewise.
40126         * modules/stdarg: Likewise.
40127         * modules/stdbool: Likewise.
40128         * modules/stddef: Likewise.
40129         * modules/stdint: Likewise.
40130         * modules/stdio: Likewise.
40131         * modules/stdlib: Likewise.
40132         * modules/string: Likewise.
40133         * modules/strings: Likewise.
40134         * modules/sys_file: Likewise.
40135         * modules/sys_ioctl: Likewise.
40136         * modules/sys_select: Likewise.
40137         * modules/sys_socket: Likewise.
40138         * modules/sys_stat: Likewise.
40139         * modules/sys_time: Likewise.
40140         * modules/sys_times: Likewise.
40141         * modules/sys_utsname: Likewise.
40142         * modules/sys_wait: Likewise.
40143         * modules/sysexits: Likewise.
40144         * modules/time: Likewise.
40145         * modules/unistd: Likewise.
40146         * modules/wchar: Likewise.
40147         * modules/wctype: Likewise.
40148
40149 2009-08-22  Jim Meyering  <meyering@redhat.com>
40150
40151         announce-gen: detect write failure
40152         * build-aux/announce-gen: Add Coda at end.
40153         Remove equivalent-but-more-verbose block at top.
40154
40155 2009-08-19  Akim Demaille  <demaille@gostai.com>
40156
40157         bootstrap: --help to stdout.
40158         * bootstrap (usage): Don't send --help to stderr.
40159         Use a here doc instead of a long string.
40160
40161 2009-08-21  Eric Blake  <ebb9@byu.net>
40162
40163         test-popen-safer: split from test-popen
40164         * tests/test-popen.c (main): Move...
40165         * tests/test-popen.h: ...into new file.
40166         * tests/test-popen-safer2.c: New file.
40167         * modules/popen-tests (Files): Add test-popen.h.
40168         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
40169         Suggested by Bruno Haible.
40170
40171         test-fcntl-safer: split from test-open
40172         * tests/test-open.c (main): Move...
40173         * tests/test-open.h: ...into new file.
40174         * tests/test-fcntl-safer.c: New file.
40175         * modules/open-tests (Files): Add test-open.h.
40176         * modules/fcntl-safer-tests: New file.
40177         Suggested by Bruno Haible.
40178
40179         test-fopen-safer: split from test-fopen
40180         * tests/test-fopen.c (main): Move...
40181         * tests/test-fopen.h: ...into new file.
40182         * tests/test-fopen-safer.c: New file.
40183         * modules/fopen-tests (Files): Add test-fopen.h.
40184         * modules/fopen-safer-tests: New file.
40185         Suggested by Bruno Haible.
40186
40187 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40188
40189         popen-safer: test O_CLOEXEC at run-time.
40190         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
40191
40192 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40193
40194         fcntl: move more flags to the header
40195         * lib/cloexec.c: Do not define FD_CLOEXEC here.
40196         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
40197         * lib/fcntl.in.h: Do both things here.
40198
40199 2009-08-21  Jim Meyering  <meyering@redhat.com>
40200
40201         consistently remove $@-t before redirecting to it
40202         * modules/argz: Remove $@-t and $@ before redirecting to the former.
40203         * modules/alloca-opt: Likewise.
40204         * modules/byteswap: Likewise.
40205         * modules/fnmatch: Likewise.
40206         * modules/getopt-posix: Likewise.
40207         * modules/glob: Likewise.
40208         * modules/poll: Likewise.
40209         * modules/posix_spawnp-tests: Likewise.
40210         * modules/sys_socket: Likewise.
40211         * modules/sysexits: Likewise.
40212
40213 2009-08-21  Eric Blake  <ebb9@byu.net>
40214
40215         popen: simplify access to original popen
40216         * lib/popen.c (rpl_popen): No need to worry about popen being a
40217         macro.
40218         Reported by Bruno Haible.
40219
40220 2009-08-20  Eric Blake  <ebb9@byu.net>
40221
40222         build: avoid some compiler warnings
40223         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
40224         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
40225         type.
40226         (new_exclude_segment, excluded_file_pattern_p)
40227         (excluded_file_name_p): Reduce scope.
40228         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
40229         old-style declaration.
40230
40231 2009-08-20  Simon Josefsson  <simon@josefsson.org>
40232
40233         * tests/test-exclude1.sh: Handle Windows EOL.
40234         * tests/test-exclude2.sh: Likewise.
40235         * tests/test-exclude3.sh: Likewise.
40236         * tests/test-exclude4.sh: Likewise.
40237         * tests/test-exclude5.sh: Likewise.
40238         * tests/test-exclude6.sh: Likewise.
40239         * tests/test-exclude7.sh: Likewise.
40240
40241 2009-08-19  Akim Demaille  <demaille@gostai.com>
40242
40243         bootstrap: find sha1sum when named gsha1sum.
40244         * bootstrap (find_tool): New.
40245         ($SHA1SUM): New.
40246         Use it.
40247
40248 2009-08-20  Jim Meyering  <meyering@redhat.com>
40249
40250         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
40251         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
40252         expression that converts "." in a file name to "\." in the resulting
40253         regexp.  Start with a dummy statement, so that prior shell variable
40254         definitions are expanded portably.  Reported by Simon Josefsson.
40255
40256 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
40257
40258         Fix polling for writeability of a screen buffer.
40259         * lib/poll.c: Distinguish input and screen buffers for the
40260         Win32 implementation.
40261         * lib/select.c: Likewise.
40262
40263 2009-08-19  Eric Blake  <ebb9@byu.net>
40264
40265         popen-safer: prevent popen from clobbering std descriptors
40266         * modules/popen-safer: New file.
40267         * lib/popen-safer.c: Likewise.
40268         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
40269         * lib/stdio--.h (popen): Provide override.
40270         * lib/stdio-safer.h (popen_safer): Provide declaration.
40271         * tests/test-popen.c (includes): Partially test this.
40272         * modules/popen-safer-tests: New file, for more tests.
40273         * tests/test-popen-safer.c: Likewise.
40274         * MODULES.html.sh (file stream based Input/Output): Mention it.
40275
40276         tests: test some of the *-safer modules
40277         * modules/fopen-safer (Depends-on): Add fopen.
40278         * modules/fcntl-safer (Depends-on): Add fcntl.
40279         * modules/stdlib-safer (Depends-on): Add stdlib.
40280         (configure.ac): Set indicator.
40281         * modules/unistd-safer (configure.ac): Likewise.
40282         * modules/tmpfile-safer (configure.ac): Likewise.
40283         (Depends-on): Add tmpfile.
40284         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
40285         active.
40286         * tests/test-fopen.c (includes): Test safer versions when they are
40287         in use.
40288         * tests/test-open.c (includes): Likewise.
40289
40290         popen: fix cygwin 1.5 bug when stdin closed
40291         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
40292         * modules/popen: New file.
40293         * modules/popen-tests: Likewise.
40294         * tests/test-popen.c: Likewise.
40295         * m4/popen.m4: Likewise.
40296         * lib/popen.c: Likewise.
40297         * lib/stdio.in.h (popen): New declaration.
40298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
40299         * modules/stdio (Makefile.am): Likewise.
40300         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
40301
40302 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
40303
40304         maint.mk: give full control over update-copyright exclusions
40305         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
40306         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
40307         (update-copyright): Don't force inclusion of top-level
40308         ChangeLog.  Don't force exclusion of all COPYING files, but make
40309         them the default exclusion instead.
40310
40311 2009-08-16  Bruno Haible  <bruno@clisp.org>
40312
40313         Fix test failures on Solaris 10.
40314         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
40315         tests when Solaris iconv() is used.
40316         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40317         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40318         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40319         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40320         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40321
40322 2009-08-16  Bruno Haible  <bruno@clisp.org>
40323
40324         Fix test failures on Solaris 10.
40325         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
40326         'tr' program and pass it as first argument.
40327         * tests/test-pipe-filter-gi1.sh: Likewise.
40328         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
40329         program as first argument.
40330         * tests/test-pipe-filter-gi1.c (main): Likewise.
40331
40332 2009-08-16  Eric Blake  <ebb9@byu.net>
40333
40334         fpurge: fix previous commits
40335         * modules/fpurge (Makefile.am): Make replacement conditional,
40336         partially reverting 2007-04-29 change; missed in previous
40337         attempt.
40338         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
40339         is missing.
40340
40341 2009-08-16  Bruno Haible  <bruno@clisp.org>
40342
40343         Clarify fpurge's effect on the file position.
40344         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
40345         * tests/test-fpurge.c (main): Make a second pass for checking the file
40346         position.
40347
40348 2009-08-16  Bruno Haible  <bruno@clisp.org>
40349
40350         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
40351         declaration of fpurge is missing.
40352         * tests/test-fpurge.c (main): Check that the file has not more contents
40353         than expected. Close the file before removing it.
40354
40355 2009-08-15  Eric Blake  <ebb9@byu.net>
40356
40357         fpurge: don't wrap working cygwin implementation
40358         * lib/fpurge.c (fpurge): Fix comment typo.
40359         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
40360         1.7 to avoid replacement.
40361         * tests/test-fpurge.c (main): Enhance test.
40362
40363 2009-08-15  Eric Blake  <ebb9@byu.net>
40364         and Jim Meyering  <meyering@redhat.com>
40365
40366         test-update-copyright: skip if perl is insufficient
40367         * tests/test-update-copyright.sh: Failure to run maintainer tool
40368         should not cause testsuite failure on cygwin 1.5.
40369
40370 2009-08-14  Eric Blake  <ebb9@byu.net>
40371
40372         doc: mention more functions added in cygwin 1.7.0
40373         * doc/posix-headers/limits.texi (limits.h): Update for recent
40374         cygwin additions.
40375         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
40376         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
40377         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
40378         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
40379         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
40380
40381 2009-08-14  Eric Blake  <ebb9@byu.net>
40382
40383         maint.mk: simplify update-copyright rule
40384         * top/maint.mk (update-copyright-local): Delete, and document how
40385         to do it in cfg.mk instead.
40386         (update-copyright-exclude-regexp): Delete, and document how to do
40387         it in .x-update-copyright instead.
40388         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
40389         exclude ChangeLog.
40390
40391 2009-08-14  Bruno Haible  <bruno@clisp.org>
40392
40393         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
40394
40395 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40396
40397         maint.mk: support update-copyright-env
40398         * top/maint.mk (update-copyright-env): Define place-holder.
40399         (update-copyright): Expand $(update-copyright-env) before
40400         invoking update-copyright.
40401
40402 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40403
40404         update-copyright: implement forced reformatting
40405         * build-aux/update-copyright: Implement and document
40406         UPDATE_COPYRIGHT_FORCE.
40407         * tests/test-update-copyright.sh: Test it.
40408
40409 2009-08-14  Eric Blake  <ebb9@byu.net>
40410         and Bruno Haible  <bruno@clisp.org>
40411
40412         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
40413         * tests/test-locale.c: Revert previous patch related to NULL.
40414         * tests/test-stdio.c: Likewise.
40415         * tests/test-stdlib.c: Likewise.
40416         * tests/test-string.c: Likewise.
40417         * tests/test-unistd.c: Likewise.
40418         * modules/time-tests (Depends-on): Add verify.
40419         * modules/wchar-tests (Depends-on): Likewise.
40420         * tests/test-time.c: Test for NULL compliance.
40421         * tests/test-wchar.c: Likewise.
40422         * modules/locale (Depends-on): Add stddef.
40423         * modules/stdio (Depends-on): Likewise.
40424         * modules/stdlib (Depends-on): Likewise.
40425         * modules/string (Depends-on): Likewise.
40426         * modules/time (Depends-on): Likewise.
40427         * modules/unistd (Depends-on): Likewise.
40428         * modules/wchar (Depends-on): Likewise.
40429         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
40430         * lib/stdlib.in.h (includes): Likewise.
40431         * lib/string.in.h (includes): Likewise.
40432         * lib/time.in.h (includes): Likewise.
40433         * lib/unistd.in.h (includes): Likewise.
40434         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
40435         replaced.
40436         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40437         * m4/stddef_h.m4: New file.
40438         * modules/stddef: Likewise.
40439         * lib/stddef.in.h: Likewise.
40440         * modules/stddef-tests: Likewise.
40441         * tests/test-stddef.c: Likewise.
40442         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
40443         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
40444         * doc/posix-headers/locale.texi (locale.h): Likewise.
40445         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
40446         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
40447         * doc/posix-headers/string.texi (string.h): Likewise.
40448         * doc/posix-headers/time.texi (time.h): Likewise.
40449         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
40450         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
40451
40452 2009-08-14  Eric Blake  <ebb9@byu.net>
40453
40454         doc: improve git diff of texinfo files
40455         * .gitattributes: Add rule for *.texi files, with hint on how to
40456         use it.
40457         Copied from m4, and based on a report by Bruno Haible.
40458
40459 2009-08-14  Bruno Haible  <bruno@clisp.org>
40460
40461         Disable multithread support by default on Cygwin 1.5.x for real.
40462         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
40463
40464 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
40465
40466         update-copyright: much ado about intervals
40467         * build-aux/update-copyright: Implement and document
40468         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
40469         of copyright year intervals.
40470         Also, document UPDATE_COPYRIGHT_YEAR.
40471         * tests/test-update-copyright.sh: Test it.
40472
40473         update-copyright: convert 2-digit to 4-digit years
40474         * build-aux/update-copyright: Implement and document.
40475         * tests/test-update-copyright.sh: Update.
40476
40477 2009-08-14  Jim Meyering  <meyering@redhat.com>
40478
40479         test-exclude: avoid coreutils "make check" failure
40480         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
40481         just as in test-argmatch.c.
40482
40483 2009-08-13  Eric Blake  <ebb9@byu.net>
40484
40485         test-dup2: fix bad assumption
40486         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
40487         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
40488
40489         test-version-etc: fix CRLF portability issue
40490         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
40491         recognize \r.
40492         * tests/test-argp-version-etc-1.sh: Likewise.
40493
40494         getopt: update client modules
40495         * modules/argp (Depends-on): Use getopt-gnu.
40496         * modules/git-merge-changelog (Depends-on): Likewise.
40497         * modules/long-options (Depends-on): Likewise.
40498         * modules/xstrtol (Depends-on): Likewise.
40499
40500 2009-08-13  Simon Josefsson  <simon@josefsson.org>
40501
40502         * tests/test-version-etc.sh: Don't fail on different
40503         project/version.  Don't fail on CRLF differences.  Rewrite to use
40504         multiple -e instead of multiple sed forks, suggested by Eric Blake
40505         <ebb9@byu.net>.
40506         * tests/test-argp-version-etc-1.sh: Likewise.
40507
40508 2009-08-13  Simon Josefsson  <simon@josefsson.org>
40509
40510         * tests/test-version-etc.sh: Don't fail on different
40511         project/version.
40512
40513 2009-08-12  Bruno Haible  <bruno@clisp.org>
40514
40515         Tests for modules 'getopt-posix', 'getopt-gnu'.
40516         * modules/getopt-posix-tests: New file.
40517         * tests/test-getopt.c: New file.
40518         * tests/test-getopt.h: New file.
40519         * tests/test-getopt_long.h: New file.
40520
40521         New modules 'getopt-posix', 'getopt-gnu'.
40522         * modules/getopt-gnu: New file, renamed from modules/getopt.
40523         * modules/getopt-posix: New file.
40524         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
40525         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
40526         (gl_GETOPT): Remove macro.
40527         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
40528         Disable the test against BSD systems that declare optreset. Test
40529         against mingw bug. Test against lack of support of optional arguments
40530         on many platforms.
40531         * doc/glibc-headers/getopt.texi: Update module name and list of
40532         relevant platforms.
40533         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
40534         'getopt-gnu' and more portability problems.
40535         * NEWS: Mention the changes.
40536
40537 2009-08-12  Bruno Haible  <bruno@clisp.org>
40538
40539         Ensure that optarg etc. get declared by <unistd.h>.
40540         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
40541         AC_USE_SYSTEM_EXTENSIONS.
40542         * modules/getopt (Depends-on): Add 'extensions'.
40543
40544 2009-08-12  Bruno Haible  <bruno@clisp.org>
40545
40546         Avoid test link errors.
40547         * modules/pipe-filter-ii-tests (Makefile.am): Define
40548         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
40549         * modules/pipe-filter-gi-tests (Makefile.am): Define
40550         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
40551         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40552
40553 2009-08-12  Bruno Haible  <bruno@clisp.org>
40554
40555         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
40556         gl_GETOPT_SUBSTITUTE before.
40557         (gl_GETOPT): Use it.
40558         * m4/argp.m4 (gl_ARGP): Update.
40559         Reported by Sergey Poznyakoff.
40560
40561         * m4/getopt.m4: Reorder macros.
40562         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
40563         (gl_GETOPT_SUBSTITUTE): Remove macro.
40564
40565 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40566
40567         Minor improvement in gitlog-to-changelog
40568
40569         * build-aux/gitlog-to-changelog: New option `--format' makes
40570         output format string configurable.
40571
40572 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40573
40574         Optimize exclude: use hash tables for non-wildcard patterns.
40575
40576         * lib/exclude.c: Include hash.h and mbuiter.h
40577         (struct exclude_pattern, exclude_segment): New data types.
40578         (struct exclude): Rewrite.
40579         (fnmatch_pattern_has_wildcards): New function.
40580         (new_exclude_segment, free_exclude_segment): New functions.
40581         (excluded_file_pattern_p, excluded_file_name_p): New functions.
40582         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
40583         * lib/exclude.h (is_fnmatch_pattern): New prototype.
40584         * modules/exclude: Depend on hash and mbuiter.
40585
40586         * modules/exclude-tests: New file.
40587         * tests/test-exclude.c: New file.
40588         * tests/test-exclude1.sh: New file.
40589         * tests/test-exclude2.sh: New file.
40590         * tests/test-exclude3.sh: New file.
40591         * tests/test-exclude4.sh: New file.
40592         * tests/test-exclude5.sh: New file.
40593         * tests/test-exclude6.sh: New file.
40594         * tests/test-exclude7.sh: New file.
40595
40596 2009-08-12  Bruno Haible  <bruno@clisp.org>
40597
40598         Ensure that getopt() gets declared by <unistd.h>.
40599         * lib/unistd.in.h: Conditionally include getopt.h.
40600         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
40601         Set GNULIB_UNISTD_H_GETOPT.
40602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40603         GNULIB_UNISTD_H_GETOPT.
40604         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
40605
40606 2009-08-12  Bruno Haible  <bruno@clisp.org>
40607
40608         Clarify logic.
40609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
40610         gl_replace_getopt instead of GETOPT_H.
40611
40612 2009-08-12  Bruno Haible  <bruno@clisp.org>
40613
40614         * m4/getopt.m4: Add comments.
40615
40616 2009-08-12  Bruno Haible  <bruno@clisp.org>
40617
40618         Disable multithread support by default on Cygwin 1.5.x.
40619         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
40620         set gl_use_threads=no if not specified otherwise.
40621
40622 2009-08-11  Bruno Haible  <bruno@clisp.org>
40623
40624         Avoid compilation error on NetBSD 5.0.
40625         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
40626         * tests/test-stdio.c: Likewise.
40627         * tests/test-stdlib.c: Likewise.
40628         * tests/test-string.c: Likewise.
40629         * tests/test-unistd.c: Likewise.
40630         Reported by Greg Troxel <gdt@ir.bbn.com>
40631         at <https://savannah.gnu.org/support/?106973>.
40632
40633 2009-08-11  Bruno Haible  <bruno@clisp.org>
40634
40635         * modules/dup2-tests (Depends-on): Remove close.
40636
40637         Undo 2009-07-19 commit.
40638         * modules/acl-tests (Depends-on): Remove close.
40639         * modules/binary-io-tests (Depends-on): Likewise.
40640         * modules/closein-tests (Depends-on): Likewise.
40641         * modules/flock-tests (Depends-on): Likewise.
40642         * modules/fsync-tests (Depends-on): Likewise.
40643         * modules/lseek-tests (Depends-on): Likewise.
40644         * modules/pipe-tests (Depends-on): Likewise.
40645         * modules/posix_spawn-tests (Depends-on): Likewise.
40646         * modules/posix_spawnp-tests (Depends-on): Likewise.
40647         * modules/stat-time-tests (Depends-on): Likewise.
40648         * modules/yesno-tests (Depends-on): Likewise.
40649
40650 2009-08-10  Bruno Haible  <bruno@clisp.org>
40651
40652         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
40653
40654 2009-08-10  Bruno Haible  <bruno@clisp.org>
40655
40656         Fix a gcc warning.
40657         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
40658
40659 2009-08-10  Bruno Haible  <bruno@clisp.org>
40660
40661         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
40662         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
40663         not only the first time.
40664         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
40665         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
40666         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
40667         is 1, not only the the first time.
40668
40669 2009-08-10  Bruno Haible  <bruno@clisp.org>
40670
40671         Make it possible to use module 'gethostname' without module 'close'.
40672         * lib/unistd.in.h (close): Evoke a link error only if
40673         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
40674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40675         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40676         * modules/unistd (Makefile.am): Substitute
40677         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40678         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
40679         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
40680         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
40681         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40682         * modules/sys_ioctl (Makefile.am): Substitute
40683         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40684         * modules/socket (configure.ac): On native Windows, set
40685         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
40686         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
40687         Reported by Sam Steingold <sds@gnu.org>.
40688
40689 2009-08-10  Bruno Haible  <bruno@clisp.org>
40690
40691         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
40692         * modules/ioctl (configure.ac): Likewise.
40693
40694 2009-08-10  Bruno Haible  <bruno@clisp.org>
40695
40696         Avoid collision between gnulib wrapper and libintl wrapper.
40697         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
40698         already defined in intl/printf.c.
40699         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
40700         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
40701
40702 2009-08-09  Bruno Haible  <bruno@clisp.org>
40703
40704         Make <sys/select.h> really self-contained, also on Solaris 10.
40705         * lib/sys_select.in.h: Include <string.h>.
40706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
40707         Solaris 10 problem.
40708         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
40709         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
40710         Reported by Jim Meyering.
40711
40712 2009-08-09  Bruno Haible  <bruno@clisp.org>
40713
40714         Avoid warnings from 'aclocal' that are due to a use of macro name
40715         AM_XGETTEXT_OPTION that is not defined in automake.
40716         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
40717         automake.
40718         * modules/error (configure.ac): Likewise.
40719         * modules/propername (configure.ac): Likewise.
40720         * modules/vasprintf (configure.ac): Likewise.
40721         * modules/verror (configure.ac): Likewise.
40722         * modules/xprintf (configure.ac): Likewise.
40723         * modules/xvasprintf (configure.ac): Likewise.
40724
40725 2009-08-08  Bruno Haible  <bruno@clisp.org>
40726
40727         Avoid compilation error in C++ mode.
40728         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
40729         Reported by Sam Steingold <sds@gnu.org>.
40730
40731 2009-08-08  Bruno Haible  <bruno@clisp.org>
40732
40733         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
40734         for the various Unix platforms.
40735         * doc/posix-headers/limits.texi: Update platforms list regarding
40736         HOST_NAME_MAX.
40737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40738
40739 2009-08-07  Jim Meyering  <meyering@redhat.com>
40740
40741         selinux-at: fix typo in a comment
40742         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
40743         Spotted by Paolo Bonzini.
40744
40745         selinux-at: remove redundant m4 code, add documentation
40746         * modules/selinux-at (configure.ac): Remove redundant code.
40747         LIB_SELINUX is already set via the dependent module, selinux-h.
40748         (Include): Add quotes around selinux-at.h.
40749         * lib/selinux-at.h: Add documentation.
40750         Reported by Bruno Haible in
40751         http://marc.info/?l=gnulib-bug&m=124958988300749
40752
40753 2009-08-07  Bruno Haible  <bruno@clisp.org>
40754
40755         Avoid link error on MacOS X 10.3 and 10.4.
40756         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
40757         on non-ELF systems.
40758         * lib/argp-pv.c (argp_program_version): Likewise.
40759         Reported by Simon Josefsson.
40760
40761 2009-08-07  Simon Josefsson  <simon@josefsson.org>
40762
40763         * tests/test-version-etc.sh: Use $EXEEXT.
40764
40765 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
40766
40767         update-copyright: update documentation to point to maint.mk
40768         * build-aux/update-copyright: Here.
40769
40770 2009-08-06  Jim Meyering  <meyering@redhat.com>
40771
40772         maint.mk: support update-copyright-local
40773         * top/maint.mk (update-copyright-local): Define place-holder.
40774         (update-copyright): Depend on $(update-copyright-local).
40775
40776 2009-08-06  Jim Meyering  <meyering@redhat.com>
40777
40778         selinux-at: new module
40779         Initially written for coreutils, this module will soon be
40780         used by findutils, too.
40781         * MODULES.html.sh [Misc]: Add selinux-at.
40782         * lib/selinux-at.h: New file, from coreutils.
40783         * lib/selinux-at.c: Likewise.
40784         * modules/selinux-at: Likewise.
40785         (License): Change from LGPL to GPL, since it depends
40786         on the GPL'd openat module.
40787
40788         doc: update README
40789         * README: Remove references to cogito.
40790         Remove cvs-repo-updating instructions from 2007.
40791         Don't imply that CVS is better if you have limited disk space.
40792
40793 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40794
40795         update-copyright: support C-style comments
40796         * build-aux/update-copyright: Implement and document.
40797         * tests/test-update-copyright.sh: Test.
40798
40799 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40800
40801         update-copyright: support omitted "(C)"
40802         * build-aux/update-copyright: Implement and document.  Also,
40803         allow variable whitespace before "(C)".
40804         * tests/test-update-copyright.sh: Test.
40805
40806 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40807
40808         update-copyright: don't trip on non-FSF copyright statements
40809         * build-aux/update-copyright: Fix so that the first correctly
40810         formatted FSF copyright statement is recognized no matter what
40811         appears before it.  Update documentation.
40812         * tests/test-update-copyright.sh: Test that.
40813
40814 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40815
40816         update-copyright: clean up code a little
40817         * build-aux/update-copyright: Append "_re" to the name of any
40818         variable holding a regular expression.
40819         Replace "old" and "new" with "stmt" in variable names.
40820         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
40821         handled correctly.
40822         Format code more consistently.
40823
40824 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
40825
40826         update-copyright-tests: improve portability
40827         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
40828         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
40829
40830 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40831
40832         update-copyright: support @copyright{} and &copy;
40833         * build-aux/update-copyright: Implement and document.
40834         * tests/test-update-copyright.sh: Test.
40835
40836 2009-08-04  Jim Meyering  <meyering@redhat.com>
40837
40838         update-copyright-tests: correctly test EOL=\r\n handling
40839         * tests/test-update-copyright.sh: Put \r at the end of some lines
40840         for the dos-eol tests.  Based on a patch by Joel E. Denny.
40841
40842         maint.mk: make update-copyright exclusion list more configurable
40843         * top/maint.mk (update-copyright): Default to excluding COPYING,
40844         but allow an override, in case someone does want to update that file.
40845
40846         maint.mk: don't update copyright date in COPYING
40847         * top/maint.mk (update-copyright): Exclude COPYING.
40848
40849         maint.mk: add a copyright-updating rule
40850         * top/maint.mk (update-copyright): New rule.
40851         Derived from coreutils/Makefile.am.
40852
40853         update-copyright: rename some variables
40854         * build-aux/update-copyright: Rename a few variables for clarity.
40855         Tweak syntax.  List Joel E. Denny as coauthor.
40856
40857 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
40858
40859         update-copyright: fix bug for 2-digit last year and add tests
40860         * build-aux/update-copyright: Fix bug.
40861         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
40862         specified.
40863         * modules/update-copyright-tests: New
40864         * tests/test-update-copyright.sh: New.
40865
40866 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40867
40868         update-copyright: handle leading tabs in line prefix
40869         * build-aux/update-copyright: Count leading tabs as 8 spaces
40870         when computing margin.  This helps with the formatting of
40871         ChangeLogs, for example.
40872         Fix documentation a little.
40873
40874 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40875
40876         update-copyright: support EOL=\r\n
40877         * build-aux/update-copyright: Implement that.
40878
40879 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
40880
40881         update-copyright: automatically format copyright statements
40882         * build-aux/update-copyright: Implement that.
40883         Also, be a little more predictable and safer by always failing
40884         when the full copyright format is not perfectly recognized as an
40885         unbroken whole.  Discussed at
40886         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
40887         Rewrite documentation.
40888
40889 2009-08-03  Bruno Haible  <bruno@clisp.org>
40890
40891         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
40892
40893 2009-08-02  Bruno Haible  <bruno@clisp.org>
40894
40895         Tests for module 'uname'.
40896         * modules/uname-tests: New file.
40897         * tests/test-uname.c: New file.
40898
40899         New module 'uname'.
40900         * lib/uname.c: New file.
40901         * m4/uname.m4: New file.
40902         * modules/uname: New file.
40903         * doc/posix-functions/uname.texi: Mention the new module.
40904
40905 2009-08-02  Bruno Haible  <bruno@clisp.org>
40906
40907         Tests for module 'sys_utsname'.
40908         * modules/sys_utsname-tests: New file.
40909         * tests/test-sys_utsname.c: New file.
40910
40911         New module 'sys_utsname'.
40912         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
40913         * m4/sys_utsname_h.m4: New file.
40914         * modules/sys_utsname: New file.
40915         * doc/posix-headers/sys_utsname.texi: Mention the new module.
40916
40917 2009-08-02  Bruno Haible  <bruno@clisp.org>
40918
40919         Implicitly initialize the sockets library.
40920         * lib/gethostname.c: Include sockets.h.
40921         (rpl_gethostname): Invoke gl_sockets_startup.
40922         * lib/socket.c: Include sockets.h.
40923         (rpl_socket): Invoke gl_sockets_startup.
40924         * modules/gethostname (Depends-on): Add sockets.
40925         * modules/socket (Depends-on): Likewise.
40926         * tests/test-poll.c: Don't include sockets.h.
40927         (main): Don't invoke gl_sockets_startup.
40928         * tests/test-select.c: Don't include sockets.h.
40929         (main): Don't invoke gl_sockets_startup.
40930
40931 2009-08-02  Bruno Haible  <bruno@clisp.org>
40932
40933         Allow multiple calls to gl_sockets_startup.
40934         * lib/sockets.c (initialized_sockets_version): New variable.
40935         (gl_sockets_startup): Do nothing if already called for this or a higher
40936         version.
40937         (gl_sockets_cleanup): Reset initialized_sockets_version.
40938
40939 2009-08-03  Simon Josefsson  <simon@josefsson.org>
40940
40941         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
40942         different project/version.
40943
40944 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
40945             Bruno Haible  <bruno@clisp.org>
40946
40947         Tests for module 'pipe-filter-gi'.
40948         * modules/pipe-filter-gi-tests: New file.
40949         * tests/test-pipe-filter-gi1.sh: New file.
40950         * tests/test-pipe-filter-gi1.c: New file.
40951         * tests/test-pipe-filter-gi2.sh: New file.
40952         * tests/test-pipe-filter-gi2-main.c: New file.
40953         * tests/test-pipe-filter-gi2-child.c: New file.
40954
40955         New module 'pipe-filter-gi'.
40956         * lib/pipe-filter-gi.c: New file.
40957         * modules/pipe-filter-gi: New file.
40958
40959 2009-08-02  Bruno Haible  <bruno@clisp.org>
40960             Paolo Bonzini  <bonzini@gnu.org>
40961
40962         Tests for module 'pipe-filter-ii'.
40963         * modules/pipe-filter-ii-tests: New file.
40964         * tests/test-pipe-filter-ii1.sh: New file.
40965         * tests/test-pipe-filter-ii1.c: New file.
40966         * tests/test-pipe-filter-ii2.sh: New file.
40967         * tests/test-pipe-filter-ii2-main.c: New file.
40968         * tests/test-pipe-filter-ii2-child.c: New file.
40969
40970         New module 'pipe-filter-ii'.
40971         * lib/pipe-filter.h: New file.
40972         * lib/pipe-filter-ii.c: New file.
40973         * lib/pipe-filter-aux.h: New file.
40974         * modules/pipe-filter-ii: New file.
40975
40976 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40977
40978         * lib/gc-libgcrypt.c: Change copyright to FSF.
40979         * lib/gc-gnulib.c: Likewise.
40980
40981 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
40982
40983         * lib/gethostname.c: Include limits.h.
40984
40985 2009-08-02  Simon Josefsson  <simon@josefsson.org>
40986             Bruno Haible  <bruno@clisp.org>
40987
40988         Ensure HOST_NAME_MAX as part of the gethostname module.
40989         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
40990         define also HOST_NAME_MAX.
40991         * tests/test-gethostname.c: Include <limits.h>.
40992         (main): Check also HOST_NAME_MAX.
40993         * doc/posix-headers/limits.texi: Document the mingw problem.
40994
40995 2009-08-02  Bruno Haible  <bruno@clisp.org>
40996
40997         * lib/gethostname.c (gethostname): Fix handling of large len argument.
40998         Add comments.
40999
41000 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41001
41002         * lib/gethostname.c: Add Windows wrapper.
41003         * m4/gethostname.m4: Look for gethostname in -lws2_32.
41004         * modules/gethostname: Depend on sys_socket & errno, for also
41005         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
41006         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
41007
41008 2009-07-31  Jim Meyering  <meyering@redhat.com>
41009
41010         getloadavg: fix symbol name in comment
41011         * lib/getloadavg.c: Correct a typo I introduced when adding
41012         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
41013         Matt Kraai spotted the problem.
41014
41015 2009-07-29  Matt Kraai  <mkraai@beckman.com>
41016
41017         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
41018         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
41019         code also if ! defined N_NAME_POINTER.
41020         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
41021         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
41022         but the n_name member is a 12-byte array.
41023
41024 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
41025
41026         update-copyright: generalize comment handling
41027         * build-aux/update-copyright: Handle copyright statements
41028         within more comment styles.
41029         Document usage.
41030         Report any file with an external copyright holder or parse failure.
41031
41032 2009-07-29  Jim Meyering  <meyering@redhat.com>
41033
41034         mktime: correct setting of REPLACE_MKTIME
41035         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
41036
41037         update-copyright: new module
41038         * modules/update-copyright: New file.
41039         * build-aux/update-copyright: New file.
41040         * MODULES.html.sh (maint+release support): Add update-copyright.
41041
41042 2009-07-27  Bruno Haible  <bruno@clisp.org>
41043
41044         Fix compilation error when <ctime> is used and mktime is replaced.
41045         * lib/time.in.h (mktime): New declaration.
41046         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
41047         REPLACE_MKTIME instead of defining mktime in config.h.
41048         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
41049         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
41050         Reported by Ross McFarland <rwmcfa1@neces.com>.
41051
41052 2009-07-27  Bruno Haible  <bruno@clisp.org>
41053
41054         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
41055         Reported by Matt Kraai <mkraai@beckman.com>.
41056
41057 2009-07-25  Jim Meyering  <meyering@redhat.com>
41058
41059         maint.mk: avoid warnings about missing files
41060         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
41061         diagnostic when .prev-version does not exist.
41062         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
41063         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
41064         nonexistent cfg.mk.
41065         Suggestions from Simon Josefsson.
41066
41067 2009-07-25  Bruno Haible  <bruno@clisp.org>
41068
41069         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
41070         defined as macros. Needed on QNX 6.4.1.
41071         Reported by Matt Kraai <mkraai@beckman.com>.
41072
41073 2009-07-23  Jim Meyering  <meyering@redhat.com>
41074
41075         maint.mk: invoke "make dist" with a working value of XZ_OPT
41076         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
41077
41078 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
41079
41080         Make fseeko.c compile on QNX.
41081         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
41082
41083 2009-07-22  Peter Simons  <simons@cryp.to>
41084
41085         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
41086         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
41087         * lib/md4.h: Likewise.
41088         * lib/md5.h: Likewise.
41089         * lib/sha1.h: Likewise.
41090         * lib/sha256.h: Likewise.
41091         * lib/sha512.h: Likewise.
41092
41093         tests-sha1: don't assign literal string to 'char *' variable
41094         * tests/test-sha1.c (main): Declare locals with "const" to match
41095         attributes of the right hand side.
41096
41097 2009-07-21  Eric Blake  <ebb9@byu.net>
41098
41099         dup2: fix more mingw problems
41100         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
41101         fd to itself.
41102         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41103         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
41104         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
41105         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
41106         care of mingw bugs.
41107
41108 2009-07-21  Jim Meyering  <meyering@redhat.com>
41109
41110         vc-list-files: avoid failure when /bin/sh is dash
41111         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
41112         On some Debian based systems, /bin/sh is a symlink to dash, and running
41113         this command would omit the "/" following each 'tests' prefix:
41114           dash -x build-aux/vc-list-files -C . tests
41115         That is because bash and dash work differently:
41116           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
41117           bash ok
41118           dash odd
41119
41120 2009-07-21  Eric Blake  <ebb9@byu.net>
41121
41122         dup2-tests: test previous patch
41123         * modules/dup2-tests: New file.
41124         * tests/test-dup2.c: Likewise.
41125         * tests/test-open.c (main): Avoid unspecified behavior.
41126         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
41127         test.
41128
41129         dup2: work around mingw and cygwin 1.5 bug
41130         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
41131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41132         * modules/unistd (Makefile.am): Substitute it.
41133         * lib/unistd.in.h (dup2): Declare the replacement.
41134         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
41135         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
41136         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
41137         * modules/execute (Depends-on): Add dup2.
41138         * modules/fseterr (Depends-on): Likewise.
41139         * modules/pipe (Depends-on): Likewise.
41140         * modules/posix_spawn-internal (Depends-on): Likewise.
41141
41142 2009-07-21  Bruno Haible  <bruno@clisp.org>
41143
41144         * modules/.gitattributes: New file.
41145
41146 2009-07-20  Bruno Haible  <bruno@clisp.org>
41147
41148         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
41149         (main): Use it.
41150
41151 2009-07-20  Eric Blake  <ebb9@byu.net>
41152
41153         test-pipe: make a bit more robust.
41154         * tests/test-pipe.c (myerr): Allow error messages regardless of
41155         what we do to stderr.
41156         (test_pipe): Rearrange to avoid deadlock.
41157         (child_main): Try a larger read, to ensure we avoided deadlock.
41158         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
41159         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
41160         if misused.
41161
41162 2009-07-19  Jim Meyering  <meyering@redhat.com>
41163
41164         fts: avoid false-positive cycle-detection
41165         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
41166         for each new command line argument.
41167
41168 2009-07-19  Bruno Haible  <bruno@clisp.org>
41169
41170         Fix build error on mingw with the modules sys_select and unistd.
41171         * modules/acl-tests (Depends-on): Add close.
41172         * modules/binary-io-tests (Depends-on): Likewise.
41173         * modules/closein-tests (Depends-on): Likewise.
41174         * modules/flock-tests (Depends-on): Likewise.
41175         * modules/fsync-tests (Depends-on): Likewise.
41176         * modules/lseek-tests (Depends-on): Likewise.
41177         * modules/pipe-tests (Depends-on): Likewise.
41178         * modules/posix_spawn-tests (Depends-on): Likewise.
41179         * modules/posix_spawnp-tests (Depends-on): Likewise.
41180         * modules/stat-time-tests (Depends-on): Likewise.
41181         * modules/yesno-tests (Depends-on): Likewise.
41182
41183 2009-07-19  Bruno Haible  <bruno@clisp.org>
41184
41185         Unify conditionals.
41186         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
41187         macros, not at the compiler macros.
41188         * lib/pipe.c: Likewise.
41189         * lib/execute.c: Likewise.
41190         * lib/spawni.c: Likewise.
41191
41192 2009-07-19  Bruno Haible  <bruno@clisp.org>
41193
41194         Fix handling of closed stdin/stdout/stderr on mingw.
41195         * lib/w32spawn.h: Include unistd.h.
41196         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
41197         file descriptor with O_NOINHERIT flag.
41198         (fd_safer_noinherit): New function, based on fd-safer.c.
41199         (dup_safer_noinherit): New function, based on dup-safer.c.
41200         (undup_safer_noinherit): New function.
41201         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
41202         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
41203         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
41204         instead of fd_safer.
41205         * tests/test-pipe.c: Include <windows.h>.
41206         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
41207         result.
41208
41209         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
41210         from main.
41211         (test_pipe): Pass an extra argument for disambiguation.
41212         (main): Invoke parent_main or child_main.
41213
41214         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
41215         consistently.
41216
41217 2009-07-18  Eric Blake  <ebb9@byu.net>
41218
41219         test-pipe: fix mingw build
41220         * tests/test-pipe.c (main): Avoid fcntl on mingw.
41221
41222 2009-07-18  Bruno Haible  <bruno@clisp.org>
41223
41224         * modules/pipe-tests (Makefile.am): Fix typo.
41225
41226 2009-07-18  Eric Blake  <ebb9@byu.net>
41227
41228         error: fix mingw build
41229         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
41230         Reported by Bruno Haible.
41231
41232         error: avoid undefined use of stdout
41233         * lib/error.c (error, error_at_line): Check that fd 1 is open
41234         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
41235         is handling faults and the close_stdout module wants to report the
41236         detection of closed stdout as an error.
41237
41238 2009-07-17  Eric Blake  <ebb9@byu.net>
41239
41240         pipe: be robust in face of closed fds
41241         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
41242         should cause child to misbehave.
41243         * modules/pipe-tests: New module.
41244         * tests/test-pipe.c: New file.
41245         * tests/test-pipe.sh: New file.
41246         Reported by Akim Demaille.
41247
41248 2009-07-14  Bruno Haible  <bruno@clisp.org>
41249
41250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
41251         Reported by anonymous kc.
41252
41253 2009-07-07  Jim Meyering  <meyering@redhat.com>
41254
41255         maint.mk: don't look for translatable strings in *.m4 or *.mk
41256         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
41257         when searching for translatable strings.
41258
41259 2009-07-05  Jim Meyering  <meyering@redhat.com>
41260
41261         remove superfluous parentheses in STREQ definition
41262         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
41263         * lib/getugroups.c (STREQ): Likewise.
41264         * lib/fnmatch.c (STREQ): Likewise.
41265         Spotted by Bruno Haible.
41266
41267 2009-07-04  Jim Meyering  <meyering@redhat.com>
41268
41269         argv-iter: new module
41270         * MODULES.html.sh: Add argv-iter.
41271         * lib/argv-iter.c, lib/argv-iter.h: New files.
41272         * modules/argv-iter: New file.
41273         * modules/argv-iter-tests: New file.
41274         * tests/test-argv-iter.c: Test it.
41275
41276 2009-07-04  Bruno Haible  <bruno@clisp.org>
41277
41278         Fix assertion.
41279         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
41280         contains more exact copies of a given entry than file2, leave the extra
41281         copies unpaired rather than aborting.
41282         Reported by Eric Blake.
41283
41284 2009-07-02  Bruno Haible  <bruno@clisp.org>
41285
41286         Speedup git-merge-changelog for git cherry-pick.
41287         * lib/git-merge-changelog.c (struct entries_mapping): New type.
41288         (entries_mapping_get): New function, extracted from compute_mapping.
41289         (entries_mapping_reverse_get): New function.
41290         (compute_mapping): Add a 'full' argument. Return the result in a
41291         'struct entries_mapping'.
41292         (main): Update. Access the mappings through entries_mapping_get.
41293         Reported by Eric Blake.
41294
41295 2009-07-02  Bruno Haible  <bruno@clisp.org>
41296
41297         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
41298         best_i.
41299
41300 2009-07-02  Bruno Haible  <bruno@clisp.org>
41301
41302         Speed up approximate search for matching ChangeLog entries.
41303         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
41304         argument. Call fstrcmp_bounded instead of fstrcmp.
41305         (compute_mapping, try_split_merged_entry, main): Update callers.
41306
41307 2009-07-02  Bruno Haible  <bruno@clisp.org>
41308
41309         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
41310
41311 2009-06-30  Bruno Haible  <bruno@clisp.org>
41312
41313         Reduce the number of uc_is_cased calls.
41314         * lib/unicase.h (casing_suffix_context_t): Add
41315         'first_char_except_ignorable' field.
41316         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
41317         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
41318         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
41319         Update initializer.
41320         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
41321         case-ignorable characters.
41322         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
41323         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
41324         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
41325         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
41326         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
41327
41328 2009-06-30  Bruno Haible  <bruno@clisp.org>
41329
41330         Tests for module 'unicase/ignorable'.
41331         * modules/unicase/ignorable-tests: New file.
41332         * tests/unicase/test-ignorable.c: New file, generated by
41333         gen-uni-tables.
41334
41335         Tests for module 'unicase/cased'.
41336         * modules/unicase/cased-tests: New file.
41337         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
41338         * tests/unicase/test-predicate-part1.h: New file, derived from
41339         tests/unictype/test-predicate-part1.h.
41340         * tests/unicase/test-predicate-part2.h: New file, same as
41341         tests/unictype/test-predicate-part2.h.
41342
41343         Fix evaluation of "Before C" condition of FINAL_SIGMA.
41344         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
41345         (output_casing_properties): New function.
41346         (main): Call it.
41347         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
41348         * lib/unicase/cased.c: Include unictype/bitmap.h.
41349         (uc_is_cased): Define through a bitmap lookup.
41350         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
41351         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
41352         (uc_is_case_ignorable): Define through a bitmap lookup.
41353         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
41354         lib/unictype/bitmap.h.
41355         (Depends-on): Add inline. Clean up.
41356         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
41357         lib/unictype/bitmap.h.
41358         (Depends-on): Add inline. Clean up.
41359         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
41360         recognition.
41361         * tests/unicase/test-u16-tolower.c (main): Likewise.
41362         * tests/unicase/test-u32-tolower.c (main): Likewise.
41363
41364 2009-06-30  Bruno Haible  <bruno@clisp.org>
41365
41366         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
41367         * lib/unicase/u16-casemap.c: Likewise.
41368         * lib/unicase/u32-casemap.c: Likewise.
41369
41370 2009-06-29  Bruno Haible  <bruno@clisp.org>
41371
41372         Define u32_casefold as a wrapper around u32_ct_casefold.
41373         * lib/unicase/u32-casefold.c: Update.
41374         * modules/unicase/u32-casefold (Depends-on): Add
41375         unicase/u32-ct-casefold, unicase/empty-prefix-context,
41376         unicase/empty-suffix-context. Clean up.
41377
41378         Define u16_casefold as a wrapper around u16_ct_casefold.
41379         * lib/unicase/u16-casefold.c: Update.
41380         * modules/unicase/u16-casefold (Depends-on): Add
41381         unicase/u16-ct-casefold, unicase/empty-prefix-context,
41382         unicase/empty-suffix-context. Clean up.
41383
41384         Define u8_casefold as a wrapper around u8_ct_casefold.
41385         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
41386         * lib/unicase/u8-casefold.c: Update.
41387         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
41388         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41389
41390         Define u32_totitle as a wrapper around u32_ct_totitle.
41391         * lib/unicase/u32-totitle.c: Update.
41392         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
41393         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41394
41395         Define u16_totitle as a wrapper around u16_ct_totitle.
41396         * lib/unicase/u16-totitle.c: Update.
41397         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
41398         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41399
41400         Define u8_totitle as a wrapper around u8_ct_totitle.
41401         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
41402         functions.
41403         (FUNC): Delegate to U_CT_TOTITLE.
41404         * lib/unicase/u8-totitle.c: Update.
41405         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
41406         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
41407
41408         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
41409         invocation.
41410         * modules/unicase/u32-tolower (Depends-on): Add
41411         unicase/empty-prefix-context, unicase/empty-suffix-context.
41412
41413         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
41414         invocation.
41415         * modules/unicase/u16-tolower (Depends-on): Add
41416         unicase/empty-prefix-context, unicase/empty-suffix-context.
41417
41418         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
41419         * modules/unicase/u8-tolower (Depends-on): Add
41420         unicase/empty-prefix-context, unicase/empty-suffix-context.
41421
41422         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
41423         invocation.
41424         * modules/unicase/u32-toupper (Depends-on): Add
41425         unicase/empty-prefix-context, unicase/empty-suffix-context.
41426
41427         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
41428         invocation.
41429         * modules/unicase/u16-toupper (Depends-on): Add
41430         unicase/empty-prefix-context, unicase/empty-suffix-context.
41431
41432         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
41433         * modules/unicase/u8-toupper (Depends-on): Add
41434         unicase/empty-prefix-context, unicase/empty-suffix-context.
41435
41436         New module 'unicase/u32-ct-casefold'.
41437         * lib/unicase/u32-ct-casefold.c: New file.
41438         * modules/unicase/u32-ct-casefold: New file.
41439
41440         New module 'unicase/u16-ct-casefold'.
41441         * lib/unicase/u16-ct-casefold.c: New file.
41442         * modules/unicase/u16-ct-casefold: New file.
41443
41444         New module 'unicase/u8-ct-casefold'.
41445         * lib/unicase/u8-ct-casefold.c: New file.
41446         * lib/unicase/u-ct-casefold.h: New file, derived from
41447         lib/unicase/u-casefold.h.
41448         * modules/unicase/u8-ct-casefold: New file.
41449
41450         New module 'unicase/u32-ct-totitle'.
41451         * lib/unicase/u32-ct-totitle.c: New file.
41452         * modules/unicase/u32-ct-totitle: New file.
41453
41454         New module 'unicase/u16-ct-totitle'.
41455         * lib/unicase/u16-ct-totitle.c: New file.
41456         * modules/unicase/u16-ct-totitle: New file.
41457
41458         New module 'unicase/u8-ct-totitle'.
41459         * lib/unicase/u8-ct-totitle.c: New file.
41460         * lib/unicase/u-ct-totitle.h: New file, derived from
41461         lib/unicase/u-totitle.h.
41462         * modules/unicase/u8-ct-totitle: New file.
41463
41464         New module 'unicase/u32-ct-tolower'.
41465         * lib/unicase/u32-ct-tolower.c: New file.
41466         * modules/unicase/u32-ct-tolower: New file.
41467
41468         New module 'unicase/u16-ct-tolower'.
41469         * lib/unicase/u16-ct-tolower.c: New file.
41470         * modules/unicase/u16-ct-tolower: New file.
41471
41472         New module 'unicase/u8-ct-tolower'.
41473         * lib/unicase/u8-ct-tolower.c: New file.
41474         * modules/unicase/u8-ct-tolower: New file.
41475
41476         New module 'unicase/u32-ct-toupper'.
41477         * lib/unicase/u32-ct-toupper.c: New file.
41478         * modules/unicase/u32-ct-toupper: New file.
41479
41480         New module 'unicase/u16-ct-toupper'.
41481         * lib/unicase/u16-ct-toupper.c: New file.
41482         * modules/unicase/u16-ct-toupper: New file.
41483
41484         New module 'unicase/u8-ct-toupper'.
41485         * lib/unicase/u8-ct-toupper.c: New file.
41486         * modules/unicase/u8-ct-toupper: New file.
41487
41488         Add context arguments to u*_casemap functions.
41489         * lib/unicase/unicasemap.h: Include unicase.h.
41490         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
41491         suffix_context arguments.
41492         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
41493         functions.
41494         (FUNC): Add prefix_context and suffix_context arguments. Use
41495         uc_is_cased and uc_is_case_ignorable.
41496         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
41497         * lib/unicase/u16-casemap.c: Likewise.
41498         * lib/unicase/u32-casemap.c: Likewise.
41499         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
41500         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41501         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
41502         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41503         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
41504         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
41505
41506         New module 'unicase/u32-suffix-context'.
41507         * lib/unicase/u32-suffix-context.c: New file.
41508         * modules/unicase/u32-suffix-context: New file.
41509
41510         New module 'unicase/u16-suffix-context'.
41511         * lib/unicase/u16-suffix-context.c: New file.
41512         * modules/unicase/u16-suffix-context: New file.
41513
41514         New module 'unicase/u8-suffix-context'.
41515         * lib/unicase/u8-suffix-context.c: New file.
41516         * lib/unicase/u-suffix-context.h: New file.
41517         * modules/unicase/u8-suffix-context: New file.
41518
41519         New module 'unicase/empty-suffix-context'.
41520         * lib/unicase/empty-suffix-context.c: New file.
41521         * modules/unicase/empty-suffix-context: New file.
41522
41523         New module 'unicase/u32-prefix-context'.
41524         * lib/unicase/u32-prefix-context.c: New file.
41525         * modules/unicase/u32-prefix-context: New file.
41526
41527         New module 'unicase/u16-prefix-context'.
41528         * lib/unicase/u16-prefix-context.c: New file.
41529         * modules/unicase/u16-prefix-context: New file.
41530
41531         New module 'unicase/u8-prefix-context'.
41532         * lib/unicase/u8-prefix-context.c: New file.
41533         * lib/unicase/u-prefix-context.h: New file.
41534         * lib/unicase/context.h: New file.
41535         * modules/unicase/u8-prefix-context: New file.
41536
41537         New module 'unicase/empty-prefix-context'.
41538         * lib/unicase/empty-prefix-context.c: New file.
41539         * modules/unicase/empty-prefix-context: New file.
41540
41541         New module 'unicase/ignorable'.
41542         * lib/unicase/ignorable.c: New file.
41543         * modules/unicase/ignorable: New file.
41544
41545         New module 'unicase/cased'.
41546         * lib/unicase/caseprop.h: New file.
41547         * lib/unicase/cased.c: New file.
41548         * modules/unicase/cased: New file.
41549
41550         New functions for case mapping of substrings.
41551         * lib/unicase.h (casing_prefix_context_t): New type.
41552         (unicase_empty_prefix_context): New variable.
41553         (u8_casing_prefix_context, u16_casing_prefix_context,
41554         u32_casing_prefix_context, u8_casing_prefixes_context,
41555         u16_casing_prefixes_context, u32_casing_prefixes_context): New
41556         declarations.
41557         (casing_suffix_context_t): New type.
41558         (unicase_empty_suffix_context): New variable.
41559         (u8_casing_suffix_context, u16_casing_suffix_context,
41560         u32_casing_suffix_context, u8_casing_suffixes_context,
41561         u16_casing_suffixes_context, u32_casing_suffixes_context,
41562         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
41563         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
41564         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
41565         declarations.
41566
41567 2009-06-28  Jim Meyering  <meyering@redhat.com>
41568
41569         boostrap: indent only with spaces
41570         * build-aux/bootstrap: Indent only with spaces, never TABs.
41571
41572         bootstrap: split long lines
41573         * build-aux/bootstrap: Keep line length < 80.
41574
41575         bootstrap: sync from coreutils
41576         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
41577         just as autoreconf does.  Verify a list of prerequisite
41578         package-name,version-number pairs if defined in bootstrap.conf.
41579         Refer to README-prereq, if prerequisites are not satisfied.
41580
41581 2009-06-27  Eric Blake  <ebb9@byu.net>
41582
41583         tests: add test for bogus NULL definition
41584         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
41585         * tests/test-stdlib.c: Likewise.
41586         * tests/test-string.c: Likewise.
41587         * tests/test-locale.c: Likewise.
41588         * tests/test-unistd.c: Likewise.
41589         * modules/stdio-tests (Depends-on): Add verify.
41590         * modules/stdlib-tests (Depends-on): Likewise.
41591         * modules/string-tests (Depends-on): Likewise.
41592         * modules/locale-tests (Depends-on): Likewise.
41593         * modules/unistd-tests (Depends-on): Likewise.
41594
41595 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
41596
41597         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
41598         self-explaining comment.
41599         * m4/selinux-selinux-h: Update serial.
41600         (gl_LIBSELINUX): New macro, adding a warning for missing development
41601         packages to code extracted from...
41602         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
41603         Add warning for missing development packages here, too.
41604
41605 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
41606
41607         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
41608
41609 2009-06-25  Eric Blake  <ebb9@byu.net>
41610
41611         version-etc: fix regression
41612         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
41613         gcc.
41614         (version_etc): Use it, to catch bugs with trailing NULL.
41615         * lib/version-etc.c (version_etc_arn): Delete unused argument.
41616         (version_etc_va): Fix logic bug.
41617         * modules/version-etc-tests: Add test.
41618         * tests/test-version-etc.c: New file.
41619         * tests/test-version-etc.sh: Likewise.
41620
41621 2009-06-25  Sam Steingold  <sds@gnu.org>
41622
41623         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
41624         mbtowc declaration.
41625
41626 2009-06-25  Eric Blake  <ebb9@byu.net>
41627
41628         fpurge: migrate into <stdio.h>
41629         * lib/fpurge.h: Delete...
41630         * lib/stdio.in.h (fpurge): ...and declare here, instead.
41631         * lib/fpurge.c (fpurge): Change declaring header.
41632         * modules/fpurge (Files): Drop deleted file.
41633         (Depends-on): Add stdio.
41634         (configure.ac): Set witness.
41635         * modules/stdio (Makefile.am): Support fpurge macros.
41636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41637         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
41638         * lib/fflush.c: Update client.
41639         * tests/test-fpurge.c: Likewise.
41640         * NEWS: Mention the change.
41641
41642 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41643
41644         * lib/argp-version-etc.c (program_authors): Add const
41645         qualifier.
41646         * lib/version-etc.c: Fix typos in the comments.
41647         * modules/argp-version-etc: Depends on version-etc.
41648
41649 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41650
41651         argp-version-etc: new module.
41652
41653         * lib/argp-version-etc.c: New file.
41654         * lib/argp-version-etc.h: New file.
41655         * modules/argp-version-etc: New file.
41656         * modules/argp-version-etc-tests: New file.
41657         * tests/test-argp-version-etc.c: New test.
41658         * tests/test-argp-version-etc-1.sh: New test.
41659
41660 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
41661
41662         Provide additional interfaces and documentation for version-etc
41663         module.
41664
41665         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
41666         interfaces.
41667         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
41668         prototypes.
41669
41670 2009-06-24  Bruno Haible  <bruno@clisp.org>
41671
41672         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
41673         HAVE_LIB${NAME} macro.
41674         Reported by Sam Steingold <sds@gnu.org>.
41675
41676 2009-06-23  Simon Josefsson  <simon@josefsson.org>
41677
41678         * modules/hash-tests (test_hash_LDADD): Link to libintl when
41679         needed.
41680
41681 2009-06-21  Bruno Haible  <bruno@clisp.org>
41682
41683         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
41684         work.
41685         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
41686         together with LIB${NAME}, LTLIB${NAME}.
41687         Reported by Sam Steingold <sds@gnu.org>.
41688
41689 2009-06-20  Jim Meyering  <meyering@redhat.com>
41690
41691         tests: make sc_require_test_exit_idiom more generic
41692         * top/maint.mk (Exit_witness_file): New overridable variable.
41693         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
41694         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
41695
41696 2009-06-19  Jim Meyering  <meyering@redhat.com>
41697
41698         hash: reverse order of src/dst parameters in an internal interface
41699         * lib/hash.c (transfer_entries): Reverse order of parameters to
41700         put DST before SRC.  Adjust callers.
41701
41702         tests: test-hash: avoid wholesale duplication
41703         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
41704         Instead, use a loop and add a single conditional.
41705
41706         tests: test-hash: allow seed selection via a command line argument
41707         * tests/test-hash.c (get_seed): New function.
41708         (main): Use it.
41709
41710 2009-06-19  Eric Blake  <ebb9@byu.net>
41711
41712         hash: avoid memory leak on allocation failure
41713         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
41714         failure.  Factor repeated algorithm...
41715         (transfer_entries): ...into new helper routine.
41716         (hash_delete): React to hash_rehash return value.
41717
41718         hash: reduce memory pressure in hash_rehash no-op case
41719         * lib/hash.c (next_prime): Avoid overflow.
41720         (hash_initialize): Factor bucket size computation...
41721         (compute_bucket_size): ...into new helper function.
41722         (hash_rehash): Use new function and open coding to reduce memory
41723         pressure, and avoid a memory leak in USE_OBSTACK code.
41724         Reported by Jim Meyering.
41725
41726 2009-06-18  Eric Blake  <ebb9@byu.net>
41727
41728         hash: make rotation more obvious
41729         * modules/hash (Depends-on): Add bitrotate and stdint.
41730         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
41731         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
41732         (SIZE_MAX): Rely on headers for definition.
41733         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
41734         (raw_hasher): Use rotr_sz.
41735         Suggested by Jim Meyering.
41736
41737         hash: fix memory leak in last patch
41738         * lib/hash.c (hash_rehash): Avoid memory leak.
41739
41740         hash: avoid no-op rehashing
41741         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
41742
41743         hash: provide default callback functions
41744         * lib/hash.c (raw_hasher, raw_comparator): New functions.
41745         (hash_initialize): Use them as defaults.
41746         * tests/test-hash.c (main): Test this.
41747
41748         hash: minor optimization
41749         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
41750         when possible.
41751         (hash_initialize): Document this promise.
41752         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
41753         * tests/test-hash.c (hash_compare_strings): Test this.
41754
41755 2009-06-18  Bruno Haible  <bruno@clisp.org>
41756
41757         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
41758         going to be replaced anyway.
41759
41760 2009-06-18  Bruno Haible  <bruno@clisp.org>
41761
41762         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
41763         in one place.
41764         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
41765         be replaced anyway.
41766
41767 2009-06-18  Eric Blake  <ebb9@byu.net>
41768
41769         hash: check for resize before insertion
41770         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
41771         threshold before insertion, so that a pathological hash_rehash
41772         that fills every bucket can still trigger another rehash.
41773
41774 2009-06-18  Jim Meyering  <meyering@redhat.com>
41775
41776         hash-tests: add a loop around the small tests
41777         * tests/test-hash.c (main): Repeat small tests with selected
41778         small initial table sizes.
41779
41780 2009-06-17  Eric Blake  <ebb9@byu.net>
41781
41782         hash: minor cleanups
41783         * lib/hash.h (hash_entry): Make opaque, by moving...
41784         * lib/hash.c (hash_entry): ...here.
41785         (hash_insert): Clarify restrictions on what can be inserted.
41786         (hash_get_next): Clarify when it is safe to remove an element
41787         during traversal.
41788         (check_tuning): Skip verification when tuning is known safe.
41789         (hash_initialize): Clarify restrictions on tuning.
41790
41791 2009-06-17  Jim Meyering  <jim@meyering.net>
41792         and Eric Blake  <ebb9@byu.net>
41793
41794         hash-tests: new module
41795         * modules/hash-tests: New file.
41796         * tests/test-hash.c: New file.
41797
41798 2009-06-17  Eric Blake  <ebb9@byu.net>
41799
41800         strstr-simple: document new module
41801         * MODULES.html.sh: Document new module.
41802
41803         strstr, strcasestr: replace on platforms with broken memchr
41804         * modules/strstr: Split into...
41805         * modules/strstr-simple: ...new module that does not care about
41806         performance, but does care about glibc bug.
41807         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
41808         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
41809         if platform memchr is broken, per Debian bug 521737.
41810         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
41811         memchr.
41812         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
41813         * doc/posix-functions/strstr.texi (strstr): Document the fix.
41814         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41815         * modules/mountlist (Depends-on): Add strstr-simple.
41816         * modules/gen-uni-tables (Depends-on): Likewise.
41817         * modules/argz (Depends-on): Add strstr.
41818
41819 2009-06-17  Bruno Haible  <bruno@clisp.org>
41820
41821         * modules/posix_spawn-internal (Depends-on): Add errno.
41822
41823 2009-06-17  Bruno Haible  <bruno@clisp.org>
41824
41825         Define missing ESTALE on Interix 3.5.
41826         * lib/errno.in.h (ESTALE): Assign a value if missing.
41827         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
41828         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
41829         missing.
41830         * doc/posix-headers/errno.texi: Mention the Interix bug.
41831         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
41832
41833 2009-06-15  Eric Blake  <ebb9@byu.net>
41834
41835         memchr, memchr2: add valgrind exception
41836         * lib/memchr.valgrind: New file.
41837         * lib/memchr2.valgrind: New file.
41838         * modules/memchr (Files): Distribute valgrind file.
41839         * modules/memchr2 (Files): Likewise.
41840
41841         docs: memchr is no longer obsolete
41842         * MODULES.html.sh: Move memchr from obsolete to string.h section.
41843         * lib/string.in.h (memchr): Simplify logic.
41844
41845 2009-06-14  Jim Meyering  <meyering@redhat.com>
41846
41847         link-follow: fix the "checking..." message to not mention trailing slash
41848         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
41849         never considered trailing slashes.
41850
41851 2009-06-14  Bruno Haible  <bruno@clisp.org>
41852
41853         * m4/memchr.m4: Mention also the bug on IA-64.
41854         * doc/posix-functions/memchr.texi: Likewise.
41855
41856 2009-06-12  Eric Blake  <ebb9@byu.net>
41857
41858         memchr: detect broken x86_64 and alpha implementations
41859         * modules/memchr-tests (Depends-on): Move mmap detection...
41860         * modules/memchr (Depends-on): ...here.
41861         (configure.ac): Set indicator.
41862         * lib/string.in.h (memchr): Declare replacement.
41863         * modules/string (Makefile.am): Trigger replacement.
41864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41865         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
41866         bugs.
41867         * doc/posix-functions/memchr.texi (memchr): Document the bug.
41868         * modules/getpagesize (License): Relax license.
41869
41870 2009-06-11  Bruno Haible  <bruno@clisp.org>
41871
41872         * lib/idpriv.h: Add more references.
41873
41874 2009-06-08  Bruno Haible  <bruno@clisp.org>
41875
41876         Tests for module 'idpriv-droptemp'.
41877         * modules/idpriv-droptemp-tests: New file.
41878         * tests/test-idpriv-droptemp.sh: New file.
41879         * tests/test-idpriv-droptemp.su.sh: New file.
41880         * tests/test-idpriv-droptemp.c: New file.
41881
41882         New module 'idpriv-droptemp'.
41883         * lib/idpriv-droptemp.c: New file.
41884         * modules/idpriv-droptemp: New file.
41885
41886 2009-06-08  Bruno Haible  <bruno@clisp.org>
41887
41888         Tests for module 'idpriv-drop'.
41889         * modules/idpriv-drop-tests: New file.
41890         * tests/test-idpriv-drop.sh: New file.
41891         * tests/test-idpriv-drop.su.sh: New file.
41892         * tests/test-idpriv-drop.c: New file.
41893
41894         New module 'idpriv-drop'.
41895         * lib/idpriv.h: New file.
41896         * lib-idpriv-drop.c: New file.
41897         * m4/idpriv.m4: New file.
41898         * modules/idpriv-drop: New file.
41899
41900 2009-06-08  Bruno Haible  <bruno@clisp.org>
41901
41902         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
41903         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41904         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41905         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41906         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41907         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41908         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41909
41910 2009-06-08  Eric Blake  <ebb9@byu.net>
41911
41912         test-strstr: use memory fence, when possible
41913         * tests/test-strstr.c (main): Use memory fence, in order to be
41914         more likely to trigger Debian bug 521737.
41915         * modules/strstr-tests (Files): Pull in additional files.
41916
41917         memchr: no longer obsolete, for wider field testing
41918         * modules/memchr (Status, Notice): Delete, this module is no
41919         longer obsolete.
41920         * modules/vasnprintf (Depends-on): Add memchr.
41921
41922 2009-06-07  Jim Meyering  <meyering@redhat.com>
41923
41924         hash: declare some functions with the warn_unused_result attribute
41925         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
41926
41927 2009-06-07  Bruno Haible  <bruno@clisp.org>
41928
41929         * tests/test-alignof.c: Don't test int64_t if it does not exist.
41930         Reported by Eric Blake.
41931
41932 2009-06-06  Eric Blake  <ebb9@byu.net>
41933
41934         test-alignof: fix typo with long double
41935         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
41936         compiler error.
41937
41938 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
41939
41940         Escape non-texinfo { and }s.
41941         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
41942         markup error.
41943
41944 2009-06-04  Jim Meyering  <meyering@redhat.com>
41945
41946         gitlog-to-changelog: don't infloop on an empty commit log
41947         * build-aux/gitlog-to-changelog: Warn about an empty log message.
41948         Reported by Boris Petersen <transacid@centerim.org>.
41949
41950 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
41951
41952         version-etc: extend for packagers
41953         Add three new configure options, intended for packagers:
41954           --with-packager="packager name"
41955           --with-packager-version="packager-specific version"
41956           --with-packager-bug-reports="packager bug reporting"
41957         An example with coreutils:
41958           $ ./configure \
41959             --with-packager=Gentoo \
41960             --with-packager-bug-report=http://bugs.gentoo.org/ \
41961             --with-packager-version="patchset 1.6"
41962           $ ./src/ls --version | head -n2
41963           ls (GNU coreutils) 7.1-dirty
41964           Packaged by Gentoo (patchset 1.6)
41965         Note that the bug reporting info via --help doesn't show up because
41966         coreutils uses its own custom emit_bug_reporting_address() implementation
41967         in src/system.h.  If it didn't, it'd look like:
41968           $ ./src/ls --help | tail -n4
41969           Report bugs to <bug-coreutils@gnu.org>.
41970           Report Gentoo bugs to <http://bugs.gentoo.org/>.
41971           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
41972           General help using GNU software: <http://www.gnu.org/gethelp/>.
41973         * lib/version-etc.c: Print new information, if provided.
41974         * m4/version-etc.m4: New file.
41975         * modules/version-etc (Files): Add m4/version-etc.m4.
41976         (configure.ac): Add gl_VERSION_ETC.
41977
41978 2009-05-31  Bruno Haible  <bruno@clisp.org>
41979
41980         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
41981         and 'int64_t'.
41982         * modules/alignof-tests (Dependencies): Add stdint.
41983         Reported by Eric Blake.
41984
41985 2009-05-31  Bruno Haible  <bruno@clisp.org>
41986
41987         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
41988         restriction due to compiler bugs.
41989         Reported by Eric Blake.
41990
41991 2009-05-31  Simon Josefsson  <simon@josefsson.org>
41992             Bruno Haible  <bruno@clisp.org>
41993
41994         Fix test-alignof failure.
41995         * lib/alignof.h (alignof_slot): New macro.
41996         (alignof_type): New macro, with the same semantics as the previous
41997         'alignof'.
41998         (alignof): Alias to alignof_slot.
41999         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
42000         check that the results are usable as constant expressions.
42001
42002 2009-05-31  Bruno Haible  <bruno@clisp.org>
42003
42004         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
42005         * tests/test-memchr.c (main): Check that memchr does not read past the
42006         first occurrence of the byte.
42007         * tests/test-strstr.c (main): Update comment.
42008         Suggested by Eric Blake.
42009
42010 2009-05-30  Bruno Haible  <bruno@clisp.org>
42011
42012         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
42013         detail how to use dumpbin.
42014         Reported by David Byron <dbyron@dbyron.com>.
42015
42016 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42017
42018         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
42019
42020 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42021
42022         * m4/manywarnings.m4: Add GCC 4.4 warnings.
42023
42024 2009-05-28  Bruno Haible  <bruno@clisp.org>
42025
42026         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
42027         build-aux/ files.
42028
42029 2009-05-28  Simon Josefsson  <simon@josefsson.org>
42030
42031         * gnulib-tool (func_import): Transform license on build-aux/ files too.
42032
42033 2009-05-27  Simon Josefsson  <simon@josefsson.org>
42034
42035         * gnulib-tool (sed_transform_main_lib_file)
42036         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
42037         regexps.
42038
42039 2009-05-26  Simon Josefsson  <simon@josefsson.org>
42040
42041         * tests/test-strstr.c: Add another self-test.
42042         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
42043         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
42044
42045 2009-05-23  Bruno Haible  <bruno@clisp.org>
42046
42047         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
42048         change.
42049
42050 2009-05-21  Bruno Haible  <bruno@clisp.org>
42051
42052         Simplify use of mode_t varargs.
42053         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
42054         uses 'mode_t' or 'int'.
42055         * lib/openat.c (openat): Likewise.
42056         * lib/open-safer.c (open_safer): Likewise.
42057         * m4/mode_t.m4: New file.
42058         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
42059         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
42060         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
42061         * modules/open (Files): Add m4/mode_t.m4.
42062         * modules/openat (Files): Likewise.
42063         * modules/fcntl-safer (Files): Likewise.
42064         Suggested by Eric Blake.
42065
42066 2009-05-21  Pádraig Brady  <P@draigbrady.com>
42067
42068         * doc/glibc-functions/fallocate.texi: New file.
42069         * doc/gnulib.texi: Include it.
42070
42071 2009-05-21  Eric Blake  <ebb9@byu.net>
42072             Bruno Haible  <bruno@clisp.org>
42073
42074         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
42075         invocations.
42076         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42077
42078 2009-05-21  Eric Blake  <ebb9@byu.net>
42079             Bruno Haible  <bruno@clisp.org>
42080
42081         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
42082         include_next. Fix of 2008-11-20 commit.
42083         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
42084         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
42085         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
42086         NEXT_MATH_H.
42087         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
42088         instead of NEXT_MATH_H.
42089
42090 2009-05-21  Bruno Haible  <bruno@clisp.org>
42091
42092         Avoid redefinition warnings for SIZE_MAX.
42093         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
42094         Reported by Simon Josefsson.
42095
42096 2009-05-21  Bruno Haible  <bruno@clisp.org>
42097
42098         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
42099         AC_CACHE_VAL.
42100
42101 2009-05-20  Bruno Haible  <bruno@clisp.org>
42102
42103         Make zeroptr.h work on mingw.
42104         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
42105         mprotect.
42106         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
42107         * modules/memchr2-tests (configure.ac): Likewise.
42108         * modules/memcmp-tests (configure.ac): Likewise.
42109         * modules/memmem-tests (configure.ac): Likewise.
42110         * modules/memrchr-tests (configure.ac): Likewise.
42111         Reported by Simon Josefsson.
42112
42113 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42114
42115         * tests/test-glob.c: Include string.h for strcmp prototype.
42116
42117 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42118
42119         * modules/getdelim (Depends-on): Add explicit stdint, although it
42120         was implicitly already pulled in via realloc-posix.
42121         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
42122
42123 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42124
42125         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
42126         G. Christensen" <tgc@jupiterrise.com>.
42127         * m4/sys_socket_h.m4: Check for sa_family_t.
42128         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
42129         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
42130         * tests/test-sys_socket.c: Check that sa_family_t works.
42131
42132 2009-05-18  Eric Blake  <ebb9@byu.net>
42133
42134         maint.mk: allow gnulib_dir in VPATH build
42135         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
42136
42137 2009-05-15  Jim Meyering  <meyering@redhat.com>
42138
42139         maint.mk: Give gnulib_dir a default definition.
42140         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
42141         Thus, most packages no longer need to specify this variable in cfg.mk
42142
42143 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
42144
42145         rename.m4: fix typos that would make non-mingw cross-configure fail
42146         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
42147
42148 2009-05-13  Eric Blake  <ebb9@byu.net>
42149
42150         mmap-anon: avoid out-of-order autoconf expansion
42151         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
42152         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
42153         * modules/memchr-tests (Depends-on): Add extensions.
42154         * modules/memchr2-tests (Depends-on): Add extensions.
42155         * modules/memcmp-tests (Depends-on): Add extensions.
42156         * modules/memmem-tests (Depends-on): Add extensions.
42157         * modules/memrchr-tests (Depends-on): Add extensions.
42158
42159 2009-05-13  Bruno Haible  <bruno@clisp.org>
42160
42161         Make some tests ISO C 99 compliant.
42162         * tests/zerosize-ptr.h: New file.
42163         * tests/test-memchr.c: Include zerosize-ptr.h.
42164         (main): Use a zero-size object pointer instead of NULL.
42165         * tests/test-memchr2.c: Include zerosize-ptr.h.
42166         (main): Use a zero-size object pointer instead of NULL.
42167         * tests/test-memcmp.c: Include zerosize-ptr.h.
42168         (main): Use a zero-size object pointer instead of NULL.
42169         * tests/test-memmem.c: Include zerosize-ptr.h.
42170         (main): Use a zero-size object pointer instead of NULL.
42171         * tests/test-memrchr.c: Include zerosize-ptr.h.
42172         (main): Use a zero-size object pointer instead of NULL.
42173         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
42174         m4/mmap-anon.m4.
42175         (Depends-on): Add getpagesize.
42176         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42177         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
42178         m4/mmap-anon.m4.
42179         (Depends-on): Add getpagesize.
42180         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42181         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
42182         m4/mmap-anon.m4.
42183         (Depends-on): Add getpagesize.
42184         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42185         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
42186         m4/mmap-anon.m4.
42187         (Depends-on): Add getpagesize.
42188         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42189         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
42190         m4/mmap-anon.m4.
42191         (Depends-on): Add getpagesize.
42192         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42193
42194 2009-05-12  Bruno Haible  <bruno@clisp.org>
42195
42196         Tests for module 'alignof'.
42197         * modules/alignof-tests: New file.
42198         * tests/test-alignof.c: New file.
42199
42200 2009-05-12  Bruno Haible  <bruno@clisp.org>
42201
42202         Fix alignof macro.
42203         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
42204         vendor compilers that are always correct.
42205
42206 2009-05-12  Bruno Haible  <bruno@clisp.org>
42207
42208         Make the MAP_ANONYMOUS detection work on HP-UX 11.
42209         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
42210         not whether its fully works.
42211
42212 2009-05-12  Bruno Haible  <bruno@clisp.org>
42213
42214         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
42215
42216 2009-05-12  Jim Meyering  <meyering@redhat.com>
42217
42218         * top/maint.mk: Adjust backslash alignment.
42219
42220 2009-05-11  Simon Josefsson  <simon@josefsson.org>
42221
42222         * top/maint.mk: Make $(srcdir)/build-aux configurable.
42223
42224 2009-05-11  Eric Blake  <ebb9@byu.net>
42225
42226         argp: avoid undefined behavior
42227         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
42228         macros.
42229
42230 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42231
42232         * tests/test-vc-list-files-git.sh: Do git config of user.email and
42233         user.name to prevent git commit from complaining.
42234
42235 2009-05-10  Bruno Haible  <bruno@clisp.org>
42236
42237         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
42238         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
42239         it rewrites every file name only once.
42240         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
42241
42242 2009-05-08  Bruno Haible  <bruno@clisp.org>
42243
42244         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
42245         instead of 'max'.
42246
42247 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42248
42249         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
42250         sockaddr_storage test.
42251
42252 2009-05-07  Simon Josefsson  <simon@josefsson.org>
42253
42254         * modules/sys_socket (Makefile.am): Substitute
42255         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
42256         * m4/sys_socket_h.m4: Check for sockaddr_storage.
42257         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
42258         * tests/test-sys_socket.c: Check sockaddr_storage.
42259
42260 2009-05-08  Bruno Haible  <bruno@clisp.org>
42261
42262         New module 'alignof'.
42263         * lib/alignof.h: New file.
42264         * modules/alignof: New file.
42265
42266 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42267             Bruno Haible  <bruno@clisp.org>
42268
42269         Fix test-file-has-acl on FreeBSD.
42270         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
42271         mask is implicitly added.
42272         * tests/test-file-has-acl.c: Include <signal.h>.
42273         (main): Terminate the test after 5 seconds.
42274         * modules/acl-tests (configure.ac): Check for alarm function.
42275
42276 2009-05-04  Bruno Haible  <bruno@clisp.org>
42277
42278         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
42279         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
42280         * modules/errno (configure.ac): Drop AC_REQUIRE.
42281         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
42282         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
42283
42284 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42285
42286         * modules/glob-tests: New module.
42287         * tests/test-glob.c: Add.
42288
42289 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42290
42291         * modules/fnmatch-tests: New module.
42292         * tests/test-fnmatch.c: Add.
42293
42294 2009-05-04  Eric Blake  <ebb9@byu.net>
42295
42296         maint: make the new no-submodule-changes rule VPATH-safe
42297         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
42298
42299 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42300             Bruno Haible  <bruno@clisp.org>
42301
42302         acl: Fix infinite loop on FreeBSD.
42303         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
42304         of return value from acl_get_entry.
42305         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
42306         Likewise.
42307
42308 2009-05-03  Bruno Haible  <bruno@clisp.org>
42309
42310         * lib/acl-internal.h (acl_entries): Clarify return value.
42311         * lib/acl_entries.c (acl_entries): Likewise.
42312
42313 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42314
42315         Bug fix in acl module.
42316         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
42317
42318 2009-05-03  Bruno Haible  <bruno@clisp.org>
42319
42320         Create gperf-generated file in the source dir, not in the build dir.
42321         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
42322         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
42323         * modules/unicase/locale-language (unicase/locale-languages.h):
42324         Likewise.
42325         * modules/unicase/special-casing (unicase/special-casing-table.h):
42326         Likewise.
42327         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
42328         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
42329         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
42330         Reported by Ralf Wildenhues.
42331
42332 2009-05-03  Bruno Haible  <bruno@clisp.org>
42333
42334         * modules/fnmatch (Description, configure.ac): Taken from
42335         fnmatch-posix.
42336         * modules/fnmatch-posix: Turn into a symbolic reference to the
42337         'fnmatch' module, and deprecate.
42338         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
42339
42340 2009-05-03  Bruno Haible  <bruno@clisp.org>
42341
42342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
42343         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
42344         Reported by Ralf Wildenhues.
42345
42346 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42347
42348         * m4/fnmatch.m4: Fix fnmatch re-define.
42349
42350 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42351
42352         priv-set: new module and tests; adapt write-any-file
42353         * lib/priv-set.c: New file.
42354         * lib/priv-set.h: New file.
42355         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
42356         * lib/write-any-file.c: Simplify by using priv-set module.
42357         * m4/priv-set.m4: New file.
42358         * modules/priv-set: New file.
42359         * modules/unlinkdir: Add dependency on priv-set module.
42360         * modules/write-any-file: Likewise.
42361
42362         Tests for module 'priv-set'.
42363         * modules/priv-set-tests: New file.
42364         * tests/test-priv-set.c: New file.
42365
42366 2009-05-03  Jim Meyering  <meyering@redhat.com>
42367             Bruno Haible  <bruno@clisp.org>
42368
42369         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
42370         use the converted UTF-8 variant of the name instead.
42371
42372 2009-05-03  Jim Meyering  <meyering@redhat.com>
42373
42374         tests: tighten some getdate tests
42375         * tests/test-getdate.c (main): Tighten tests: require equality,
42376         not just greater than.  Set TZ envvar to UTC0.
42377
42378 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
42379
42380         getdate: correctly interpret "next monday" when run on a Monday
42381         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
42382         that e.g., "next tues" (when run on a tuesday) results in a date
42383         that is one week in the future, and not today's date.
42384         I.e., add a week when the wday is the same as the current one.
42385         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
42386         and earlier by Martin Bernreuther and Jan Minář.
42387         * tests/test-getdate.c (main): Check that "next DAY" is always in
42388         the future and that "last DAY" is always in the past.
42389
42390 2009-05-02  Jim Meyering  <meyering@redhat.com>
42391
42392         build: ensure that a release build fails when a submodule is unclean
42393         * top/maint.mk (no-submodule-changes): New rule.
42394         (alpha beta major): Depend on it.
42395
42396 2009-05-02  Bruno Haible  <bruno@clisp.org>
42397
42398         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
42399         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
42400         shell variable gl_fnmatch_required to detect which variant is
42401         requested.
42402         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
42403         gl_FUNC_FNMATCH_POSIX.
42404         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
42405         exclude fnmatch-posix.
42406
42407 2009-05-02  Bruno Haible  <bruno@clisp.org>
42408
42409         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
42410         * modules/mbsrtowcs (License): Change to LGPLv2+.
42411         * modules/strnlen1 (License): Likewise.
42412         Reported by Simon Josefsson.
42413
42414 2009-05-02  Bruno Haible  <bruno@clisp.org>
42415
42416         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
42417         "cross".
42418         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
42419         gnulib-tool was called with option --source-base=lib.
42420
42421 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42422
42423         Use automake *-local hooks without commands, for extensibility.
42424         * modules/localcharset (Makefile.am): Rename install-exec-local
42425         rule to install-exec-localcharset, and make it a prerequisite of
42426         install-exec-local.  Likewise, rename the uninstall-local rule to
42427         uninstall-localcharset, and make it a prerequisite of the former.
42428
42429 2009-05-01  Bruno Haible  <bruno@clisp.org>
42430
42431         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
42432         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
42433         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
42434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
42435         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
42436         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
42437         m4/locale-zh.m4, m4/codeset.m4.
42438
42439         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
42440         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
42441         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
42442         m4/locale-zh.m4.
42443
42444         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
42445         REPLACE_WCRTOMB if mbstate_t must be replaced.
42446         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
42447         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
42448
42449 2009-05-01  Bruno Haible  <bruno@clisp.org>
42450
42451         Avoid compiler warnings when redefining macros defined by <libintl.h>.
42452         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
42453         dngettext, dcngettext, textdomain, bindtextdomain,
42454         bind_textdomain_codeset): Undefine before redefining.
42455
42456 2009-04-30  Bruno Haible  <bruno@clisp.org>
42457
42458         Fix bug introduced on 2009-04-25.
42459         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
42460         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
42461         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
42462         is defined.
42463         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
42464         is defined.
42465         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
42466         is defined.
42467         Reported by Elbert_Pol <elbert.pol@gmail.com>.
42468
42469 2009-04-28  Bruno Haible  <bruno@clisp.org>
42470
42471         Comment tweaks.
42472         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
42473         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
42474         * lib/unicase.h (u*_casexfrm): Likewise.
42475         Reported by Paolo Bonzini.
42476
42477 2009-04-28  Bruno Haible  <bruno@clisp.org>
42478
42479         Fix a compilation error.
42480         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
42481         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42482         Reported by Jim Meyering.
42483
42484 2009-04-27  Bruno Haible  <bruno@clisp.org>
42485
42486         New module 'libunistring'.
42487         * modules/libunistring: New file.
42488         * m4/libunistring.m4: New file.
42489         * MODULES.html.sh (Unicode string functions): Add it.
42490
42491 2009-04-27  Eric Blake  <ebb9@byu.net>
42492
42493         maint.mk: allow package-specific header to provide <config.h>
42494         * top/maint.mk (sc_require_config_h): New variable.
42495         (sc_require_config_h, sc_require_config_h_first): Use it.
42496
42497 2009-04-27  Simon Josefsson  <simon@josefsson.org>
42498
42499         * top/maint.mk (sc_avoid_if_before_free): Except
42500         useless-if-before-free script.
42501
42502 2009-04-27  Eric Blake  <ebb9@byu.net>
42503
42504         maintainer-makefile: depend on all required helper scripts
42505         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
42506         useless-if-before-free.
42507         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
42508         version, rather than assuming gnulib checkout is available.
42509         Reported by Simen Josefsson.
42510
42511 2009-04-26  Bruno Haible  <bruno@clisp.org>
42512
42513         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
42514         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
42515         "../" or "..".
42516
42517 2009-04-26  Bruno Haible  <bruno@clisp.org>
42518
42519         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
42520         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
42521         AC_LIB_HAVE_LINKFLAGS.
42522
42523 2009-04-26  Bruno Haible  <bruno@clisp.org>
42524
42525         Simplify calling convention of u*_conv_from_encoding.
42526         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
42527         u32_conv_from_encoding): Expect a resultbuf argument and return the
42528         result directly as a pointer.
42529         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
42530         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
42531         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
42532         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
42533         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
42534         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
42535         Update.
42536         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
42537         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
42538         * lib/vasnprintf.c (VASNPRINTF): Update.
42539         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
42540         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
42541         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
42542         * NEWS: Mention the change.
42543
42544 2009-04-26  Bruno Haible  <bruno@clisp.org>
42545
42546         Simplify calling convention of u*_conv_to_encoding.
42547         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
42548         u32_conv_to_encoding): Expect a resultbuf argument and return the
42549         result directly as a pointer.
42550         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
42551         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
42552         freeing scaled_offsets if mem_iconveha failed.
42553         * lib/unicase/u-casexfrm.h (FUNC): Update.
42554         * lib/uninorm/u-normxfrm.h (FUNC): Update.
42555         * lib/vasnprintf.c (VASNPRINTF): Update.
42556         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
42557         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
42558         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
42559         * NEWS: Mention the change.
42560
42561 2009-04-26  Bruno Haible  <bruno@clisp.org>
42562
42563         Avoid test failures on AIX and OSF/1.
42564         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
42565         malloc(0).
42566         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
42567         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
42568         Likewise.
42569         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
42570         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
42571         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
42572         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
42573         * doc/posix-functions/malloc.texi: Document the portability problem
42574         related to malloc(0).
42575
42576 2009-04-26  Bruno Haible  <bruno@clisp.org>
42577
42578         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
42579         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
42580         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
42581
42582 2009-04-25  Bruno Haible  <bruno@clisp.org>
42583
42584         Avoid link error when creating a namespace clean library.
42585         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
42586         as macro with arguments if already defined as an alias.
42587         * lib/signbitf.c (gl_signbitf): Don't undefine.
42588         * lib/signbitd.c (gl_signbitd): Don't undefine.
42589         * lib/signbitl.c (gl_signbitl): Don't undefine.
42590
42591 2009-04-25  Jim Meyering  <meyering@redhat.com>
42592
42593         vc-list-files: fix another quoting bug
42594         * build-aux/vc-list-files: Avoid sed backslash expansion
42595         of pathological directory names.
42596
42597 2009-04-25  Eric Blake  <ebb9@byu.net>
42598
42599         vc-list-files: fix shell quoting error
42600         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
42601         timestamp.
42602
42603 2009-04-25  Jim Meyering  <meyering@redhat.com>
42604
42605         vc-list-files: restore lost functionality with subdir argument
42606         * build-aux/vc-list-files: When given a non-"." sub-directory
42607         argument, substitute the $dir/ prefix back onto each resulting name.
42608         Otherwise, coreutils' root_tests check would fail.
42609
42610 2009-04-24  Eric Blake  <ebb9@byu.net>
42611
42612         vc-list-files: ignore git symlinks
42613         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
42614         than ls-files, to ignore git symlinks.
42615
42616         maint.mk: import improvements from m4
42617         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
42618         (move_if_change): Delete unused macro.
42619         (news-date-check, vc-diff-check): Support VPATH builds.
42620         (announcement): Likewise.  Split --bootstrap-tools list...
42621         (boostrap-tools): ...into separate list, which can be overridden
42622         in cfg.mk.
42623         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
42624         requiring dependency on useless-if-before-free module.
42625         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
42626         Support VPATH builds.
42627
42628 2009-04-24  Jim Meyering  <meyering@redhat.com>
42629
42630         maint.mk: remove coreutils-specific rules and variables
42631         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
42632         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
42633         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
42634
42635         maint.mk: remove obsolete rule
42636         * top/maint.mk (rel-check): Remove rule.
42637         (WGET, WGETFLAGS): Remove now-unused variables.
42638
42639 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42640
42641         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
42642         consistency.
42643
42644         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
42645         '$(PATH_SEPARATOR)' instead of ':'.
42646
42647 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42648
42649         * lib/getopt1.c (main): Use 'const' for static array.
42650
42651 2009-04-24  Simon Josefsson  <simon@josefsson.org>
42652
42653         * top/maint.mk: Sync with coreutils.
42654         * NEWS: Explain incompatibilities.
42655
42656 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42657             Bruno Haible  <bruno@clisp.org>
42658
42659         Fix cross-compilation results.
42660         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
42661         statement, as third argument of AC_TRY_RUN.
42662         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
42663         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
42664         Likewise.
42665         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42666         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
42667         Likewise.
42668         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
42669         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
42670         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
42671
42672 2009-04-20  Bruno Haible  <bruno@clisp.org>
42673
42674         Avoid test failure on mingw.
42675         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
42676
42677 2009-04-20  Bruno Haible  <bruno@clisp.org>
42678
42679         Avoid compilation error on mingw.
42680         * modules/localename-tests (Depends-on): Add locale.
42681
42682 2009-04-19  Bruno Haible  <bruno@clisp.org>
42683
42684         Support for building a shared library on Windows platforms.
42685         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
42686         (main): Test the presence of UNINORM_NFC here.
42687         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
42688         (main): Test the presence of UNINORM_NFD here.
42689         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
42690         (main): Test the presence of UNINORM_NFKC here.
42691         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
42692         (main): Test the presence of UNINORM_NFKD here.
42693
42694 2009-04-19  Bruno Haible  <bruno@clisp.org>
42695
42696         Avoid a compiler warning.
42697         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
42698         Change type of variable 'sequence'.
42699
42700 2009-04-19  Bruno Haible  <bruno@clisp.org>
42701
42702         * modules/configmake (Makefile.am): When the contents of configmake.h
42703         does not change, arrange to preserve its modification time.
42704
42705 2009-04-17  Simon Josefsson  <simon@josefsson.org>
42706
42707         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
42708         gettext domain.
42709
42710 2009-04-16  Jim Meyering  <meyering@redhat.com>
42711
42712         useless-if-before-free: improve conversion code
42713         * build-aux/useless-if-before-free: Adjust code-in-comment to match
42714         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
42715
42716 2009-04-14  Bruno Haible  <bruno@clisp.org>
42717
42718         * modules/fcntl (Depends-on): Add extensions.
42719         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
42720
42721 2009-04-12  Ben Pfaff  <blp@gnu.org>
42722
42723         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
42724         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
42725
42726 2009-03-20  Ben Pfaff  <blp@gnu.org>
42727
42728         Make rename replace existing destinations on Windows.
42729         * m4/rename.m4: Add test for Mingw.
42730         * lib/rename.c: Add rename replacement that uses MoveFileEx with
42731         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
42732         * doc/posix-functions/rename.texi: Document.
42733
42734 2009-04-10  Bruno Haible  <bruno@clisp.org>
42735
42736         New include file "iconveh.h".
42737         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
42738         * lib/striconveh.h: Include it.
42739         (enum iconv_ilseq_handler): Remove definition.
42740         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
42741         striconveh.h.
42742         * lib/striconveha.c: Include striconveh.h.
42743         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
42744         * modules/striconveh (Files): Add lib/iconveh.h.
42745         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
42746         lib/striconveh.h.
42747
42748 2009-04-10  Bruno Haible  <bruno@clisp.org>
42749
42750         * lib/uniconv.h: Update comment.
42751
42752 2009-04-10  Bruno Haible  <bruno@clisp.org>
42753
42754         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
42755         always.
42756         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42757         * lib/unistr/u16-mbtouc-aux.c: Likewise.
42758         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
42759         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
42760         "unistring-notinline.h", so that the function gets defined always.
42761         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
42762         * lib/unistr/u8-uctomb.c: Likewise.
42763         * lib/unistr/u16-mbtouc.c: Likewise.
42764         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
42765         * lib/unistr/u16-uctomb.c: Likewise.
42766         * lib/unistr/u32-mbtouc.c: Likewise.
42767         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
42768         * lib/unistr/u32-uctomb.c: Likewise.
42769
42770 2009-04-10  Bruno Haible  <bruno@clisp.org>
42771
42772         Mark 'utime' obsolete.
42773         * modules/utime (Status, Notice): New sections.
42774         Suggested by Jim Meyering.
42775
42776         Fix cross-compile guess for utime test.
42777         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
42778         autoconf.
42779         * doc/posix-functions/utime.texi: Give more precisions.
42780         Reported by Jan <ipif@ymail.com>.
42781
42782 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
42783
42784         filevercmp: correct today's change
42785         * lib/filevercmp.c: Also handle coreutils' test inputs.
42786         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
42787
42788         Fix regression in 'filevercmp' module. Thanks Sven Joachim
42789         for reporting it.
42790         * lib/filevercmp.c: Special handle for "", "." and "..".
42791         * tests/test-filevercmp.c: Enlarge the set suite.
42792
42793 2009-04-07  Jim Meyering  <meyering@redhat.com>
42794
42795         useless-if-before-free: show how to remove braced useless free, too
42796         * build-aux/useless-if-before-free: still only in a comment, though.
42797
42798 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
42799
42800         maint.mk: import changes to syntax-check macros from coreutils
42801         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
42802         Use them in the relevant macros.
42803
42804 2009-04-06  Bruno Haible  <bruno@clisp.org>
42805
42806         Fix unportable use of bit-fields.
42807         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
42808         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
42809         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
42810
42811 2009-04-06  Bruno Haible  <bruno@clisp.org>
42812
42813         Avoid test failures on AIX and OSF/1.
42814         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
42815         that malloc(0) = NULL.
42816         * tests/unicase/test-u8-tolower.c (check): Likewise.
42817         * tests/unicase/test-u8-totitle.c (check): Likewise.
42818         * tests/unicase/test-u8-toupper.c (check): Likewise.
42819         * tests/unicase/test-u16-casefold.c (check): Likewise.
42820         * tests/unicase/test-u16-tolower.c (check): Likewise.
42821         * tests/unicase/test-u16-totitle.c (check): Likewise.
42822         * tests/unicase/test-u16-toupper.c (check): Likewise.
42823         * tests/unicase/test-u32-casefold.c (check): Likewise.
42824         * tests/unicase/test-u32-tolower.c (check): Likewise.
42825         * tests/unicase/test-u32-totitle.c (check): Likewise.
42826         * tests/unicase/test-u32-toupper.c (check): Likewise.
42827         * tests/uninorm/test-u8-nfc.c (check): Likewise.
42828         * tests/uninorm/test-u8-nfd.c (check): Likewise.
42829         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
42830         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
42831         * tests/uninorm/test-u16-nfc.c (check): Likewise.
42832         * tests/uninorm/test-u16-nfd.c (check): Likewise.
42833         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
42834         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
42835         * tests/uninorm/test-u32-nfc.c (check): Likewise.
42836         * tests/uninorm/test-u32-nfd.c (check): Likewise.
42837         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
42838         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
42839
42840 2009-04-05  Bruno Haible  <bruno@clisp.org>
42841
42842         Work around an autoconf limitation.
42843         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
42844         comment line if it would be longer than 3 KB.
42845
42846 2009-04-05  Bruno Haible  <bruno@clisp.org>
42847
42848         Avoid test failure with libiconv-1.13.
42849         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
42850         of the expected test results.
42851
42852 2009-04-05  Bruno Haible  <bruno@clisp.org>
42853
42854         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
42855         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
42856         that it should be installed.
42857
42858 2009-04-05  Bruno Haible  <bruno@clisp.org>
42859
42860         * gnulib-tool: New option --copy-file.
42861         (func_usage): Document it.
42862         (func_dest_tmpfilename): Moved out of func_import.
42863         (func_add_file, func_update_file): New functions, extracted from
42864         func_import.
42865         (func_import): Update.
42866
42867 2009-04-05  Karl Berry  <karl@gnu.org>
42868
42869         * README: prominently mention gnulib-tool.
42870         Rearrange sections so getting the code is near the top.
42871
42872 2009-04-05  Bruno Haible  <bruno@clisp.org>
42873
42874         * lib/unicase.h: Mention u*_cmp2.
42875         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42876         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
42877         * lib/unicase/ulc-casecmp.c: Likewise.
42878         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
42879         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
42880         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
42881         unistr/u8-cmp.
42882         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
42883         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
42884         unistr/u16-cmp.
42885         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
42886         unistr/u32-cmp.
42887
42888         * lib/uninorm.h: Mention u*_cmp2.
42889         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
42890         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
42891         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
42892         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
42893         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
42894         unistr/u8-cmp.
42895         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
42896         unistr/u16-cmp.
42897         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
42898         unistr/u32-cmp.
42899
42900         New module 'unistr/u32-cmp2'.
42901         * lib/unistr/u32-cmp2.c: New file.
42902         * modules/unistr/u32-cmp2: New file.
42903
42904         New module 'unistr/u16-cmp2'.
42905         * lib/unistr/u16-cmp2.c: New file.
42906         * modules/unistr/u16-cmp2: New file.
42907
42908         New module 'unistr/u8-cmp2'.
42909         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
42910         * lib/unistr/u8-cmp2.c: New file.
42911         * lib/unistr/u-cmp2.h: New file.
42912         * modules/unistr/u8-cmp2: New file.
42913
42914 2009-04-05  Bruno Haible  <bruno@clisp.org>
42915
42916         * lib/unictype.h (uc_property_is_valid): New macro.
42917         * tests/unictype/test-pr_byname.c (main): Use it.
42918
42919         * lib/unistr.h: Doc fixes.
42920         * lib/uniconv.h: Doc fixes.
42921         * lib/unictype.h: Doc fixes.
42922
42923 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
42924
42925         Port coreutils 7.2 to Solaris 8.
42926
42927         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
42928         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
42929         for Solaris 8.  This is a bit of a hack, as it means it's the
42930         caller's responsibility to add -lnsl if needed, but most likely it
42931         won't be needed since only getaddrinfo uses this and getaddrinfo
42932         isn't needed on Solaris 8.
42933
42934         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
42935         problem to Solaris 8 encountered with coreutils 7.2, which
42936         resulted in a message "fnmatch.c:292: warning: passing argument 4
42937         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
42938         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
42939
42940 2009-04-03  Simon Josefsson  <simon@josefsson.org>
42941
42942         * m4/ld-version-script.m4: Add FIXME comment.
42943
42944 2009-04-02  Simon Josefsson  <simon@josefsson.org>
42945
42946         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
42947         SOVERSION variable.
42948
42949 2009-04-02  Bruno Haible  <bruno@clisp.org>
42950
42951         * Makefile (info, html, dvi, pdf): Combine the rules.
42952         Suggested by Jim Meyering.
42953
42954 2009-04-01  Bruno Haible  <bruno@clisp.org>
42955
42956         * Makefile (info, html, dvi, pdf): New targets.
42957         Reported by Reuben Thomas <rrt@sc3d.org>.
42958
42959 2009-04-01  Bruno Haible  <bruno@clisp.org>
42960
42961         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
42962         can be put into PATH.
42963         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
42964
42965 2009-04-01  Bruno Haible  <bruno@clisp.org>
42966
42967         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
42968
42969 2009-04-01  Bruno Haible  <bruno@clisp.org>
42970
42971         Rename module 'visibility'.
42972         * modules/lib-symbol-visibility: Renamed from modules/visibility.
42973         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
42974         * doc/gnulib.texi: Update.
42975         * MODULES.html.sh (Misc): Update.
42976         * NEWS: Mention the change.
42977
42978 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42979
42980         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
42981         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
42982         Eric Blake <ebb9@byu.net> for review.
42983         * MODULES.html.sh: Add lib-msvc-compat.
42984         * doc/gnulib.texi: Link to new section.
42985         * m4/ld-output-def.m4: New file.
42986         * doc/ld-output-def.texi: New file.
42987
42988 2009-04-01  Simon Josefsson  <simon@josefsson.org>
42989
42990         Rename ld-version-script to lib-symbol-versions.  Suggested by
42991         Bruno Haible <bruno@clisp.org>.
42992         * modules/ld-version-script: Renamed to lib-symbol-versions.
42993         * doc/ld-version-script.texi: Fix module name.
42994         * MODULES.html.sh: Add lib-symbol-versions.
42995
42996 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42997
42998         * modules/u64-tests: New file.
42999         * tests/test-u64.c: New file.
43000
43001 2009-03-04  Simon Josefsson  <simon@josefsson.org>
43002
43003         * MODULES.html.sh: Mention u64.
43004         * modules/u64: New module.
43005         * modules/crypto/sha512: Depend on u64 module instead of providing
43006         u64.h.
43007
43008 2009-03-27  Eric Blake  <ebb9@byu.net>
43009
43010         test-strerror: make debugging EAI_SYSTEM easier
43011         * modules/getaddrinfo-tests (Depends-on): Add strerror.
43012         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
43013         failure was EAI_SYSTEM.
43014
43015 2009-03-25  Bruno Haible  <bruno@clisp.org>
43016
43017         Fix a problem with --enable-relocatable on Solaris 7.
43018         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
43019         since 2008-02-24.
43020
43021 2009-03-25  Eric Blake  <ebb9@byu.net>
43022
43023         test-sockets: avoid gcc warning
43024         * tests/test-sockets.c (main): Silence compiler warning.
43025
43026 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43027
43028         New modules nproc, pthread, contributed by Glen Lenker.
43029
43030         * MODULES.html.sh: Add pthread, nproc.
43031         * lib/nproc.c: New file.
43032         * lib/nproc.h: New file.
43033         * lib/pthread.in.h: New file.
43034         * m4/pthread.m4: New file.
43035         * modules/nproc: New file.
43036         * modules/pthread: New file.
43037
43038 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43039
43040         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
43041         New variable.
43042
43043 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
43044
43045         filevercmp: handle simple~ and numbered.~3~ backup suffixes
43046         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
43047         * tests/test-filevercmp.c: Add tests for backup suffixes.
43048
43049 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43050
43051         * modules/stdlib (Depends-on): Add stdint, needed when defining
43052         struct random_data on, for example, HP-UX 10.20.  Reported by
43053         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43054
43055 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43056
43057         * lib/readline.c (readline): Call fflush on stdout after printing
43058         prompt.
43059
43060 2009-03-20  Bruno Haible  <bruno@clisp.org>
43061
43062         Remove dependency from 'close' module to -lws2_32 on native Windows.
43063         * lib/close-hook.h: New file.
43064         * lib/close-hook.c: New file.
43065         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
43066         w32sock.h.
43067         (_gl_close_fd_maybe_socket): Remove function.
43068         (rpl_close): Invoke execute_all_close_hooks instead of
43069         _gl_close_fd_maybe_socket.
43070         * lib/sockets.c: Include close-hook.h, w32sock.h.
43071         (close_fd_maybe_socket): New function, essentially from lib/close.c.
43072         (close_sockets_hook): New variable.
43073         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
43074         (gl_sockets_cleanup): Unregister it.
43075         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
43076         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
43077         * modules/close-hook: New file.
43078         * modules/close (Files): Remove lib/w32sock.h.
43079         (Depends-on): Add close-hook.
43080         (Link): Remove section.
43081         * modules/sockets (Files): Add lib/w32sock.h.
43082         (Depends-on): Add close-hook.
43083         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
43084         invocation.
43085         * NEWS: Mention that LIB_CLOSE is gone.
43086
43087 2009-03-23  Eric Blake  <ebb9@byu.net>
43088
43089         signal-tests: test previous patch
43090         * tests/test-signal.c: New file.
43091         * modules/signal-tests: Likewise.
43092
43093         signal.h: always support 'volatile sig_atomic_t'
43094         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
43095         (gl_SIGNAL_H_DEFAULTS): Add a default.
43096         * modules/signal (Makefile.am): Substitute if needed.
43097         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
43098         users can blindly add volatile.
43099         * doc/posix-headers/signal.texi (signal.h): Document it.
43100         Reported by Matthew Woehlke.
43101
43102 2009-03-23  Jim Meyering  <meyering@redhat.com>
43103
43104         pathmax: PATH_MAX: use pathconf only when available
43105         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
43106         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
43107         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
43108         This avoids a link failure in a PSP cross-compilation environment
43109         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
43110
43111         * lib/vasnprintf.c (divide): Fix typo in comment.
43112
43113 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43114
43115         * gnulib-tool (func_filter_filelist): Fix comment.
43116
43117 2009-03-20  Bruno Haible  <bruno@clisp.org>
43118
43119         Make sockets.h self-contained.
43120         * lib/sockets.c: Include sockets.h first.
43121         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
43122
43123 2009-03-19  Eric Blake  <ebb9@byu.net>
43124
43125         doc: mention more functions added in cygwin 1.7.0
43126         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
43127         addition.
43128         * doc/posix-functions/log2f.texi: Likewise.
43129
43130 2009-03-19  Jim Meyering  <meyering@redhat.com>
43131
43132         fsusage: avoid syntax error due to statement-before-declaration
43133         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
43134         after all declarations.  Reported by Matthew Woehlke in
43135         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
43136
43137 2009-03-18  Eric Blake  <ebb9@byu.net>
43138
43139         build-aux/compile: sync from automake
43140         * build-aux/compile: New file, from automake.
43141         * config/srclist.txt: Mention build-aux/compile.
43142
43143 2009-03-17  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/git-merge-changelog.c: Fix typo in comment.
43146         Reported by Reuben Thomas <rrt@sc3d.org>.
43147
43148 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
43149
43150         * m4/regex.m4: update and improve help for
43151         --without-included-regex.
43152
43153 2009-03-17  Simon Josefsson  <simon@josefsson.org>
43154
43155         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
43156         failure on missing include files.
43157
43158 2009-03-17  Eric Blake  <ebb9@byu.net>
43159
43160         doc: mention more functions added in cygwin 1.7.0
43161         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
43162         addition.
43163         * doc/posix-functions/fwscanf.texi: Likewise.
43164         * doc/posix-functions/swprintf.texi: Likewise.
43165         * doc/posix-functions/swscanf.texi: Likewise.
43166         * doc/posix-functions/vfwprintf.texi: Likewise.
43167         * doc/posix-functions/vfwscanf.texi: Likewise.
43168         * doc/posix-functions/vswprintf.texi: Likewise.
43169         * doc/posix-functions/vswscanf.texi: Likewise.
43170         * doc/posix-functions/vwprintf.texi: Likewise.
43171         * doc/posix-functions/vwscanf.texi: Likewise.
43172         * doc/posix-functions/wcscasecmp.texi: Likewise.
43173         * doc/posix-functions/wcsdup.texi: Likewise.
43174         * doc/posix-functions/wcsftime.texi: Likewise.
43175         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43176         * doc/posix-functions/wprintf.texi: Likewise.
43177         * doc/posix-functions/wscanf.texi: Likewise.
43178         * doc/glibc-functions/gethostbyname2.texi: Likewise.
43179
43180 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43181
43182         maint.mk: really add $(AM_MAKEFLAGS)
43183         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
43184         was inadvertently omitted in the last commit.
43185         Spotted by Bruno Haible.
43186
43187         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
43188         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
43189         $(AM_MAKEFLAGS)' rather than plain `make'.
43190
43191         gnulib-tool: execute $MAKE not make
43192         * gnulib-tool: Default $MAKE to 'make'.
43193         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
43194         than make.  Initialize $MAKE in the do-autobuild script.
43195
43196         gnulib-tool: use $MAKE not make in generated files
43197         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
43198         make, in generated files.  Initialize $MAKE in the do-autobuild
43199         script.
43200
43201         * top/GNUmakefile (_have-git-version-gen): Fix typo.
43202
43203         GNUmakefile: disable parallelism only for multiple, recursive targets
43204         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
43205         additions in the Makefile.
43206         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
43207         by Automake.
43208         (.NOTPARALLEL): Only disable parallel builds if multiple targets
43209         are listed on the command line and at least one of them is
43210         listed in $(ALL_RECURSIVE_TARGETS).
43211
43212 2009-03-14  Bruno Haible  <bruno@clisp.org>
43213
43214         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
43215         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
43216         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
43217         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
43218         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
43219         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
43220         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
43221         unistr/u8-uctomb.
43222         * modules/unistr/u8-strchr (Depends-on): Likewise.
43223         * modules/unistr/u8-strrchr (Depends-on): Likewise.
43224         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
43225         unistr/u16-uctomb.
43226         * modules/unistr/u16-strchr (Depends-on): Likewise.
43227         * modules/unistr/u16-strrchr (Depends-on): Likewise.
43228
43229 2009-03-12  Bruno Haible  <bruno@clisp.org>
43230
43231         Work around select() bug on Interix 3.5.
43232         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
43233         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
43234         * m4/select.m4: New file.
43235         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
43236         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
43237         * modules/select (Files): Add m4/select.m4.
43238         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
43239         * modules/nanosleep (Depends-on): Add select.
43240         * modules/poll (Depends-on): Likewise.
43241         * doc/posix-functions/select.texi: Mention the Interix bug.
43242         Reported by Markus Duft <mduft@gentoo.org>.
43243
43244         * lib/select.c: Renamed from lib/winsock-select.c.
43245         * modules/select (Files): Add lib/select.c, remove
43246         lib/winsock-select.c.
43247         (configure.ac): Update.
43248
43249 2009-03-12  Jim Meyering  <meyering@redhat.com>
43250
43251         avoid gcc warnings about unused macro definitions
43252         * lib/readtokens.c (STREQ): Remove unused definition.
43253         * lib/xmalloc.c (SIZE_MAX): Likewise.
43254         * lib/openat-die.c (N_): Likewise.
43255         * lib/mountlist.c (SIZE_MAX): Remove definition.
43256         Instead, include <stdint.h>.
43257         * lib/readutmp.c: Likewise.
43258         * modules/readutmp (Depends-on): Add stdint.
43259         * modules/mountlist (Depends-on): Add stdint.
43260         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
43261
43262 2009-03-10  Bruno Haible  <bruno@clisp.org>
43263
43264         Tests for module 'mbmemcasecoll'.
43265         * modules/mbmemcasecoll-tests: New file.
43266         * tests/test-mbmemcasecoll1.sh: New file.
43267         * tests/test-mbmemcasecoll2.sh: New file.
43268         * tests/test-mbmemcasecoll3.sh: New file.
43269         * tests/test-mbmemcasecoll.c: New file.
43270
43271         New module 'mbmemcasecoll'.
43272         * lib/mbmemcasecoll.h: New file.
43273         * lib/mbmemcasecoll.c: New file.
43274         * modules/mbmemcasecoll: New file.
43275
43276         * tests/test-mbmemcasecmp.h: New file, extracted from
43277         tests/test-mbmemcasecmp.c.
43278         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
43279         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
43280         (main): Update.
43281         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
43282
43283 2009-03-09  Bruno Haible  <bruno@clisp.org>
43284
43285         Tests for module 'mbmemcasecmp'.
43286         * modules/mbmemcasecmp-tests: New file.
43287         * tests/test-mbmemcasecmp1.sh: New file.
43288         * tests/test-mbmemcasecmp2.sh: New file.
43289         * tests/test-mbmemcasecmp3.sh: New file.
43290         * tests/test-mbmemcasecmp.c: New file.
43291
43292         New module 'mbmemcasecmp'.
43293         * lib/mbmemcasecmp.h: New file.
43294         * lib/mbmemcasecmp.c: New file.
43295         * modules/mbmemcasecmp: New file.
43296
43297 2009-03-09  Bruno Haible  <bruno@clisp.org>
43298
43299         Tests for module 'unicase/ulc-casecoll'.
43300         * modules/unicase/ulc-casecoll-tests: New file.
43301         * tests/unicase/test-ulc-casecoll1.sh: New file.
43302         * tests/unicase/test-ulc-casecoll2.sh: New file.
43303         * tests/unicase/test-ulc-casecoll.c: New file.
43304
43305         New module 'unicase/ulc-casecoll'.
43306         * lib/unicase.h (ulc_casecoll): New declaration.
43307         * lib/unicase/ulc-casecoll.c: New file.
43308         * modules/unicase/ulc-casecoll: New file.
43309
43310         New module 'unicase/ulc-casexfrm'.
43311         * lib/unicase.h (ulc_casexfrm): New declaration.
43312         * lib/unicase/ulc-casexfrm.c: New file.
43313         * modules/unicase/ulc-casexfrm: New file.
43314
43315 2009-03-09  Bruno Haible  <bruno@clisp.org>
43316
43317         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
43318         invocations.
43319
43320         * m4/mbscasecmp.m4: Remove file.
43321         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
43322         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
43323
43324         * m4/mbscasestr.m4: Remove file.
43325         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
43326         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
43327
43328         * m4/mbschr.m4: Remove file.
43329         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
43330         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
43331
43332         * m4/mbscspn.m4: Remove file.
43333         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
43334         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
43335
43336         * m4/mbslen.m4: Remove file.
43337         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
43338         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
43339
43340         * m4/mbsncasecmp.m4: Remove file.
43341         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
43342         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
43343
43344         * m4/mbsnlen.m4: Remove file.
43345         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
43346         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
43347
43348         * m4/mbspbrk.m4: Remove file.
43349         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
43350         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
43351
43352         * m4/mbspcasecmp.m4: Remove file.
43353         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
43354         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
43355
43356         * m4/mbsrchr.m4: Remove file.
43357         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
43358         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
43359
43360         * m4/mbssep.m4: Remove file.
43361         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
43362         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
43363
43364         * m4/mbsspn.m4: Remove file.
43365         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
43366         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
43367
43368         * m4/mbsstr.m4: Remove file.
43369         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
43370         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
43371
43372         * m4/mbstok_r.m4: Remove file.
43373         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
43374         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
43375
43376         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
43377
43378         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
43379         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
43380
43381         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
43382
43383 2009-03-08  Bruno Haible  <bruno@clisp.org>
43384
43385         Tests for module 'unicase/ulc-casecmp'.
43386         * modules/unicase/ulc-casecmp-tests: New file.
43387         * tests/unicase/test-ulc-casecmp1.sh: New file.
43388         * tests/unicase/test-ulc-casecmp2.sh: New file.
43389         * tests/unicase/test-ulc-casecmp.c: New file.
43390
43391         New module 'unicase/ulc-casecmp'.
43392         * lib/unicase.h (ulc_casecmp): New declaration.
43393         * lib/unicase/ulc-casecmp.c: New file.
43394         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
43395         'const SRC_UNIT *'.
43396         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
43397         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
43398         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
43399         * modules/unicase/ulc-casecmp: New file.
43400
43401         Tests for module 'unicase/u32-is-cased'.
43402         * modules/unicase/u32-is-cased-tests: New file.
43403         * tests/unicase/test-u32-is-cased.c: New file.
43404
43405         Tests for module 'unicase/u16-is-cased'.
43406         * modules/unicase/u16-is-cased-tests: New file.
43407         * tests/unicase/test-u16-is-cased.c: New file.
43408
43409         Tests for module 'unicase/u8-is-cased'.
43410         * modules/unicase/u8-is-cased-tests: New file.
43411         * tests/unicase/test-u8-is-cased.c: New file.
43412         * tests/unicase/test-is-cased.h: New file.
43413
43414         New module 'unicase/u32-is-cased'.
43415         * lib/unicase/u32-is-cased.c: New file.
43416         * modules/unicase/u32-is-cased: New file.
43417
43418         New module 'unicase/u16-is-cased'.
43419         * lib/unicase/u16-is-cased.c: New file.
43420         * modules/unicase/u16-is-cased: New file.
43421
43422         New module 'unicase/u8-is-cased'.
43423         * lib/unicase/u8-is-cased.c: New file.
43424         * lib/unicase/u-is-cased.h: New file.
43425         * modules/unicase/u8-is-cased: New file.
43426
43427         Tests for module 'unicase/u32-is-casefolded'.
43428         * modules/unicase/u32-is-casefolded-tests: New file.
43429         * tests/unicase/test-u32-is-casefolded.c: New file.
43430
43431         Tests for module 'unicase/u16-is-casefolded'.
43432         * modules/unicase/u16-is-casefolded-tests: New file.
43433         * tests/unicase/test-u16-is-casefolded.c: New file.
43434
43435         Tests for module 'unicase/u8-is-casefolded'.
43436         * modules/unicase/u8-is-casefolded-tests: New file.
43437         * tests/unicase/test-u8-is-casefolded.c: New file.
43438         * tests/unicase/test-is-casefolded.h: New file.
43439
43440         New module 'unicase/u32-is-casefolded'.
43441         * lib/unicase/u32-is-casefolded.c: New file.
43442         * modules/unicase/u32-is-casefolded: New file.
43443
43444         New module 'unicase/u16-is-casefolded'.
43445         * lib/unicase/u16-is-casefolded.c: New file.
43446         * modules/unicase/u16-is-casefolded: New file.
43447
43448         New module 'unicase/u8-is-casefolded'.
43449         * lib/unicase/u8-is-casefolded.c: New file.
43450         * modules/unicase/u8-is-casefolded: New file.
43451
43452         Tests for module 'unicase/u32-is-titlecase'.
43453         * modules/unicase/u32-is-titlecase-tests: New file.
43454         * tests/unicase/test-u32-is-titlecase.c: New file.
43455
43456         Tests for module 'unicase/u16-is-titlecase'.
43457         * modules/unicase/u16-is-titlecase-tests: New file.
43458         * tests/unicase/test-u16-is-titlecase.c: New file.
43459
43460         Tests for module 'unicase/u8-is-titlecase'.
43461         * modules/unicase/u8-is-titlecase-tests: New file.
43462         * tests/unicase/test-u8-is-titlecase.c: New file.
43463         * tests/unicase/test-is-titlecase.h: New file.
43464
43465         New module 'unicase/u32-is-titlecase'.
43466         * lib/unicase/u32-is-titlecase.c: New file.
43467         * modules/unicase/u32-is-titlecase: New file.
43468
43469         New module 'unicase/u16-is-titlecase'.
43470         * lib/unicase/u16-is-titlecase.c: New file.
43471         * modules/unicase/u16-is-titlecase: New file.
43472
43473         New module 'unicase/u8-is-titlecase'.
43474         * lib/unicase/u8-is-titlecase.c: New file.
43475         * modules/unicase/u8-is-titlecase: New file.
43476
43477         Tests for module 'unicase/u32-is-lowercase'.
43478         * modules/unicase/u32-is-lowercase-tests: New file.
43479         * tests/unicase/test-u32-is-lowercase.c: New file.
43480
43481         Tests for module 'unicase/u16-is-lowercase'.
43482         * modules/unicase/u16-is-lowercase-tests: New file.
43483         * tests/unicase/test-u16-is-lowercase.c: New file.
43484
43485         Tests for module 'unicase/u8-is-lowercase'.
43486         * modules/unicase/u8-is-lowercase-tests: New file.
43487         * tests/unicase/test-u8-is-lowercase.c: New file.
43488         * tests/unicase/test-is-lowercase.h: New file.
43489
43490         New module 'unicase/u32-is-lowercase'.
43491         * lib/unicase/u32-is-lowercase.c: New file.
43492         * modules/unicase/u32-is-lowercase: New file.
43493
43494         New module 'unicase/u16-is-lowercase'.
43495         * lib/unicase/u16-is-lowercase.c: New file.
43496         * modules/unicase/u16-is-lowercase: New file.
43497
43498         New module 'unicase/u8-is-lowercase'.
43499         * lib/unicase/u8-is-lowercase.c: New file.
43500         * modules/unicase/u8-is-lowercase: New file.
43501
43502         Tests for module 'unicase/u32-is-uppercase'.
43503         * modules/unicase/u32-is-uppercase-tests: New file.
43504         * tests/unicase/test-u32-is-uppercase.c: New file.
43505
43506         Tests for module 'unicase/u16-is-uppercase'.
43507         * modules/unicase/u16-is-uppercase-tests: New file.
43508         * tests/unicase/test-u16-is-uppercase.c: New file.
43509
43510         Tests for module 'unicase/u8-is-uppercase'.
43511         * modules/unicase/u8-is-uppercase-tests: New file.
43512         * tests/unicase/test-u8-is-uppercase.c: New file.
43513         * tests/unicase/test-is-uppercase.h: New file.
43514
43515         New module 'unicase/u32-is-uppercase'.
43516         * lib/unicase/u32-is-uppercase.c: New file.
43517         * modules/unicase/u32-is-uppercase: New file.
43518
43519         New module 'unicase/u16-is-uppercase'.
43520         * lib/unicase/u16-is-uppercase.c: New file.
43521         * modules/unicase/u16-is-uppercase: New file.
43522
43523         New module 'unicase/u8-is-uppercase'.
43524         * lib/unicase/u8-is-uppercase.c: New file.
43525         * modules/unicase/u8-is-uppercase: New file.
43526
43527         New module 'unicase/u32-is-invariant'.
43528         * lib/unicase/u32-is-invariant.c: New file.
43529         * modules/unicase/u32-is-invariant: New file.
43530
43531         New module 'unicase/u16-is-invariant'.
43532         * lib/unicase/u16-is-invariant.c: New file.
43533         * modules/unicase/u16-is-invariant: New file.
43534
43535         New module 'unicase/u8-is-invariant'.
43536         * lib/unicase/u8-is-invariant.c: New file.
43537         * lib/unicase/invariant.h: New file.
43538         * lib/unicase/u-is-invariant.h: New file.
43539         * modules/unicase/u8-is-invariant: New file.
43540
43541         Tests for module 'unicase/u32-casecoll'.
43542         * modules/unicase/u32-casecoll-tests: New file.
43543         * tests/unicase/test-u32-casecoll.c: New file.
43544
43545         Tests for module 'unicase/u16-casecoll'.
43546         * modules/unicase/u16-casecoll-tests: New file.
43547         * tests/unicase/test-u16-casecoll.c: New file.
43548
43549         Tests for module 'unicase/u8-casecoll'.
43550         * modules/unicase/u8-casecoll-tests: New file.
43551         * tests/unicase/test-u8-casecoll.c: New file.
43552
43553         New module 'unicase/u32-casecoll'.
43554         * lib/unicase/u32-casecoll.c: New file.
43555         * modules/unicase/u32-casecoll: New file.
43556
43557         New module 'unicase/u16-casecoll'.
43558         * lib/unicase/u16-casecoll.c: New file.
43559         * modules/unicase/u16-casecoll: New file.
43560
43561         New module 'unicase/u8-casecoll'.
43562         * lib/unicase/u8-casecoll.c: New file.
43563         * lib/unicase/u-casecoll.h: New file.
43564         * modules/unicase/u8-casecoll: New file.
43565
43566         New module 'unicase/u32-casexfrm'.
43567         * lib/unicase/u32-casexfrm.c: New file.
43568         * modules/unicase/u32-casexfrm: New file.
43569
43570         New module 'unicase/u16-casexfrm'.
43571         * lib/unicase/u16-casexfrm.c: New file.
43572         * modules/unicase/u16-casexfrm: New file.
43573
43574         New module 'unicase/u8-casexfrm'.
43575         * lib/unicase/u8-casexfrm.c: New file.
43576         * lib/unicase/u-casexfrm.h: New file.
43577         * modules/unicase/u8-casexfrm: New file.
43578
43579         Tests for module 'unicase/u32-casecmp'.
43580         * modules/unicase/u32-casecmp-tests: New file.
43581         * tests/unicase/test-u32-casecmp.c: New file.
43582
43583         Tests for module 'unicase/u16-casecmp'.
43584         * modules/unicase/u16-casecmp-tests: New file.
43585         * tests/unicase/test-u16-casecmp.c: New file.
43586
43587         Tests for module 'unicase/u8-casecmp'.
43588         * modules/unicase/u8-casecmp-tests: New file.
43589         * tests/unicase/test-u8-casecmp.c: New file.
43590         * tests/unicase/test-casecmp.h: New file.
43591
43592         New module 'unicase/u32-casecmp'.
43593         * lib/unicase/u32-casecmp.c: New file.
43594         * modules/unicase/u32-casecmp: New file.
43595
43596         New module 'unicase/u16-casecmp'.
43597         * lib/unicase/u16-casecmp.c: New file.
43598         * modules/unicase/u16-casecmp: New file.
43599
43600         New module 'unicase/u8-casecmp'.
43601         * lib/unicase/u8-casecmp.c: New file.
43602         * lib/unicase/u-casecmp.h: New file.
43603         * modules/unicase/u8-casecmp: New file.
43604
43605         Tests for module 'unicase/u32-casefold'.
43606         * modules/unicase/u32-casefold-tests: New file.
43607         * tests/unicase/test-u32-casefold.c: New file.
43608
43609         Tests for module 'unicase/u16-casefold'.
43610         * modules/unicase/u16-casefold-tests: New file.
43611         * tests/unicase/test-u16-casefold.c: New file.
43612
43613         Tests for module 'unicase/u8-casefold'.
43614         * modules/unicase/u8-casefold-tests: New file.
43615         * tests/unicase/test-u8-casefold.c: New file.
43616
43617         New module 'unicase/u32-casefold'.
43618         * lib/unicase/u32-casefold.c: New file.
43619         * modules/unicase/u32-casefold: New file.
43620
43621         New module 'unicase/u16-casefold'.
43622         * lib/unicase/u16-casefold.c: New file.
43623         * modules/unicase/u16-casefold: New file.
43624
43625         New module 'unicase/u8-casefold'.
43626         * lib/unicase/u8-casefold.c: New file.
43627         * lib/unicase/u-casefold.h: New file.
43628         * modules/unicase/u8-casefold: New file.
43629
43630         New module 'unicase/tocasefold'.
43631         * lib/unicase/casefold.h: New file.
43632         * lib/unicase/tocasefold.c: New file.
43633         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
43634         * modules/unicase/tocasefold: New file.
43635
43636         Tests for module 'unicase/u32-totitle'.
43637         * modules/unicase/u32-totitle-tests: New file.
43638         * tests/unicase/test-u32-totitle.c: New file.
43639
43640         Tests for module 'unicase/u16-totitle'.
43641         * modules/unicase/u16-totitle-tests: New file.
43642         * tests/unicase/test-u16-totitle.c: New file.
43643
43644         Tests for module 'unicase/u8-totitle'.
43645         * modules/unicase/u8-totitle-tests: New file.
43646         * tests/unicase/test-u8-totitle.c: New file.
43647
43648         New module 'unicase/u32-totitle'.
43649         * lib/unicase/u32-totitle.c: New file.
43650         * modules/unicase/u32-totitle: New file.
43651
43652         New module 'unicase/u16-totitle'.
43653         * lib/unicase/u16-totitle.c: New file.
43654         * modules/unicase/u16-totitle: New file.
43655
43656         New module 'unicase/u8-totitle'.
43657         * lib/unicase/u8-totitle.c: New file.
43658         * lib/unicase/u-totitle.h: New file.
43659         * modules/unicase/u8-totitle: New file.
43660
43661         Tests for module 'unicase/u32-tolower'.
43662         * modules/unicase/u32-tolower-tests: New file.
43663         * tests/unicase/test-u32-tolower.c: New file.
43664
43665         Tests for module 'unicase/u16-tolower'.
43666         * modules/unicase/u16-tolower-tests: New file.
43667         * tests/unicase/test-u16-tolower.c: New file.
43668
43669         Tests for module 'unicase/u8-tolower'.
43670         * modules/unicase/u8-tolower-tests: New file.
43671         * tests/unicase/test-u8-tolower.c: New file.
43672
43673         New module 'unicase/u32-tolower'.
43674         * lib/unicase/u32-tolower.c: New file.
43675         * modules/unicase/u32-tolower: New file.
43676
43677         New module 'unicase/u16-tolower'.
43678         * lib/unicase/u16-tolower.c: New file.
43679         * modules/unicase/u16-tolower: New file.
43680
43681         New module 'unicase/u8-tolower'.
43682         * lib/unicase/u8-tolower.c: New file.
43683         * modules/unicase/u8-tolower: New file.
43684
43685         Tests for module 'unicase/u32-toupper'.
43686         * modules/unicase/u32-toupper-tests: New file.
43687         * tests/unicase/test-u32-toupper.c: New file.
43688
43689         Tests for module 'unicase/u16-toupper'.
43690         * modules/unicase/u16-toupper-tests: New file.
43691         * tests/unicase/test-u16-toupper.c: New file.
43692
43693         Tests for module 'unicase/u8-toupper'.
43694         * modules/unicase/u8-toupper-tests: New file.
43695         * tests/unicase/test-u8-toupper.c: New file.
43696
43697         New module 'unicase/u32-toupper'.
43698         * lib/unicase/u32-toupper.c: New file.
43699         * modules/unicase/u32-toupper: New file.
43700
43701         New module 'unicase/u16-toupper'.
43702         * lib/unicase/u16-toupper.c: New file.
43703         * modules/unicase/u16-toupper: New file.
43704
43705         New module 'unicase/u8-toupper'.
43706         * lib/unicase/u8-toupper.c: New file.
43707         * modules/unicase/u8-toupper: New file.
43708
43709         New module 'unicase/u32-casemap'.
43710         * lib/unicase/u32-casemap.c: New file.
43711         * modules/unicase/u32-casemap: New file.
43712
43713         New module 'unicase/u16-casemap'.
43714         * lib/unicase/u16-casemap.c: New file.
43715         * modules/unicase/u16-casemap: New file.
43716
43717         New module 'unicase/u8-casemap'.
43718         * lib/unicase/unicasemap.h: New file.
43719         * lib/unicase/u8-casemap.c: New file.
43720         * lib/unicase/u-casemap.h: New file.
43721         * modules/unicase/u8-casemap: New file.
43722
43723         New module 'unicase/special-casing'.
43724         * lib/unicase/special-casing.h: New file.
43725         * lib/unicase/special-casing.c: New file.
43726         * lib/unicase/special-casing-table.gperf: New file, generated by
43727         gen-uni-tables.c.
43728         * modules/unicase/special-casing: New file.
43729
43730         Tests for module 'unicase/locale-language'.
43731         * modules/unicase/locale-language-tests: New file.
43732         * tests/unicase/test-locale-language.sh: New file.
43733         * tests/unicase/test-locale-language.c: New file.
43734
43735         New module 'unicase/locale-language'.
43736         * lib/unicase/locale-language.c: New file.
43737         * lib/unicase/locale-languages.gperf: New file.
43738         * modules/unicase/locale-language: New file.
43739
43740         Generate more tables for case conversion and case folding.
43741         * lib/gen-uni-tables.c (SCC_*): New enum items.
43742         (struct special_casing_rule): New type.
43743         (casing_rules, num_casing_rules, allocated_casing_rules): New
43744         variables.
43745         (add_casing_rule, fill_casing_rules): New functions.
43746         (struct casefold_rule): New type.
43747         (casefolding_rules, num_casefolding_rules,
43748         allocated_casefolding_rules): New variables.
43749         (fill_casefolding_rules): New function.
43750         (unicode_casefold): New variable.
43751         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
43752         sort_casing_rules, output_casing_rules): New functions.
43753         (main): Accept to more arguments: SpecialCasing.txt and
43754         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
43755         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
43756         Output mapping for casefolding.
43757
43758         * lib/unicase.h: Include stdbool.h, uninorm.h.
43759         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
43760         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
43761         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
43762         arguments.
43763         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
43764         resultp arguments.
43765         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
43766         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
43767         resultp arguments.
43768         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
43769         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
43770         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
43771         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
43772         declarations.
43773         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
43774
43775 2009-03-08  Bruno Haible  <bruno@clisp.org>
43776
43777         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43778         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
43779         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
43780         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43781
43782 2009-03-07  Bruno Haible  <bruno@clisp.org>
43783
43784         Adjust u*_normcmp, u*_normcoll API.
43785         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
43786         u16_normcoll, u32_normcoll): Change failure conventions.
43787         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
43788         errno and return -1.
43789         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
43790
43791 2009-03-07  Bruno Haible  <bruno@clisp.org>
43792
43793         Tests for module 'uninorm/u32-normcoll'.
43794         * modules/uninorm/u32-normcoll-tests: New file.
43795         * tests/uninorm/test-u32-normcoll.c: New file.
43796
43797         Tests for module 'uninorm/u16-normcoll'.
43798         * modules/uninorm/u16-normcoll-tests: New file.
43799         * tests/uninorm/test-u16-normcoll.c: New file.
43800
43801         Tests for module 'uninorm/u8-normcoll'.
43802         * modules/uninorm/u8-normcoll-tests: New file.
43803         * tests/uninorm/test-u8-normcoll.c: New file.
43804
43805 2009-03-07  Bruno Haible  <bruno@clisp.org>
43806
43807         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
43808         tests/uninorm/test-u32-normcmp.c.
43809         * tests/uninorm/test-u32-normcmp.c: Include it.
43810         (test_nonascii): New function, extracted from main. Add some more
43811         tests.
43812         (main): Invoke test_ascii and test_nonascii.
43813         * modules/uninorm/u32-normcmp-tests (Files): Add
43814         tests/uninorm/test-u32-normcmp.h.
43815         (Depends-on): Remove uninorm/u32-normcmp.
43816
43817         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
43818         tests/uninorm/test-u16-normcmp.c.
43819         * tests/uninorm/test-u16-normcmp.c: Include it.
43820         (test_nonascii): New function, extracted from main. Add some more
43821         tests.
43822         (main): Invoke test_ascii and test_nonascii.
43823         * modules/uninorm/u16-normcmp-tests (Files): Add
43824         tests/uninorm/test-u16-normcmp.h.
43825         (Depends-on): Remove uninorm/u16-normcmp.
43826
43827         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
43828         tests/uninorm/test-u8-normcmp.c.
43829         * tests/uninorm/test-u8-normcmp.c: Include it.
43830         (test_nonascii): New function, extracted from main. Add some more
43831         tests.
43832         (main): Invoke test_ascii and test_nonascii.
43833         * modules/uninorm/u8-normcmp-tests (Files): Add
43834         tests/uninorm/test-u8-normcmp.h.
43835         (Depends-on): Remove uninorm/u8-normcmp.
43836
43837 2009-03-07  Bruno Haible  <bruno@clisp.org>
43838
43839         New module 'uninorm/u32-normcoll'.
43840         * lib/uninorm/u32-normcoll.c: New file.
43841         * modules/uninorm/u32-normcoll: New file.
43842
43843         New module 'uninorm/u16-normcoll'.
43844         * lib/uninorm/u16-normcoll.c: New file.
43845         * modules/uninorm/u16-normcoll: New file.
43846
43847         New module 'uninorm/u8-normcoll'.
43848         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
43849         declarations.
43850         * lib/uninorm/u8-normcoll.c: New file.
43851         * lib/uninorm/u-normcoll.h: New file.
43852         * modules/uninorm/u8-normcoll: New file.
43853
43854         New module 'uninorm/u32-normxfrm'.
43855         * lib/uninorm/u32-normxfrm.c: New file.
43856         * modules/uninorm/u32-normxfrm: New file.
43857
43858         New module 'uninorm/u16-normxfrm'.
43859         * lib/uninorm/u16-normxfrm.c: New file.
43860         * modules/uninorm/u16-normxfrm: New file.
43861
43862         New module 'uninorm/u8-normxfrm'.
43863         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
43864         declarations.
43865         * lib/uninorm/u8-normxfrm.c: New file.
43866         * lib/uninorm/u-normxfrm.h: New file.
43867         * modules/uninorm/u8-normxfrm: New file.
43868
43869 2009-03-07  Bruno Haible  <bruno@clisp.org>
43870
43871         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
43872         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
43873         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
43874
43875 2009-03-07  Bruno Haible  <bruno@clisp.org>
43876
43877         New module 'memxfrm'.
43878         * lib/memxfrm.h: New file.
43879         * lib/memxfrm.c: New file.
43880         * modules/memxfrm: New file.
43881
43882 2009-03-07  Bruno Haible  <bruno@clisp.org>
43883
43884         New module 'memcmp2'.
43885         * lib/memcmp2.h: New file.
43886         * lib/memcmp2.c: New file.
43887         * modules/memcmp2: New file.
43888
43889 2009-03-07  Bruno Haible  <bruno@clisp.org>
43890
43891         Tests for module 'uninorm/decomposing-form'.
43892         * modules/uninorm/decomposing-form-tests: New file.
43893         * tests/uninorm/test-decomposing-form.c: New file.
43894
43895         New module 'uninorm/decomposing-form'.
43896         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
43897         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
43898         Add 'decomposing_variant' field.
43899         * lib/uninorm/decomposing-form.c: New file.
43900         * lib/uninorm/nfc.c (uninorm_nfc): Update.
43901         * lib/uninorm/nfd.c (uninorm_nfd): Update.
43902         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
43903         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
43904         * modules/uninorm/decomposing-form: New file.
43905         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
43906         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
43907
43908 2009-03-07  Bruno Haible  <bruno@clisp.org>
43909
43910         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
43911         strings.
43912
43913 2009-03-06  Bruno Haible  <bruno@clisp.org>
43914
43915         Tests for module 'uninorm/u32-normcmp'.
43916         * tests/uninorm/test-u32-normcmp.c: New file.
43917         * modules/uninorm/u32-normcmp-tests: New file.
43918
43919         Tests for module 'uninorm/u16-normcmp'.
43920         * tests/uninorm/test-u16-normcmp.c: New file.
43921         * modules/uninorm/u16-normcmp-tests: New file.
43922
43923         Tests for module 'uninorm/u8-normcmp'.
43924         * tests/uninorm/test-u8-normcmp.c: New file.
43925         * modules/uninorm/u8-normcmp-tests: New file.
43926
43927         New module 'uninorm/u32-normcmp'.
43928         * lib/uninorm/u32-normcmp.c: New file.
43929         * modules/uninorm/u32-normcmp: New file.
43930
43931         New module 'uninorm/u16-normcmp'.
43932         * lib/uninorm/u16-normcmp.c: New file.
43933         * modules/uninorm/u16-normcmp: New file.
43934
43935         New module 'uninorm/u8-normcmp'.
43936         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
43937         declarations.
43938         * lib/uninorm/u8-normcmp.c: New file.
43939         * lib/uninorm/u-normcmp.h: New file.
43940         * modules/uninorm/u8-normcmp: New file.
43941
43942 2009-03-06  Bruno Haible  <bruno@clisp.org>
43943
43944         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
43945         Reported by Eric Blake.
43946
43947 2009-03-06  Eric Blake  <ebb9@byu.net>
43948             Bruno Haible  <bruno@clisp.org>
43949
43950         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
43951         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
43952         condition.
43953         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43954         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
43955         condition.
43956         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
43957
43958 2009-03-06  Eric Blake  <ebb9@byu.net>
43959
43960         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
43961         to avoid compiler warnings.
43962         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
43963
43964 2009-03-05  Bruno Haible  <bruno@clisp.org>
43965
43966         * tests/test-ftell.c (main): Disable test beyond end of file on
43967         FreeMiNT.
43968         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43969
43970 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
43971
43972         * lib/filevercmp.c: Move hidden files up in ordering.
43973         * tests/test-filevercmp.c: Add tests for hidden files.
43974
43975 2009-03-04  Bruno Haible  <bruno@clisp.org>
43976
43977         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
43978         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
43979         AM_CFLAGS.
43980         Reported by Simon Josefsson.
43981
43982 2009-03-03  Bruno Haible  <bruno@clisp.org>
43983
43984         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
43985         Reported by Simon Josefsson.
43986
43987         * doc/ld-version-script.texi: Update node reference.
43988
43989 2009-03-03  Bruno Haible  <bruno@clisp.org>
43990
43991         * modules/visibility (License): Change to 'unlimited'.
43992         Suggested by Simon Josefsson.
43993
43994 2009-03-03  Jim Meyering  <meyering@redhat.com>
43995
43996         unlinkdir: cannot_unlink_dir may modify process state
43997         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
43998         it's neither thread-safe nor appropriate for use in a library.
43999
44000 2009-03-03  Eric Blake  <ebb9@byu.net>
44001
44002         test-closein: silence test under Darwin
44003         * tests/test-closein.sh: Ignore stderr from cat, since we don't
44004         care if it dies from EPIPE or EBADF.
44005
44006 2009-03-03  Bruno Haible  <bruno@clisp.org>
44007
44008         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
44009         earlier.
44010         * doc/visibility.texi: Fix @node and @section.
44011
44012 2009-03-03  Simon Josefsson  <simon@josefsson.org>
44013
44014         * doc/gnulib.texi: Link to sections for ld version script and
44015         visibility.
44016         * doc/visibility.texi: Add @node and @section.
44017         * modules/ld-version-script: New module.
44018         * m4/ld-version-script.m4: New file.
44019         * doc/ld-version-script.texi: New file.
44020
44021 2009-03-02  David Lutterkort  <lutter@redhat.com>
44022
44023         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
44024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44025
44026 2009-03-02  Bruno Haible  <bruno@clisp.org>
44027
44028         * doc/visibility.texi: Mention libtool's -export-symbols option.
44029
44030 2009-03-02  Jim Meyering  <meyering@redhat.com>
44031
44032         announce-gen: new option: --no-print-checksums
44033         * build-aux/announce-gen (usage): Describe it.
44034         (print_checksums): Print a newline here, not in the [*] footnote.
44035         (main): Honor it.
44036
44037 2009-03-01  Bruno Haible  <bruno@clisp.org>
44038
44039         Use socklen_t in the native Windows replacements prototypes.
44040         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
44041         instead of 'int'.
44042         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44043         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44044         * modules/getsockopt (Depends-on): Add socklen.
44045         * modules/setsockopt (Depends-on): Add socklen.
44046
44047 2009-03-01  Bruno Haible  <bruno@clisp.org>
44048
44049         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
44050         least 4.2.
44051
44052 2009-03-01  Eric Blake  <ebb9@byu.net>
44053             Bruno Haible  <bruno@clisp.org>
44054
44055         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
44056         error messages.
44057         * lib/wait-process.c (wait_subprocess): Omit error message about
44058         deadly signal sent to the child of termsigp != NULL.
44059
44060 2009-03-01  Eric Blake  <ebb9@byu.net>
44061
44062         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
44063
44064 2009-03-01  Bruno Haible  <bruno@clisp.org>
44065
44066         Avoid a gcc warning.
44067         * tests/test-sched.c (b): Make global.
44068         Reported by Eric Blake.
44069
44070 2009-01-19  Martin Lambers  <marlam@marlam.de>
44071
44072         Provide POSIX semantics for socket timeout options on W32.
44073         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
44074         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
44075         * modules/setsockopt: Depend on sys_time module for struct timeval.
44076         * modules/getsockopt: Depend on sys_time module for struct timeval.
44077
44078 2009-03-01  Simon Josefsson  <simon@josefsson.org>
44079
44080         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
44081         __USE_GNU, for consistency with netdb.in.h.
44082         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44083
44084 2009-03-01  Bruno Haible  <bruno@clisp.org>
44085
44086         More support for FreeMiNT.
44087         * lib/fseeko.c (rpl_fseeko): Complete last commit.
44088         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44089
44090 2009-03-01  Bruno Haible  <bruno@clisp.org>
44091
44092         More support for FreeMiNT.
44093         * lib/fpurge.c (fpurge): Correct last commit.
44094         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44095
44096 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44097
44098         Fix unportable awk script in vc-list-files.
44099         * build-aux/vc-list-files: In the replacement awk script, use
44100         substr with a second argument of 1, not zero.
44101         Report by Simon Josefsson.
44102
44103 2009-02-28  Bruno Haible  <bruno@clisp.org>
44104
44105         More support for FreeMiNT.
44106         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
44107         to FreeMiNT today.
44108         * lib/fwriting.c (fwriting): Likewise.
44109         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
44110
44111 2009-02-28  Bruno Haible  <bruno@clisp.org>
44112
44113         * tests/test-freadseek.c (main): Disable test beyond end of file on
44114         FreeMiNT.
44115         * tests/test-ftello.c (main): Likewise.
44116         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44117
44118 2009-02-28  Bruno Haible  <bruno@clisp.org>
44119
44120         Add tentative support for FreeMiNT.
44121         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
44122         * lib/fpurge.c (fpurge): Likewise.
44123         * lib/freadable.c (freadable): Likewise.
44124         * lib/freading.c (freading): Likewise.
44125         * lib/freadptr.c (freadptr): Likewise.
44126         * lib/freadseek.c (freadptrinc): Likewise.
44127         * lib/fseeko.c (rpl_fseeko): Likewise.
44128         * lib/fseterr.c (fseterr): Likewise.
44129         * lib/fwritable.c (fwritable): Likewise.
44130         * lib/fwriting.c (fwriting): Likewise.
44131         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
44132         Hourihane.
44133         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44134
44135 2009-02-28  Bruno Haible  <bruno@clisp.org>
44136
44137         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
44138         SIGCHLD.
44139         Reported by Jim Meyering.
44140
44141 2009-02-28  Bruno Haible  <bruno@clisp.org>
44142
44143         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
44144         Mention the results of these tests on various platforms.
44145         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
44146         order.
44147         * doc/posix-functions/printf.texi: Likewise.
44148         * doc/posix-functions/snprintf.texi: Likewise.
44149         * doc/posix-functions/sprintf.texi: Likewise.
44150         * doc/posix-functions/vfprintf.texi: Likewise.
44151         * doc/posix-functions/vprintf.texi: Likewise.
44152         * doc/posix-functions/vsnprintf.texi: Likewise.
44153         * doc/posix-functions/vsprintf.texi: Likewise.
44154         * doc/glibc-functions/obstack_printf.texi: Likewise.
44155         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44156
44157 2009-02-28  Bruno Haible  <bruno@clisp.org>
44158
44159         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
44160         Reported by Loïc Minier <lool@dooz.org>.
44161
44162 2009-02-27  Bruno Haible  <bruno@clisp.org>
44163
44164         * gnulib-tool (func_import): Make the sed expression used to create the
44165         sed script for updating the .gitignore file POSIX compliant.
44166         Reported by Eric Blake.
44167
44168 2009-02-27  Bruno Haible  <bruno@clisp.org>
44169
44170         * gnulib-tool (sed): Don't alias as "sed --posix".
44171         Reported by Eric Blake.
44172
44173 2009-02-27  Bruno Haible  <bruno@clisp.org>
44174
44175         Avoid test link errors.
44176         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
44177         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
44178         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
44179         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
44180         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44181
44182 2009-02-27  Bruno Haible  <bruno@clisp.org>
44183
44184         Avoid spurious "(cached)" in configure output.
44185         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
44186         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
44187         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44188         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44189         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44190         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
44191         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44192         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
44193         Reported by Eric Blake.
44194
44195 2009-02-27  Eric Blake  <ebb9@byu.net>
44196
44197         printf: fix regression in previous patch
44198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
44199
44200 2009-02-27  Bruno Haible  <bruno@clisp.org>
44201
44202         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
44203         value.
44204         * lib/stdint.in.h: Likewise.
44205         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
44206
44207 2009-02-27  Eric Blake  <ebb9@byu.net>
44208
44209         doc: mention more functions added in cygwin 1.7.0
44210         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
44211         addition.
44212         * doc/posix-functions/open_wmemstream.texi: Likewise.
44213         * doc/posix-functions/wcsnlen.texi: Likewise.
44214         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44215         * doc/posix-functions/wcstod.texi: Likewise.
44216         * doc/posix-functions/wcstof.texi: Likewise.
44217         * doc/posix-functions/wcstoimax.texi: Likewise.
44218         * doc/posix-functions/wcstok.texi: Likewise.
44219         * doc/posix-functions/wcstoumax.texi: Likewise.
44220
44221         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
44222         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
44223         * doc/posix-functions/fprintf.texi: Update.
44224         * doc/posix-functions/printf.texi: Update.
44225         * doc/posix-functions/snprintf.texi: Update.
44226         * doc/posix-functions/sprintf.texi: Update.
44227         * doc/posix-functions/vfprintf.texi: Update.
44228         * doc/posix-functions/vprintf.texi: Update.
44229         * doc/posix-functions/vsnprintf.texi: Update.
44230         * doc/posix-functions/vsprintf.texi: Update.
44231         * doc/glibc-functions/obstack_printf.texi: Update.
44232         * doc/glibc-functions/obstack_vprintf.texi: Update.
44233
44234 2009-02-26  Eric Blake  <ebb9@byu.net>
44235
44236         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
44237         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
44238         compilation bug by using runtime conversion.
44239         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44240         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
44241         * modules/ceill-tests (Files): Use nan.h.
44242         * modules/floorl-tests (Files): Likewise.
44243         * modules/frexpl-tests (Files): Likewise.
44244         * modules/isnanl-tests (Files): Likewise.
44245         * modules/ldexpl-tests (Files): Likewise.
44246         * modules/roundl-tests (Files): Likewise.
44247         * modules/truncl-tests (Files): Likewise.
44248         * tests/test-ceill.c (main): Use a working NaN.
44249         * tests/test-floorl.c (main): Likewise.
44250         * tests/test-frexpl.c (main): Likewise.
44251         * tests/test-isnan.c (test_long_double): Likewise.
44252         * tests/test-isnanl.h (main): Likewise.
44253         * tests/test-ldexpl.h (main): Likewise.
44254         * tests/test-roundl.h (main): Likewise.
44255         * tests/test-truncl.h (main): Likewise.
44256         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
44257
44258 2009-02-26  Eric Blake  <ebb9@byu.net>
44259             Bruno Haible  <bruno@clisp.org>
44260
44261         Work around a *printf bug with %ls on Solaris.
44262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
44263         precision is specified, sprintf stops converting the wide string
44264         argument when the number of bytes that have been produced by this
44265         conversion equals or exceeds the precision.
44266         * doc/posix-functions/fprintf.texi: Update.
44267         * doc/posix-functions/printf.texi: Update.
44268         * doc/posix-functions/snprintf.texi: Update.
44269         * doc/posix-functions/sprintf.texi: Update.
44270         * doc/posix-functions/vfprintf.texi: Update.
44271         * doc/posix-functions/vprintf.texi: Update.
44272         * doc/posix-functions/vsnprintf.texi: Update.
44273         * doc/posix-functions/vsprintf.texi: Update.
44274         * doc/glibc-functions/obstack_printf.texi: Update.
44275         * doc/glibc-functions/obstack_vprintf.texi: Update.
44276
44277 2009-02-26  Eric Blake  <ebb9@byu.net>
44278
44279         stdlib: favor compiler check of random.h
44280         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
44281         to avoid an ObjC random.h installed by Swarm.
44282
44283 2009-02-26  Bruno Haible  <bruno@clisp.org>
44284
44285         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
44286         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
44287         Reported by Gary V. Vaughan <gary@gnu.org>.
44288
44289 2009-02-26  Bruno Haible  <bruno@clisp.org>
44290
44291         Fix *printf behaviour regarding the %ls directive.
44292         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
44293         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
44294         NEED_PRINTF_DIRECTIVE_LS.
44295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
44296         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44298         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
44299         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
44300         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
44301         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44302         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44306         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
44307         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44308         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44310         * doc/posix-functions/fprintf.texi: Update.
44311         * doc/posix-functions/printf.texi: Update.
44312         * doc/posix-functions/snprintf.texi: Update.
44313         * doc/posix-functions/sprintf.texi: Update.
44314         * doc/posix-functions/vfprintf.texi: Update.
44315         * doc/posix-functions/vprintf.texi: Update.
44316         * doc/posix-functions/vsnprintf.texi: Update.
44317         * doc/posix-functions/vsprintf.texi: Update.
44318         * doc/glibc-functions/obstack_printf.texi: Update.
44319         * doc/glibc-functions/obstack_vprintf.texi: Update.
44320         Reported by Eric Blake.
44321
44322 2009-02-25  Bruno Haible  <bruno@clisp.org>
44323
44324         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
44325         with known value.
44326         Reported by Gary V. Vaughan <gary@gnu.org>.
44327
44328 2009-02-25  Bruno Haible  <bruno@clisp.org>
44329
44330         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
44331         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
44332         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
44333         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
44334         Reported by Gary V. Vaughan <gary@gnu.org>.
44335
44336 2009-02-25  Bruno Haible  <bruno@clisp.org>
44337
44338         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
44339         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
44340         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
44341         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
44342         Reported by Gary V. Vaughan <gary@gnu.org>.
44343
44344 2009-02-25  Eric Blake  <ebb9@byu.net>
44345
44346         tests: skip fseek/ftell tests if ungetc is broken
44347         * m4/ungetc.m4: New file.
44348         * modules/fseek-tests: Split test, so ungetc dependency is
44349         separate from rest of test.
44350         * modules/fseeko-tests: Likewise.
44351         * modules/ftell-tests: Likewise.
44352         * modules/ftello-tests: Likewise.
44353         * tests/test-fseek.c (main): Isolate ungetc dependency.
44354         * tests/test-fseeko.c (main): Likewise.
44355         * tests/test-ftell.c (main): Likewise.
44356         * tests/test-ftello.c (main): Likewise.
44357         * tests/test-fseek2.sh: New file.
44358         * tests/test-fseeko2.sh: Likewise.
44359         * tests/test-ftell2.sh: Likewise.
44360         * tests/test-ftello2.sh: Likewise.
44361
44362 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
44363
44364         test-getaddrinfo: fix usage of skip return code 77
44365         * tests/test-gettaddrinfo.c: Return skip code 77 only
44366         for first occurance of skip (4x77 is not 77)
44367
44368 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
44369
44370         strtod: avoid C99 decl-after-statement
44371         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
44372
44373 2009-02-24  Eric Blake  <ebb9@byu.net>
44374
44375         strtod: detect HP-UX 11.31 bug
44376         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
44377         Reported by Gary V. Vaughan.
44378
44379 2009-02-23  Bruno Haible  <bruno@clisp.org>
44380
44381         Fix invalid read past end of memory block.
44382         * lib/vasnprintf.c (DCHAR_SET): Define.
44383         (local_wcslen): Define only when needed.
44384         (local_strnlen, local_wcsnlen): New functions.
44385         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
44386         directives that involve a conversion ourselves.
44387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
44388         wcsnlen, mbrtowc, wcrtomb.
44389         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
44390         * tests/test-vasprintf-posix.c (test_function): Likewise.
44391         * tests/test-snprintf-posix.h (test_function): Likewise.
44392         * tests/test-sprintf-posix.h (test_function): Likewise.
44393         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44394
44395 2009-02-22  Bruno Haible  <bruno@clisp.org>
44396
44397         Implement new clarified decomposition of Hangul syllables.
44398         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
44399         of type LTV, return only a pairwise decomposition.
44400         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
44401         Likewise.
44402         * tests/uninorm/test-decomposition.c (main): Updated expected result.
44403         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
44404         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
44405
44406 2009-02-22  Bruno Haible  <bruno@clisp.org>
44407
44408         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
44409         zero-length results and shrink excess allocated memory.
44410         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
44411         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
44412         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
44413         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
44414         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
44415         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
44416         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
44417         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
44418         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
44419         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
44420         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
44421         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
44422
44423 2009-02-21  Bruno Haible  <bruno@clisp.org>
44424
44425         * doc/gnulib.texi: Include safe-alloc.texi earlier.
44426         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
44427         spaces after a period. Put a space between a macro name and its
44428         argument list. Trivial rewordings.
44429         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
44430         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
44431         (main): Return 0 explicitly.
44432
44433 2009-02-21  Bruno Haible  <bruno@clisp.org>
44434
44435         Tests for module 'uninorm/filter'.
44436         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
44437         * modules/uninorm/filter-tests: New file.
44438
44439         New module 'uninorm/filter'.
44440         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
44441         uninorm_filter_flush, uninorm_filter_free): New declarations.
44442         * lib/uninorm/uninorm-filter.c: New file.
44443         * modules/uninorm/filter: New file.
44444
44445 2009-02-21  Bruno Haible  <bruno@clisp.org>
44446
44447         Tests for module 'uninorm/nfkc'.
44448         * tests/uninorm/test-nfkc.c: New file.
44449         * tests/uninorm/test-u8-nfkc.c: New file.
44450         * tests/uninorm/test-u16-nfkc.c: New file.
44451         * tests/uninorm/test-u32-nfkc.c: New file.
44452         * tests/uninorm/test-u32-nfkc-big.sh: New file.
44453         * tests/uninorm/test-u32-nfkc-big.c: New file.
44454         * modules/uninorm/nfkc-tests: New file.
44455
44456         New module 'uninorm/nfkc'.
44457         * lib/uninorm/nfkc.c: New file.
44458         * modules/uninorm/nfkc: New file.
44459
44460         Tests for module 'uninorm/nfkd'.
44461         * tests/uninorm/test-nfkd.c: New file.
44462         * tests/uninorm/test-u8-nfkd.c: New file.
44463         * tests/uninorm/test-u16-nfkd.c: New file.
44464         * tests/uninorm/test-u32-nfkd.c: New file.
44465         * tests/uninorm/test-u32-nfkd-big.sh: New file.
44466         * tests/uninorm/test-u32-nfkd-big.c: New file.
44467         * modules/uninorm/nfkd-tests: New file.
44468
44469         New module 'uninorm/nfkd'.
44470         * lib/uninorm/nfkd.c: New file.
44471         * modules/uninorm/nfkd: New file.
44472
44473         Tests for module 'uninorm/nfc'.
44474         * tests/uninorm/test-nfc.c: New file.
44475         * tests/uninorm/test-u8-nfc.c: New file.
44476         * tests/uninorm/test-u16-nfc.c: New file.
44477         * tests/uninorm/test-u32-nfc.c: New file.
44478         * tests/uninorm/test-u32-nfc-big.sh: New file.
44479         * tests/uninorm/test-u32-nfc-big.c: New file.
44480         * modules/uninorm/nfc-tests: New file.
44481
44482         New module 'uninorm/nfc'.
44483         * lib/uninorm/nfc.c: New file.
44484         * modules/uninorm/nfc: New file.
44485
44486         Tests for module 'uninorm/nfd'.
44487         * tests/uninorm/test-nfd.c: New file.
44488         * tests/uninorm/test-u8-nfd.c: New file.
44489         * tests/uninorm/test-u16-nfd.c: New file.
44490         * tests/uninorm/test-u32-nfd.c: New file.
44491         * tests/uninorm/test-u32-nfd-big.sh: New file.
44492         * tests/uninorm/test-u32-nfd-big.c: New file.
44493         * tests/uninorm/test-u32-normalize-big.h: New file.
44494         * tests/uninorm/test-u32-normalize-big.c: New file.
44495         * tests/uninorm/NormalizationTest.txt: New file, created from
44496         Unicode 5.1.0 NormalizationTest.txt.
44497         * modules/uninorm/nfd-tests: New file.
44498
44499         New module 'uninorm/nfd'.
44500         * lib/uninorm/nfd.c: New file.
44501         * modules/uninorm/nfd: New file.
44502
44503         New module 'uninorm/u32-normalize'.
44504         * lib/uninorm/u32-normalize.c: New file.
44505         * modules/uninorm/u32-normalize: New file.
44506
44507         New module 'uninorm/u16-normalize'.
44508         * lib/uninorm/u16-normalize.c: New file.
44509         * modules/uninorm/u16-normalize: New file.
44510
44511         New module 'uninorm/u8-normalize'.
44512         * lib/uninorm/u8-normalize.c: New file.
44513         * lib/uninorm/normalize-internal.h: New file.
44514         * lib/uninorm/u-normalize-internal.h: New file.
44515         * modules/uninorm/u8-normalize: New file.
44516
44517         New module 'uninorm/decompose-internal'.
44518         * lib/uninorm/decompose-internal.c: New file.
44519         * modules/uninorm/decompose-internal: New file.
44520
44521         Tests for module 'uninorm/composition'.
44522         * tests/uninorm/test-composition.c: New file.
44523         * modules/uninorm/composition-tests: New file.
44524
44525         New module 'uninorm/composition'.
44526         * lib/uninorm/composition.c: New file.
44527         * lib/uninorm/composition-table.gperf: New file, generated by
44528         gen-uni-tables.
44529         * modules/uninorm/composition: New file.
44530
44531         Tests for module 'uninorm/compat-decomposition'.
44532         * tests/uninorm/test-compat-decomposition.c: New file.
44533         * modules/uninorm/compat-decomposition-tests: New file.
44534
44535         New module 'uninorm/compat-decomposition'.
44536         * lib/uninorm/decompose-internal.h: New file.
44537         * lib/uninorm/compat-decomposition.c: New file.
44538         * modules/uninorm/compat-decomposition: New file.
44539
44540         Tests for module 'uninorm/canonical-decomposition'.
44541         * tests/uninorm/test-canonical-decomposition.c: New file.
44542         * modules/uninorm/canonical-decomposition-tests: New file.
44543
44544         New module 'uninorm/canonical-decomposition'.
44545         * lib/uninorm/canonical-decomposition.c: New file.
44546         * modules/uninorm/canonical-decomposition: New file.
44547
44548         Tests for module 'uninorm/decomposition'.
44549         * tests/uninorm/test-decomposition.c: New file.
44550         * modules/uninorm/decomposition-tests: New file.
44551
44552         New module 'uninorm/decomposition'.
44553         * lib/uninorm/decomposition.c: New file.
44554         * modules/uninorm/decomposition: New file.
44555
44556         New module 'uninorm/decomposition-table'.
44557         * lib/uninorm/decomposition-table.h: New file.
44558         * lib/uninorm/decomposition-table.c: New file.
44559         * lib/uninorm/decomposition-table1.h: New file, generated by
44560         gen-uni-tables.
44561         * lib/uninorm/decomposition-table2.h: New file, generated by
44562         gen-uni-tables.
44563         * modules/uninorm/decomposition-table: New file.
44564
44565         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
44566         (UC_DECOMP_*): New enumeration items.
44567         (get_decomposition): New function.
44568         (struct decomp_table): New type.
44569         (output_decomposition, output_decomposition_tables): New functions.
44570         (unicode_composition_exclusions): New variable.
44571         (fill_composition_exclusions, debug_output_composition_tables): New
44572         functions.
44573         (main): Accept one more argument. Invoke fill_composition_exclusions.
44574         Output decomposition and composition tables.
44575
44576         New module 'uninorm/base'.
44577         * lib/uninorm.h: New file.
44578         * lib/unictype.h: Update comment.
44579         * modules/uninorm/base: New file.
44580
44581 2009-02-21  David Lutterkort  <lutter@redhat.com>
44582
44583         Tests for module 'safe-alloc'.
44584         * tests/test-safe-alloc.c: New file.
44585         * modules/safe-alloc-tests: New file.
44586
44587         New module 'safe-alloc'.
44588         * lib/safe-alloc.h: New file.
44589         * lib/safe-alloc.c: New file.
44590         * m4/safe-alloc.m4: New file.
44591         * modules/safe-alloc: New file.
44592         * doc/safe-alloc.texi: New file.
44593         * doc/gnulib.texi: Include it.
44594         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
44595         safe-alloc.
44596
44597 2009-02-18  Bruno Haible  <bruno@clisp.org>
44598
44599         Fix link error on non-glibc systems.
44600         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
44601         variable.
44602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44603
44604 2009-02-18  Jim Meyering  <meyering@redhat.com>
44605
44606         fts: avoid used-uninitialized error due to recent change
44607         * lib/fts.c (fts_read): Guard uses of the new member,
44608         parent->fts_n_dirs_remaining, since it's not relevant for
44609         the parent of a directory specified on the command-line.
44610
44611 2009-02-17  James Youngman  <jay@gnu.org>
44612             Bruno Haible  <bruno@clisp.org>
44613
44614         * m4/include_next.m4: Reformulate comment.
44615
44616 2009-02-16  Jim Meyering  <meyering@redhat.com>
44617
44618         fts: add #if guards so that the fts_lgpl module still builds
44619         * lib/fts.c: Guard just-added hash-table-using parts with
44620         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
44621         Reported by Simon Josefsson.
44622
44623 2009-02-15  Bruno Haible  <bruno@clisp.org>
44624
44625         * modules/array-mergesort-tests: New file.
44626         * tests/test-array-mergesort.c: New file.
44627
44628         New module 'array-mergesort'.
44629         * modules/array-mergesort: New file.
44630         * lib/array-mergesort.h: New file.
44631
44632 2009-02-15  Bruno Haible  <bruno@clisp.org>
44633
44634         Fix 2009-02-07 commit.
44635         * lib/gen-uni-tables.c (output_predicate, output_category,
44636         output_combclass, output_bidi_category, output_decimal_digit,
44637         output_digit, output_numeric, output_mirror, output_scripts,
44638         output_ident_category, output_simple_mapping): Fix format directives.
44639         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
44640
44641 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
44642
44643         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
44644         fixes are available from IBM.
44645
44646 2009-02-13  Jim Meyering  <meyering@redhat.com>
44647
44648         fts: arrange not to stat non-directories in more cases
44649         This makes GNU find (when it doesn't need to stat each file)
44650         *much* more efficient at traversing reiserfs file systems.
44651         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
44652         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
44653         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
44654         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
44655         (leaf_optimization_applies): New function.
44656         (LCO_hash, LCO_compare): New helper functions.
44657         (link_count_optimize_ok): New function.
44658         (fts_stat): Initialize new member (if dir).
44659         (fts_read): Decrement parent's fts_n_dirs_remaining count if
44660         we've just stat'ed a directory.  Skip the stat call when possible.
44661         ---
44662         Note this AFS-related exchange:
44663         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
44664         and note find's pioctl call in find/fstype.c.
44665         But that is necessary only if you want to enable the
44666         optimization for AFS, and for now, I don't.
44667
44668         fts: move a function definition "up" (no semantic change)
44669         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
44670         "up" to precede upcoming use of a related function.
44671
44672 2009-02-11  Jim Meyering  <meyering@redhat.com>
44673
44674         fts: correct internal computation of nlinks (optimization-related)
44675         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
44676         whether the current entry is a directory, so don't test it.
44677
44678 2009-02-10  Bruno Haible  <bruno@clisp.org>
44679
44680         Tests for module 'uniwbrk/ulc-wordbreaks'.
44681         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
44682         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
44683         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
44684
44685         Tests for module 'uniwbrk/u32-wordbreaks'.
44686         * modules/uniwbrk/u32-wordbreaks-tests: New file.
44687         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
44688
44689         Tests for module 'uniwbrk/u16-wordbreaks'.
44690         * modules/uniwbrk/u16-wordbreaks-tests: New file.
44691         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
44692
44693         Tests for module 'uniwbrk/u8-wordbreaks'.
44694         * modules/uniwbrk/u8-wordbreaks-tests: New file.
44695         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
44696
44697 2009-02-10  Bruno Haible  <bruno@clisp.org>
44698
44699         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
44700         property.
44701         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
44702         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
44703         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
44704
44705 2009-02-10  Simon Josefsson  <simon@josefsson.org>
44706
44707         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
44708         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
44709
44710 2009-02-10  Bruno Haible  <bruno@clisp.org>
44711
44712         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
44713         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
44714         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
44715         * lib/unilbrk/u8-possible-linebreaks.c: Update.
44716         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
44717         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
44718
44719 2009-02-09  Simon Josefsson  <simon@josefsson.org>
44720
44721         * lib/sockets.h (gl_fd_to_handle): New function.
44722
44723         * tests/test-sockets.c: Call gl_fd_to_handle.
44724
44725 2009-02-09  Bruno Haible  <bruno@clisp.org>
44726
44727         * doc/havelib.texi: Document the conventions on bi-arch systems.
44728
44729 2009-02-08  Bruno Haible  <bruno@clisp.org>
44730
44731         Document the AC_LIB_LINKFLAGS macro.
44732         * doc/havelib.texi: New file, mostly written on 2005-05-24.
44733         * doc/gnulib.texi: Include it.
44734
44735 2009-02-08  Bruno Haible  <bruno@clisp.org>
44736
44737         Fix wrong order of sections, compared to TOC.
44738         * doc/gnulib.texi: Include relocatable-maint.texi after the
44739         "Regular expressions" node, not before.
44740
44741 2009-02-08  Bruno Haible  <bruno@clisp.org>
44742
44743         Tests for module 'unicase/totitle'.
44744         * modules/unicase/totitle-tests: New file.
44745
44746         Tests for module 'unicase/tolower'.
44747         * modules/unicase/tolower-tests: New file.
44748
44749         Tests for module 'unicase/toupper'.
44750         * modules/unicase/toupper-tests: New file.
44751         * tests/unicase/test-mapping-part1.h: New file.
44752         * tests/unicase/test-mapping-part2.h: New file.
44753
44754         New module 'unicase/totitle'.
44755         * modules/unicase/totitle: New file.
44756         * lib/unicase/totitle.c: New file.
44757
44758         New module 'unicase/tolower'.
44759         * modules/unicase/tolower: New file.
44760         * lib/unicase/tolower.c: New file.
44761
44762         New module 'unicase/toupper'.
44763         * modules/unicase/toupper: New file.
44764         * lib/unicase/toupper.c: New file.
44765         * lib/unicase/simple-mapping.h: New file.
44766
44767         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
44768         (mapping_table): New structure.
44769         (output_simple_mapping): New function.
44770         (main): Invoke output_simple_mapping_test and output_simple_mapping.
44771         * modules/gen-uni-tables (Description): Update.
44772         * lib/unicase/toupper.h: New file, automatically generated by
44773         gen-uni-tables.
44774         * lib/unicase/tolower.h: New file, automatically generated by
44775         gen-uni-tables.
44776         * lib/unicase/totitle.h: New file, automatically generated by
44777         gen-uni-tables.
44778         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
44779         gen-uni-tables.
44780         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
44781         gen-uni-tables.
44782         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
44783         gen-uni-tables.
44784
44785         New module 'unicase/base'.
44786         * modules/unicase/base: New file.
44787         * lib/unicase.h: New file.
44788
44789 2009-02-08  Bruno Haible  <bruno@clisp.org>
44790
44791         New module 'uniwbrk/ulc-wordbreaks'.
44792         * modules/uniwbrk/ulc-wordbreaks: New file.
44793         * lib/uniwbrk/ulc-wordbreaks.c: New file.
44794
44795         New module 'uniwbrk/u32-wordbreaks'.
44796         * modules/uniwbrk/u32-wordbreaks: New file.
44797         * lib/uniwbrk/u32-wordbreaks.c: New file.
44798
44799         New module 'uniwbrk/u16-wordbreaks'.
44800         * modules/uniwbrk/u16-wordbreaks: New file.
44801         * lib/uniwbrk/u16-wordbreaks.c: New file.
44802
44803         New module 'uniwbrk/u8-wordbreaks'.
44804         * modules/uniwbrk/u8-wordbreaks: New file.
44805         * lib/uniwbrk/u8-wordbreaks.c: New file.
44806         * lib/uniwbrk/u-wordbreaks.h: New file.
44807
44808         New module 'uniwbrk/table'.
44809         * modules/uniwbrk/table: New file.
44810         * lib/uniwbrk/wbrktable.h: New file.
44811         * lib/uniwbrk/wbrktable.c: New file.
44812
44813         New module 'uniwbrk/wordbreak-property'.
44814         * modules/uniwbrk/wordbreak-property: New file.
44815         * lib/uniwbrk/wordbreak-property.c: New file.
44816
44817         * lib/gen-uni-tables.c (WBP_*): New enum items.
44818         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
44819         (unicode_org_wbp): New variable.
44820         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
44821         New functions.
44822         (wbp_table): New structure.
44823         (output_wbp, output_wbrk_tables): New functions.
44824         (main): Accept additional argument. Invoke fill_org_wbp,
44825         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
44826         output_wbrk_tables.
44827         * modules/gen-uni-tables (Description): Update.
44828         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
44829         gen-uni-tables.
44830
44831         New module 'uniwbrk/base'.
44832         * modules/uniwbrk/base: New file.
44833         * lib/uniwbrk.h: New file.
44834
44835 2009-02-08  Bruno Haible  <bruno@clisp.org>
44836
44837         Update to Unicode 5.1.0.
44838         * lib/gen-uni-tables.c (is_property_alphabetic): Include
44839         U+2185..U+2188.
44840         (is_property_default_ignorable_code_point): Don't include characters
44841         of category Cc or Cs and not-a-characters.
44842         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
44843         U+0D79, U+109E, U+109F, U+A60C.
44844         * lib/unictype/bidi_of.h: Regenerated.
44845         * lib/unictype/blocks.h: Regenerated.
44846         * lib/unictype/categ_C.h: Regenerated.
44847         * lib/unictype/categ_Cf.h: Regenerated.
44848         * lib/unictype/categ_Cn.h: Regenerated.
44849         * lib/unictype/categ_L.h: Regenerated.
44850         * lib/unictype/categ_Ll.h: Regenerated.
44851         * lib/unictype/categ_Lm.h: Regenerated.
44852         * lib/unictype/categ_Lo.h: Regenerated.
44853         * lib/unictype/categ_Lu.h: Regenerated.
44854         * lib/unictype/categ_M.h: Regenerated.
44855         * lib/unictype/categ_Mc.h: Regenerated.
44856         * lib/unictype/categ_Me.h: Regenerated.
44857         * lib/unictype/categ_Mn.h: Regenerated.
44858         * lib/unictype/categ_N.h: Regenerated.
44859         * lib/unictype/categ_Nd.h: Regenerated.
44860         * lib/unictype/categ_Nl.h: Regenerated.
44861         * lib/unictype/categ_No.h: Regenerated.
44862         * lib/unictype/categ_P.h: Regenerated.
44863         * lib/unictype/categ_Pd.h: Regenerated.
44864         * lib/unictype/categ_Pe.h: Regenerated.
44865         * lib/unictype/categ_Pf.h: Regenerated.
44866         * lib/unictype/categ_Pi.h: Regenerated.
44867         * lib/unictype/categ_Po.h: Regenerated.
44868         * lib/unictype/categ_Ps.h: Regenerated.
44869         * lib/unictype/categ_S.h: Regenerated.
44870         * lib/unictype/categ_Sk.h: Regenerated.
44871         * lib/unictype/categ_Sm.h: Regenerated.
44872         * lib/unictype/categ_So.h: Regenerated.
44873         * lib/unictype/categ_of.h: Regenerated.
44874         * lib/unictype/combining.h: Regenerated.
44875         * lib/unictype/ctype_alnum.h: Regenerated.
44876         * lib/unictype/ctype_alpha.h: Regenerated.
44877         * lib/unictype/ctype_graph.h: Regenerated.
44878         * lib/unictype/ctype_lower.h: Regenerated.
44879         * lib/unictype/ctype_print.h: Regenerated.
44880         * lib/unictype/ctype_punct.h: Regenerated.
44881         * lib/unictype/ctype_upper.h: Regenerated.
44882         * lib/unictype/decdigit.h: Regenerated.
44883         * lib/unictype/digit.h: Regenerated.
44884         * lib/unictype/mirror.h: Regenerated.
44885         * lib/unictype/numeric.h: Regenerated.
44886         * lib/unictype/pr_alphabetic.h: Regenerated.
44887         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
44888         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
44889         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
44890         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
44891         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
44892         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
44893         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
44894         * lib/unictype/pr_combining.h: Regenerated.
44895         * lib/unictype/pr_dash.h: Regenerated.
44896         * lib/unictype/pr_decimal_digit.h: Regenerated.
44897         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
44898         * lib/unictype/pr_deprecated.h: Regenerated.
44899         * lib/unictype/pr_diacritic.h: Regenerated.
44900         * lib/unictype/pr_extender.h: Regenerated.
44901         * lib/unictype/pr_format_control.h: Regenerated.
44902         * lib/unictype/pr_grapheme_base.h: Regenerated.
44903         * lib/unictype/pr_grapheme_extend.h: Regenerated.
44904         * lib/unictype/pr_grapheme_link.h: Regenerated.
44905         * lib/unictype/pr_id_continue.h: Regenerated.
44906         * lib/unictype/pr_id_start.h: Regenerated.
44907         * lib/unictype/pr_ideographic.h: Regenerated.
44908         * lib/unictype/pr_ignorable_control.h: Regenerated.
44909         * lib/unictype/pr_lowercase.h: Regenerated.
44910         * lib/unictype/pr_math.h: Regenerated.
44911         * lib/unictype/pr_numeric.h: Regenerated.
44912         * lib/unictype/pr_other_alphabetic.h: Regenerated.
44913         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
44914         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
44915         * lib/unictype/pr_other_id_continue.h: Regenerated.
44916         * lib/unictype/pr_other_lowercase.h: Regenerated.
44917         * lib/unictype/pr_other_math.h: Regenerated.
44918         * lib/unictype/pr_punctuation.h: Regenerated.
44919         * lib/unictype/pr_sentence_terminal.h: Regenerated.
44920         * lib/unictype/pr_soft_dotted.h: Regenerated.
44921         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
44922         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
44923         * lib/unictype/pr_unified_ideograph.h: Regenerated.
44924         * lib/unictype/pr_uppercase.h: Regenerated.
44925         * lib/unictype/pr_xid_continue.h: Regenerated.
44926         * lib/unictype/pr_xid_start.h: Regenerated.
44927         * lib/unictype/pr_zero_width.h: Regenerated.
44928         * lib/unictype/scripts.h: Regenerated.
44929         * lib/unictype/scripts_byname.gperf: Regenerated.
44930         * lib/unictype/sy_java_ident.h: Regenerated.
44931         * lib/unilbrk/lbrkprop1.h: Regenerated.
44932         * lib/unilbrk/lbrkprop2.h: Regenerated.
44933         * tests/unictype/test-categ_C.c: Regenerated.
44934         * tests/unictype/test-categ_Cf.c: Regenerated.
44935         * tests/unictype/test-categ_Cn.c: Regenerated.
44936         * tests/unictype/test-categ_L.c: Regenerated.
44937         * tests/unictype/test-categ_Ll.c: Regenerated.
44938         * tests/unictype/test-categ_Lm.c: Regenerated.
44939         * tests/unictype/test-categ_Lo.c: Regenerated.
44940         * tests/unictype/test-categ_Lu.c: Regenerated.
44941         * tests/unictype/test-categ_M.c: Regenerated.
44942         * tests/unictype/test-categ_Mc.c: Regenerated.
44943         * tests/unictype/test-categ_Me.c: Regenerated.
44944         * tests/unictype/test-categ_Mn.c: Regenerated.
44945         * tests/unictype/test-categ_N.c: Regenerated.
44946         * tests/unictype/test-categ_Nd.c: Regenerated.
44947         * tests/unictype/test-categ_Nl.c: Regenerated.
44948         * tests/unictype/test-categ_No.c: Regenerated.
44949         * tests/unictype/test-categ_P.c: Regenerated.
44950         * tests/unictype/test-categ_Pd.c: Regenerated.
44951         * tests/unictype/test-categ_Pe.c: Regenerated.
44952         * tests/unictype/test-categ_Pf.c: Regenerated.
44953         * tests/unictype/test-categ_Pi.c: Regenerated.
44954         * tests/unictype/test-categ_Po.c: Regenerated.
44955         * tests/unictype/test-categ_Ps.c: Regenerated.
44956         * tests/unictype/test-categ_S.c: Regenerated.
44957         * tests/unictype/test-categ_Sk.c: Regenerated.
44958         * tests/unictype/test-categ_Sm.c: Regenerated.
44959         * tests/unictype/test-categ_So.c: Regenerated.
44960         * tests/unictype/test-ctype_alnum.c: Regenerated.
44961         * tests/unictype/test-ctype_alpha.c: Regenerated.
44962         * tests/unictype/test-ctype_graph.c: Regenerated.
44963         * tests/unictype/test-ctype_lower.c: Regenerated.
44964         * tests/unictype/test-ctype_print.c: Regenerated.
44965         * tests/unictype/test-ctype_punct.c: Regenerated.
44966         * tests/unictype/test-ctype_upper.c: Regenerated.
44967         * tests/unictype/test-decdigit.h: Regenerated.
44968         * tests/unictype/test-digit.h: Regenerated.
44969         * tests/unictype/test-numeric.h: Regenerated.
44970         * tests/unictype/test-pr_alphabetic.c: Regenerated.
44971         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
44972         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
44973         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
44974         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
44975         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
44976         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
44977         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
44978         * tests/unictype/test-pr_combining.c: Regenerated.
44979         * tests/unictype/test-pr_dash.c: Regenerated.
44980         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
44981         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
44982         * tests/unictype/test-pr_deprecated.c: Regenerated.
44983         * tests/unictype/test-pr_diacritic.c: Regenerated.
44984         * tests/unictype/test-pr_extender.c: Regenerated.
44985         * tests/unictype/test-pr_format_control.c: Regenerated.
44986         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
44987         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
44988         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
44989         * tests/unictype/test-pr_id_continue.c: Regenerated.
44990         * tests/unictype/test-pr_id_start.c: Regenerated.
44991         * tests/unictype/test-pr_ideographic.c: Regenerated.
44992         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
44993         * tests/unictype/test-pr_lowercase.c: Regenerated.
44994         * tests/unictype/test-pr_math.c: Regenerated.
44995         * tests/unictype/test-pr_numeric.c: Regenerated.
44996         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
44997         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
44998         Regenerated.
44999         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
45000         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
45001         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
45002         * tests/unictype/test-pr_other_math.c: Regenerated.
45003         * tests/unictype/test-pr_punctuation.c: Regenerated.
45004         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
45005         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
45006         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
45007         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
45008         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
45009         * tests/unictype/test-pr_uppercase.c: Regenerated.
45010         * tests/unictype/test-pr_xid_continue.c: Regenerated.
45011         * tests/unictype/test-pr_xid_start.c: Regenerated.
45012         * tests/unictype/test-pr_zero_width.c: Regenerated.
45013
45014         Update to Unicode 5.1.0.
45015         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
45016         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
45017         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
45018         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
45019         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
45020         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
45021         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
45022         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
45023         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
45024         (nonspacing_table_ind): Update.
45025         * tests/uniwidth/test-uc_width2.sh: Update expected result.
45026
45027         Update to Unicode 5.1.0.
45028         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
45029         code transform.
45030         * lib/uniname/uniname.c (unicode_character_name,
45031         unicode_name_character): Add the range 0x1Fxxx to the code transform.
45032         * lib/uniname/uninames.h: Regenerated.
45033         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
45034
45035 2009-02-07  Bruno Haible  <bruno@clisp.org>
45036
45037         Merge gen-ctype and gen-lbrk into a single program.
45038         * lib/gen-uni-tables.c: New file, incorporating
45039         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
45040         Add directory prefixes to the names of the generated files.
45041         * lib/unictype/gen-ctype.c: Remove file.
45042         * lib/unilbrk/gen-lbrk.c: Remove file.
45043         * modules/gen-uni-tables: New file.
45044         * modules/unictype/gen-ctype: Remove file.
45045         * modules/unilbrk/gen-lbrk: Remove file.
45046
45047 2009-02-07  Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
45050
45051         New module 'unistr/u32-strcoll'.
45052         * modules/unistr/u32-strcoll: New file.
45053         * lib/unistr/u32-strcoll.c: New file.
45054
45055         New module 'unistr/u16-strcoll'.
45056         * modules/unistr/u16-strcoll: New file.
45057         * lib/unistr/u16-strcoll.c: New file.
45058
45059         New module 'unistr/u8-strcoll'.
45060         * modules/unistr/u8-strcoll: New file.
45061         * lib/unistr/u8-strcoll.c: New file.
45062         * lib/unistr/u-strcoll.h: New file.
45063
45064 2009-02-07  Bruno Haible  <bruno@clisp.org>
45065
45066         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
45067         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45068         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45069         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
45070         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
45071         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
45072
45073 2009-02-07  Bruno Haible  <bruno@clisp.org>
45074
45075         Make 64-bit clean.
45076         * lib/unictype/gen-ctype.c (output_predicate, output_category,
45077         output_combclass, output_bidi_category, output_decimal_digit,
45078         output_digit, output_numeric, output_mirror, output_scripts,
45079         output_ident_category): Use proper width specifier in format strings.
45080
45081 2009-02-07  Bruno Haible  <bruno@clisp.org>
45082
45083         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
45084         failure behaviour.
45085
45086 2009-02-07  Jim Meyering  <meyering@redhat.com>
45087
45088         regex: avoid compilation failure with upcoming gcc-4.4
45089         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
45090         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
45091         "... error: integer overflow in preprocessor expression".
45092
45093 2009-02-05  Ben Pfaff  <blp@gnu.org>
45094
45095         Fix link errors on Windows when close module is used.
45096         * modules/close: Add $(LIB_CLOSE) to Link section.
45097         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
45098         $(LIB_CLOSE) on Windows.
45099
45100 2009-02-05  Jim Meyering  <meyering@redhat.com>
45101
45102         still avoid unused-parameter warnings, but do it cleanly
45103         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
45104         (get_fs_usage): Cast to void instead.
45105         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
45106         (dev_from_mount_options, read_file_system_list): Cast to void.
45107         Prompted by Bruno Haible.
45108
45109 2009-02-04  Jim Meyering  <meyering@redhat.com>
45110
45111         fsusage.c: correct copyright year
45112         * lib/fsusage.c: Reflect year in which the change is pushed into
45113
45114         avoid misc. warnings
45115         * lib/fsusage.c (UNUSED_PARAM): Define.
45116         (get_fs_usage): Mark parameter "disk" as unused.
45117         * lib/getugroups.c (getgrent): Use "void" in prototype.
45118         * lib/mountlist.c: Mark unused parameters.
45119         (read_file_system_list): Declare a local with "const".
45120         * lib/nanosleep.c (getnow): Declare static.
45121         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
45122
45123         dirfd: set errno upon failure
45124         * lib/dirfd.c: Include <errno.h>.
45125         Set errno to ENOTSUP when returning -1.
45126         * modules/dirfd (Depends-on): Add errno.
45127         Suggested by John Kodis <kodis@comcast.net>.
45128
45129 2009-02-01  Bruno Haible  <bruno@clisp.org>
45130
45131         Don't assume sizeof (long) >= sizeof (void *).
45132         * lib/memcmp.c: Include stdint.h.
45133         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
45134         srcp2 to 'const byte *'.
45135         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
45136         types to uintptr_t.
45137         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
45138         * modules/memcmp (Depends-on): Add stdint.
45139         Reported by Ozkan Sezer <sezeroz@gmail.com>.
45140
45141 2009-01-30  Eric Blake  <ebb9@byu.net>
45142
45143         fix more require-before-expand issues
45144         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
45145         expand, AC_PROG_AWK.
45146         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
45147
45148 2009-01-28  Eric Blake  <ebb9@byu.net>
45149
45150         version-etc: use consistent URL formatting
45151         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
45152         Improve formatting.  Use fputs for string without %.
45153
45154 2009-01-28  Jim Meyering  <meyering@redhat.com>
45155
45156         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
45157         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
45158         "underquoted definition of NAME" from autoconf-2.59.
45159
45160 2009-01-28  Bruno Haible  <bruno@clisp.org>
45161
45162         * doc/gnulib.texi: Add "Obsolete modules" to index.
45163
45164 2009-01-28  Jim Meyering  <meyering@redhat.com>
45165
45166         useless-if-before-free: recognize more variants
45167         * build-aux/useless-if-before-free: Also recognize e.g.,
45168         if (NULL != p) free (p);
45169
45170 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
45171
45172         test-getaddrinfo: skip (don't fail) this test when there's no network
45173         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
45174         on the presumption that it means you lack network access.
45175
45176 2009-01-26  Jim Meyering  <meyering@redhat.com>
45177
45178         fflush: avoid warnings on modern systems
45179         * lib/fflush.c (rpl_fflush): Move declarations of locals,
45180         pos and result, into scopes where they're used.
45181
45182 2009-01-26  Eric Blake  <ebb9@byu.net>
45183
45184         Silence warning reintroduced by recent extensions patch.
45185         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
45186         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
45187         autoconf.
45188
45189         Backport improved autoconf semantics of AC_DEFUN_ONCE.
45190         * m4/00gnulib.m4: New file.
45191         * gnulib-tool (func_get_filelist): Always use it.
45192         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
45193         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
45194
45195 2009-01-25  Bruno Haible  <bruno@clisp.org>
45196
45197         Make test-quotearg work on MacOS X and AIX.
45198         * tests/test-quotearg.sh: New file.
45199         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
45200         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
45201         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
45202         include <libintl.h>.
45203         (fake_locale): Remove variable.
45204         (gettext, dgettext, dcgettext): Remove functions.
45205         (main): Instead of setting a fake locale, set a real locale. Call
45206         textdomain and bindtextdomain.
45207         * modules/quotearg-tests (Files): Add the new files.
45208         (Depends-on): Add gettext, setenv, unsetenv.
45209         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45210         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
45211         Augment TESTS_ENVIRONMENT.
45212
45213 2009-01-25  Bruno Haible  <bruno@clisp.org>
45214
45215         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
45216         fr_FR.ISO8859-1 locale on MacOS X.
45217         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
45218         ja_JP.eucJP locale on MacOS X.
45219         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
45220         zh_CN.GB18030 locale on MacOS X.
45221
45222 2009-01-25  Bruno Haible  <bruno@clisp.org>
45223
45224         Avoid link errors on MacOS X 10.3.
45225         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
45226         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45227
45228 2009-01-25  Bruno Haible  <bruno@clisp.org>
45229
45230         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45231         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
45232         * modules/pipe (Files): Remove m4/posix_spawn.m4.
45233         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45234         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
45235         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45236         posix_spawnattr_init, posix_spawnattr_setsigmask,
45237         posix_spawnattr_setflags, posix_spawnattr_destroy.
45238
45239         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45240         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
45241         * modules/execute (Files): Remove m4/posix_spawn.m4.
45242         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45243         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45244         posix_spawnattr_init, posix_spawnattr_setsigmask,
45245         posix_spawnattr_setflags, posix_spawnattr_destroy.
45246
45247 2009-01-25  Bruno Haible  <bruno@clisp.org>
45248
45249         * lib/glthread/threadlib.c: Include <stdlib.h>.
45250
45251 2009-01-25  Bruno Haible  <bruno@clisp.org>
45252
45253         * lib/glthread/threadlib.c (dummy): New declaration.
45254
45255 2009-01-25  Bruno Haible  <bruno@clisp.org>
45256
45257         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
45258         multibyte characters also for the GB18030 encoding. Don't crash when
45259         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
45260
45261 2009-01-25  Bruno Haible  <bruno@clisp.org>
45262
45263         Avoid redefining 'struct random_data' on OSF/1 5.1.
45264         * lib/stdlib.in.h: Include <random.h> if it exists.
45265         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
45266         HAVE_RANDOM_H. Include <random.h> when testing whether
45267         'struct random_data' exists.
45268         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
45269
45270 2009-01-25  Bruno Haible  <bruno@clisp.org>
45271
45272         Don't install charset.alias on MacOS X >= 10.3.
45273         * lib/localcharset.c (DARWIN7): New macro.
45274         (get_charset_aliases): Hardcode the result for Darwin7.
45275         * modules/localcharset (install-exec-local): Don't install
45276         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
45277
45278 2009-01-25  Bruno Haible  <bruno@clisp.org>
45279
45280         Don't install charset.alias on mingw and Cygwin.
45281         * modules/localcharset (install-exec-local): Don't install
45282         charset.alias on mingw and Cygwin, if the file does not yet exist.
45283         The result for these platforms is hardcoded in localcharset.c.
45284
45285 2009-01-25  Bruno Haible  <bruno@clisp.org>
45286
45287         Make it possible again to use AC_GNU_SOURCE together with gnulib.
45288         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
45289         before requiring AC_USE_SYSTEM_EXTENSIONS.
45290
45291 2009-01-25  Jim Meyering  <meyering@redhat.com>
45292
45293         c-strtod: avoid warnings
45294         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
45295         "assignment discards qualifiers from pointer target type" warnings.
45296
45297 2009-01-24  Bruno Haible  <bruno@clisp.org>
45298
45299         Add support for non-UTF-8 locales on MacOS X.
45300         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
45301         canonical encodings. For Darwin 7 and newer, don't map traditional
45302         encodings to UTF-8.
45303         Reported by Vincent Lefevre <vincent@vinc17.org>
45304         at <http://savannah.gnu.org/bugs/?25235>.
45305
45306 2009-01-24  Bruno Haible  <bruno@clisp.org>
45307
45308         * doc/gnulib.texi (Obsolete modules): New section.
45309         Reported by Mike Frysinger <vapier@gentoo.org>.
45310
45311 2009-01-24  Bruno Haible  <bruno@clisp.org>
45312
45313         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
45314         (%.dvi): New rule.
45315
45316 2009-01-24  Bruno Haible  <bruno@clisp.org>
45317
45318         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
45319         Reported by Eric Blake.
45320
45321 2009-01-24  Bruno Haible  <bruno@clisp.org>
45322
45323         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
45324         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
45325         Reported by Gary V. Vaughan <gary@gnu.org>.
45326
45327 2009-01-24  Bruno Haible  <bruno@clisp.org>
45328
45329         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
45330
45331 2009-01-23  Bruno Haible  <bruno@clisp.org>
45332
45333         Make c-strtod, c-strtold usable in libraries.
45334         * lib/c-strtod.c: Include string.h instead of xalloc.h.
45335         (C_STRTOD): Call strdup instead of xstrdup.
45336         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
45337         * modules/c-strtold (Depends-on): Likewise.
45338         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
45339         * NEWS: Mention the change.
45340         Reported by Michael Gold <mgold@ncf.ca>.
45341
45342 2009-01-23  Jim Meyering  <meyering@redhat.com>
45343
45344         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
45345         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
45346         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
45347
45348 2009-01-23  Simon Josefsson  <simon@josefsson.org>
45349
45350         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
45351         GNU CoreUtils.
45352         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
45353         * modules/version-etc (Description): Update.
45354
45355 2009-01-22  Bruno Haible  <bruno@clisp.org>
45356
45357         Cache the C locale object.
45358         * lib/c-strtod.c (c_locale_cache): New variable.
45359         (c_locale): New function.
45360         (C_STRTOD): Use it, and don't call freelocale.
45361         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
45362         Suggested by Paolo Bonzini.
45363
45364 2009-01-21  Bruno Haible  <bruno@clisp.org>
45365
45366         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
45367         conditions other than overflow.
45368
45369 2009-01-21  Bruno Haible  <bruno@clisp.org>
45370
45371         * lib/c-strtod.c: Include errno.h.
45372         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
45373         value from STRTOD_L and STRTOD.
45374
45375 2009-01-21  Bruno Haible  <bruno@clisp.org>
45376         and Jim Meyering  <meyering@redhat.com>
45377
45378         nanosleep: skip configure test (fail it) for apple universal builds
45379         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
45380         universal builds, assume that nanosleep does not work.
45381         * modules/nanosleep (Depends-on): Add multiarch.
45382
45383         mktime: skip configure test (fail it) for apple universal builds
45384         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
45385         universal builds, assume that mktime does not work.
45386         * modules/mktime (Depends-on): Add multiarch.
45387
45388 2009-01-21  Eric Blake  <ebb9@byu.net>
45389
45390         multiarch: avoid expand-before-require warning
45391         * modules/multiarch (configure.ac): Require, rather than expand,
45392         gl_MULTIARCH.
45393         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
45394         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
45395         enforce that all clients require it.  Partial reversion of
45396         2008-12-29 patch.
45397
45398         error: avoid expand-before-require warning
45399         * modules/errno (configure.ac): Require, rather than expand,
45400         gl_HEADER_ERRNO_H.
45401         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
45402         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
45403         enforce that all clients require it.
45404
45405         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
45406         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
45407         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
45408         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
45409
45410 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
45411
45412         Revert:
45413         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
45414
45415         regex: do not depend on obsolete modules.
45416         * modules/regex: Remove memcmp and memmove.
45417
45418 2009-01-20  Bruno Haible  <bruno@clisp.org>
45419
45420         Make the 'link' module link on Windows NT 4.
45421         * lib/link.c (_WIN32_WINNT): Don't define.
45422         (CreateHardLinkFuncType): New type.
45423         (CreateHardLinkFunc, initialized): New variables.
45424         (initialize): New function.
45425         (link): Invoke CreateHardLink indirectly through the function pointer.
45426
45427 2009-01-20  Bruno Haible  <bruno@clisp.org>
45428
45429         Fix compilation failure on mingw.
45430         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
45431
45432 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
45433
45434         * doc/c-strtod.texi: Mention a couple of restrictions.
45435
45436 2009-01-20  Jim Meyering  <meyering@redhat.com>
45437
45438         gettimeofday: move more declarations out of functions
45439         * lib/gettimeofday.c: Move extern declarations of tzset and
45440         gmtime out of containing functions.  Prompted by Bruno Haible.
45441
45442 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
45443
45444         regex: do not depend on obsolete modules.
45445         * modules/regex: Remove memcmp and memmove.
45446
45447 2009-01-19  Bruno Haible  <bruno@clisp.org>
45448
45449         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
45450         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
45451         gl_BIGENDIAN, not AC_C_BIGENDIAN.
45452         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
45453         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
45454
45455 2009-01-19  Bruno Haible  <bruno@clisp.org>
45456
45457         * tests/test-link.c: Include <errno.h>.
45458         (main): Exit with code 77 when a hard link cannot be created due to
45459         the file system.
45460         * tests/test-link.sh: Skip test when a hard link cannot be created due
45461         to the file system.
45462         Suggested by Eric Blake.
45463
45464 2009-01-19  Martin Lambers  <marlam@marlam.de>
45465
45466         * modules/link-tests: New file.
45467         * tests/test-link.sh: New file.
45468         * tests/test-link.c: New file.
45469
45470 2009-01-19  Eric Blake  <ebb9@byu.net>
45471
45472         doc: mention another function added in cygwin 1.7.0
45473         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
45474         Another new function in cygwin 1.7.
45475
45476 2009-01-19  Bruno Haible  <bruno@clisp.org>
45477
45478         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
45479         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
45480         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
45481         gl_BIGENDIAN, not AC_C_BIGENDIAN.
45482         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45483         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
45484         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
45485         * m4/md4.m4 (gl_MD4): Likewise.
45486         * m4/md5.m4 (gl_MD5): Likewise.
45487         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
45488         * m4/sha1.m4 (gl_SHA1): Likewise.
45489         * m4/sha256.m4 (gl_SHA256): Likewise.
45490         * m4/sha512.m4 (gl_SHA512): Likewise.
45491
45492 2009-01-19  Bruno Haible  <bruno@clisp.org>
45493
45494         * modules/uniname/uniname-tests (Depends-on): Add progname.
45495         * tests/uniname/test-uninames.c: Include progname.h.
45496         (main): Call set_program_name.
45497
45498         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
45499         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
45500         (main): Call set_program_name.
45501
45502         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
45503         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
45504         (main): Call set_program_name.
45505
45506         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
45507         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
45508         (main): Call set_program_name.
45509
45510         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
45511         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
45512         (main): Call set_program_name.
45513
45514         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
45515         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
45516         (main): Call set_program_name.
45517
45518         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
45519         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
45520         (main): Call set_program_name.
45521
45522         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
45523         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
45524         (main): Call set_program_name.
45525
45526         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
45527         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
45528         (main): Call set_program_name.
45529
45530 2009-01-19  Eric Blake  <ebb9@byu.net>
45531
45532         test-unistd: test previous patch
45533         * tests/test-unistd.c: Test *_FILENO macros.
45534
45535         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
45536         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45537         Guarantee a definition.
45538         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
45539         * modules/unistd-safer (Depends-on): Add dependency on unistd.
45540         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
45541         * lib/dup-safer.c (STDERR_FILENO): Likewise.
45542         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45543         Likewise.
45544         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
45545         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
45546         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
45547         Likewise.
45548         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
45549         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
45550         (STDERR_FILENO): Likewise.
45551         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
45552         (STDERR_FILENO): Likewise.
45553         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
45554         (STDERR_FILENO): Likewise.
45555         Reported by Elbert Pol.
45556
45557 2009-01-19  Eric Blake  <ebb9@byu.net>
45558
45559         doc: mention more functions added in cygwin 1.7.0
45560         * doc/posix-functions/abort.texi (abort): Update wording related
45561         to cygwin.
45562         * doc/posix-functions/daylight.texi (daylight): Likewise.
45563         * doc/posix-functions/optarg.texi (optarg): Likewise.
45564         * doc/posix-functions/optarg.texi (opterr): Likewise.
45565         * doc/posix-functions/optarg.texi (optind): Likewise.
45566         * doc/posix-functions/optarg.texi (optopt): Likewise.
45567         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
45568         worked in 1.5.x, and was withdrawn in 1.7.
45569         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
45570         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
45571         cygwin versions.
45572         * doc/posix-functions/perror.texi (perror): Likewise.
45573         * doc/posix-functions/printf.texi (printf): Likewise.
45574         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
45575         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
45576         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
45577         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
45578         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
45579         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
45580         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45581         Likewise.
45582         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45583         Likewise.
45584         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
45585         this function.
45586         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
45587         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
45588         Likewise.
45589         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
45590         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
45591         * doc/posix-functions/confstr.texi (confstr): Likewise.
45592         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
45593         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
45594         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
45595         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
45596         * doc/posix-functions/fputws.texi (fputws): Likewise.
45597         * doc/posix-functions/fwide.texi (fwide): Likewise.
45598         * doc/posix-functions/getwc.texi (getwc): Likewise.
45599         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
45600         * doc/posix-functions/putwc.texi (putwc): Likewise.
45601         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
45602         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
45603         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
45604         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
45605         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
45606         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
45607         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
45608         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
45609         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
45610         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
45611         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
45612
45613 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
45614
45615         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
45616         * lib/ioctl.c: Include <sys/ioctl.h>.
45617
45618 2009-01-19  Simon Josefsson  <simon@josefsson.org>
45619
45620         * modules/getdate-tests (Depends-on): Add progname.
45621         * tests/test-getdate.c: Use progname module, to avoid link errors
45622         on non-glibc systems.
45623
45624 2009-01-18  Simon Josefsson  <simon@josefsson.org>
45625
45626         * modules/filenamecat-tests (Depends-on): Add progname.
45627         * modules/fstrcmp-tests (Depends-on): Likewise.
45628
45629         * tests/test-filenamecat.c: Use progname module, to avoid link
45630         errors on non-glibc systems.
45631         * tests/test-fstrcmp.c: Likewise.
45632
45633 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
45634
45635         gettimeofday: avoid warning: nested extern declaration of 'localtime'
45636         * lib/gettimeofday.c: Move extern declaration out of function.
45637
45638 2009-01-18  Bruno Haible  <bruno@clisp.org>
45639
45640         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
45641         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
45642         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
45643
45644 2009-01-18  Bruno Haible  <bruno@clisp.org>
45645
45646         * lib/strftime.c (MEMPCPY): Remove unused macro.
45647         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
45648
45649 2009-01-18  Martin Lambers  <marlam@marlam.de>
45650
45651         New module 'link'.
45652         * lib/unistd.in.h (link): New declaration.
45653         * lib/link.c: New file.
45654         * m4/link.m4: New file.
45655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
45656         HAVE_LINK.
45657         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
45658         * modules/link: New file.
45659         * doc/posix-functions/link.texi: Mention the new module.
45660
45661 2009-01-18  Bruno Haible  <bruno@clisp.org>
45662
45663         * tests/test-avltree_list.c (main): Call set_program_name.
45664         * tests/test-avltree_oset.c (main): Likewise.
45665         * tests/test-obstack-printf.c: Include progname.h.
45666         (main): Call set_program_name.
45667         * tests/test-quotearg.c: Include progname.h.
45668         (main): Call set_program_name.
45669         * tests/test-xmemdup0.c: Include progname.h.
45670         (main): Call set_program_name.
45671
45672 2009-01-18  Bruno Haible  <bruno@clisp.org>
45673
45674         New module 'alphasort'.
45675         * lib/dirent.in.h (alphasort): New declaration.
45676         * lib/alphasort.c: New file, from glibc with modifications.
45677         * m4/alphasort.m4: New file.
45678         * modules/alphasort: New file.
45679         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
45680         HAVE_ALPHASORT.
45681         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
45682         HAVE_ALPHASORT.
45683         * doc/posix-functions/alphasort.texi: Mention the new module and the
45684         portability problems.
45685
45686 2009-01-18  Bruno Haible  <bruno@clisp.org>
45687
45688         New module 'scandir'.
45689         * lib/dirent.in.h (scandir): New declaration.
45690         * lib/scandir.c: New file, from glibc with modifications.
45691         * m4/scandir.m4: New file.
45692         * modules/scandir: New file.
45693         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
45694         HAVE_SCANDIR.
45695         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
45696         HAVE_SCANDIR.
45697         * doc/posix-functions/scandir.texi: Mention the new module and the
45698         portability problems.
45699
45700 2009-01-17  Bruno Haible  <bruno@clisp.org>
45701
45702         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
45703         Update documentation.
45704         (func_remove_suffix): Escape all dots in the suffix. Update
45705         documentation.
45706         (func_filter_filelist): Update documentation.
45707         Reported by Ralf Wildenhues.
45708
45709 2009-01-17  Bruno Haible  <bruno@clisp.org>
45710
45711         * modules/dprintf-posix-tests: New file.
45712         * tests/test-dprintf-posix.sh: New file.
45713         * tests/test-dprintf-posix.c: New file.
45714
45715         New modules 'dprintf', 'dprintf-posix'.
45716         * lib/stdio.in.h (dprintf): New declaration.
45717         * lib/dprintf.c: New file.
45718         * m4/dprintf.m4: New file.
45719         * m4/dprintf-posix.m4: New file.
45720         * modules/dprintf: New file.
45721         * modules/dprintf-posix: New file.
45722         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
45723         HAVE_DPRINTF, REPLACE_DPRINTF.
45724         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
45725         HAVE_DPRINTF, REPLACE_DPRINTF.
45726         * doc/posix-functions/dprintf.texi: Mention the new modules.
45727
45728 2009-01-17  Bruno Haible  <bruno@clisp.org>
45729
45730         * modules/vdprintf-posix-tests: New file.
45731         * tests/test-vdprintf-posix.sh: New file.
45732         * tests/test-vdprintf-posix.c: New file.
45733
45734         New modules 'vdprintf', 'vdprintf-posix'.
45735         * lib/stdio.in.h (vdprintf): New declaration.
45736         * lib/vdprintf.c: New file.
45737         * m4/vdprintf.m4: New file.
45738         * m4/vdprintf-posix.m4: New file.
45739         * modules/vdprintf: New file.
45740         * modules/vdprintf-posix: New file.
45741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
45742         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45743         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
45744         HAVE_VDPRINTF, REPLACE_VDPRINTF.
45745         * doc/posix-functions/vdprintf.texi: Mention the new modules.
45746
45747 2009-01-17  Bruno Haible  <bruno@clisp.org>
45748
45749         Fix replacement of fopen on mingw.
45750         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
45751         mingw.
45752
45753 2009-01-17  Bruno Haible  <bruno@clisp.org>
45754
45755         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
45756         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
45757
45758 2009-01-17  Bruno Haible  <bruno@clisp.org>
45759
45760         Avoid test-fflush2.sh failure on mingw.
45761         * tests/test-fflush2.c: Include binary-io.h.
45762         (main): Put standard input into binary mode.
45763         * modules/fflush-tests (Depends-on): Add binary-io.
45764
45765 2009-01-17  Bruno Haible  <bruno@clisp.org>
45766
45767         * lib/wchar.in.h: In another particular situation, include only the
45768         system's <wchar.h> file.
45769         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
45770         Reported by Albert Chin-A-Young <china@thewrittenword.com>
45771         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
45772
45773 2009-01-17  Bruno Haible  <bruno@clisp.org>
45774
45775         Support for stripping executables in --enable-relocatable.
45776         * build-aux/install-reloc: Expect one more argument, or an environment
45777         variable RELOC_STRIP_PROG. If set, strip the destination program and
45778         its wrapper.
45779         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
45780         RELOC_STRIP_PROG.
45781         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
45782         to set RELOCATABLE_STRIP.
45783         * NEWS: Mention the new Makefile requirement.
45784
45785 2009-01-17  Bruno Haible  <bruno@clisp.org>
45786
45787         * build-aux/install-reloc: Remove debugging information left over by
45788         C compiler on MacOS X.
45789
45790 2009-01-17  Bruno Haible  <bruno@clisp.org>
45791
45792         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
45793         * lib/progreloc.c (find_executable): Fix type of pointer passed to
45794         _NSGetExecutablePath.
45795
45796 2009-01-16  Jim Meyering  <meyering@redhat.com>
45797
45798         strerror: avoid warnings about discarding "const"
45799         * lib/strerror.c (rpl_strerror): Instead of returning a const
45800         string from each and every "case", use a variable, and add a single
45801         cast after the switch.
45802
45803 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
45804
45805         * lib/arpa_inet.in.h: Add extern "C" block for C++.
45806
45807 2009-01-16  Bruno Haible  <bruno@clisp.org>
45808
45809         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
45810         array initializer syntax that also works in C++ mode.
45811         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45812
45813 2009-01-16  Jim Meyering  <meyering@redhat.com>
45814
45815         poll: suppress a warning
45816         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
45817         to ignore "...unsigned expression < 0 is always false" warnings.
45818
45819 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
45820
45821         poll: remove declarations of unused variables
45822         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
45823         sockbuf and optlen.
45824
45825 2009-01-15  Bruno Haible  <bruno@clisp.org>
45826
45827         Make fflush-after-ungetc POSIX compliant on BSD systems.
45828         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
45829         (clear_ungetc_buffer): Implement also for other systems.
45830         (rpl_fflush): On glibc systems, invoke
45831         clear_ungetc_buffer_preserving_position. Otherwise, invoke
45832         clear_ungetc_buffer after fetching the stream's position, not before.
45833
45834 2009-01-15  Bruno Haible  <bruno@clisp.org>
45835
45836         Make fflush-after-ungetc POSIX compliant on glibc systems.
45837         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
45838         after ungetc.
45839         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
45840         (rpl_fflush): On glibc systems, simply call the system's fflush
45841         function after clearing the ungetc buffer.
45842         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
45843         Instead, lseek only to the end of file, then use the system's fseeko
45844         for the rest. On glibc systems, reset the EOF indicator bit.
45845
45846 2009-01-15  Jim Meyering  <meyering@redhat.com>
45847
45848         openmp.m4: revert quote-adding change, for portability to older autoconf
45849         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
45850         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
45851         Simon Josefsson noticed the problem when using autoconf-2.61.
45852
45853 2009-01-15  Bruno Haible  <bruno@clisp.org>
45854
45855         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
45856         * tests/test-fflush2.c (ASSERT): Always fail.
45857         (main): Add two tests for fflush() after ungetc(), taking into account
45858         the Austin Group's clarification.
45859         Suggested by Eric Blake.
45860
45861 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
45862
45863         mktime.m4: remove K&R-style function prototypes
45864         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
45865         for the Sun C++ compiler.
45866
45867 2009-01-14  Bruno Haible  <bruno@clisp.org>
45868
45869         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
45870         while including <wchar.h>.
45871         * lib/wchar.in.h: In two particular situations on HP-UX, include only
45872         the system's <wchar.h> file.
45873         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45874
45875 2009-01-14  Bruno Haible  <bruno@clisp.org>
45876
45877         * m4/csharp.m4: Don't mention gettext on the serial number line.
45878         * m4/csharpexec.m4: Likewise.
45879         * m4/eaccess.m4: Likewise.
45880         * m4/javaexec.m4: Likewise.
45881         * m4/sig_atomic_t.m4: Likewise.
45882         * m4/tmpdir.m4: Likewise.
45883         * m4/intldir.m4: Bump gettext version.
45884         * m4/lib-ld.m4: Likewise.
45885
45886 2009-01-14  Bruno Haible  <bruno@clisp.org>
45887
45888         * lib/progname.c (set_program_name): Add more comments.
45889         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45890
45891 2009-01-14  Simon Josefsson  <simon@josefsson.org>
45892
45893         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
45894         were sys/stat.h does not define it.
45895
45896 2009-01-14  Jim Meyering  <meyering@redhat.com>
45897
45898         many *.m4 files: improve m4 quoting
45899         99% of this change was performed by running the following commands:
45900         git ls-files | grep '\.m4$' | xargs perl -pi \
45901           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
45902           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45903           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
45904           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
45905         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
45906         The remainder were to add Copyright dates, increment serial numbers,
45907         undo some changes in comments, exclude m4/intl.m4, and add quotes
45908         around the "1" in ",1" where the unusual spacing prohibited the
45909         above regexps from doing the job.  For more details, see
45910         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
45911         * m4/acl.m4: Modified.
45912         * m4/afs.m4: Likewise.
45913         * m4/alloca.m4: Likewise.
45914         * m4/argp.m4: Likewise.
45915         * m4/argz.m4: Likewise.
45916         * m4/atexit.m4: Likewise.
45917         * m4/bison-i18n.m4: Likewise.
45918         * m4/bison.m4: Likewise.
45919         * m4/byteswap.m4: Likewise.
45920         * m4/c-stack.m4: Likewise.
45921         * m4/c-strtod.m4: Likewise.
45922         * m4/calloc.m4: Likewise.
45923         * m4/canonicalize-lgpl.m4: Likewise.
45924         * m4/chown.m4: Likewise.
45925         * m4/clock_time.m4: Likewise.
45926         * m4/codeset.m4: Likewise.
45927         * m4/copy-file.m4: Likewise.
45928         * m4/csharp.m4: Likewise.
45929         * m4/csharpcomp.m4: Likewise.
45930         * m4/csharpexec.m4: Likewise.
45931         * m4/d-ino.m4: Likewise.
45932         * m4/d-type.m4: Likewise.
45933         * m4/dirfd.m4: Likewise.
45934         * m4/double-slash-root.m4: Likewise.
45935         * m4/eaccess.m4: Likewise.
45936         * m4/eealloc.m4: Likewise.
45937         * m4/environ.m4: Likewise.
45938         * m4/errno_h.m4: Likewise.
45939         * m4/euidaccess.m4: Likewise.
45940         * m4/execute.m4: Likewise.
45941         * m4/fatal-signal.m4: Likewise.
45942         * m4/fchdir.m4: Likewise.
45943         * m4/fcntl_h.m4: Likewise.
45944         * m4/fileblocks.m4: Likewise.
45945         * m4/filenamecat.m4: Likewise.
45946         * m4/findprog.m4: Likewise.
45947         * m4/flexmember.m4: Likewise.
45948         * m4/fnmatch.m4: Likewise.
45949         * m4/fopen.m4: Likewise.
45950         * m4/fpending.m4: Likewise.
45951         * m4/fprintf-posix.m4: Likewise.
45952         * m4/free.m4: Likewise.
45953         * m4/frexp.m4: Likewise.
45954         * m4/frexpl.m4: Likewise.
45955         * m4/fsusage.m4: Likewise.
45956         * m4/ftruncate.m4: Likewise.
45957         * m4/gc-camellia.m4: Likewise.
45958         * m4/gc-random.m4: Likewise.
45959         * m4/gc.m4: Likewise.
45960         * m4/getaddrinfo.m4: Likewise.
45961         * m4/getcwd-abort-bug.m4: Likewise.
45962         * m4/getcwd-path-max.m4: Likewise.
45963         * m4/getdate.m4: Likewise.
45964         * m4/getdomainname.m4: Likewise.
45965         * m4/getgroups.m4: Likewise.
45966         * m4/gethostname.m4: Likewise.
45967         * m4/gethrxtime.m4: Likewise.
45968         * m4/getline.m4: Likewise.
45969         * m4/getloadavg.m4: Likewise.
45970         * m4/getndelim2.m4: Likewise.
45971         * m4/getpass.m4: Likewise.
45972         * m4/gettext.m4: Likewise.
45973         * m4/gettime.m4: Likewise.
45974         * m4/gettimeofday.m4: Likewise.
45975         * m4/gnulib-common.m4: Likewise.
45976         * m4/group-member.m4: Likewise.
45977         * m4/host-os.m4: Likewise.
45978         * m4/iconv.m4: Likewise.
45979         * m4/iconv_open.m4: Likewise.
45980         * m4/inet_ntop.m4: Likewise.
45981         * m4/inet_pton.m4: Likewise.
45982         * m4/inline.m4: Likewise.
45983         * m4/intldir.m4: Likewise.
45984         * m4/intlmacosx.m4: Likewise.
45985         * m4/intmax.m4: Likewise.
45986         * m4/intmax_t.m4: Likewise.
45987         * m4/inttypes.m4: Likewise.
45988         * m4/inttypes_h.m4: Likewise.
45989         * m4/inttypes-pri.m4: Likewise.
45990         * m4/isapipe.m4: Likewise.
45991         * m4/isnand.m4: Likewise.
45992         * m4/isnanf.m4: Likewise.
45993         * m4/isnanl.m4: Likewise.
45994         * m4/javacomp.m4: Likewise.
45995         * m4/javaexec.m4: Likewise.
45996         * m4/jm-winsz1.m4: Likewise.
45997         * m4/jm-winsz2.m4: Likewise.
45998         * m4/lchown.m4: Likewise.
45999         * m4/lcmessage.m4: Likewise.
46000         * m4/ldexpl.m4: Likewise.
46001         * m4/lib-ld.m4: Likewise.
46002         * m4/lib-link.m4: Likewise.
46003         * m4/libsigsegv.m4: Likewise.
46004         * m4/link-follow.m4: Likewise.
46005         * m4/localcharset.m4: Likewise.
46006         * m4/locale-fr.m4: Likewise.
46007         * m4/locale-ja.m4: Likewise.
46008         * m4/locale-tr.m4: Likewise.
46009         * m4/locale-zh.m4: Likewise.
46010         * m4/lock.m4: Likewise.
46011         * m4/longlong.m4: Likewise.
46012         * m4/ls-mntd-fs.m4: Likewise.
46013         * m4/lstat.m4: Likewise.
46014         * m4/malloc.m4: Likewise.
46015         * m4/mathl.m4: Likewise.
46016         * m4/mbrtowc.m4: Likewise.
46017         * m4/mbstate_t.m4: Likewise.
46018         * m4/mbswidth.m4: Likewise.
46019         * m4/memchr.m4: Likewise.
46020         * m4/memcmp.m4: Likewise.
46021         * m4/memcpy.m4: Likewise.
46022         * m4/memmem.m4: Likewise.
46023         * m4/memmove.m4: Likewise.
46024         * m4/mempcpy.m4: Likewise.
46025         * m4/memrchr.m4: Likewise.
46026         * m4/memset.m4: Likewise.
46027         * m4/minmax.m4: Likewise.
46028         * m4/mkdir-slash.m4: Likewise.
46029         * m4/mkdtemp.m4: Likewise.
46030         * m4/mktime.m4: Likewise.
46031         * m4/mmap-anon.m4: Likewise.
46032         * m4/mountlist.m4: Likewise.
46033         * m4/nanosleep.m4: Likewise.
46034         * m4/nls.m4: Likewise.
46035         * m4/nocrash.m4: Likewise.
46036         * m4/open.m4: Likewise.
46037         * m4/openat.m4: Likewise.
46038         * m4/openmp.m4: Likewise.
46039         * m4/pathmax.m4: Likewise.
46040         * m4/perl.m4: Likewise.
46041         * m4/physmem.m4: Likewise.
46042         * m4/pipe.m4: Likewise.
46043         * m4/po.m4: Likewise.
46044         * m4/poll.m4: Likewise.
46045         * m4/posixtm.m4: Likewise.
46046         * m4/posixver.m4: Likewise.
46047         * m4/printf-frexp.m4: Likewise.
46048         * m4/printf-frexpl.m4: Likewise.
46049         * m4/printf-posix.m4: Likewise.
46050         * m4/printf-posix-rpl.m4: Likewise.
46051         * m4/printf.m4: Likewise.
46052         * m4/progtest.m4: Likewise.
46053         * m4/putenv.m4: Likewise.
46054         * m4/readline.m4: Likewise.
46055         * m4/readlink.m4: Likewise.
46056         * m4/readutmp.m4: Likewise.
46057         * m4/realloc.m4: Likewise.
46058         * m4/regex.m4: Likewise.
46059         * m4/relocatable.m4: Likewise.
46060         * m4/relocatable-lib.m4: Likewise.
46061         * m4/rename-dest-slash.m4: Likewise.
46062         * m4/rename.m4: Likewise.
46063         * m4/rmdir-errno.m4: Likewise.
46064         * m4/rmdir.m4: Likewise.
46065         * m4/roundf.m4: Likewise.
46066         * m4/roundl.m4: Likewise.
46067         * m4/rpmatch.m4: Likewise.
46068         * m4/save-cwd.m4: Likewise.
46069         * m4/selinux-selinux-h.m4: Likewise.
46070         * m4/setenv.m4: Likewise.
46071         * m4/settime.m4: Likewise.
46072         * m4/sig2str.m4: Likewise.
46073         * m4/sig_atomic_t.m4: Likewise.
46074         * m4/signalblocking.m4: Likewise.
46075         * m4/signbit.m4: Likewise.
46076         * m4/sigpipe.m4: Likewise.
46077         * m4/sockets.m4: Likewise.
46078         * m4/sockpfaf.m4: Likewise.
46079         * m4/st_dm_mode.m4: Likewise.
46080         * m4/stat-time.m4: Likewise.
46081         * m4/stdbool.m4: Likewise.
46082         * m4/stdint.m4: Likewise.
46083         * m4/stdint_h.m4: Likewise.
46084         * m4/stpcpy.m4: Likewise.
46085         * m4/stpncpy.m4: Likewise.
46086         * m4/strcase.m4: Likewise.
46087         * m4/strchrnul.m4: Likewise.
46088         * m4/strcspn.m4: Likewise.
46089         * m4/strdup.m4: Likewise.
46090         * m4/strftime.m4: Likewise.
46091         * m4/strndup.m4: Likewise.
46092         * m4/strnlen.m4: Likewise.
46093         * m4/strpbrk.m4: Likewise.
46094         * m4/strptime.m4: Likewise.
46095         * m4/strsep.m4: Likewise.
46096         * m4/strtod.m4: Likewise.
46097         * m4/strtoimax.m4: Likewise.
46098         * m4/strtok_r.m4: Likewise.
46099         * m4/strtol.m4: Likewise.
46100         * m4/strtoll.m4: Likewise.
46101         * m4/strtoul.m4: Likewise.
46102         * m4/strtoull.m4: Likewise.
46103         * m4/strtoumax.m4: Likewise.
46104         * m4/strverscmp.m4: Likewise.
46105         * m4/threadlib.m4: Likewise.
46106         * m4/timegm.m4: Likewise.
46107         * m4/tm_gmtoff.m4: Likewise.
46108         * m4/tmpdir.m4: Likewise.
46109         * m4/tmpfile.m4: Likewise.
46110         * m4/tzset.m4: Likewise.
46111         * m4/uintmax_t.m4: Likewise.
46112         * m4/unlinkdir.m4: Likewise.
46113         * m4/unlocked-io.m4: Likewise.
46114         * m4/uptime.m4: Likewise.
46115         * m4/userspec.m4: Likewise.
46116         * m4/utimbuf.m4: Likewise.
46117         * m4/utime.m4: Likewise.
46118         * m4/utimes-null.m4: Likewise.
46119         * m4/utimes.m4: Likewise.
46120         * m4/vararrays.m4: Likewise.
46121         * m4/vasnprintf.m4: Likewise.
46122         * m4/vfprintf-posix.m4: Likewise.
46123         * m4/vprintf-posix.m4: Likewise.
46124         * m4/wait-process.m4: Likewise.
46125         * m4/wchar_t.m4: Likewise.
46126         * m4/wint_t.m4: Likewise.
46127         * m4/write-any-file.m4: Likewise.
46128         * m4/yield.m4: Likewise.
46129
46130 2009-01-13  Bruno Haible  <bruno@clisp.org>
46131
46132         Avoid test-copy-file.sh failures when ACL support insufficient.
46133         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
46134         TESTS_ENVIRONMENT.
46135         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
46136         Reported by Jim Meyering.
46137
46138 2009-01-13  Bruno Haible  <bruno@clisp.org>
46139
46140         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
46141         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
46142         * modules/unistdio/u8-printf-parse (Files): Likewise.
46143         * modules/unistdio/u32-printf-parse (Files): Likewise.
46144         * modules/unistdio/ulc-printf-parse (Files): Likewise.
46145
46146 2009-01-13  Simon Josefsson  <simon@josefsson.org>
46147
46148         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
46149         and m4/inttypes_h.m4 too.
46150
46151 2009-01-12  Eric Blake  <ebb9@byu.net>
46152
46153         tests: IRIX 6.2 cc can't compile -0.0 into .data
46154         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
46155         rather than at compile-time.
46156         * tests/test-floorl.c (minus_zero): Likewise.
46157         * tests/test-frexpl.c (minus_zero): Likewise.
46158         * tests/test-isnan.c (minus_zerol): Likewise.
46159         * tests/test-isnanl.h (minus_zero): Likewise.
46160         * tests/test-ldexpl.c (minus_zero): Likewise.
46161         * tests/test-roundl.c (minus_zero): Likewise.
46162         * tests/test-signbit.c (minus_zerol): Likewise.
46163         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46164         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46165         * tests/test-truncl.c (minus_zero): Likewise.
46166         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46167         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46168         Reported by Tom G. Christensen and Nelson H. F. Beebe.
46169
46170 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46171
46172         regex: fix glibc bug 9697
46173         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
46174         handling.
46175
46176 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46177
46178         regex: fix glibc bug 697
46179         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
46180         being NULL also if there are no backreferences.
46181
46182 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46183
46184         regex: merge glibc changes
46185         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
46186         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
46187         re_string_skip_chars, re_string_reconstruct): Likewise.
46188         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
46189
46190 2009-01-07  Jim Meyering  <meyering@redhat.com>
46191
46192         poll: filter through cppi
46193         * lib/poll.c: Indent cpp directives to reflect nesting.
46194
46195 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
46196
46197         poll: don't return uninitialized
46198         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
46199
46200 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
46201
46202         avoid compile failure on AIX 6.1
46203         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
46204         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
46205
46206 2009-01-04  Jim Meyering  <meyering@redhat.com>
46207
46208         remove duplicate inclusion of <stdio.h>
46209         * tests/test-fprintf-posix.c: Likewise.
46210         * tests/test-printf-posix.c: Likewise.
46211         * tests/test-snprintf-posix.c: Likewise.
46212         * tests/test-sprintf-posix.c: Likewise.
46213         * tests/test-vasprintf-posix.c: Likewise.
46214         * tests/test-vfprintf-posix.c: Likewise.
46215         * tests/test-vprintf-posix.c: Likewise.
46216         * tests/test-vsnprintf-posix.c: Likewise.
46217         * tests/test-vsprintf-posix.c: Likewise.
46218
46219 2009-01-03  Jim Meyering  <meyering@redhat.com>
46220
46221         gnulib-tool: fix sed-based filtering
46222         * gnulib-tool (func_filter_filelist): Remove extra backslash
46223         in sed_fff_filter definition.
46224
46225 2009-01-02  Jim Meyering  <meyering@redhat.com>
46226
46227         strftime: avoid compilation failure on Solaris 2.6
46228         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
46229         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
46230         Don't #define mbrlen or mbsinit, since now they're guaranteed to
46231         be available.  Reported by Tom G. Christensen.  Details in
46232         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
46233
46234 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46235             Bruno Haible  <bruno@clisp.org>
46236
46237         Speed up gnulib-tool by doing more string processing through shell
46238         built-ins.
46239         * gnulib-tool (fast_func_append): New variable.
46240         (func_remove_prefix, func_remove_suffix): New functions.
46241         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
46242         (func_filter_filelist): New function.
46243         (func_get_dependencies): Use func_remove_suffix instead of sed.
46244         (func_get_automake_snippet): Use func_filter_filelist instead of a
46245         subshell and sed invocation.
46246
46247 2009-01-01  Bruno Haible  <bruno@clisp.org>
46248
46249         Fix a security bug.
46250         * gnulib-tool (func_import, import, update): Don't allow the characters
46251         '"', '$', '`', '\' in macro arguments that become part of commands that
46252         are evaluated.
46253
46254 2009-01-01  Bruno Haible  <bruno@clisp.org>
46255
46256         * gnulib-tool (func_reset_sigpipe): Add more comments.
46257
46258 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46259
46260         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
46261         func_emit_tests_Makefile_am, func_import): Abort loops early if we
46262         already know the answer.
46263
46264 2009-01-01  Jim Meyering  <meyering@redhat.com>
46265
46266         * lib/version-etc.c (version_etc_va): Update copyright year.
46267
46268 2008-12-30  Bruno Haible  <bruno@clisp.org>
46269
46270         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
46271         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
46272         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
46273
46274 2008-12-29  Eric Blake  <ebb9@byu.net>
46275
46276         multiarch: avoid autoconf AC_REQUIRE bug
46277         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
46278         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
46279         2.63 and older.
46280         Reported by Bruno Haible, and analyzed in
46281         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
46282
46283 2008-12-29  Bruno Haible  <bruno@clisp.org>
46284
46285         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
46286         files in subdirectories correctly.
46287         Reported by Ralf Wildenhues.
46288
46289 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46290
46291         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
46292         rather than 'join FILE -', for Solaris join.
46293
46294 2008-12-29  Bruno Haible  <bruno@clisp.org>
46295
46296         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
46297         quoting.
46298         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
46299         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
46300         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
46301         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
46302         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46303         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
46304         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
46305         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
46306         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
46307         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
46308         * m4/nls.m4 (AM_NLS): Likewise.
46309         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
46310         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
46311         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
46312         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
46313         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
46314         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46315         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
46316         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
46317         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
46318         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46319         * m4/xsize.m4 (gl_XSIZE): Likewise.
46320         Suggested by Jim Meyering.
46321
46322 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46323
46324         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
46325         * lib/parse-duration.c: use a switch instead of cascading if's.
46326
46327 2008-12-29  Eric Blake  <ebb9@byu.net>
46328
46329         wchar.h: supply WEOF on Irix 5.3
46330         * lib/wchar.in.h (wint_t): Also supply WEOF.
46331         * lib/wctype.in.h (wint_t): Likewise.
46332         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
46333         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
46334         Reported by Tom G. Christensen.
46335
46336 2008-12-26  Bruno Haible  <bruno@clisp.org>
46337
46338         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
46339         i486, i586, i686.
46340
46341 2008-12-26  Bruno Haible  <bruno@clisp.org>
46342
46343         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
46344
46345 2008-12-26  Bruno Haible  <bruno@clisp.org>
46346
46347         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
46348         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
46349         not __STDC_CONSTANT_MACROS.
46350         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46351
46352 2008-12-25  Bruno Haible  <bruno@clisp.org>
46353
46354         Add support for universal builds to vasnprintf.
46355         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
46356         universal builds, guess no.
46357         * modules/vasnprintf-posix (Depends-on): Add multiarch.
46358         * modules/vasprintf-posix (Depends-on): Likewise.
46359         * modules/fprintf-posix (Depends-on): Likewise.
46360         * modules/vfprintf-posix (Depends-on): Likewise.
46361         * modules/snprintf-posix (Depends-on): Likewise.
46362         * modules/vsnprintf-posix (Depends-on): Likewise.
46363         * modules/sprintf-posix (Depends-on): Likewise.
46364         * modules/vsprintf-posix (Depends-on): Likewise.
46365         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46366         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46367         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46368         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46369         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46370         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46371         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46372
46373         Add support for universal builds to <inttypes.h>.
46374         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
46375         _SCNu64_PREFIX): In Apple
46376         universal builds, define directly, using _LP64.
46377         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
46378         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
46379         * modules/inttypes (Depends-on): Add multiarch.
46380         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
46381
46382         Add support for universal builds to <stdint.h>.
46383         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
46384         universal builds, define directly, using _LP64.
46385         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
46386         Apple universal builds, don't test for the size and suffix of ptrdiff_t
46387         and size_t.
46388         * modules/stdint (Depends-on): Add multiarch.
46389         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
46390
46391         New module 'multiarch'.
46392         * modules/multiarch: New file.
46393         * m4/multiarch.m4: New file.
46394
46395 2008-12-25  Bruno Haible  <bruno@clisp.org>
46396
46397         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
46398
46399 2008-12-25  Bruno Haible  <bruno@clisp.org>
46400
46401         * modules/btowc (License): Relicense under LGPLv2+.
46402         * modules/mbsinit (License): Likewise.
46403         * modules/mbrtowc (License): Likewise.
46404         * modules/wcrtomb (License): Likewise.
46405         * modules/streq (License): Likewise.
46406         Reported by David Lutterkort <lutter@redhat.com>.
46407
46408 2008-12-23  Bruno Haible  <bruno@clisp.org>
46409
46410         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
46411
46412 2008-12-23  Bruno Haible  <bruno@clisp.org>
46413
46414         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
46415         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
46416         GETADDRINFO_LIB, not in LIBS.
46417         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
46418         * modules/canon-host (Link): Likewise.
46419         * NEWS: Mention the change.
46420         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
46421         GETADDRINFO_LIB.
46422
46423 2008-12-22  Bruno Haible  <bruno@clisp.org>
46424
46425         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
46426         * doc/posix-functions/iswalpha_l.texi: Likewise.
46427         * doc/posix-functions/iswblank_l.texi: Likewise.
46428         * doc/posix-functions/iswcntrl_l.texi: Likewise.
46429         * doc/posix-functions/iswctype_l.texi: Likewise.
46430         * doc/posix-functions/iswdigit_l.texi: Likewise.
46431         * doc/posix-functions/iswgraph_l.texi: Likewise.
46432         * doc/posix-functions/iswlower_l.texi: Likewise.
46433         * doc/posix-functions/iswprint_l.texi: Likewise.
46434         * doc/posix-functions/iswpunct_l.texi: Likewise.
46435         * doc/posix-functions/iswspace_l.texi: Likewise.
46436         * doc/posix-functions/iswupper_l.texi: Likewise.
46437         * doc/posix-functions/iswxdigit_l.texi: Likewise.
46438         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
46439         * doc/posix-functions/open_wmemstream.texi: Likewise.
46440         * doc/posix-functions/swscanf.texi: Likewise.
46441         * doc/posix-functions/towctrans_l.texi: Likewise.
46442         * doc/posix-functions/towlower.texi: Likewise.
46443         * doc/posix-functions/towlower_l.texi: Likewise.
46444         * doc/posix-functions/towupper.texi: Likewise.
46445         * doc/posix-functions/towupper_l.texi: Likewise.
46446         * doc/posix-functions/vfwprintf.texi: Likewise.
46447         * doc/posix-functions/vfwscanf.texi: Likewise.
46448         * doc/posix-functions/vswscanf.texi: Likewise.
46449         * doc/posix-functions/vwprintf.texi: Likewise.
46450         * doc/posix-functions/vwscanf.texi: Likewise.
46451         * doc/posix-functions/wcpcpy.texi: Likewise.
46452         * doc/posix-functions/wcpncpy.texi: Likewise.
46453         * doc/posix-functions/wcscasecmp.texi: Likewise.
46454         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
46455         * doc/posix-functions/wcscoll_l.texi: Likewise.
46456         * doc/posix-functions/wcsdup.texi: Likewise.
46457         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46458         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
46459         * doc/posix-functions/wcsnlen.texi: Likewise.
46460         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46461         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
46462         * doc/posix-functions/wctrans_l.texi: Likewise.
46463         * doc/posix-functions/wctype_l.texi: Likewise.
46464         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
46465         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
46466         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
46467         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
46468         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
46469         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
46470         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
46471         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
46472         * doc/glibc-functions/wcschrnul.texi: Likewise.
46473         * doc/glibc-functions/wcsftime_l.texi: Likewise.
46474         * doc/glibc-functions/wcstod_l.texi: Likewise.
46475         * doc/glibc-functions/wcstof_l.texi: Likewise.
46476         * doc/glibc-functions/wcstol_l.texi: Likewise.
46477         * doc/glibc-functions/wcstold_l.texi: Likewise.
46478         * doc/glibc-functions/wcstoll_l.texi: Likewise.
46479         * doc/glibc-functions/wcstoq.texi: Likewise.
46480         * doc/glibc-functions/wcstoul_l.texi: Likewise.
46481         * doc/glibc-functions/wcstoull_l.texi: Likewise.
46482         * doc/glibc-functions/wcstouq.texi: Likewise.
46483         * doc/glibc-functions/wmempcpy.texi: Likewise.
46484
46485 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
46486             Eric Blake  <ebb9@byu.net>
46487             Paolo Bonzini  <bonzini@gnu.org>
46488             Bruno Haible  <bruno@clisp.org>
46489
46490         Make c-stack work on Haiku.
46491         * lib/c-stack.c (SA_ONSTACK): Define fallback.
46492         (c_stack_action): Use SA_ONSTACK flag.
46493
46494 2008-12-22  Bruno Haible  <bruno@clisp.org>
46495
46496         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
46497
46498 2008-12-22  Bruno Haible  <bruno@clisp.org>
46499
46500         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
46501         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
46502         being overridden.
46503         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
46504         New macros.
46505         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
46506         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
46507         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
46508         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
46509
46510 2008-12-22  Bruno Haible  <bruno@clisp.org>
46511
46512         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
46513         from test code.
46514
46515 2008-12-22  Eric Blake  <ebb9@byu.net>
46516
46517         Avoid gcc warnings on cygwin.
46518         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
46519         Avoid unused variable.
46520         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
46521         Likewise.
46522
46523 2008-12-22  Bruno Haible  <bruno@clisp.org>
46524
46525         Remove HAVE_MBRTOWC conditionals.
46526         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
46527         (mbscasecmp): Assume mbrtowc function.
46528         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
46529         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
46530         * lib/mbschr.c: Include mbuiter.h unconditionally.
46531         (mbschr): Assume mbrtowc function.
46532         * lib/mbscspn.c: Include mbuiter.h unconditionally.
46533         (mbscspn): Assume mbrtowc function.
46534         * lib/mbslen.c: Include mbuiter.h unconditionally.
46535         (mbslen): Assume mbrtowc function.
46536         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
46537         (mbsncasecmp): Assume mbrtowc function.
46538         * lib/mbsnlen.c: Include mbiter.h unconditionally.
46539         (mbsnlen): Assume mbrtowc function.
46540         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
46541         (mbspbrk): Assume mbrtowc function.
46542         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
46543         (mbspcasecmp): Assume mbrtowc function.
46544         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
46545         (mbsrchr): Assume mbrtowc function.
46546         * lib/mbssep.c: Include mbuiter.h unconditionally.
46547         (mbssep): Assume mbrtowc function.
46548         * lib/mbsspn.c: Include mbuiter.h unconditionally.
46549         (mbsspn): Assume mbrtowc function.
46550         * lib/mbsstr.c: Include mbuiter.h unconditionally.
46551         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
46552         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
46553         (mbstok_r): Assume mbrtowc function.
46554         * lib/propername.c: Include mbuiter.h unconditionally.
46555         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
46556         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
46557         (trim2): Assume mbrtowc function.
46558         * lib/mbswidth.c (mbsinit): Remove fallback definition.
46559         (mbsnwidth): Assume mbrtowc function.
46560         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
46561         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
46562         fallback definitions.
46563         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
46564
46565 2008-12-22  Bruno Haible  <bruno@clisp.org>
46566
46567         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
46568
46569 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
46570
46571         * modules/regex: Request emulations for the mb*/wc* functions we need.
46572         * m4/regex.m4: Don't look for those functions here.
46573         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
46574
46575 2008-12-22  Bruno Haible  <bruno@clisp.org>
46576
46577         * modules/fnmatch (Depends-on): Remove duplicated dependency.
46578
46579 2008-12-21  Bruno Haible  <bruno@clisp.org>
46580
46581         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
46582         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
46583         (Include): Remove conditionalization.
46584         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
46585         (Include): Remove conditionalization.
46586         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
46587         (Include): Remove conditionalization.
46588         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
46589         * m4/mbfile.m4 (gl_MBFILE): Likewise.
46590         * NEWS: Mention the change.
46591         Reported by Alan Hourihane <alanh@fairlite.co.uk>
46592         via Sergey Poznyakoff <gray@gnu.org.ua>.
46593
46594 2008-12-21  Bruno Haible  <bruno@clisp.org>
46595
46596         * MODULES.html.sh (Extended multibyte and wide character utilities
46597         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
46598         wcrtomb, wcsrtombs.
46599         (Support for systems lacking POSIX:2008): Add accept, bind, close,
46600         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
46601         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
46602         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
46603
46604 2008-12-21  Bruno Haible  <bruno@clisp.org>
46605
46606         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
46607
46608 2008-12-21  Bruno Haible  <bruno@clisp.org>
46609
46610         * modules/wcsnrtombs-tests: New file.
46611         * tests/test-wcsnrtombs1.sh: New file.
46612         * tests/test-wcsnrtombs2.sh: New file.
46613         * tests/test-wcsnrtombs3.sh: New file.
46614         * tests/test-wcsnrtombs4.sh: New file.
46615         * tests/test-wcsnrtombs.c: New file.
46616
46617         New module 'wcsnrtombs'.
46618         * lib/wchar.in.h (wcsnrtombs): New declaration.
46619         * lib/wcsnrtombs.c: New file.
46620         * lib/wcsrtombs-state.c: New file.
46621         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
46622         (internal_state): Remove variable.
46623         * m4/wcsnrtombs.m4: New file.
46624         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
46625         compilation units.
46626         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
46627         HAVE_WCSNRTOMBS.
46628         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
46629         HAVE_WCSNRTOMBS.
46630         * modules/wcsnrtombs: New file.
46631         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
46632         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
46633
46634 2008-12-21  Bruno Haible  <bruno@clisp.org>
46635
46636         * modules/wcsrtombs-tests: New file.
46637         * tests/test-wcsrtombs1.sh: New file.
46638         * tests/test-wcsrtombs2.sh: New file.
46639         * tests/test-wcsrtombs3.sh: New file.
46640         * tests/test-wcsrtombs4.sh: New file.
46641         * tests/test-wcsrtombs.c: New file.
46642
46643         New module 'wcsrtombs'.
46644         * lib/wchar.in.h (wcsrtombs): New declaration.
46645         * lib/wcsrtombs.c: New file.
46646         * m4/wcsrtombs.m4: New file.
46647         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
46648         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
46649         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
46650         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
46651         * modules/wcsrtombs: New file.
46652         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
46653         bugs.
46654
46655 2008-12-21  Bruno Haible  <bruno@clisp.org>
46656
46657         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
46658         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
46659         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
46660         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
46661         if not correct.
46662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
46663         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
46664         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46665         m4/locale-zh.m4, m4/codeset.m4.
46666         * doc/posix-functions/wcrtomb.texi: Document the bug.
46667
46668 2008-12-21  Bruno Haible  <bruno@clisp.org>
46669
46670         Work around a btowc() bug on IRIX 6.5.
46671         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
46672         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
46673         REPLACE_WTOBC if not.
46674         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
46675         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
46676         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
46677
46678 2008-12-21  Bruno Haible  <bruno@clisp.org>
46679
46680         * modules/wcrtomb-tests: New file.
46681         * tests/test-wcrtomb.sh: New file.
46682         * tests/test-wcrtomb.c: New file.
46683
46684         New module 'wcrtomb'.
46685         * lib/wchar.in.h (wcrtomb): New declaration.
46686         * lib/wcrtomb.c: New file.
46687         * m4/wcrtomb.m4: New file.
46688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
46689         HAVE_WCRTOMB.
46690         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
46691         HAVE_WCRTOMB.
46692         * modules/wcrtomb: New file.
46693         * doc/posix-functions/wcrtomb.texi: Mention the new module.
46694
46695 2008-12-21  Bruno Haible  <bruno@clisp.org>
46696
46697         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
46698         * modules/mbsrtowcs (Files): Likewise.
46699         * modules/wctob (Files): Likewise.
46700         * modules/c-strcase-tests (Files): Likewise.
46701         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
46702         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
46703         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
46704         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
46705         * modules/vasnprintf-posix-tests (Files): Likewise.
46706
46707 2008-12-21  William Pursell  <bill.pursell@gmail.com>
46708
46709         gitlog-to-changelog: pass all command-line arguments to git-log
46710         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
46711         it is sometimes convenient to filter the commits in various ways.
46712         gitlog-to-changelog only allows --since to specify a start date,
46713         but git-log itself supports many other filtering mechanisms.
46714         At the moment, I want to filter by branch name.  Rather than
46715         adding a --branch option to gitlog-to-changelog, it seems more
46716         flexible to simply pass all options directly to git-log and let
46717         git do the work.  Notice that this effectively makes --since a
46718         redundant option for gitlog-to-changelog, but removing it would
46719         require current usage to change since calls would then require
46720         an additional '--'.
46721
46722 2008-12-21  Bruno Haible  <bruno@clisp.org>
46723
46724         * modules/mbsnrtowcs-tests: New file.
46725         * tests/test-mbsnrtowcs1.sh: New file.
46726         * tests/test-mbsnrtowcs2.sh: New file.
46727         * tests/test-mbsnrtowcs3.sh: New file.
46728         * tests/test-mbsnrtowcs4.sh: New file.
46729         * tests/test-mbsnrtowcs.c: New file.
46730
46731         New module 'mbsnrtowcs'.
46732         * lib/wchar.in.h (mbsnrtowcs): New declaration.
46733         * lib/mbsnrtowcs.c: New file.
46734         * lib/mbsrtowcs-state.c: New file.
46735         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
46736         (internal_state): Remove variable.
46737         * m4/mbsnrtowcs.m4: New file.
46738         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
46739         compilation units.
46740         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
46741         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46742         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
46743         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
46744         * modules/mbsnrtowcs: New file.
46745         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
46746         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
46747         portability problem.
46748
46749 2008-12-21  Bruno Haible  <bruno@clisp.org>
46750
46751         Work around mbsrtowcs bug.
46752         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
46753         (gl_FUNC_MBSRTOWCS): Invoke it.
46754         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46755         m4/locale-zh.m4.
46756         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
46757
46758 2008-12-21  Bruno Haible  <bruno@clisp.org>
46759
46760         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
46761
46762 2008-12-21  Bruno Haible  <bruno@clisp.org>
46763
46764         Update doc for AIX.
46765         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
46766         16-bit wchar_t type.
46767         * doc/posix-functions/btowc.texi: Likewise.
46768         * doc/posix-functions/fgetwc.texi: Likewise.
46769         * doc/posix-functions/fgetws.texi: Likewise.
46770         * doc/posix-functions/fputwc.texi: Likewise.
46771         * doc/posix-functions/fputws.texi: Likewise.
46772         * doc/posix-functions/fwide.texi: Likewise.
46773         * doc/posix-functions/fwprintf.texi: Likewise.
46774         * doc/posix-functions/fwscanf.texi: Likewise.
46775         * doc/posix-functions/getwchar.texi: Likewise.
46776         * doc/posix-functions/getwc.texi: Likewise.
46777         * doc/posix-functions/iswalnum.texi: Likewise.
46778         * doc/posix-functions/iswalpha.texi: Likewise.
46779         * doc/posix-functions/iswblank.texi: Likewise.
46780         * doc/posix-functions/iswcntrl.texi: Likewise.
46781         * doc/posix-functions/iswctype.texi: Likewise.
46782         * doc/posix-functions/iswdigit.texi: Likewise.
46783         * doc/posix-functions/iswgraph.texi: Likewise.
46784         * doc/posix-functions/iswlower.texi: Likewise.
46785         * doc/posix-functions/iswprint.texi: Likewise.
46786         * doc/posix-functions/iswpunct.texi: Likewise.
46787         * doc/posix-functions/iswspace.texi: Likewise.
46788         * doc/posix-functions/iswupper.texi: Likewise.
46789         * doc/posix-functions/iswxdigit.texi: Likewise.
46790         * doc/posix-functions/mbrtowc.texi: Likewise.
46791         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46792         * doc/posix-functions/mbstowcs.texi: Likewise.
46793         * doc/posix-functions/mbtowc.texi: Likewise.
46794         * doc/posix-functions/putwchar.texi: Likewise.
46795         * doc/posix-functions/putwc.texi: Likewise.
46796         * doc/posix-functions/swprintf.texi: Likewise.
46797         * doc/posix-functions/tolower.texi: Likewise.
46798         * doc/posix-functions/toupper.texi: Likewise.
46799         * doc/posix-functions/towctrans.texi: Likewise.
46800         * doc/posix-functions/ungetwc.texi: Likewise.
46801         * doc/posix-functions/vswprintf.texi: Likewise.
46802         * doc/posix-functions/wcrtomb.texi: Likewise.
46803         * doc/posix-functions/wcscat.texi: Likewise.
46804         * doc/posix-functions/wcschr.texi: Likewise.
46805         * doc/posix-functions/wcscmp.texi: Likewise.
46806         * doc/posix-functions/wcscoll.texi: Likewise.
46807         * doc/posix-functions/wcscpy.texi: Likewise.
46808         * doc/posix-functions/wcscspn.texi: Likewise.
46809         * doc/posix-functions/wcsftime.texi: Likewise.
46810         * doc/posix-functions/wcslen.texi: Likewise.
46811         * doc/posix-functions/wcsncat.texi: Likewise.
46812         * doc/posix-functions/wcsncmp.texi: Likewise.
46813         * doc/posix-functions/wcsncpy.texi: Likewise.
46814         * doc/posix-functions/wcspbrk.texi: Likewise.
46815         * doc/posix-functions/wcsrchr.texi: Likewise.
46816         * doc/posix-functions/wcsrtombs.texi: Likewise.
46817         * doc/posix-functions/wcsspn.texi: Likewise.
46818         * doc/posix-functions/wcsstr.texi: Likewise.
46819         * doc/posix-functions/wcstod.texi: Likewise.
46820         * doc/posix-functions/wcstof.texi: Likewise.
46821         * doc/posix-functions/wcstoimax.texi: Likewise.
46822         * doc/posix-functions/wcstok.texi: Likewise.
46823         * doc/posix-functions/wcstold.texi: Likewise.
46824         * doc/posix-functions/wcstoll.texi: Likewise.
46825         * doc/posix-functions/wcstol.texi: Likewise.
46826         * doc/posix-functions/wcstombs.texi: Likewise.
46827         * doc/posix-functions/wcstoull.texi: Likewise.
46828         * doc/posix-functions/wcstoul.texi: Likewise.
46829         * doc/posix-functions/wcstoumax.texi: Likewise.
46830         * doc/posix-functions/wcswidth.texi: Likewise.
46831         * doc/posix-functions/wcsxfrm.texi: Likewise.
46832         * doc/posix-functions/wctob.texi: Likewise.
46833         * doc/posix-functions/wctomb.texi: Likewise.
46834         * doc/posix-functions/wctrans.texi: Likewise.
46835         * doc/posix-functions/wctype.texi: Likewise.
46836         * doc/posix-functions/wcwidth.texi: Likewise.
46837         * doc/posix-functions/wmemchr.texi: Likewise.
46838         * doc/posix-functions/wmemcmp.texi: Likewise.
46839         * doc/posix-functions/wmemcpy.texi: Likewise.
46840         * doc/posix-functions/wmemmove.texi: Likewise.
46841         * doc/posix-functions/wmemset.texi: Likewise.
46842         * doc/posix-functions/wprintf.texi: Likewise.
46843         * doc/posix-functions/wscanf.texi: Likewise.
46844
46845 2008-12-21  Bruno Haible  <bruno@clisp.org>
46846
46847         Update doc for HP-UX 11.11.
46848         * doc/posix-functions/btowc.texi: Clarify that the function is missing
46849         in HP-UX version 11.00, not in all versions of HP-UX 11.
46850         * doc/posix-functions/fwide.texi: Likewise.
46851         * doc/posix-functions/fwprintf.texi: Likewise.
46852         * doc/posix-functions/fwscanf.texi: Likewise.
46853         * doc/posix-functions/inet_ntop.texi: Likewise.
46854         * doc/posix-functions/inet_pton.texi: Likewise.
46855         * doc/posix-functions/mbrlen.texi: Likewise.
46856         * doc/posix-functions/mbrtowc.texi: Likewise.
46857         * doc/posix-functions/mbsinit.texi: Likewise.
46858         * doc/posix-functions/mbsrtowcs.texi: Likewise.
46859         * doc/posix-functions/swprintf.texi: Likewise.
46860         * doc/posix-functions/swscanf.texi: Likewise.
46861         * doc/posix-functions/towctrans.texi: Likewise.
46862         * doc/posix-functions/vfwprintf.texi: Likewise.
46863         * doc/posix-functions/vswprintf.texi: Likewise.
46864         * doc/posix-functions/vwprintf.texi: Likewise.
46865         * doc/posix-functions/wcrtomb.texi: Likewise.
46866         * doc/posix-functions/wcsrtombs.texi: Likewise.
46867         * doc/posix-functions/wcsstr.texi: Likewise.
46868         * doc/posix-functions/wctob.texi: Likewise.
46869         * doc/posix-functions/wctrans.texi: Likewise.
46870         * doc/posix-functions/wmemchr.texi: Likewise.
46871         * doc/posix-functions/wmemcmp.texi: Likewise.
46872         * doc/posix-functions/wmemcpy.texi: Likewise.
46873         * doc/posix-functions/wmemmove.texi: Likewise.
46874         * doc/posix-functions/wmemset.texi: Likewise.
46875         * doc/posix-functions/wprintf.texi: Likewise.
46876         * doc/posix-functions/wscanf.texi: Likewise.
46877
46878 2008-12-21  Bruno Haible  <bruno@clisp.org>
46879
46880         Work around a portability problem.
46881         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
46882         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
46883
46884 2008-12-20  Bruno Haible  <bruno@clisp.org>
46885
46886         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
46887         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
46888         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
46889         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
46890         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
46891
46892         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
46893         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
46894         set.
46895         (GNULIB_defined_mbstate_t): New macro.
46896         (mbsinit): Redefine if REPLACE_MBSINIT is set.
46897         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
46898         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
46899         reuses the system's mbrtowc function but works around the bugs.
46900         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
46901         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
46902         macros.
46903         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
46904         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
46905         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
46906         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
46907         REPLACE_MBSINIT if mbsinit needs to be overridden.
46908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
46909         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46910         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
46911         REPLACE_MBSINIT, REPLACE_MBRTOWC.
46912         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
46913         m4/locale-zh.m4.
46914         (Depends): Add mbsinit.
46915         * modules/mbsinit (Depends): Add mbrtowc.
46916         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
46917
46918 2008-12-20  Bruno Haible  <bruno@clisp.org>
46919
46920         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
46921         so that there are no conversion errors on AIX.
46922         * tests/test-mbsrtowcs.c (main): LIkewise.
46923
46924 2008-12-20  Bruno Haible  <bruno@clisp.org>
46925
46926         Work around wctob bug on Solaris <= 9.
46927         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
46928         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
46929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
46930         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
46931         * modules/wctob (Files): Add m4/locale-fr.m4.
46932         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
46933
46934 2008-12-20  Bruno Haible  <bruno@clisp.org>
46935
46936         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
46937         /dev/null.
46938         * tests/test-select-in.sh: Likewise.
46939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46940
46941 2008-12-20  Bruno Haible  <bruno@clisp.org>
46942
46943         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
46944         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
46945         Cygwin 1.5.x.
46946
46947 2008-12-20  Bruno Haible  <bruno@clisp.org>
46948
46949         Ensure mbstate_t is defined on HP-UX 11.11.
46950         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
46951         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
46952         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
46953         AC_USE_SYSTEM_EXTENSIONS.
46954         * modules/fnmatch (Depends-on): Add extensions.
46955         * modules/mbrlen (Depends-on): Likewise.
46956         * modules/mbrtowc (Depends-on): Likewise.
46957         * modules/mbsinit (Depends-on): Likewise.
46958         * modules/mbsrtowcs (Depends-on): Likewise.
46959         * modules/mbswidth (Depends-on): Likewise.
46960         * modules/quotearg (Depends-on): Likewise.
46961         * modules/strftime (Depends-on): Likewise.
46962
46963 2008-12-20  Bruno Haible  <bruno@clisp.org>
46964
46965         Ensure wctob is declared on IRIX 6.5.
46966         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
46967         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
46968         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
46969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
46970         of HAVE_WCTOB.
46971         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
46972         HAVE_WCTOB.
46973         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
46974
46975 2008-12-19  Bruno Haible  <bruno@clisp.org>
46976
46977         * modules/mbsrtowcs-tests: New file.
46978         * tests/test-mbsrtowcs1.sh: New file.
46979         * tests/test-mbsrtowcs2.sh: New file.
46980         * tests/test-mbsrtowcs3.sh: New file.
46981         * tests/test-mbsrtowcs4.sh: New file.
46982         * tests/test-mbsrtowcs.c: New file.
46983
46984         New module 'mbsrtowcs'.
46985         * lib/wchar.in.h (mbsrtowcs): New declaration.
46986         * lib/mbsrtowcs.c: New file.
46987         * m4/mbsrtowcs.m4: New file.
46988         * modules/mbsrtowcs: New file.
46989         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
46990         HAVE_MBSRTOWCS.
46991         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
46992         HAVE_MBSRTOWCS.
46993         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
46994
46995 2008-12-19  Bruno Haible  <bruno@clisp.org>
46996
46997         New module 'mbrlen'.
46998         * lib/wchar.in.h (mbrlen): New declaration.
46999         * lib/mbrlen.c: New file.
47000         * m4/mbrlen.m4: New file.
47001         * modules/mbrlen: New file.
47002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
47003         HAVE_MBRLEN.
47004         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
47005         HAVE_MBRLEN.
47006         * doc/posix-functions/mbrlen.texi: Document the new module.
47007
47008 2008-12-19  Bruno Haible  <bruno@clisp.org>
47009
47010         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
47011         * modules/mbrtowc (Depends-on): Add verify.
47012         Suggested by Paul Eggert.
47013
47014 2008-12-18  Bruno Haible  <bruno@clisp.org>
47015
47016         * modules/mbsinit-tests: New file.
47017         * tests/test-mbsinit.sh: New file.
47018         * tests/test-mbsinit.c: New file.
47019
47020 2008-12-18  Bruno Haible  <bruno@clisp.org>
47021
47022         * modules/mbrtowc-tests: New file.
47023         * tests/test-mbrtowc1.sh: New file.
47024         * tests/test-mbrtowc2.sh: New file.
47025         * tests/test-mbrtowc3.sh: New file.
47026         * tests/test-mbrtowc4.sh: New file.
47027         * tests/test-mbrtowc.c: New file.
47028
47029         New module 'mbrtowc'.
47030         * lib/wchar.in.h (mbstate_t): Override when the system does not have
47031         mbsinit and mbrtowc.
47032         (mbrtowc): New declaration.
47033         * lib/mbrtowc.c: New file.
47034         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
47035         * modules/mbrtowc: New file.
47036         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
47037         HAVE_MBRTOWC.
47038         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
47039         HAVE_MBRTOWC.
47040         * doc/posix-functions/mbrtowc.texi: Document the new module.
47041
47042 2008-12-18  Bruno Haible  <bruno@clisp.org>
47043
47044         New module 'wctob'.
47045         * lib/wchar.in.h (wctob): New declaration.
47046         * lib/wctob.c: New file.
47047         * m4/wctob.m4: New file.
47048         * modules/wctob: New file.
47049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
47050         HAVE_WCTOB.
47051         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
47052         * doc/posix-functions/wctob.texi: Document the new module.
47053
47054 2008-12-18  Bruno Haible  <bruno@clisp.org>
47055
47056         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
47057         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
47058
47059 2008-12-18  Simon Josefsson  <simon@josefsson.org>
47060
47061         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
47062         G. Christensen" <tgc@jupiterrise.com>.
47063
47064         * lib/flock.c: Need to include errno.h.  Reported by "Tom
47065         G. Christensen" <tgc@jupiterrise.com>.
47066
47067         * lib/flock.c: Need to include string.h.  Reported by "Tom
47068         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
47069         <ebb9@byu.net>.
47070
47071 2008-12-18  Bruno Haible  <bruno@clisp.org>
47072
47073         * m4/locale-ja.m4: New file, from GNU gettext.
47074
47075 2008-12-17  Bruno Haible  <bruno@clisp.org>
47076
47077         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
47078         Suggested by Eric Blake.
47079
47080 2008-12-17  Bruno Haible  <bruno@clisp.org>
47081
47082         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
47083
47084 2008-12-17  Bruno Haible  <bruno@clisp.org>
47085
47086         * lib/mbsinit.c: Include verify.h. Verify an assumption.
47087         * modules/mbsinit (Depends-on): Add verify.
47088         Suggested by Paul Eggert.
47089
47090 2008-12-17  Bruno Haible  <bruno@clisp.org>
47091
47092         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
47093         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
47094         gl_FUNC_MBRTOWC.
47095         * m4/mbiter.m4 (gl_MBITER): LIkewise.
47096         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
47097         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
47098         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
47099         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
47100         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
47101         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
47102         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
47103         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
47104         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
47105         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
47106         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
47107         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
47108         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
47109         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
47110         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47111         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
47112         * modules/trim (configure.ac): Likewise.
47113
47114 2008-12-17  Bruno Haible  <bruno@clisp.org>
47115
47116         * modules/btowc-tests: New file.
47117         * tests/test-btowc1.sh: New file.
47118         * tests/test-btowc2.sh: New file.
47119         * tests/test-btowc.c: New file.
47120
47121         New module 'btowc'.
47122         * lib/wchar.in.h (btowc): New declaration.
47123         * lib/btowc.c: New file.
47124         * m4/btowc.m4: New file.
47125         * modules/btowc: New file.
47126         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
47127         HAVE_BTOWC.
47128         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
47129         * doc/posix-functions/btowc.texi: Document the new module.
47130
47131 2008-12-17  Bruno Haible  <bruno@clisp.org>
47132
47133         New module 'mbsinit'.
47134         * lib/wchar.in.h (mbsinit): New declaration.
47135         * lib/mbsinit.c: New file.
47136         * m4/mbsinit.m4: New file.
47137         * modules/mbsinit: New file.
47138         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
47139         HAVE_MBSINIT.
47140         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
47141         HAVE_MBSINIT.
47142         * doc/posix-functions/mbsinit.texi: Document the new module.
47143
47144 2008-12-16  Bruno Haible  <bruno@clisp.org>
47145
47146         * lib/unistd.in.h: Add comment.
47147         * tests/test-environ.c: Don't include <stdlib.h>.
47148
47149 2008-12-16  Bruno Haible  <bruno@clisp.org>
47150
47151         * lib/parse-duration.h (parse_duration): Document return value
47152         convention.
47153         * lib/parse-duration.c: Include specification header first. Add
47154         comments.
47155         (_): Remove macro.
47156         (parse_year_month_day, parse_hour_minute_second): Move side effects
47157         outside of strchr call.
47158         (parse_non_iso8601): Move side effects outside of isspace call.
47159         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
47160         call.
47161
47162 2008-12-16  Bruno Haible  <bruno@clisp.org>
47163
47164         * tests/test-parse-duration.sh: Produce no output when the test
47165         succeeds.
47166
47167 2008-12-16  Bruno Haible  <bruno@clisp.org>
47168
47169         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
47170         expressions.
47171
47172 2008-12-15  Bruno Haible  <bruno@clisp.org>
47173
47174         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
47175         * doc/glibc-functions/flistxattr.texi: Likewise.
47176         * doc/glibc-functions/fopencookie.texi: Likewise.
47177         * doc/glibc-functions/fremovexattr.texi: Likewise.
47178         * doc/glibc-functions/fsetxattr.texi: Likewise.
47179         * doc/glibc-functions/getxattr.texi: Likewise.
47180         * doc/glibc-functions/lgetxattr.texi: Likewise.
47181         * doc/glibc-functions/listxattr.texi: Likewise.
47182         * doc/glibc-functions/llistxattr.texi: Likewise.
47183         * doc/glibc-functions/lremovexattr.texi: Likewise.
47184         * doc/glibc-functions/lsetxattr.texi: Likewise.
47185         * doc/glibc-functions/removexattr.texi: Likewise.
47186         * doc/glibc-functions/setxattr.texi: Likewise.
47187         * doc/posix-functions/open_memstream.texi: Likewise.
47188
47189 2008-12-15  Eric Blake  <ebb9@byu.net>
47190
47191         Update doc for cygwin 1.7.
47192         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
47193         functions.
47194         * doc/posix-functions/fchmodat.texi: Likewise.
47195         * doc/posix-functions/fchownat.texi: Likewise.
47196         * doc/posix-functions/fdopendir.texi: Likewise.
47197         * doc/posix-functions/fmemopen.texi: Likewise.
47198         * doc/posix-functions/freeaddrinfo.texi: Likewise.
47199         * doc/posix-functions/fstatat.texi: Likewise.
47200         * doc/posix-functions/futimens.texi: Likewise.
47201         * doc/posix-functions/gai_strerror.texi: Likewise.
47202         * doc/posix-functions/getaddrinfo.texi: Likewise.
47203         * doc/posix-functions/getnameinfo.texi: Likewise.
47204         * doc/posix-functions/if_freenameindex.texi: Likewise.
47205         * doc/posix-functions/if_indextoname.texi: Likewise.
47206         * doc/posix-functions/if_nameindex.texi: Likewise.
47207         * doc/posix-functions/if_nametoindex.texi: Likewise.
47208         * doc/posix-functions/insque.texi: Likewise.
47209         * doc/posix-functions/linkat.texi: Likewise.
47210         * doc/posix-functions/llrint.texi: Likewise.
47211         * doc/posix-functions/llrintf.texi: Likewise.
47212         * doc/posix-functions/llrintl.texi: Likewise.
47213         * doc/posix-functions/lockf.texi: Likewise.
47214         * doc/posix-functions/lrintl.texi: Likewise.
47215         * doc/posix-functions/mkdirat.texi: Likewise.
47216         * doc/posix-functions/mkfifoat.texi: Likewise.
47217         * doc/posix-functions/mknodat.texi: Likewise.
47218         * doc/posix-functions/mq_close.texi: Likewise.
47219         * doc/posix-functions/mq_getattr.texi: Likewise.
47220         * doc/posix-functions/mq_notify.texi: Likewise.
47221         * doc/posix-functions/mq_open.texi: Likewise.
47222         * doc/posix-functions/mq_receive.texi: Likewise.
47223         * doc/posix-functions/mq_send.texi: Likewise.
47224         * doc/posix-functions/mq_setattr.texi: Likewise.
47225         * doc/posix-functions/mq_timedreceive.texi: Likewise.
47226         * doc/posix-functions/mq_timedsend.texi: Likewise.
47227         * doc/posix-functions/mq_unlink.texi: Likewise.
47228         * doc/posix-functions/open_memstream.texi: Likewise.
47229         * doc/posix-functions/openat.texi: Likewise.
47230         * doc/posix-functions/posix_fadvise.texi: Likewise.
47231         * doc/posix-functions/posix_fallocate.texi: Likewise.
47232         * doc/posix-functions/posix_madvise.texi: Likewise.
47233         * doc/posix-functions/posix_memalign.texi: Likewise.
47234         * doc/posix-functions/posix_openpt.texi: Likewise.
47235         * doc/posix-functions/readlinkat.texi: Likewise.
47236         * doc/posix-functions/remque.texi: Likewise.
47237         * doc/posix-functions/renameat.texi: Likewise.
47238         * doc/posix-functions/rintl.texi: Likewise.
47239         * doc/posix-functions/sem_unlink.texi: Likewise.
47240         * doc/posix-functions/shm_open.texi: Likewise.
47241         * doc/posix-functions/shm_unlink.texi: Likewise.
47242         * doc/posix-functions/signgam.texi: Likewise.
47243         * doc/posix-functions/sigset.texi: Likewise.
47244         * doc/posix-functions/stpcpy.texi: Likewise.
47245         * doc/posix-functions/stpncpy.texi: Likewise.
47246         * doc/posix-functions/strerror.texi: Likewise.
47247         * doc/posix-functions/strtod.texi: Likewise.
47248         * doc/posix-functions/symlinkat.texi: Likewise.
47249         * doc/posix-functions/unlinkat.texi: Likewise.
47250         * doc/posix-functions/utimensat.texi: Likewise.
47251         * doc/glibc-functions/bindresvport.texi: Likewise.
47252         * doc/glibc-functions/dn_expand.texi: Likewise.
47253         * doc/glibc-functions/exp10.texi: Likewise.
47254         * doc/glibc-functions/exp10f.texi: Likewise.
47255         * doc/glibc-functions/fgetxattr.texi: Likewise.
47256         * doc/glibc-functions/flistxattr.texi: Likewise.
47257         * doc/glibc-functions/fopencookie.texi: Likewise.
47258         * doc/glibc-functions/freeifaddrs.texi: Likewise.
47259         * doc/glibc-functions/fremovexattr.texi: Likewise.
47260         * doc/glibc-functions/fsetxattr.texi: Likewise.
47261         * doc/glibc-functions/getifaddrs.texi: Likewise.
47262         * doc/glibc-functions/getxattr.texi: Likewise.
47263         * doc/glibc-functions/lgetxattr.texi: Likewise.
47264         * doc/glibc-functions/listxattr.texi: Likewise.
47265         * doc/glibc-functions/llistxattr.texi: Likewise.
47266         * doc/glibc-functions/lremovexattr.texi: Likewise.
47267         * doc/glibc-functions/lsetxattr.texi: Likewise.
47268         * doc/glibc-functions/pow10.texi: Likewise.
47269         * doc/glibc-functions/pow10f.texi: Likewise.
47270         * doc/glibc-functions/rcmd_af.texi: Likewise.
47271         * doc/glibc-functions/removexattr.texi: Likewise.
47272         * doc/glibc-functions/res_init.texi: Likewise.
47273         * doc/glibc-functions/res_mkquery.texi: Likewise.
47274         * doc/glibc-functions/res_query.texi: Likewise.
47275         * doc/glibc-functions/res_querydomain.texi: Likewise.
47276         * doc/glibc-functions/res_send.texi: Likewise.
47277         * doc/glibc-functions/rresvport_af.texi: Likewise.
47278         * doc/glibc-functions/setxattr.texi: Likewise.
47279         * doc/glibc-functions/strcasestr.texi: Likewise.
47280
47281 2008-12-15  Bruno Haible  <bruno@clisp.org>
47282
47283         Fix compilation error on OSF/1 4.0.
47284         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
47285         <sys/time.h>, simply delegate to the system header.
47286         Reported by Daniel Richard G. <oss@teragram.com>.
47287
47288 2008-12-15  Bruno Haible  <bruno@clisp.org>
47289
47290         * doc/posix-functions/openat.texi: Mention the 'openat' module.
47291         * doc/posix-functions/fchmodat.texi: Likewise.
47292         * doc/posix-functions/fchownat.texi: Likewise.
47293         * doc/posix-functions/fdopendir.texi: Likewise.
47294         * doc/posix-functions/fstatat.texi: Likewise.
47295         * doc/posix-functions/mkdirat.texi: Likewise.
47296         * doc/posix-functions/unlinkat.texi: Likewise.
47297
47298 2008-12-14  Bruno Haible  <bruno@clisp.org>
47299
47300         Update doc for POSIX:2008.
47301         * doc/posix-functions/faccessat.texi: New file.
47302         * doc/posix-functions/fchmodat.texi: New file.
47303         * doc/posix-functions/fchownat.texi: New file.
47304         * doc/posix-functions/fdopendir.texi: New file.
47305         * doc/posix-functions/fstatat.texi: New file.
47306         * doc/posix-functions/futimens.texi: New file.
47307         * doc/posix-functions/linkat.texi: New file.
47308         * doc/posix-functions/mkdirat.texi: New file.
47309         * doc/posix-functions/mkfifoat.texi: New file.
47310         * doc/posix-functions/mknodat.texi: New file.
47311         * doc/posix-functions/open_wmemstream.texi: New file.
47312         * doc/posix-functions/openat.texi: New file.
47313         * doc/posix-functions/psiginfo.texi: New file.
47314         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
47315         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
47316         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
47317         * doc/posix-functions/readlinkat.texi: New file.
47318         * doc/posix-functions/renameat.texi: New file.
47319         * doc/posix-functions/strerror_l.texi: New file.
47320         * doc/posix-functions/symlinkat.texi: New file.
47321         * doc/posix-functions/unlinkat.texi: New file.
47322         * doc/posix-functions/utimensat.texi: New file.
47323         * doc/gnulib.texi (Function Substitutes): Add these subsections.
47324
47325 2008-12-14  Bruno Haible  <bruno@clisp.org>
47326
47327         Update doc for POSIX:2008.
47328         * doc/posix-functions/alphasort.texi: Renamed from
47329         doc/glibc-functions/alphasort.texi.
47330         * doc/posix-functions/dirfd.texi: Renamed from
47331         doc/glibc-functions/dirfd.texi.
47332         * doc/posix-functions/dprintf.texi: Renamed from
47333         doc/glibc-functions/dprintf.texi.
47334         * doc/posix-functions/duplocale.texi: Renamed from
47335         doc/glibc-functions/duplocale.texi.
47336         * doc/posix-functions/fexecve.texi: Renamed from
47337         doc/glibc-functions/fexecve.texi.
47338         * doc/posix-functions/fmemopen.texi: Renamed from
47339         doc/glibc-functions/fmemopen.texi.
47340         * doc/posix-functions/freelocale.texi: Renamed from
47341         doc/glibc-functions/freelocale.texi.
47342         * doc/posix-functions/getdate_err.texi: Renamed from
47343         doc/glibc-functions/getdate_err.texi.
47344         * doc/posix-functions/isalnum_l.texi: Renamed from
47345         doc/glibc-functions/isalnum_l.texi.
47346         * doc/posix-functions/isalpha_l.texi: Renamed from
47347         doc/glibc-functions/isalpha_l.texi.
47348         * doc/posix-functions/isblank_l.texi: Renamed from
47349         doc/glibc-functions/isblank_l.texi.
47350         * doc/posix-functions/iscntrl_l.texi: Renamed from
47351         doc/glibc-functions/iscntrl_l.texi.
47352         * doc/posix-functions/isdigit_l.texi: Renamed from
47353         doc/glibc-functions/isdigit_l.texi.
47354         * doc/posix-functions/isgraph_l.texi: Renamed from
47355         doc/glibc-functions/isgraph_l.texi.
47356         * doc/posix-functions/islower_l.texi: Renamed from
47357         doc/glibc-functions/islower_l.texi.
47358         * doc/posix-functions/isprint_l.texi: Renamed from
47359         doc/glibc-functions/isprint_l.texi.
47360         * doc/posix-functions/ispunct_l.texi: Renamed from
47361         doc/glibc-functions/ispunct_l.texi.
47362         * doc/posix-functions/isspace_l.texi: Renamed from
47363         doc/glibc-functions/isspace_l.texi.
47364         * doc/posix-functions/isupper_l.texi: Renamed from
47365         doc/glibc-functions/isupper_l.texi.
47366         * doc/posix-functions/iswalnum_l.texi: Renamed from
47367         doc/glibc-functions/iswalnum_l.texi.
47368         * doc/posix-functions/iswalpha_l.texi: Renamed from
47369         doc/glibc-functions/iswalpha_l.texi.
47370         * doc/posix-functions/iswblank_l.texi: Renamed from
47371         doc/glibc-functions/iswblank_l.texi.
47372         * doc/posix-functions/iswcntrl_l.texi: Renamed from
47373         doc/glibc-functions/iswcntrl_l.texi.
47374         * doc/posix-functions/iswctype_l.texi: Renamed from
47375         doc/glibc-functions/iswctype_l.texi.
47376         * doc/posix-functions/iswdigit_l.texi: Renamed from
47377         doc/glibc-functions/iswdigit_l.texi.
47378         * doc/posix-functions/iswgraph_l.texi: Renamed from
47379         doc/glibc-functions/iswgraph_l.texi.
47380         * doc/posix-functions/iswlower_l.texi: Renamed from
47381         doc/glibc-functions/iswlower_l.texi.
47382         * doc/posix-functions/iswprint_l.texi: Renamed from
47383         doc/glibc-functions/iswprint_l.texi.
47384         * doc/posix-functions/iswpunct_l.texi: Renamed from
47385         doc/glibc-functions/iswpunct_l.texi.
47386         * doc/posix-functions/iswspace_l.texi: Renamed from
47387         doc/glibc-functions/iswspace_l.texi.
47388         * doc/posix-functions/iswupper_l.texi: Renamed from
47389         doc/glibc-functions/iswupper_l.texi.
47390         * doc/posix-functions/iswxdigit_l.texi: Renamed from
47391         doc/glibc-functions/iswxdigit_l.texi.
47392         * doc/posix-functions/isxdigit_l.texi: Renamed from
47393         doc/glibc-functions/isxdigit_l.texi.
47394         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
47395         doc/glibc-functions/mbsnrtowcs.texi.
47396         * doc/posix-functions/mkdtemp.texi: Renamed from
47397         doc/glibc-functions/mkdtemp.texi.
47398         * doc/posix-functions/newlocale.texi: Renamed from
47399         doc/glibc-functions/newlocale.texi.
47400         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
47401         doc/glibc-functions/nl_langinfo_l.texi.
47402         * doc/posix-functions/open_memstream.texi: Renamed from
47403         doc/glibc-functions/open_memstream.texi.
47404         * doc/posix-functions/opterr.texi: Renamed from
47405         doc/glibc-functions/opterr.texi.
47406         * doc/posix-functions/optind.texi: Renamed from
47407         doc/glibc-functions/optind.texi.
47408         * doc/posix-functions/optopt.texi: Renamed from
47409         doc/glibc-functions/optopt.texi.
47410         * doc/posix-functions/psignal.texi: Renamed from
47411         doc/glibc-functions/psignal.texi.
47412         * doc/posix-functions/scandir.texi: Renamed from
47413         doc/glibc-functions/scandir.texi.
47414         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
47415         doc/glibc-functions/sched_get_priority_min.texi.
47416         * doc/posix-functions/signgam.texi: Renamed from
47417         doc/glibc-functions/signgam.texi.
47418         * doc/posix-functions/stpcpy.texi: Renamed from
47419         doc/glibc-functions/stpcpy.texi.
47420         * doc/posix-functions/stpncpy.texi: Renamed from
47421         doc/glibc-functions/stpncpy.texi.
47422         * doc/posix-functions/strcasecmp_l.texi: Renamed from
47423         doc/glibc-functions/strcasecmp_l.texi.
47424         * doc/posix-functions/strcoll_l.texi: Renamed from
47425         doc/glibc-functions/strcoll_l.texi.
47426         * doc/posix-functions/strfmon_l.texi: Renamed from
47427         doc/glibc-functions/strfmon_l.texi.
47428         * doc/posix-functions/strftime_l.texi: Renamed from
47429         doc/glibc-functions/strftime_l.texi.
47430         * doc/posix-functions/strncasecmp_l.texi: Renamed from
47431         doc/glibc-functions/strncasecmp_l.texi.
47432         * doc/posix-functions/strndup.texi: Renamed from
47433         doc/glibc-functions/strndup.texi.
47434         * doc/posix-functions/strnlen.texi: Renamed from
47435         doc/glibc-functions/strnlen.texi.
47436         * doc/posix-functions/strsignal.texi: Renamed from
47437         doc/glibc-functions/strsignal.texi.
47438         * doc/posix-functions/strxfrm_l.texi: Renamed from
47439         doc/glibc-functions/strxfrm_l.texi.
47440         * doc/posix-functions/timer_gettime.texi: Renamed from
47441         doc/glibc-functions/timer_gettime.texi.
47442         * doc/posix-functions/tolower_l.texi: Renamed from
47443         doc/glibc-functions/tolower_l.texi.
47444         * doc/posix-functions/toupper_l.texi: Renamed from
47445         doc/glibc-functions/toupper_l.texi.
47446         * doc/posix-functions/towctrans_l.texi: Renamed from
47447         doc/glibc-functions/towctrans_l.texi.
47448         * doc/posix-functions/towlower_l.texi: Renamed from
47449         doc/glibc-functions/towlower_l.texi.
47450         * doc/posix-functions/towupper_l.texi: Renamed from
47451         doc/glibc-functions/towupper_l.texi.
47452         * doc/posix-functions/uselocale.texi: Renamed from
47453         doc/glibc-functions/uselocale.texi.
47454         * doc/posix-functions/vdprintf.texi: Renamed from
47455         doc/glibc-functions/vdprintf.texi.
47456         * doc/posix-functions/wcpcpy.texi:
47457         Renamed from doc/glibc-functions/wcpcpy.texi.
47458         * doc/posix-functions/wcpncpy.texi: Renamed from
47459         doc/glibc-functions/wcpncpy.texi.
47460         * doc/posix-functions/wcscasecmp.texi: Renamed from
47461         doc/glibc-functions/wcscasecmp.texi.
47462         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
47463         doc/glibc-functions/wcscasecmp_l.texi.
47464         * doc/posix-functions/wcscoll_l.texi: Renamed from
47465         doc/glibc-functions/wcscoll_l.texi.
47466         * doc/posix-functions/wcsdup.texi: Renamed from
47467         doc/glibc-functions/wcsdup.texi.
47468         * doc/posix-functions/wcsncasecmp.texi: Renamed from
47469         doc/glibc-functions/wcsncasecmp.texi.
47470         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
47471         doc/glibc-functions/wcsncasecmp_l.texi.
47472         * doc/posix-functions/wcsnlen.texi: Renamed from
47473         doc/glibc-functions/wcsnlen.texi.
47474         * doc/posix-functions/wcsnrtombs.texi: Renamed from
47475         doc/glibc-functions/wcsnrtombs.texi.
47476         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
47477         doc/glibc-functions/wcsxfrm_l.texi.
47478         * doc/posix-functions/wctrans_l.texi: Renamed from
47479         doc/glibc-functions/wctrans_l.texi.
47480         * doc/posix-functions/wctype_l.texi: Renamed from
47481         doc/glibc-functions/wctype_l.texi.
47482         * doc/gnulib.texi (Function Substitutes): Add these subsections.
47483         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
47484         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
47485         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
47486         these subsections.
47487         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
47488         Remove sections.
47489
47490 2008-12-14  Bruno Haible  <bruno@clisp.org>
47491
47492         Update doc for POSIX:2008.
47493         * doc/posix-functions/*.texi: Update URL of POSIX specification.
47494
47495 2008-12-14  Bruno Haible  <bruno@clisp.org>
47496
47497         Update doc for POSIX:2008.
47498         * doc/pastposix-functions/bcmp.texi: Renamed from
47499         doc/posix-functions/bcmp.texi.
47500         * doc/pastposix-functions/bcopy.texi: Renamed from
47501         doc/posix-functions/bcopy.texi.
47502         * doc/pastposix-functions/bsd_signal.texi: Renamed from
47503         doc/posix-functions/bsd_signal.texi.
47504         * doc/pastposix-functions/bzero.texi: Renamed from
47505         doc/posix-functions/bzero.texi.
47506         * doc/pastposix-functions/ecvt.texi: Renamed from
47507         doc/posix-functions/ecvt.texi.
47508         * doc/pastposix-functions/fcvt.texi: Renamed from
47509         doc/posix-functions/fcvt.texi.
47510         * doc/pastposix-functions/ftime.texi: Renamed from
47511         doc/posix-functions/ftime.texi.
47512         * doc/pastposix-functions/gcvt.texi: Renamed from
47513         doc/posix-functions/gcvt.texi.
47514         * doc/pastposix-functions/getcontext.texi: Renamed from
47515         doc/posix-functions/getcontext.texi.
47516         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
47517         doc/posix-functions/gethostbyaddr.texi.
47518         * doc/pastposix-functions/gethostbyname.texi: Renamed from
47519         doc/posix-functions/gethostbyname.texi.
47520         * doc/pastposix-functions/getwd.texi: Renamed from
47521         doc/posix-functions/getwd.texi.
47522         * doc/pastposix-functions/h_errno.texi: Renamed from
47523         doc/posix-functions/h_errno.texi.
47524         * doc/pastposix-functions/index.texi: Renamed from
47525         doc/posix-functions/index.texi.
47526         * doc/pastposix-functions/makecontext.texi: Renamed from
47527         doc/posix-functions/makecontext.texi.
47528         * doc/pastposix-functions/mktemp.texi: Renamed from
47529         doc/posix-functions/mktemp.texi.
47530         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
47531         doc/posix-functions/pthread_attr_getstackaddr.texi.
47532         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
47533         doc/posix-functions/pthread_attr_setstackaddr.texi.
47534         * doc/pastposix-functions/rindex.texi: Renamed from
47535         doc/posix-functions/rindex.texi.
47536         * doc/pastposix-functions/scalb.texi: Renamed from
47537         doc/posix-functions/scalb.texi.
47538         * doc/pastposix-functions/setcontext.texi: Renamed from
47539         doc/posix-functions/setcontext.texi.
47540         * doc/pastposix-functions/swapcontext.texi: Renamed from
47541         doc/posix-functions/swapcontext.texi.
47542         * doc/pastposix-functions/ualarm.texi: Renamed from
47543         doc/posix-functions/ualarm.texi.
47544         * doc/pastposix-functions/usleep.texi: Renamed from
47545         doc/posix-functions/usleep.texi.
47546         * doc/pastposix-functions/vfork.texi: Renamed from
47547         doc/posix-functions/vfork.texi.
47548         * doc/pastposix-functions/wcswcs.texi: Renamed from
47549         doc/posix-functions/wcswcs.texi.
47550         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
47551         (Function Substitutes): Update.
47552
47553 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47554
47555         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
47556         m4/strerror.m4.
47557
47558 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47559             Bruno Haible  <bruno@clisp.org>
47560
47561         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
47562
47563 2008-12-13  Bruno Haible  <bruno@clisp.org>
47564
47565         * modules/strtoull (Depends-on): Remove unistd.
47566
47567 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47568
47569         * modules/strtoull (Depends-on): Add stdlib.
47570
47571 2008-12-11  Simon Josefsson  <simon@josefsson.org>
47572
47573         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
47574
47575 2008-12-10  Jim Meyering  <meyering@redhat.com>
47576
47577         gl_ASSERT: don't say assertions are disabled when they're not
47578         * m4/assert.m4 (gl_ASSERT): Do not make configure report
47579         "checking whether to enable assertions... no", when they are in
47580         fact enabled.  This is solely a bug in the output of configure.
47581         In spite of saying "no", NDEBUG was not defined in that case.
47582         Also, as noted by Eric Blake, leave assertions enabled upon
47583         --enable-assert=INVALID.
47584
47585 2008-12-10  Bruno Haible  <bruno@clisp.org>
47586
47587         Change MODULES.html to refer to POSIX:2008 where possible.
47588         * MODULES.html.sh (POSIX2008_URL): New variable.
47589         (posix_headers): Remove sys/timeb, ucontext.
47590         (posix2001_headers): New variable.
47591         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
47592         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
47593         index, makecontext, mktemp, pthread_attr_getstackaddr,
47594         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
47595         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
47596         (posix2001_functions): New variable.
47597         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
47598         otherwise.
47599
47600 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47601
47602         add missing include to parse-duration.c
47603         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
47604         * modules/parse-duration (Depends-on): Add xalloc.
47605
47606         fix sed script reading maint.mk
47607         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
47608         (syntax-check-rules): Use it.
47609
47610 2008-12-09  Bruno Haible  <bruno@clisp.org>
47611
47612         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
47613         MacOS X 10.4/PowerPC.
47614         Reported by Simon Josefsson.
47615
47616 2008-12-08  Jim Meyering  <meyering@redhat.com>
47617
47618         work around mingw's lack of some S_IF definitions
47619         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
47620         Reported by Simon Josefsson.
47621
47622 2008-12-08  Bruno Haible  <bruno@clisp.org>
47623
47624         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
47625         applied to variables. Needed on MacOS X 10.4/PowerPC.
47626         Reported by Simon Josefsson.
47627
47628 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
47629         and Eric Blake  <ebb9@byu.net>
47630
47631         assert: honor --enable-assert
47632         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
47633         order to honor --enable-assert, rather than treating it as a
47634         synonym for --disable-assert.
47635
47636 2008-12-08  Jim Meyering  <meyering@redhat.com>
47637
47638         * lib/posixtm.c: Remove now-useless declaration of mktime.
47639
47640         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
47641
47642 2008-12-07  Bruno Haible  <bruno@clisp.org>
47643
47644         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
47645         test_once): Mark functions as static.
47646         * tests/test-tls.c (test_tls): Likewise.
47647
47648 2008-12-07  Bruno Haible  <bruno@clisp.org>
47649
47650         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
47651         iconv_register_autodetect.
47652
47653 2008-12-07  Jim Meyering  <meyering@redhat.com>
47654
47655         posixtm.c: avoid a warning
47656         * lib/posixtm.c (posixtime): Don't initialize tm0.
47657         It's no longer needed to placate gcc4's -Wuninitialized,
47658         and the attempt to placate would elicit a new warning.
47659
47660         unicodeio.c: mark unused parameters
47661         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47662         (fallback_failure_callback): Likewise.
47663
47664 2008-12-07  Bruno Haible  <bruno@clisp.org>
47665
47666         * gnulib-tool (func_create_testdir): When building the tests
47667         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
47668         Reported by Simon Josefsson.
47669
47670 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47671
47672         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
47673
47674 2008-12-06  Bruno Haible  <bruno@clisp.org>
47675
47676         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
47677         Suggested by Eric Blake.
47678
47679 2008-12-06  Bruno Haible  <bruno@clisp.org>
47680
47681         Fix a c-stack test failure on MacOS X.
47682         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
47683         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
47684         handler for SIGBUS as well.
47685         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
47686         install a signal handler for SIGBUS as well.
47687         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
47688
47689 2008-12-06  Bruno Haible  <bruno@clisp.org>
47690
47691         Advocacy documentation.
47692         * doc/gnulib-intro.texi (Benefits): New section.
47693         * doc/gnulib.texi: Update.
47694
47695 2008-12-06  Bruno Haible  <bruno@clisp.org>
47696
47697         Document the 'manywarnings' module.
47698         * doc/manywarnings.texi: New file.
47699         * doc/gnulib.texi: Include it.
47700
47701 2008-12-05  Eric Blake  <ebb9@byu.net>
47702
47703         tests: silence some gcc warnings
47704         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
47705         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
47706         type mismatches.
47707
47708 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47709             Bruno Haible  <bruno@clisp.org>
47710
47711         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
47712
47713 2008-11-29  Jim Meyering  <meyering@redhat.com>
47714
47715         unicodeio.c: mark unused parameters
47716         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
47717         (fallback_failure_callback): Likewise.
47718
47719         fts: fix a thinko
47720         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
47721         (set_stat_type): Return S_IF*-valued "type" directly.
47722         Prompted by James Youngman's spotting a related bug.
47723         Confirmed by further testing through find.
47724
47725         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
47726         * lib/fts.c (D_TYPE): Define.
47727         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
47728         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
47729         (s_ifmt_shift_bits): New function.
47730         (set_stat_type): New function.
47731         (fts_build): When not calling fts_stat, call set_stat_type
47732         to propagate dirent.d_type info to fts_read caller.
47733         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
47734         fts_statp->st_mode type information may be valid.
47735
47736 2008-11-28  Simon Josefsson  <simon@josefsson.org>
47737
47738         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
47739         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
47740         <sds@gnu.org>.
47741
47742 2008-11-20  Bruno Haible  <bruno@clisp.org>
47743
47744         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
47745         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
47746         INCLUDE_NEXT.
47747         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
47748         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
47749         * modules/math (Makefile.am): Substitute
47750         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
47751         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47752
47753 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
47754             Bruno Haible  <bruno@clisp.org>
47755
47756         * lib/stdint.in.h: Define all type macros so that their expansion is
47757         a single typedef'ed token. Fixes a compilation failure in Boost which
47758         does "using ::int8_t;".
47759
47760 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47761
47762         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
47763         gl_MANYWARN_ALL_GCC.
47764         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
47765         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
47766         * modules/manywarnings: New file.
47767         * MODULES.html.sh: Mention manywarnings module.
47768
47769 2008-11-18  Bruno Haible  <bruno@clisp.org>
47770
47771         * doc/gnulib-tool.texi (Unit tests): New section.
47772
47773 2008-11-18  Simon Josefsson  <simon@josefsson.org>
47774
47775         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
47776         paths like 'lib/po/foo.po'.
47777
47778 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47779
47780         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
47781         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
47782
47783 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47784
47785         * m4/warnings.m4: Use CPPFLAGS to really check whether the
47786         parameter works.
47787
47788 2008-11-17  Simon Josefsson  <simon@josefsson.org>
47789
47790         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
47791
47792 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47793
47794         * modules/parse-duration-tests: New file.
47795         * tests/test-parse-duration.sh: New file.
47796         * tests/test-parse-duration.c: New file.
47797
47798         New module 'parse-duration'.
47799         * lib/parse-duration.h: New file.
47800         * lib/parse-duration.c: New file.
47801         * modules/parse-duration: New file.
47802
47803 2008-11-17  Bruno Haible  <bruno@clisp.org>
47804
47805         * tests/test-select-out.sh: Comment out the first pipe test.
47806         Reported by Simon Josefsson.
47807
47808 2008-11-17  Bruno Haible  <bruno@clisp.org>
47809
47810         * modules/getaddrinfo (Depends-on): Add servent, hostent.
47811         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
47812         gl_HOSTENT.
47813
47814 2008-11-17  Bruno Haible  <bruno@clisp.org>
47815
47816         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
47817         -lnetwork and -lnet. Needed for Haiku and BeOS.
47818
47819 2008-11-16  Bruno Haible  <bruno@clisp.org>
47820
47821         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
47822
47823 2008-11-16  Bruno Haible  <bruno@clisp.org>
47824
47825         Avoid test failure on Haiku.
47826         * tests/test-fsync.c: Include <errno.h>.
47827         (main): Don't require that fsync (0) fails.
47828
47829 2008-11-15  Bruno Haible  <bruno@clisp.org>
47830
47831         New module 'hostent'.
47832         * modules/hostent: New file.
47833         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
47834
47835 2008-11-15  Bruno Haible  <bruno@clisp.org>
47836
47837         New module 'servent'.
47838         * modules/servent: New file.
47839         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
47840
47841 2008-11-15  Bruno Haible  <bruno@clisp.org>
47842
47843         Avoid generating same test program with two different rules.
47844         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
47845         test-frexp to test-frexp-nolibm.
47846         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
47847         test-frexpl to test-frexpl-nolibm.
47848
47849 2008-11-15  Bruno Haible  <bruno@clisp.org>
47850
47851         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
47852         $(FREXPL_LIBM).
47853
47854 2008-11-15  Bruno Haible  <bruno@clisp.org>
47855
47856         * lib/netdb.in.h: Activate the definitions also when the system's
47857         <netdb.h> has 'struct addrinfo'.
47858         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
47859         EAI_OVERFLOW or AI_NUMERICSERV.
47860         * doc/posix-headers/netdb.texi: Document the problem.
47861
47862 2008-11-15  Bruno Haible  <bruno@clisp.org>
47863
47864         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
47865
47866         Make the 'sched' module work on platforms where <sched.h> exists but
47867         is incomplete (such as Haiku).
47868         * lib/sched.in.h; Include the system's <sched.h> if it exists.
47869         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
47870         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
47871         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
47872         HAVE_STRUCT_SCHED_PARAM.
47873         * modules/sched (Depends-on): Add include_next.
47874         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
47875         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
47876         * doc/posix-headers/sched.texi: Document the issue.
47877
47878 2008-11-13  Jim Meyering  <meyering@redhat.com>
47879
47880         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
47881         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
47882         test would fail due to the difference in the Report bugs to ...
47883         line.  The expected address is empty, "<>", while the actual
47884         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
47885
47886 2008-11-12  Bruno Haible  <bruno@clisp.org>
47887
47888         lstat: don't compile lstat.c on systems lacking lstat
47889         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
47890         which don't have lstat; this is handled by lib/sys_stat.in.h already.
47891         Reported by Daniel P. Berrange via Jim Meyering.
47892
47893 2008-11-12  Jim Meyering  <meyering@redhat.com>
47894
47895         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
47896
47897 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47898
47899         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
47900         instead.
47901
47902 2008-11-12  Bruno Haible  <bruno@clisp.org>
47903
47904         * lib/unicodeio.c: Include unistr.h.
47905         (utf8_wctomb): Remove function.
47906         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
47907
47908 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47909
47910         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
47911         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
47912         <bruno@clisp.org>.
47913         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
47914
47915 2008-11-12  Simon Josefsson  <simon@josefsson.org>
47916
47917         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
47918         * doc/gnulib.texi: Add section for warnings.
47919
47920 2008-11-11  Bruno Haible  <bruno@clisp.org>
47921
47922         * lib/sockets.h: Add a comment.
47923
47924 2008-11-11  Karl Berry  <karl@gnu.org>
47925
47926         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
47927
47928 2008-11-11  Eric Blake  <ebb9@byu.net>
47929
47930         fdl.texi: avoid git symlinks
47931         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
47932
47933 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47934
47935         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
47936
47937 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47938
47939         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
47940         (gl_WARN_ADD): Substitute $2 if literal.
47941
47942 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47943
47944         * m4/warning.m4: Remove.
47945
47946 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
47947
47948         * m4/warnings.m4: Almost complete rewrite. :-)
47949
47950 2008-11-10  Simon Josefsson  <simon@josefsson.org>
47951
47952         * modules/warnings: New module.
47953         * m4/warnings.m4: New file.
47954         * MODULES.html.sh: Mention warnings module.
47955         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
47956         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47957
47958 2008-11-10  Eric Blake  <ebb9@byu.net>
47959
47960         fdl.texi: make a symlink to the latest version
47961         * doc/standards.texi: Revert today's earlier change.
47962         * doc/fdl-1.2.texi: Rename from old fdl.texi...
47963         * doc/fdl.texi: ...and replace this with a symlink to the newer
47964         fdl-1.3.texi.
47965
47966 2008-11-10  Bruno Haible  <bruno@clisp.org>
47967
47968         * tests/test-select-fd.c (main): Accept the result file name as fourth
47969         argument.
47970         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
47971         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
47972
47973 2008-11-10  Bruno Haible  <bruno@clisp.org>
47974
47975         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
47976         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
47977         as autoconf-substituted macros.
47978         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
47979         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
47980         gl_NETDB_H_DEFAULTS. Set these variables.
47981         * modules/netdb (Makefile.am): Substitute these variables.
47982
47983 2008-11-10  Eric Blake  <ebb9@byu.net>
47984
47985         standards.texi: include correct file for FDL 1.3
47986         * doc/standards.texi (GNU Free Documentation License): Change
47987         include file to pull in FDL 1.3, not 1.2.
47988
47989         fdl.texi: revert accidental change to license
47990         * doc/fdl.texi: This is FDL 1.2, not 1.3.
47991
47992 2008-11-10  Bruno Haible  <bruno@clisp.org>
47993
47994         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
47995         cross-compiling guesses also when the native compile gives no result.
47996
47997 2008-11-10  Bruno Haible  <bruno@clisp.org>
47998
47999         * lib/spawni.c (__spawni): Force variable into the stack.
48000
48001 2008-11-10  Bruno Haible  <bruno@clisp.org>
48002
48003         Add support for Haiku.
48004         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
48005         glibc and BeOS, but also on Haiku.
48006         * lib/fpurge.c (fpurge): Likewise.
48007         * lib/freadable.c (freadable): Likewise.
48008         * lib/freadahead.c (freadahead): Likewise.
48009         * lib/freading.c (freading): Likewise.
48010         * lib/freadptr.c (freadptr): Likewise.
48011         * lib/freadseek.c (freadptrinc): Likewise.
48012         * lib/fseeko.c (rpl_fseeko): Likewise.
48013         * lib/fseterr.c (fseterr): Likewise.
48014         * lib/fwritable.c (fwritable): Likewise.
48015         * lib/fwriting.c (fwriting): Likewise.
48016         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
48017
48018 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48019
48020         * lib/config.charset: Treat Haiku like BeOS.
48021
48022 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48023
48024         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
48025         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
48026
48027 2008-11-08  Bruno Haible  <bruno@clisp.org>
48028
48029         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
48030         AC_CACHE_CHECK.
48031
48032 2008-11-08  Bruno Haible  <bruno@clisp.org>
48033
48034         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
48035
48036 2008-11-08  Bruno Haible  <bruno@clisp.org>
48037
48038         * tests/test-select-fd.c: New file.
48039         * tests/test-select-in.sh: New file.
48040         * tests/test-select-out.sh: New file.
48041         * tests/test-select-stdin.c: New file.
48042         * modules/select-tests (Files): Add the new files.
48043         (Depends-on): Add gettimeofday.
48044         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
48045         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
48046         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
48047
48048 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
48049             Bruno Haible  <bruno@clisp.org>
48050
48051         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
48052
48053 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
48054
48055         * build-aux/pmccabe2html: Added support for C++ source files.
48056
48057 2008-11-05  Ben Pfaff  <blp@gnu.org>
48058
48059         Fix lib/close.c build on Windows.
48060         * modules/close (Files): Add lib/w32sock.h.
48061
48062 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
48063
48064         Accept Bison's NEWS format.
48065         * build-aux/announce-gen (print_news_deltas): Tweak
48066         $re_prefix.
48067
48068 2008-11-04  Bruno Haible  <bruno@clisp.org>
48069
48070         * modules/random_r (Maintainer): Add glibc.
48071
48072 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48073
48074         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
48075         by karl@freefriends.org (Karl Berry).
48076         * doc/alloca.texi: Likewise.
48077         * doc/c-ctype.texi: Likewise.
48078         * doc/c-strcase.texi: Likewise.
48079         * doc/c-strcaseeq.texi: Likewise.
48080         * doc/c-strcasestr.texi: Likewise.
48081         * doc/c-strstr.texi: Likewise.
48082         * doc/c-strtod.texi: Likewise.
48083         * doc/c-strtold.texi: Likewise.
48084         * doc/ctime.texi: Likewise.
48085         * doc/error.texi: Likewise.
48086         * doc/fdl.texi: Likewise.
48087         * doc/gcd.texi: Likewise.
48088         * doc/getdate.texi: Likewise.
48089         * doc/gnulib-intro.texi: Likewise.
48090         * doc/gnulib-tool.texi: Likewise.
48091         * doc/gnulib.texi: Likewise.
48092         * doc/inet_ntoa.texi: Likewise.
48093         * doc/maintain.texi: Likewise.
48094         * doc/make-stds.texi: Likewise.
48095         * doc/quote.texi: Likewise.
48096         * doc/regexprops-generic.texi: Likewise.
48097         * doc/standards.texi: Likewise.
48098         * doc/verify.texi: Likewise.
48099         * doc/visibility.texi: Likewise.
48100         * doc/gnulib.texi (GNU Free Documentation License): Include
48101         fdl-1.3.texi instead of fdl.texi.
48102
48103 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48104
48105         * doc/fdl-1.3.texi: New file, from
48106         <http://www.gnu.org/licenses/fdl-1.3.texi>.
48107         * modules/fdl-1.3: Add.
48108         * MODULES.html.sh: Add fdl-1.3.
48109
48110 2008-11-03  Bruno Haible  <bruno@clisp.org>
48111
48112         Make determination of absolute name of header file work with AIX xlc.
48113         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
48114         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
48115         preprocessing.
48116         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48117         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48118
48119 2008-11-03  Simon Josefsson  <simon@josefsson.org>
48120
48121         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
48122         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
48123         <ludo@gnu.org>.
48124
48125 2008-11-02  Bruno Haible  <bruno@clisp.org>
48126
48127         Mark 'strpbrk' obsolete.
48128         * modules/strpbrk (Status, Notice): New sections.
48129         * modules/strtok_r (Depends-on): Add strpbrk.
48130
48131 2008-11-02  Bruno Haible  <bruno@clisp.org>
48132
48133         Mark 'strdup' obsolete.
48134         * modules/strdup (Status, Notice): New sections.
48135         * modules/findprog (Depends-on): Add strdup.
48136         * modules/getaddrinfo (Depends-on): Likewise.
48137         * modules/localename (Depends-on): Likewise.
48138         * modules/relocatable-lib (Depends-on): Likewise.
48139         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
48140         * modules/relocatable-prog (Depends-on): Likewise.
48141         * modules/trim (Depends-on): Likewise.
48142         * modules/unictype/gen-ctype (Depends-on): Likewise.
48143         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48144
48145 2008-11-02  Bruno Haible  <bruno@clisp.org>
48146
48147         Mark 'strcspn' obsolete.
48148         * modules/strcspn (Status, Notice): New sections.
48149
48150 2008-11-02  Bruno Haible  <bruno@clisp.org>
48151
48152         Mark 'rmdir' obsolete.
48153         * modules/rmdir (Status, Notice): New sections.
48154         * modules/clean-temp (Depends-on): Add rmdir.
48155         * modules/openat (Depends-on): Likewise.
48156
48157 2008-11-02  Bruno Haible  <bruno@clisp.org>
48158
48159         Mark 'raise' obsolete.
48160         * modules/raise (Status, Notice): New sections.
48161         (Include): Specify <signal.h>.
48162         * modules/stdio (Depends-on): Add raise.
48163         * modules/write (Depends-on): Likewise.
48164
48165 2008-11-02  Bruno Haible  <bruno@clisp.org>
48166
48167         Mark 'memset' obsolete.
48168         * modules/memset (Status, Notice): New sections.
48169
48170 2008-11-02  Bruno Haible  <bruno@clisp.org>
48171
48172         Mark 'memmove' obsolete.
48173         * modules/memmove (Status, Notice): New sections.
48174         * modules/argp (Depends-on): Add memmove.
48175         * modules/argz (Depends-on): Likewise.
48176         * modules/canonicalize (Depends-on): Likewise.
48177         * modules/canonicalize-lgpl (Depends-on): Likewise.
48178         * modules/fts (Depends-on): Likewise.
48179         * modules/getcwd (Depends-on): Likewise.
48180         * modules/human (Depends-on): Likewise.
48181         * modules/regex (Depends-on): Likewise.
48182         * modules/striconveh (Depends-on): Likewise.
48183         * modules/trim (Depends-on): Likewise.
48184         * modules/unistr/u8-move (Depends-on): Likewise.
48185         * modules/unistr/u16-move (Depends-on): Likewise.
48186         * modules/unistr/u32-move (Depends-on): Likewise.
48187
48188 2008-11-02  Bruno Haible  <bruno@clisp.org>
48189
48190         Mark 'memcpy' obsolete.
48191         * modules/memcpy (Status, Notice): New sections.
48192
48193 2008-11-02  Bruno Haible  <bruno@clisp.org>
48194
48195         Mark 'memcmp' obsolete.
48196         * modules/memcmp (Status, Notice): New sections.
48197         * modules/argmatch (Depends-on): Add memchr.
48198         * modules/backupfile (Depends-on): Likewise.
48199         * modules/c-strcasestr (Depends-on): Likewise.
48200         * modules/crypto/des (Depends-on): Likewise.
48201         * modules/csharpcomp (Depends-on): Likewise.
48202         * modules/fnmatch (Depends-on): Likewise.
48203         * modules/git-merge-changelog (Depends-on): Likewise.
48204         * modules/isnand (Depends-on): Likewise.
48205         * modules/isnand-nolibm (Depends-on): Likewise.
48206         * modules/isnanf (Depends-on): Likewise.
48207         * modules/isnanf-nolibm (Depends-on): Likewise.
48208         * modules/isnanl (Depends-on): Likewise.
48209         * modules/isnanl-nolibm (Depends-on): Likewise.
48210         * modules/mbchar (Depends-on): Likewise.
48211         * modules/memcoll (Depends-on): Likewise.
48212         * modules/quotearg (Depends-on): Likewise.
48213         * modules/regex (Depends-on): Likewise.
48214         * modules/relocatable-prog (Depends-on): Likewise.
48215         * modules/same (Depends-on): Likewise.
48216         * modules/signbit (Depends-on): Likewise.
48217         * modules/strcasestr-simple (Depends-on): Likewise.
48218         * modules/unictype/gen-ctype (Depends-on): Likewise.
48219         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48220         * modules/uniname/uniname (Depends-on): Likewise.
48221         * modules/unistr/u8-cmp (Depends-on): Likewise.
48222
48223 2008-11-02  Bruno Haible  <bruno@clisp.org>
48224
48225         Mark 'memchr' obsolete.
48226         * modules/memchr (Status, Notice): New sections.
48227         * modules/argp (Depends-on): Add memchr.
48228         * modules/base64 (Depends-on): Likewise.
48229         * modules/c-strcasestr (Depends-on): Likewise.
48230         * modules/chdir-long (Depends-on): Likewise.
48231         * modules/fnmatch (Depends-on): Likewise.
48232         * modules/getsubopt (Depends-on): Likewise.
48233         * modules/git-merge-changelog (Depends-on): Likewise.
48234         * modules/glob (Depends-on): Likewise.
48235         * modules/strcasestr-simple (Depends-on): Likewise.
48236         * modules/strnlen (Depends-on): Likewise.
48237
48238 2008-11-02  Bruno Haible  <bruno@clisp.org>
48239
48240         Mark 'atexit' obsolete.
48241         * modules/atexit (Status, Notice): New sections.
48242         * modules/chdir-long (Depends-on): Add atexit.
48243         * modules/wait-process (Depends-on): Likewise.
48244
48245 2008-11-02  Bruno Haible  <bruno@clisp.org>
48246
48247         * gnulib-tool: New option --with-obsolete.
48248         (func_usage): Document it.
48249         (func_modules_transitive_closure): Drop obsolete dependencies if
48250         incobsolete is not true.
48251         (func_import): Read and save the incobsolete variable to the cache.
48252
48253 2008-11-02  Bruno Haible  <bruno@clisp.org>
48254
48255         * modules/TEMPLATE-EXTENDED: New field 'Status'.
48256         * gnulib-tool: New option --extract-status.
48257         (func_usage): Document it.
48258         (sed_extract_prog): Recognize it.
48259         (func_get_status): New function.
48260
48261 2008-10-30  Simon Josefsson  <simon@josefsson.org>
48262
48263         * modules/sockets (License): Change from LGPL to LGPLv2+.
48264
48265 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48266
48267         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
48268
48269 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48270
48271         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48272         Mention times and sys_times.
48273         * modules/sys_times, modules/sys_times-tests: New modules.
48274         * modules/times, modules/times-tests: Likewise
48275         * m4/sys_times_h.m4: New file.
48276         * lib/sys_times.in.h: Likewise
48277         * lib/times.c: Likewise.
48278         * tests/test-sys_times.c: Likewise.
48279         * tests/test-times.c: Likewise.
48280         * doc/posix-headers/sys_times.texi: Update.
48281         * doc/posix-functions/times.texi: Update.
48282
48283 2008-10-28  Jim Meyering  <meyering@redhat.com>
48284
48285         * modules/tempname (Depends-on): Add lstat.
48286
48287         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
48288
48289 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48290
48291         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
48292         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
48293         using idiom used elsewhere in gnulib.
48294
48295 2008-10-27  Jim Meyering  <meyering@redhat.com>
48296
48297         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
48298
48299 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48300
48301         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
48302         TESTS_ENVIRONMENT, for shell scripts that needs to call built
48303         programs.
48304         * tests/test-argp-2.sh: Use $EXEEXT when needed.
48305
48306 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48307
48308         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
48309
48310 2008-10-27  Bruno Haible  <bruno@clisp.org>
48311
48312         * tests/test-lstat.c: Include <stdio.h>.
48313
48314 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48315
48316         * modules/lstat-tests: New module.
48317         * tests/test-lstat.c: New file.
48318
48319 2008-10-26  Jim Meyering  <meyering@redhat.com>
48320
48321         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
48322
48323 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48324             Bruno Haible  <bruno@clisp.org>
48325
48326         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
48327         * modules/configmake (Include): Add a note that the include must come
48328         after all system headers.
48329         * lib/javaversion.c: Include configmake.h after all other includes.
48330
48331 2008-10-26  Bruno Haible  <bruno@clisp.org>
48332
48333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
48334         HAVE_STRUCT_RANDOM_DATA to 1.
48335         (gl_STDLIB_H): Simplify.
48336
48337 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48338
48339         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
48340         substitute HAVE_STRUCT_RANDOM_DATA.
48341         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
48342         random_data.
48343         * modules/stdlib (Makefile.am): Substitute
48344         HAVE_STRUCT_RANDOM_DATA.
48345
48346 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48347
48348         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
48349         * doc/gnulib-intro.texi (Copyright): Likewise.
48350
48351 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48352
48353         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
48354         findings.
48355
48356 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
48357             Bruno Haible  <bruno@clisp.org>
48358
48359         * lib/unistd.in.h: Include <winsock2.h>.
48360         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
48361         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
48362         Provide dummy declarations.
48363         (gethostname): Override.
48364         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
48365         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
48366         gl_PREREQ_SYS_H_WINSOCK2.
48367         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
48368         * doc/posix-functions/gethostname.texi: More details.
48369
48370 2008-10-25  Bruno Haible  <bruno@clisp.org>
48371
48372         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48373         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
48374         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
48375
48376         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
48377         here ...
48378         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
48379         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
48380         gl_UNISTD_H_DEFAULTS.
48381
48382 2008-10-25  Eric Blake  <ebb9@byu.net>
48383
48384         signbit: avoid spurious compiler failure
48385         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
48386         declarations inside function.
48387
48388 2008-10-24  Simon Josefsson  <simon@josefsson.org>
48389             Bruno Haible  <bruno@clisp.org>
48390
48391         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
48392         * modules/random_r (Depends-on): Add stdint.
48393
48394 2008-10-24  Bruno Haible  <bruno@clisp.org>
48395
48396         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
48397         Eggert.
48398         * modules/strerror (License): Likewise.
48399
48400 2008-10-24  Jim Meyering  <meyering@redhat.com>
48401
48402         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
48403         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
48404
48405 2008-10-24  Eric Blake  <ebb9@byu.net>
48406
48407         getgroups: fix compilation when getgroups is available
48408         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
48409         but with <config.h> override of getgroups disabled.
48410
48411 2008-10-24  Simon Josefsson  <simon@josefsson.org>
48412
48413         * doc/gnulib.texi (Header files): Add note about C++ problems.
48414         Explained by Bruno Haible <bruno@clisp.org>.
48415
48416 2008-10-23  Bruno Haible  <bruno@clisp.org>
48417
48418         Define a dummy SA_NODEFER macro on Interix.
48419         * lib/signal.in.h (SA_NODEFER): Define fallback.
48420         Reported by Aleksey Cheusov <cheusov@tut.by> via
48421         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
48422
48423 2008-10-23  Bruno Haible  <bruno@clisp.org>
48424
48425         * modules/freadahead (License): Change to LGPLv2+.
48426         Suggested by Simon Josefsson.
48427
48428 2008-10-23  Jim Meyering  <meyering@redhat.com>
48429
48430         random_r: new module
48431         * modules/random_r: New file.
48432         * m4/random_r.m4: New file.
48433         * lib/random_r.c: New file, from glibc.
48434         * modules/random_r-tests: New file.
48435         * tests/test-random_r.c: New file.
48436         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
48437          Declare.
48438         (RAND_MAX): Define.
48439         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
48440         * modules/stdlib: Substitute them, too.
48441         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
48442         * doc/glibc-functions/initstate_r.texi: Mention the new module.
48443         * doc/glibc-functions/random_r.texi: Likewise.
48444         * doc/glibc-functions/setstate_r.texi: Likewise.
48445         * doc/glibc-functions/srandom_r.texi: Likewise.
48446         * config/srclist.txt: Mention it.
48447
48448 2008-10-23  David Lutterkort  <lutter@redhat.com>
48449
48450         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
48451         link requirement
48452
48453 2008-10-23  Jim Meyering  <meyering@redhat.com>
48454
48455         selinux-h: mark parameters of stub functions as intentionally unused
48456         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
48457         * lib/se-context.in.h: Likewise.
48458
48459 2008-10-22  Simon Josefsson  <simon@josefsson.org>
48460
48461         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
48462
48463 2008-10-22  Simon Josefsson  <simon@josefsson.org>
48464
48465         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
48466
48467 2008-10-22  Eric Blake  <ebb9@byu.net>
48468
48469         glthread/thread: avoid compiler warning
48470         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
48471         Add unreachable abort to silence compiler.
48472
48473 2008-10-22  Eric Blake  <ebb9@byu.net>
48474
48475         netdb: also supply struct addrinfo for cygwin 1.5.x
48476         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
48477         older cygwin.
48478         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
48479         cygwin.
48480         * doc/posix-headers/netdb.texi (netdb.h): Document this.
48481
48482 2008-10-22  Bruno Haible  <bruno@clisp.org>
48483
48484         * users.txt: Update entry about pspp.
48485
48486 2008-10-21  Bruno Haible  <bruno@clisp.org>
48487
48488         Simplification.
48489         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
48490         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
48491
48492         Simplification.
48493         * lib/ioctl.c (ioctl): Don't undefine.
48494         * lib/socket.c (socket): Don't undefine.
48495
48496         Remove unused module indicator macros.
48497         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
48498         GNULIB_$1 as a C macro.
48499
48500         * doc/posix-functions/close.texi: Undo last change.
48501         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
48502         Windows platforms.
48503
48504 2008-10-21  Bruno Haible  <bruno@clisp.org>
48505
48506         Add gethostname() declaration to <unistd.h>.
48507         * lib/unistd.in.h (gethostname): New declaration.
48508         * lib/gethostname.c: Include <unistd.h>.
48509         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
48510         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
48511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
48512         and HAVE_GETHOSTNAME.
48513         * modules/gethostname (Depends-on): Add unistd.
48514         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48515         (Include): Specify <unistd.h>.
48516         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
48517         HAVE_GETHOSTNAME.
48518         * tests/test-gethostname.c: Include <unistd.h> first.
48519
48520 2008-10-21  Bruno Haible  <bruno@clisp.org>
48521
48522         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
48523         * modules/select-tests (Depends-on): Likewise.
48524         Reported by Simon Josefsson.
48525
48526 2008-10-21  Simon Josefsson  <simon@josefsson.org>
48527
48528         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
48529         * lib/accept.c: New file, based on winsock.c.
48530         * lib/bind.c: New file, based on winsock.c.
48531         * lib/connect.c: New file, based on winsock.c.
48532         * lib/getpeername.c: New file, based on winsock.c.
48533         * lib/getsockname.c: New file, based on winsock.c.
48534         * lib/getsockopt.c: New file, based on winsock.c.
48535         * lib/ioctl.c: New file, based on winsock.c.
48536         * lib/listen.c: New file, based on winsock.c.
48537         * lib/recv.c: New file, based on winsock.c.
48538         * lib/recvfrom.c: New file, based on winsock.c.
48539         * lib/send.c: New file, based on winsock.c.
48540         * lib/sendto.c: New file, based on winsock.c.
48541         * lib/setsockopt.c: New file, based on winsock.c.
48542         * lib/shutdown.c: New file, based on winsock.c.
48543         * lib/socket.c: New file, based on winsock.c.
48544         * lib/w32sock.h: New file, based on winsock.c.
48545         * lib/winsock.c: Remove file.
48546         * modules/accept: Likewise.
48547         * modules/bind: Likewise.
48548         * modules/connect: Likewise.
48549         * modules/getpeername: Likewise.
48550         * modules/getsockname: Likewise.
48551         * modules/getsockopt: Likewise.
48552         * modules/ioctl: Likewise.
48553         * modules/listen: Likewise.
48554         * modules/recv: Likewise.
48555         * modules/recvfrom: Likewise.
48556         * modules/send: Likewise.
48557         * modules/sendto: Likewise.
48558         * modules/setsockopt: Likewise.
48559         * modules/shutdown: Likewise.
48560         * modules/socket: Use socket.c instead of winsock.c.
48561         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
48562         * doc/posix-functions/accept.texi: Doc fix.
48563         * doc/posix-functions/bind.texi: Doc fix.
48564         * doc/posix-functions/close.texi: Doc fix.
48565         * doc/posix-functions/connect.texi: Doc fix.
48566         * doc/posix-functions/getpeername.texi: Doc fix.
48567         * doc/posix-functions/getsockname.texi: Doc fix.
48568         * doc/posix-functions/getsockopt.texi: Doc fix.
48569         * doc/posix-functions/ioctl.texi: Doc fix.
48570         * doc/posix-functions/listen.texi: Doc fix.
48571         * doc/posix-functions/recv.texi: Doc fix.
48572         * doc/posix-functions/recvfrom.texi: Doc fix.
48573         * doc/posix-functions/send.texi: Doc fix.
48574         * doc/posix-functions/sendto.texi: Doc fix.
48575         * doc/posix-functions/setsockopt.texi: Doc fix.
48576         * doc/posix-functions/shutdown.texi: Doc fix.
48577         * doc/posix-functions/socket.texi: Doc fix.
48578
48579 2008-10-20  Bruno Haible  <bruno@clisp.org>
48580
48581         Take into account the role of SIGABRT_COMPAT on Windows 2008.
48582         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
48583         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
48584         as an alias for SIGABRT.
48585         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
48586         (sigaction): Map it to SIGABRT.
48587         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
48588
48589 2008-10-20  Bruno Haible  <bruno@clisp.org>
48590
48591         * lib/fts.c: Don't include lstat.h.
48592         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
48593
48594         Move the lstat() declaration to <sys/stat.h>.
48595         * lib/lstat.h: Remove file.
48596         * lib/sys_stat.in.h: Add special invocation convention.
48597         (lstat): New declaration.
48598         * lib/lstat.c (orig_lstat): New function.
48599         (rpl_lstat): Use orig_lstat instead of lstat.
48600         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
48601         AC_C_INLINE. Set REPLACE_LSTAT.
48602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
48603         and REPLACE_LSTAT.
48604         * modules/lstat (Files): Remove lib/lstat.h.
48605         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48606         (Include): Specify <sys/stat.h> instead of lstat.h.
48607         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
48608         REPLACE_LSTAT.
48609         * NEWS: Mention the change.
48610
48611 2008-10-20  Bruno Haible  <bruno@clisp.org>
48612
48613         * modules/posix_spawn-tests: New file.
48614         * tests/test-posix_spawn3.c: New file.
48615
48616 2008-10-20  Bruno Haible  <bruno@clisp.org>
48617
48618         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
48619         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
48620         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
48621         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
48622         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
48623
48624 2008-10-20  Bruno Haible  <bruno@clisp.org>
48625
48626         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
48627         of posix_spawn on AIX 5.3.
48628
48629 2008-10-20  Bruno Haible  <bruno@clisp.org>
48630
48631         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
48632
48633 2008-10-20  Bruno Haible  <bruno@clisp.org>
48634
48635         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
48636         of AC_LANG_PROGRAM.
48637
48638 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48639
48640         * lib/netdb.in.h: Don't define GNU specific constants until they
48641         are supported or needed.  Reported by Bruno Haible
48642         <bruno@clisp.org>.
48643
48644 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48645
48646         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
48647
48648 2008-10-20  Simon Josefsson  <simon@josefsson.org>
48649
48650         * lib/getaddrinfo.h: Remove file.
48651         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
48652         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
48653         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
48654         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
48655         * modules/netdb: Substitute GNULIB_GETADDRINFO.
48656         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
48657         * tests/test-getaddrinfo.c: Likewise.
48658         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
48659         * NEWS: Mention change.
48660
48661 2008-10-19  Bruno Haible  <bruno@clisp.org>
48662
48663         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
48664
48665 2008-10-19  Bruno Haible  <bruno@clisp.org>
48666
48667         * lib/wait-process.c: Include simply <sys/wait.h>.
48668         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
48669         WIFSTOPPED): Remove fallback definitions.
48670         * modules/wait-process (Depends-on): Add sys_wait.
48671
48672         New module 'sys_wait'.
48673         * modules/sys_wait: New file.
48674         * lib/sys_wait.in.h: New file, partially copied from
48675         lib/wait-process.c.
48676         * m4/sys_wait_h.m4: New file.
48677         * doc/posix-headers/sys_wait.texi: Mention the new module.
48678
48679 2008-10-19  Bruno Haible  <bruno@clisp.org>
48680
48681         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
48682
48683 2008-10-19  Bruno Haible  <bruno@clisp.org>
48684
48685         Assume that waitpid() fills an 'int' status, not a 'union wait'.
48686         * lib/wait-process.c (WAIT_T): Remove type.
48687         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
48688         (wait_subprocess): Update.
48689
48690 2008-10-19  Bruno Haible  <bruno@clisp.org>
48691
48692         New module 'atoll'.
48693         * modules/atoll: New file.
48694         * lib/stdlib.in.h (atoll): New declaration.
48695         * lib/atoll.c: New file, from glibc with modifications.
48696         * m4/atoll.m4: New file.
48697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
48698         HAVE_ATOLL.
48699         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
48700         * doc/posix-functions/atoll.texi: Mention the new module.
48701
48702 2008-10-19  Bruno Haible  <bruno@clisp.org>
48703
48704         Add strtoull() declaration to <stdlib.h>.
48705         * lib/stdlib.in.h (strtoull): New declaration.
48706         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48707         Set HAVE_STRTOULL.
48708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
48709         HAVE_STRTOULL.
48710         * modules/strtoull (Depends-on): Add stdlib.
48711         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48712         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
48713         HAVE_STRTOULL.
48714
48715 2008-10-19  Bruno Haible  <bruno@clisp.org>
48716
48717         Add strtoll() declaration to <stdlib.h>.
48718         * lib/stdlib.in.h (strtoll): New declaration.
48719         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
48720         Set HAVE_STRTOLL.
48721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
48722         HAVE_STRTOLL.
48723         * modules/strtoll (Depends-on): Add stdlib.
48724         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48725         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
48726
48727 2008-10-19  Bruno Haible  <bruno@clisp.org>
48728
48729         * modules/bcopy (Depends-on): Add strings.
48730         (Include): Specify <strings.h>.
48731
48732 2008-10-19  Bruno Haible  <bruno@clisp.org>
48733
48734         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
48735
48736 2008-10-19  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
48739         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
48740         mingw.
48741
48742 2008-10-19  Bruno Haible  <bruno@clisp.org>
48743
48744         * lib/atanl.c: Don't include isnanl.h.
48745         * lib/cosl.c: Likewise.
48746         * lib/ldexpl.c: Likewise.
48747         * lib/logl.c: Likewise.
48748         * lib/sinl.c: Likewise.
48749         * lib/sqrtl.c: Likewise.
48750         * lib/tanl.c: Likewise.
48751
48752         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
48753         * lib/isnanf.h: Remove file.
48754         * lib/isnand.h: Remove file.
48755         * lib/isnanl.h: Remove file.
48756         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
48757         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
48758         macros.
48759         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
48760         HAVE_ISNANF, don't define it as a C macro.
48761         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
48762         HAVE_ISNAND, don't define it as a C macro.
48763         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
48764         HAVE_ISNANL, don't define it as a C macro.
48765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
48766         HAVE_ISNAN[FDL].
48767         * modules/isnanf (Files): Remove lib/isnanf.h.
48768         (Depends-on): Add math.
48769         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48770         (Include): Specify <math.h> instead of isnanf.h.
48771         * modules/isnand (Files): Remove lib/isnand.h.
48772         (Depends-on): Add math.
48773         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48774         (Include): Specify <math.h> instead of isnand.h.
48775         * modules/isnanl (Files): Remove lib/isnanl.h.
48776         (Depends-on): Add math.
48777         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
48778         (Include): Specify <math.h> instead of isnanl.h.
48779         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
48780         HAVE_ISNAN[FDL].
48781         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
48782         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
48783         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
48784         * NEWS: Mention the change.
48785
48786 2008-10-18  Bruno Haible  <bruno@clisp.org>
48787
48788         Add getusershell(), setusershell(), endusershell() declarations to
48789         <unistd.h>.
48790         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
48791         declarations.
48792         * lib/getusershell.c: Include unistd.h.
48793         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
48794         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48795         HAVE_GETUSERSHELL.
48796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
48797         and HAVE_GETUSERSHELL.
48798         * modules/getusershell (Depends-on): Add unistd, extensions.
48799         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48800         (Include): Specify <unistd.h>.
48801         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
48802         HAVE_GETUSERSHELL.
48803
48804 2008-10-18  Bruno Haible  <bruno@clisp.org>
48805
48806         Add a getloadavg() declaration to <stdlib.h>.
48807         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
48808         getloadavg declaration.
48809         (getloadavg): New declaration.
48810         * lib/getloadavg.c: Include <stdlib.h> first.
48811         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
48812         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
48813         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
48814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
48815         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48816         * modules/getloadavg (Depends-on): Add stdlib, extensions.
48817         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48818         (Include): Specify <stdlib.h>.
48819         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
48820         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
48821
48822 2008-10-18  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/dirchownmod.c: Don't include lchmod.h.
48825
48826         Move the lchmod() declaration to <sys/stat.h>.
48827         * lib/lchmod.h: Remove file.
48828         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
48829         (lchmod): New declaration, moved here from lib/lchown.h.
48830         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
48831         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
48832         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
48833         and HAVE_LCHMOD.
48834         * modules/lchmod (Files): Remove lib/lchmod.h.
48835         (Depends-on): Add sys_stat, extensions.
48836         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
48837         (Include): Specify <sys/stat.h> instead of lchmod.h.
48838         * modules/sys_stat (Depends-on): Add link-warning.
48839         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
48840         definition of GL_LINK_WARNING.
48841         * NEWS: Mention the change.
48842
48843 2008-10-18  Bruno Haible  <bruno@clisp.org>
48844
48845         * lib/fchdir.c: Don't include dirfd.h.
48846         * lib/fts.c: Likewise.
48847         * lib/getcwd.c: Likewise.
48848         * lib/glob.c: Likewise.
48849
48850         Move the dirfd() declaration to <dirent.h>.
48851         * lib/dirfd.h: Remove file.
48852         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
48853         (dirfd): New declaration.
48854         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
48855         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
48856         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
48857         HAVE_DECL_DIRFD.
48858         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
48859         HAVE_DECL_DIRFD.
48860         * modules/dirfd (Files): Remove lib/dirfd.h.
48861         (Depends-on): Add dirent, extensions.
48862         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
48863         (Include): Specify <dirent.h> instead of dirfd.h.
48864         * modules/dirent (Depends-on): Add link-warning.
48865         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
48866         definition of GL_LINK_WARNING.
48867         * NEWS: Mention the change.
48868
48869 2008-10-18  Bruno Haible  <bruno@clisp.org>
48870
48871         Move the euidaccess() declaration to <unistd.h>.
48872         * lib/euidaccess.h: Remove file.
48873         * lib/unistd.in.h (euidaccess): New declaration.
48874         * lib/euidaccess.c: Don't include euidaccess.h.
48875         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
48876         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
48877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
48878         and HAVE_EUIDACCESS.
48879         * modules/euidaccess (Files): Remove lib/euidaccess.h.
48880         (Depends-on): Add unistd.
48881         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48882         (Include): Specify <unistd.h> instead of euidaccess.h.
48883         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
48884         HAVE_EUIDACCESS.
48885         * NEWS: Mention the change.
48886
48887 2008-10-18  Bruno Haible  <bruno@clisp.org>
48888
48889         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
48890
48891         Move the getdomainname() declaration to <unistd.h>.
48892         * lib/getdomainname.h: Remove file.
48893         * lib/unistd.in.h (getdomainname): New declaration.
48894         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
48895         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
48896         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
48897         HAVE_GETDOMAINNAME.
48898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48899         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
48900         * modules/getdomainname (Files): Remove lib/getdomainname.h.
48901         (Depends-on): Add unistd, extensions.
48902         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
48903         (Includes): Specify <unistd.h> instead of getdomainname.h.
48904         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
48905         HAVE_GETDOMAINNAME.
48906         * NEWS: Mention the change.
48907
48908 2008-10-18  Bruno Haible  <bruno@clisp.org>
48909
48910         * modules/dirent: New file.
48911         * m4/dirent_h.m4: New file.
48912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
48913         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
48914         * modules/fchdir (Files): Remove lib/dirent.in.h.
48915         (Depends-on): Add dirent.
48916         (Makefile.am): Move rules to modules/dirent.
48917         * doc/posix-headers/dirent.texi: Mention the new module.
48918
48919 2008-10-18  Bruno Haible  <bruno@clisp.org>
48920
48921         Avoid -Wunused-parameter warnings in public gnulib header files.
48922         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
48923         macro.
48924         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
48925
48926 2008-10-18  Bruno Haible  <bruno@clisp.org>
48927
48928         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
48929         * doc/glibc-functions/error.texi: Mention the module 'error'.
48930         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
48931         * doc/glibc-functions/getdomainname.texi: Mention the module
48932         'getdomainname'.
48933         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
48934         * doc/glibc-functions/getpagesize.texi: Mention the module
48935         'getpagesize'.
48936         * doc/glibc-functions/getusershell.texi: Mention the module
48937         'getusershell'.
48938         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
48939         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
48940         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
48941         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
48942         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
48943         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
48944         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
48945         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
48946         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
48947         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
48948         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
48949         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
48950         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
48951         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
48952
48953 2008-10-17  Bruno Haible  <bruno@clisp.org>
48954
48955         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
48956         HP-UX and IRIX, use -0.0L.
48957         * tests/test-ceill.c (minus_zero): Likewise.
48958         * tests/test-floorl.c (minus_zero): Likewise.
48959         * tests/test-frexpl.c (minus_zero): Likewise.
48960         * tests/test-isnan.c (minus_zerol): Likewise.
48961         * tests/test-isnanl.h (minus_zero): Likewise.
48962         * tests/test-ldexpl.c (minus_zero): Likewise.
48963         * tests/test-roundl.c (minus_zero): Likewise.
48964         * tests/test-signbit.c (minus_zerol): Likewise.
48965         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48966         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48967         * tests/test-truncl.c (minus_zero): Likewise.
48968         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48969         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48970         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
48971         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48972
48973 2008-10-17  Bruno Haible  <bruno@clisp.org>
48974
48975         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
48976         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
48977         that it gets activated only for gcc >= 3.0.
48978         * lib/dirent.in.h: Likewise.
48979         * lib/errno.in.h: Likewise.
48980         * lib/fcntl.in.h: Likewise.
48981         * lib/float.in.h: Likewise.
48982         * lib/iconv.in.h: Likewise.
48983         * lib/inttypes.in.h: Likewise.
48984         * lib/locale.in.h: Likewise.
48985         * lib/math.in.h: Likewise.
48986         * lib/netdb.in.h: Likewise.
48987         * lib/netinet_in.in.h: Likewise.
48988         * lib/search.in.h: Likewise.
48989         * lib/signal.in.h: Likewise.
48990         * lib/spawn.in.h: Likewise.
48991         * lib/stdarg.in.h: Likewise.
48992         * lib/stdint.in.h: Likewise.
48993         * lib/stdio.in.h: Likewise.
48994         * lib/stdlib.in.h: Likewise.
48995         * lib/string.in.h: Likewise.
48996         * lib/strings.in.h: Likewise.
48997         * lib/sys_file.in.h: Likewise.
48998         * lib/sys_ioctl.in.h: Likewise.
48999         * lib/sys_select.in.h: Likewise.
49000         * lib/sys_socket.in.h: Likewise.
49001         * lib/sys_stat.in.h: Likewise.
49002         * lib/sys_time.in.h: Likewise.
49003         * lib/sysexits.in.h: Likewise.
49004         * lib/time.in.h: Likewise.
49005         * lib/unistd.in.h: Likewise.
49006         * lib/wchar.in.h: Likewise.
49007         * lib/wctype.in.h: Likewise.
49008         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49009
49010 2008-10-17  Jim Meyering  <meyering@redhat.com>
49011
49012         ignore-value: don't depend on inline module
49013         * modules/ignore-value (Depends-on): Remove 'inline'.
49014         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
49015         Suggestion from Bruno Haible.
49016
49017 2008-10-17  Bruno Haible  <bruno@clisp.org>
49018
49019         New implementation of condition variables for Win32.
49020         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
49021         (gl_linked_waitqueue_t): New type.
49022         (gl_cond_t): Use it.
49023         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
49024         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
49025         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
49026         (glthread_cond_init_func, glthread_cond_wait_func,
49027         glthread_cond_timedwait_func, glthread_cond_signal_func,
49028         glthread_cond_broadcast_func, glthread_cond_destroy_func):
49029         Reimplemented on the basis of gl_linked_waitqueue_t.
49030         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
49031         gl_waitqueue_t.
49032         (gl_rwlock_t): Update.
49033         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
49034
49035 2008-10-17  Simon Josefsson  <simon@josefsson.org>
49036
49037         * modules/recvfrom (Depends-on): Add dependency on getpeername.
49038         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49039
49040 2008-10-17  Jim Meyering  <meyering@redhat.com>
49041
49042         ignore-value: new module
49043         * modules/ignore-value: New file.
49044         * lib/ignore-value.h: New file.
49045         * MODULES.html.sh (Compiler warning management): New section,
49046         just for this module.  More to come.
49047
49048 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49049
49050         open-safer.c: avoid 'signed and unsigned in conditional...' warning
49051         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
49052         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
49053
49054 2008-10-16  Jim Meyering  <meyering@redhat.com>
49055
49056         openat-die.c: avoid 'no previous prototype' warning
49057         * lib/openat-die.c: Include "openat.h".
49058         Reported by Reuben Thomas <rrt@sc3d.org>.
49059
49060 2008-10-16  Simon Josefsson  <simon@josefsson.org>
49061
49062         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
49063         * lib/netdb.in.h: Fix typo.
49064         Reported by Bruno Haible  <bruno@clisp.org>
49065
49066         * lib/netdb.in.h: Include sys/socket.h for platforms without
49067         netdb.h, to get structures like hostent on MinGW.
49068         * modules/netdb (Depends-on): Add sys_socket.
49069
49070 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49071
49072         * modules/netdb, modules/netdb-tests: New file.
49073         * m4/netdb_h.m4: New file.
49074         * lib/netdb.in.h: Add, currently just an empty file pending
49075         definitions.
49076         * tests/test-netdb.c: New file.
49077         * doc/posix-headers/netdb.texi: Mention that we replace it if
49078         needed.
49079         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49080         netdb.
49081
49082 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49083
49084         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
49085         with code.
49086
49087 2008-10-13  Bruno Haible  <bruno@clisp.org>
49088
49089         * lib/glthread/cond.c (glthread_cond_wait_func,
49090         glthread_cond_timedwait_func): Add a comment.
49091
49092 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49093
49094         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
49095         * tests/test-select.c: Likewise,
49096
49097 2008-10-13  Bruno Haible  <bruno@clisp.org>
49098
49099         * lib/glthread/cond.c (glthread_cond_wait_func,
49100         glthread_cond_timedwait_func): Fix variable name.
49101         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49102
49103 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
49104
49105         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
49106         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
49107         struct sockaddr.sa_len.
49108         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
49109
49110 2008-10-13  Simon Josefsson  <simon@josefsson.org>
49111
49112         * build-aux/pmccabe2html: Add css and css_url parameters.
49113
49114 2008-10-12  Bruno Haible  <bruno@clisp.org>
49115
49116         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
49117         calling aclx_get.
49118         Reported by Rainer Tammer <tammer@tammer.net>.
49119
49120 2008-10-12  Bruno Haible  <bruno@clisp.org>
49121
49122         Use msvcrt aware primitives for creation/termination of Win32 threads.
49123         * lib/glthread/thread.c: Include <process.h>.
49124         (glthread_create_func): Use _beginthreadex instead of CreateThread.
49125         (wrapper_func): Update signature.
49126         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
49127
49128 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49129             Bruno Haible  <bruno@clisp.org>
49130
49131         Provide a Win32 implementation of the 'cond' module.
49132         * lib/glthread/cond.h [USE_WIN32]: New implementation.
49133         * lib/glthread/cond.c (glthread_cond_init_func,
49134         glthread_cond_wait_func, glthread_cond_timedwait_func,
49135         glthread_cond_signal_func, glthread_cond_broadcast_func,
49136         glthread_cond_destroy_func) [USE_WIN32]: New functions.
49137         * modules/cond (Dependencies): Add gettimeofday.
49138
49139 2008-10-11  Bruno Haible  <bruno@clisp.org>
49140
49141         Make sleep work on older versions of mingw.
49142         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
49143         only whether it exists.
49144         * doc/posix-functions/sleep.texi: Mention the problem with older
49145         versions of mingw.
49146
49147 2008-10-11  Bruno Haible  <bruno@clisp.org>
49148
49149         New module 'shutdown'.
49150         * modules/shutdown: New file.
49151         * lib/sys_socket.in.h (shutdown): New declaration.
49152         * lib/winsock.c (shutdown): New function.
49153         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
49154         GNULIB_SHUTDOWN.
49155         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
49156         * doc/posix-functions/shutdown.texi: Document the new module.
49157
49158 2008-10-11  Jim Meyering  <meyering@redhat.com>
49159
49160         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
49161
49162 2008-10-11  Bruno Haible  <bruno@clisp.org>
49163
49164         New module 'fclose'.
49165         * modules/fclose: New file.
49166         * lib/stdio.in.h (fclose): New declaration.
49167         * lib/fclose.c: New file.
49168         * m4/fclose.m4: New file.
49169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
49170         REPLACE_FCLOSE.
49171         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
49172         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
49173         REPLACE_FCLOSE.
49174         * modules/close (Depends-on): fclose.
49175         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
49176
49177 2008-10-11  Bruno Haible  <bruno@clisp.org>
49178
49179         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
49180         set errno and don't call _close.
49181
49182 2008-10-10  Bruno Haible  <bruno@clisp.org>
49183
49184         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
49185         ACL, not afterwards. Fixes test failure on Cygwin.
49186
49187 2008-10-09  Ben Pfaff  <blp@gnu.org>
49188
49189         * build-aux/announce-gen: Fix gnulib version related part of usage
49190         message.  Die with a useful error message if no tarballs are
49191         found.
49192
49193 2008-10-10  Jim Meyering  <meyering@redhat.com>
49194
49195         bootstrap: use git's --depth=N option only if it's supported
49196         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
49197         recognize the --depth option.  Reported by Pádraig Brady.
49198
49199 2008-10-09  Bruno Haible  <bruno@clisp.org>
49200
49201         New module 'ioctl'.
49202         * modules/ioctl: New file.
49203         * lib/sys_socket.in.h (ioctl): Remove declaration.
49204         * lib/winsock.c: Include <sys/ioctl.h>.
49205         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
49206         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49207         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
49208         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
49209         * doc/posix-functions/ioctl.texi: Mention the new module.
49210
49211 2008-10-09  Bruno Haible  <bruno@clisp.org>
49212
49213         New module 'sys_ioctl'.
49214         * lib/sys_ioctl.in.h: New file.
49215         * m4/sys_ioctl_h.m4: New file.
49216         * modules/sys_ioctl: New file.
49217         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
49218
49219 2008-10-09  Bruno Haible  <bruno@clisp.org>
49220
49221         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
49222         * lib/winsock.c: Include <stdarg.h>.
49223         (rpl_ioctl): Change to second argument 'int' and then varargs.
49224
49225 2008-10-09  Bruno Haible  <bruno@clisp.org>
49226
49227         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
49228         when the sys_socket module is present and the system has <winsock2.h>.
49229
49230 2008-10-09  Bruno Haible  <bruno@clisp.org>
49231
49232         * doc/posix-functions/close.texi: Mention module 'close' instead of
49233         module 'sys_socket'.
49234
49235 2008-10-09  Bruno Haible  <bruno@clisp.org>
49236
49237         * doc/glibc-headers/sys_ioctl.texi: New file.
49238         * doc/gnulib.texi: Include it.
49239
49240 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49241             Bruno Haible  <bruno@clisp.org>
49242
49243         Combine the two replacements of 'close'.
49244         * lib/sys_socket.in.h (close): Define to a reminder to include
49245         <unistd.h>.
49246         (_gl_close_fd_maybe_socket): New declaration.
49247         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
49248         * lib/winsock.c (close): Remove undefinition.
49249         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
49250         needed for the gnulib module 'close'.
49251         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
49252         define to an error symbol or to a warning, if suitable.
49253         * lib/close.c: Include <sys/socket.h>.
49254         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
49255         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
49256         UNISTD_H_HAVE_WINSOCK2_H.
49257         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
49258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49259         UNISTD_H_HAVE_WINSOCK2_H.
49260         * modules/sys_socket (Files): Add m4/unistd_h.m4.
49261         (configure.ac): Set a module indicator.
49262         (Makefile.am): Substitute GNULIB_CLOSE.
49263         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
49264         * modules/poll-tests (Depends-on): Add close.
49265         * modules/select-tests (Depends-on): Likewise.
49266
49267 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49268             Bruno Haible  <bruno@clisp.org>
49269
49270         New module 'close'.
49271         * modules/close: New file.
49272         * lib/unistd.in.h (close): Move declaration out of the
49273         FCHDIR_REPLACEMENT scope.
49274         (_gl_unregister_fd): New declaration.
49275         * lib/close.c: New file.
49276         * lib/fchdir.c (rpl_close): Remove function.
49277         * m4/close.m4: New file.
49278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49279         close.
49280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
49281         REPLACE_CLOSE.
49282         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
49283         REPLACE_CLOSE.
49284         * modules/fchdir (Depends-on): Add close.
49285
49286 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49287             Bruno Haible  <bruno@clisp.org>
49288
49289         * lib/fcntl.in.h (open): Simplify conditionals.
49290         (_gl_register_fd): New declaration.
49291         * lib/fchdir.c (rpl_open): Remove function.
49292         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
49293         also.
49294         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
49295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49296         open.
49297
49298 2008-10-09  Jim Meyering  <meyering@redhat.com>
49299
49300         GNUmakefile: use the more name-space-friendly "_version"
49301         * top/GNUmakefile (_dummy): Update.
49302         (_version): Rename from "version".
49303
49304 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49305             Bruno Haible  <bruno@clisp.org>
49306
49307         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
49308         rpl_close.
49309         (_gl_register_fd): New function, extracted from rpl_open.
49310         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
49311         (rpl_open, rpl_opendir): Use _gl_register_fd.
49312
49313 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49314
49315         Fix organization of 'open' replacement.
49316         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
49317         (gl_FUNC_OPEN): Use it.
49318         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
49319
49320 2008-10-08  Bruno Haible  <bruno@clisp.org>
49321
49322         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
49323
49324 2008-10-08  Simon Josefsson  <simon@josefsson.org>
49325
49326         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
49327         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
49328         listen).
49329
49330 2008-10-08  Eric Blake  <ebb9@byu.net>
49331
49332         GNUmakefile: add 'make version' target
49333         * top/GNUmakefile (_curr-ver): Split version update rules...
49334         (version): ...into a target.
49335
49336 2008-10-07  Bruno Haible  <bruno@clisp.org>
49337
49338         Use a more portable replacement expression for -0.0L.
49339         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
49340         instead of -0.0L. Fix m4 quotation.
49341
49342         * tests/test-signbit.c: Include <float.h>.
49343         (minus_zero): New variable.
49344         (test_signbitl): Use minus_zero instead of -zero.
49345         * modules/signbit-tests (Depends-on): Add float.
49346
49347         * tests/test-ceill.c: Include <float.h>.
49348         (zero): Remove variable.
49349         (minus_zero): New variable.
49350         (main): Use minus_zero instead of -zero.
49351         * modules/ceill-tests (Depends-on): Add float.
49352
49353         * tests/test-floorl.c: Include <float.h>.
49354         (zero): Remove variable.
49355         (minus_zero): New variable.
49356         (main): Use minus_zero instead of -zero.
49357         * modules/floorl-tests (Depends-on): Add float.
49358
49359         * tests/test-roundl.c: Include <float.h>.
49360         (zero): Remove variable.
49361         (minus_zero): New variable.
49362         (main): Use minus_zero instead of -zero.
49363         * modules/roundl-tests (Depends-on): Add float.
49364
49365         * tests/test-truncl.c: Include <float.h>.
49366         (zero): Remove variable.
49367         (minus_zero): New variable.
49368         (main): Use minus_zero instead of -zero.
49369         * modules/truncl-tests (Depends-on): Add float.
49370
49371         * tests/test-frexpl.c (zero): Remove variable.
49372         (minus_zero): New variable.
49373         (main): Use minus_zero instead of -zero.
49374         * modules/frexpl-tests (Depends-on): Add float.
49375
49376         * tests/test-isnan.c (zerol): Remove variable.
49377         (minus_zerol): New variable.
49378         (test_long_double): Use minus_zerol instead of -zerol.
49379         * modules/isnan-tests (Depends-on): Add float.
49380
49381         * tests/test-isnanl.h (zero): Remove variable.
49382         (minus_zero): New variable.
49383         (main): Use minus_zero instead of -zero.
49384         * modules/isnanl-nolibm-tests (Depends-on): Add float.
49385         * modules/isnanl-tests (Depends-on): Add float.
49386
49387         * tests/test-ldexpl.c (zero): Remove variable.
49388         (minus_zero): New variable.
49389         (main): Use minus_zero instead of -zero.
49390         * modules/ldexpl-tests (Depends-on): Add float.
49391
49392         * tests/test-snprintf-posix.h (zerol): Remove variable.
49393         (minus_zerol): New variable.
49394         (test_function): Use minus_zerol instead of -zerol.
49395         * modules/snprintf-posix-tests (Depends-on): Add float.
49396         * modules/vsnprintf-posix-tests (Depends-on): Add float.
49397
49398         * tests/test-sprintf-posix.h (zerol): Remove variable.
49399         (minus_zerol): New variable.
49400         (test_function): Use minus_zerol instead of -zerol.
49401         * modules/sprintf-posix-tests (Depends-on): Add float.
49402         * modules/vsprintf-posix-tests (Depends-on): Add float.
49403
49404         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
49405         (minus_zerol): New variable.
49406         (test_function): Use minus_zerol instead of -zerol.
49407         * modules/vasnprintf-posix-tests (Depends-on): Add float.
49408
49409         * tests/test-vasprintf-posix.c (zerol): Remove variable.
49410         (minus_zerol): New variable.
49411         (test_function): Use minus_zerol instead of -zerol.
49412         * modules/vasprintf-posix-tests (Depends-on): Add float.
49413
49414 2008-10-07  Simon Josefsson  <simon@josefsson.org>
49415
49416         * MODULES.html.sh (Support for building documentation): Mention
49417         pmccabe2html.  Sort entries.
49418
49419         Add pmccabe2html module, from gnupdf.
49420         * build-aux/pmccabe.css: New file.
49421         * build-aux/pmccabe2html: New file.
49422         * m4/pmccabe2html.m4: New file.
49423         * modules/pmccabe2html: New file.
49424
49425 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
49426
49427         flock: new module
49428         * MODULES.html.sh: Add to list of modules.
49429         * lib/flock.c: flock implementation for Windows and Unix systems
49430         which have fcntl.
49431         * doc/glibc-functions/flock.texi: Update documentation.
49432         * lib/sys_file.in.h: <sys/file.h> header file.
49433         * m4/flock.m4: M4 macros.
49434         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
49435         * modules/flock: flock module.
49436         * modules/flock-tests: flock tests module.
49437         * modules/sys_file: sys/file.h module.
49438         * tests/test-flock.c: test suite for flock.
49439
49440 2008-10-06  Jim Meyering  <meyering@redhat.com>
49441
49442         bootstrap: check for LT_INIT more portably still ;-)
49443         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
49444         Spotted by Bruno Haible.
49445
49446 2008-10-06  Eric Blake  <ebb9@byu.net>
49447
49448         test-signbit: avoid tripping Irix cc bug on -0.0L
49449         * tests/test-signbit.c (minus_zerol): Delete, and replace with
49450         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
49451         entire testsuite consistent and avoids an Irix 6.2 bug.
49452
49453 2008-10-05  Bruno Haible  <bruno@clisp.org>
49454             Jim Meyering  <jim@meyering.net>
49455
49456         Add an option for ignoring EPIPE during close_stdout.
49457         * lib/closeout.h: Include <stdbool.h>.
49458         (close_stdout_set_ignore_EPIPE): New declaration.
49459         * lib/closeout.c: Include <stdbool.h>.
49460         (ignore_EPIPE): New variable.
49461         (close_stdout_set_ignore_EPIPE): New function.
49462         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
49463         * lib/close-stream.c (close_stream): Mention the possible EPIPE
49464         failure.
49465         * modules/closeout (Depends-on): Add stdbool.
49466
49467 2008-10-05  Bruno Haible  <bruno@clisp.org>
49468
49469         * modules/accept: New file.
49470         * modules/bind: New file.
49471         * modules/connect: New file.
49472         * modules/getpeername: New file.
49473         * modules/getsockname: New file.
49474         * modules/getsockopt: New file.
49475         * modules/listen: New file.
49476         * modules/recv: New file.
49477         * modules/recvfrom: New file.
49478         * modules/send: New file.
49479         * modules/sendto: New file.
49480         * modules/setsockopt: New file.
49481         * modules/socket: New file.
49482         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
49483         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
49484         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
49485         the particular module is requested. Add a link warning when the
49486         particular module is not requested.
49487         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
49488         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
49489         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
49490         the particular module is requested.
49491         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
49492         gl_SYS_SOCKET_H_DEFAULTS): New macros.
49493         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
49494         * modules/sys_socket (Depends-on): Add link-warning.
49495         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
49496         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
49497         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
49498         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
49499         GL_LINK_WARNING.
49500         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
49501         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
49502         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
49503         * doc/posix-functions/getpeername.texi: Mention the new module
49504         'getpeername'.
49505         * doc/posix-functions/getsockname.texi: Mention the new module
49506         'getsockname'.
49507         * doc/posix-functions/getsockopt.texi: Mention the new module
49508         'getsockopt'.
49509         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
49510         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
49511         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
49512         * doc/posix-functions/send.texi: Mention the new module 'send'.
49513         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
49514         * doc/posix-functions/setsockopt.texi: Mention the new module
49515         'setsockopt'.
49516         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
49517         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
49518         listen, connect, accept.
49519         * modules/select-tests (Depends-on): Likewise.
49520
49521 2008-10-05  Bruno Haible  <bruno@clisp.org>
49522
49523         * lib/winsock.c (strerror): Remove unused #undef.
49524         (rpl_close): Remove unused local variable.
49525
49526         * modules/sys_socket (Depends-on); Add errno.
49527
49528 2008-10-05  Bruno Haible  <bruno@clisp.org>
49529
49530         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
49531         (select): Add a link warning when the 'select' module is not used.
49532         * modules/sys_select (Depends-on): Add link-warning.
49533         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
49534         Suggested by Paolo Bonzini.
49535
49536 2008-10-05  Jim Meyering  <meyering@redhat.com>
49537
49538         bootstrap: check for LT_INIT more portably
49539         * build-aux/bootstrap: Avoid using grep -E, since it's not
49540         portable enough.  Suggestion from Bruno Haible.
49541
49542 2008-10-05  Bruno Haible  <bruno@clisp.org>
49543
49544         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
49545         as being fixed by gnulib.
49546
49547 2008-10-05  Bruno Haible  <bruno@clisp.org>
49548
49549         * modules/select-tests: New file, mostly copied from
49550         modules/sys_select-tests.
49551         * tests/test-select.c: New file, mostly copied from
49552         tests/test-sys_select.c.
49553         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
49554         * modules/sys_select-tests (Depends-on): Remove all dependencies.
49555         (Makefile.am): Remove test_sys_select_LDADD.
49556
49557         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
49558         to an undefined symbol, for an error message.
49559         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
49560         (gl_SYS_SELECT_H_DEFAULTS): New macro.
49561         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
49562         winsock-select.c here.
49563         * modules/sys_select (Files): Remove lib/winsock-select.c.
49564         (Depends-on): Remove alloca.
49565         (Makefile.am): Substitute GNULIB_SELECT.
49566         * modules/select: New file.
49567         * doc/posix-functions/select.texi: Update.
49568
49569 2008-10-05  Bruno Haible  <bruno@clisp.org>
49570
49571         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
49572         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
49573         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
49574         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
49575         getdtablesize.
49576         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
49577         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
49578
49579 2008-10-05  Bruno Haible  <bruno@clisp.org>
49580
49581         * modules/getdtablesize-tests: New file.
49582         * tests/test-getdtablesize.c: New file.
49583
49584         New module 'getdtablesize'.
49585         * lib/unistd.in.h (getdtablesize): New declaration.
49586         * lib/getdtablesize.c: New file.
49587         * m4/getdtablesize.m4: New file.
49588         * modules/getdtablesize: New file.
49589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49590         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
49591         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
49592         HAVE_GETDTABLESIZE.
49593         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
49594
49595 2008-10-05  Bruno Haible  <bruno@clisp.org>
49596
49597         * modules/sched (Makefile.am): Fix typo.
49598         Reported by Simon Josefsson.
49599
49600 2008-10-05  Jim Meyering  <meyering@redhat.com>
49601
49602         bootstrap: check for LT_INIT, too
49603         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
49604         are deprecated.  Suggestion from Ralf Wildenhues.
49605
49606 2008-10-05  Bruno Haible  <bruno@clisp.org>
49607
49608         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
49609         overriding them by ours.
49610         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
49611
49612 2008-10-05  Jim Meyering  <meyering@redhat.com>
49613
49614         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
49615         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
49616         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
49617
49618 2008-10-04  Bruno Haible  <bruno@clisp.org>
49619
49620         * modules/dup2 (License): Change to LGPLv2+.
49621         * modules/sleep (License): Likewise.
49622         * modules/perror (License): Likewise.
49623         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
49624         Blake.
49625         * modules/signal (License): Likewise.
49626         * modules/sigprocmask (License): Likewise.
49627         * modules/raise (License): Change to LGPLv2+, with approval by Jim
49628         Meyering.
49629
49630 2008-10-04  Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
49633         Reported by Rainer Tammer <tammer@tammer.net>.
49634
49635 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
49636             Bruno Haible  <bruno@clisp.org>
49637
49638         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
49639         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
49640         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
49641
49642 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
49643
49644         filevercmp: new module
49645         * lib/filevercmp.h: New function filevercmp comparing version strings.
49646         * lib/filevercmp.c: Implementation of filevercmp function.
49647         * modules/filevercmp: Module metadata.
49648         * tests/test-filevercmp.c: Unit test for new module.
49649         * modules/filevercmp-tests: Unit test metadata.
49650         * MODULES.html.sh: Add filevercmp module.
49651
49652 2008-10-03  Bruno Haible  <bruno@clisp.org>
49653
49654         * lib/c-ctype.h: Add comment.
49655         Reported by Jim Meyering.
49656
49657 2008-10-02  Bruno Haible  <bruno@clisp.org>
49658
49659         * modules/posix_spawn-internal (Depends-on): Add 'open'.
49660
49661 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49662
49663         * build-aux/bootstrap: Allow renaming bootstrap, and change the
49664         name of bootstrap.conf accordingly.
49665
49666 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49667
49668         * build-aux/bootstrap: Install git-merge-changelog configuration
49669         items into .gitconfig if needed.
49670
49671 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
49672
49673         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
49674         git repository, and initialize/update it accordingly.
49675
49676 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
49677
49678         * modules/fsync-tests: New file.
49679         * tests/test-fsync.c: New file.
49680
49681         New module 'fsync'.
49682         * lib/fsync.c: New file.
49683         * m4/fsync.m4: New file.
49684         * modules/fsync: New file.
49685         * lib/unistd.in.h (fsync): New declaration.
49686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
49687         GNULIB_FSYNC and HAVE_FSYNC.
49688         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
49689         * MODULES.html.sh (posix_functions): Add fsync.
49690         * doc/posix-functions/fsync.texi: Mention the new module.
49691
49692 2008-10-02  Jim Meyering  <meyering@redhat.com>
49693
49694         fts.c: sync with similar code from coreutils' remove.c
49695         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
49696         Guard also with "#if defined __linux__", since for now at least,
49697         this code is Linux-kernel-specific.
49698
49699 2008-10-02  Jim Meyering  <meyering@redhat.com>
49700
49701         fts: bug fixes
49702         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
49703         Include <sys/vfs.h>, not <sys/statfs.h>.
49704
49705         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
49706         Include <sys/vfs.h>, not <sys/statfs.h>.
49707
49708 2008-10-01  Bruno Haible  <bruno@clisp.org>
49709
49710         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
49711         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
49712         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
49713         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
49714         * doc/posix-functions/posix_spawnp.texi: Likewise.
49715         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
49716         whether posix_spawn actually works.
49717         * m4/pipe.m4 (gl_PIPE): Likewise.
49718         * modules/execute (Files): Add m4/posix_spawn.m4.
49719         * modules/pipe (Files): Add m4/posix_spawn.m4.
49720         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
49721
49722 2008-10-01  Jim Meyering  <meyering@redhat.com>
49723
49724         remove trailing spaces
49725         * NEWS: Likewise.
49726         * lib/poll.c (poll): Likewise.
49727         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
49728         * lib/winsock.c (rpl_close): Likewise.
49729         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
49730         * modules/yield: Likewise.
49731         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
49732         * tests/test-sys_select.c (connect_to_socket): Likewise.
49733
49734         fts.c: adjust a new interface to be more generally useful
49735         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
49736         (fts_build): Adjust caller.
49737
49738 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49739
49740         * modules/cond-tests: New file.
49741         * tests/test-cond.c: New file.
49742
49743 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49744             Bruno Haible  <bruno@clisp.org>
49745
49746         * modules/cond (Dependencies): Add errno, time.
49747         * lib/glthread/cond.h: Include <time.h>.
49748         (gl_cond_define, gl_cond_define_initialized): Use the same definition
49749         across platforms.
49750
49751 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49752             Bruno Haible  <bruno@clisp.org>
49753
49754         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
49755
49756 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49757             Bruno Haible  <bruno@clisp.org>
49758
49759         * modules/tls-tests (Depends-on): Add thread, yield.
49760         (configure.ac): Remove all checks.
49761         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
49762         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49763         gl_thread_self): Remove definitions. Include glthread/thread.h and
49764         glthread/yield.h instead.
49765         (test_tls): Pass an additional NULL argument to gl_thread_join.
49766
49767 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49768             Bruno Haible  <bruno@clisp.org>
49769
49770         * modules/lock-tests (Depends-on): Add thread, yield.
49771         (configure.ac): Remove all checks.
49772         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
49773         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
49774         gl_thread_self): Remove definitions. Include glthread/thread.h and
49775         glthread/yield.h instead.
49776         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
49777         additional NULL argument to gl_thread_join.
49778
49779 2008-09-30  Bruno Haible  <bruno@clisp.org>
49780
49781         Fix the Win32 implementation of the 'thread' module.
49782         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
49783         pointer type.
49784         (gl_thread_self): Invoke gl_thread_self_func.
49785         (gl_thread_self_func): New declaration.
49786         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
49787         (do_init_self_key, init_self_key): New functions.
49788         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
49789         Remove some fields.
49790         (running_threads, running_lock): Remove variables.
49791         (get_current_thread_handle): New function.
49792         (gl_thread_self_func, wrapper_func, glthread_create_func,
49793         glthread_join_func, gl_thread_exit_func): Largely rewritten and
49794         simplified.
49795
49796 2008-09-30  Bruno Haible  <bruno@clisp.org>
49797
49798         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
49799         files.
49800
49801 2008-09-30  Jim Meyering  <meyering@redhat.com>
49802
49803         fts.m4: correct the test for statfs.f_type
49804         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
49805         when checking for statfs.f_type.
49806
49807 2008-09-15  Simon Josefsson  <simon@josefsson.org>
49808
49809         tests: avoid some compiler warnings
49810         * tests/test-memchr.c (main): Pass NULL indirectly.
49811         * tests/test-getdate.c (main): Remove unused variable 'ret'.
49812
49813 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
49814
49815         getdate.y: disallow countable dayshifts like "4 yesterday ago"
49816         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
49817         exactly specified dayshifts.
49818         (dayshift): New rule.
49819         (rel): Add dayshift.
49820         (relative_time_table) [tomorrow, yesterday, today, now]:
49821         Use tDAY_SHIFT in place of tDAY_UNIT.
49822         * tests/test-getdate.c: Add tests for now-disallowed countable
49823         dayshifts, e.g., "4 yesterday ago".
49824
49825 2008-09-29  Bruno Haible  <bruno@clisp.org>
49826
49827         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
49828         * tests/test-posix_spawn1.in.sh: Renamed from
49829         tests/test-posix_spawn.in.sh.
49830         * tests/test-posix_spawn2.c: New file.
49831         * tests/test-posix_spawn2.in.sh: New file.
49832         * modules/posix_spawnp-tests (Files): Update.
49833         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
49834
49835 2008-09-29  Bruno Haible  <bruno@clisp.org>
49836
49837         Propagate effects of putenv/setenv/unsetenv to child processes.
49838         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
49839         * lib/pipe.c (create_pipe): Likewise.
49840
49841 2008-09-29  Bruno Haible  <bruno@clisp.org>
49842
49843         Enable use of shell scripts as executables in mingw.
49844         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
49845         run the program as a shell script.
49846         * lib/pipe.c (create_pipe): Likewise.
49847         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
49848         resulting array.
49849
49850 2008-09-29  Eric Blake  <ebb9@byu.net>
49851
49852         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
49853
49854 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
49855
49856         * doc/posix-functions/accept.texi: Update mingw problems.
49857         * doc/posix-functions/bind.texi: Update mingw problems.
49858         * doc/posix-functions/close.texi: Update mingw problems.
49859         * doc/posix-functions/connect.texi: Update mingw problems.
49860         * doc/posix-functions/getpeername.texi: Update mingw problems.
49861         * doc/posix-functions/getsockname.texi: Update mingw problems.
49862         * doc/posix-functions/getsockopt.texi: Update mingw problems.
49863         * doc/posix-functions/ioctl.texi: Update mingw problems.
49864         * doc/posix-functions/listen.texi: Update mingw problems.
49865         * doc/posix-functions/recv.texi: Update mingw problems.
49866         * doc/posix-functions/recvfrom.texi: Update mingw problems.
49867         * doc/posix-functions/select.texi: Update mingw problems.
49868         * doc/posix-functions/send.texi: Update mingw problems.
49869         * doc/posix-functions/sendto.texi: Update mingw problems.
49870         * doc/posix-functions/setsockopt.texi: Update mingw problems.
49871         * doc/posix-functions/socket.texi: Update mingw problems.
49872
49873 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
49874             Bruno Haible  <bruno@clisp.org>
49875
49876         * lib/sys_select.in.h: Include sys/time.h.
49877         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
49878         * modules/sys_select: Depend on sys_time.
49879         * tests/test-sys_select.c: Test that sys/select.h defines struct
49880         timeval fully.
49881
49882 2008-09-29  Bruno Haible  <bruno@clisp.org>
49883
49884         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
49885         * lib/sys_select.in.h: Likewise.
49886
49887 2008-09-29  Bruno Haible  <bruno@clisp.org>
49888
49889         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
49890
49891 2008-09-29  Bruno Haible  <bruno@clisp.org>
49892
49893         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
49894         Set LIBSOCKET instead of augmenting LIBS.
49895         * modules/sockets (Link): New section.
49896         * modules/sockets-tests (test_sockets_LDADD): New variable.
49897         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
49898         * modules/poll-tests (test_poll_LDADD): New variable.
49899         * NEWS: Document the change.
49900
49901 2008-09-29  Bruno Haible  <bruno@clisp.org>
49902
49903         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
49904         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
49905         ARPA_INET_H directly.
49906         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49907
49908 2008-09-28  Bruno Haible  <bruno@clisp.org>
49909
49910         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
49911         from gl_HEADER_SYS_SOCKET.
49912         (gl_HEADER_SYS_SOCKET): Invoke it.
49913         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49914
49915 2008-09-28  Bruno Haible  <bruno@clisp.org>
49916
49917         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
49918         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
49919         Needed on OSF/1 4.0.
49920
49921 2008-09-28  Bruno Haible  <bruno@clisp.org>
49922
49923         Override open more carefully.
49924         * lib/open.c (orig_open): New function.
49925         (rpl_open): Use orig_open instead of open.
49926         * lib/fcntl.in.h: Add special invocation convention.
49927         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
49928         (gl_FUNC_OPEN): Invoke it.
49929
49930         Override freopen more carefully.
49931         * lib/freopen.c (orig_freopen): New function.
49932         (rpl_freopen): Use orig_freopen instead of freopen.
49933         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
49934         (gl_FUNC_FREOPEN): Invoke it.
49935
49936         Override fopen more carefully.
49937         * lib/fopen.c (orig_fopen): New function.
49938         (rpl_fopen): Use orig_fopen instead of fopen.
49939         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
49940         (gl_FUNC_FOPEN): Invoke it.
49941         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
49942
49943 2008-09-28  Bruno Haible  <bruno@clisp.org>
49944
49945         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
49946         SIGPIPE.
49947
49948 2008-09-28  Bruno Haible  <bruno@clisp.org>
49949
49950         * tests/test-sigaction.c (handler, main): Disable the check whether
49951         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
49952         glibc systems with LinuxThreads.
49953
49954 2008-09-28  Bruno Haible  <bruno@clisp.org>
49955
49956         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
49957
49958         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
49959         with AIX xlc.
49960         * lib/fcntl.in.h (open): Likewise.
49961         Reported by Rainer Tammer <tammer@tammer.net>.
49962
49963 2008-09-28  Bruno Haible  <bruno@clisp.org>
49964
49965         * modules/posix_spawnp-tests: New file.
49966         * tests/test-posix_spawn.c: New file.
49967         * tests/test-posix_spawn.in.sh: New file.
49968
49969         New module 'posix_spawnp'.
49970         * modules/posix_spawnp: New file.
49971         * lib/spawnp.c: New file, from GNU libc with modifications.
49972         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
49973
49974         New module 'posix_spawn'.
49975         * modules/posix_spawn: New file.
49976         * lib/spawn.c: New file, from GNU libc with modifications.
49977         * doc/posix-functions/posix_spawn.texi: Mention the new module.
49978
49979         New module 'posix_spawnattr_destroy'.
49980         * modules/posix_spawnattr_destroy: New file.
49981         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
49982         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
49983         module.
49984
49985         New module 'posix_spawnattr_setsigmask'.
49986         * modules/posix_spawnattr_setsigmask: New file.
49987         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
49988         modifications.
49989         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
49990         new module.
49991
49992         New module 'posix_spawnattr_getsigmask'.
49993         * modules/posix_spawnattr_getsigmask: New file.
49994         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
49995         modifications.
49996         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
49997         new module.
49998
49999         New module 'posix_spawnattr_setsigdefault'.
50000         * modules/posix_spawnattr_setsigdefault: New file.
50001         * lib/spawnattr_setdefault.c: New file, from GNU libc with
50002         modifications.
50003         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
50004         new module.
50005
50006         New module 'posix_spawnattr_getsigdefault'.
50007         * modules/posix_spawnattr_getsigdefault: New file.
50008         * lib/spawnattr_getdefault.c: New file, from GNU libc with
50009         modifications.
50010         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
50011         new module.
50012
50013         New module 'posix_spawnattr_setschedpolicy'.
50014         * modules/posix_spawnattr_setschedpolicy: New file.
50015         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
50016         modifications.
50017         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
50018         new module.
50019
50020         New module 'posix_spawnattr_getschedpolicy'.
50021         * modules/posix_spawnattr_getschedpolicy: New file.
50022         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
50023         modifications.
50024         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
50025         new module.
50026
50027         New module 'posix_spawnattr_setschedparam'.
50028         * modules/posix_spawnattr_setschedparam: New file.
50029         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
50030         modifications.
50031         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
50032         new module.
50033
50034         New module 'posix_spawnattr_getschedparam'.
50035         * modules/posix_spawnattr_getschedparam: New file.
50036         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
50037         modifications.
50038         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
50039         new module.
50040
50041         New module 'posix_spawnattr_setpgroup'.
50042         * modules/posix_spawnattr_setpgroup: New file.
50043         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
50044         modifications.
50045         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
50046         module.
50047
50048         New module 'posix_spawnattr_getpgroup'.
50049         * modules/posix_spawnattr_getpgroup: New file.
50050         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
50051         modifications.
50052         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
50053         module.
50054
50055         New module 'posix_spawnattr_setflags'.
50056         * modules/posix_spawnattr_setflags: New file.
50057         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
50058         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
50059         module.
50060
50061         New module 'posix_spawnattr_getflags'.
50062         * modules/posix_spawnattr_getflags: New file.
50063         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
50064         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
50065         module.
50066
50067         New module 'posix_spawnattr_init'.
50068         * modules/posix_spawnattr_init: New file.
50069         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
50070         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
50071         module.
50072
50073         New module 'posix_spawn_file_actions_destroy'.
50074         * modules/posix_spawn_file_actions_destroy: New file.
50075         * lib/spawn_faction_destroy.c: New file, from GNU libc with
50076         modifications.
50077         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
50078         the new module.
50079
50080         New module 'posix_spawn_file_actions_addopen'.
50081         * modules/posix_spawn_file_actions_addopen: New file.
50082         * lib/spawn_faction_addopen.c: New file, from GNU libc with
50083         modifications.
50084         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
50085         the new module.
50086
50087         New module 'posix_spawn_file_actions_adddup2'.
50088         * modules/posix_spawn_file_actions_adddup2: New file.
50089         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
50090         modifications.
50091         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
50092         the new module.
50093
50094         New module 'posix_spawn_file_actions_addclose'.
50095         * modules/posix_spawn_file_actions_addclose: New file.
50096         * lib/spawn_faction_addclose.c: New file, from GNU libc with
50097         modifications.
50098         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
50099         the new module.
50100
50101         New module 'posix_spawn_file_actions_init'.
50102         * modules/posix_spawn_file_actions_init: New file.
50103         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
50104         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
50105         new module.
50106
50107         New module 'posix_spawn-internal'.
50108         * modules/posix_spawn-internal: New file.
50109         * lib/spawn_int.h: New file, from GNU libc with modifications.
50110         * lib/spawni.c: New file, from GNU libc with modifications.
50111         * m4/posix_spawn.m4: New file.
50112
50113         New module 'spawn'.
50114         * modules/spawn: New file.
50115         * lib/spawn.in.h: New file, from GNU libc with modifications.
50116         * m4/spawn_h.m4: New file.
50117         * doc/posix-headers/spawn.texi: Mention the new module.
50118
50119 2008-09-28  Bruno Haible  <bruno@clisp.org>
50120
50121         * modules/sched-tests: New file.
50122         * tests/test-sched.c: New file.
50123
50124         New module 'sched'.
50125         * modules/sched: New file.
50126         * lib/sched.in.h: New file.
50127         * m4/sched_h.m4: New file.
50128         * doc/posix-headers/sched.texi: Mention the new module.
50129
50130 2008-09-27  Eric Blake  <ebb9@byu.net>
50131
50132         Fix previous patch, and tweak references to $0.
50133         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
50134         (func_version, func_gnulib_dir): Don't call this program
50135         gnulib-tool.
50136         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
50137         with using $0 in function.
50138         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
50139         (func_fatal_error): Reuse the name the user invoked us with.
50140
50141 2008-09-27  Bruno Haible  <bruno@clisp.org>
50142
50143         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
50144         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
50145         (gl_ICONV_H): Not here.
50146         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
50147         instead of assigning ICONV_H directly.
50148
50149         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
50150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
50151         WCHAR_H directly.
50152
50153 2008-09-27  Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
50156         * modules/arpa_inet (Depends-on): Add link-warning.
50157         (Makefile.am): Insert the definition of GL_LINK-WARNING.
50158         * modules/unistd (Makefile.am): Likewise.
50159
50160 2008-09-26  Bruno Haible  <bruno@clisp.org>
50161
50162         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
50163         variables.
50164         (func_version): Essentially copied from gnulib-tool.
50165         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
50166         func_readlink): Copied from gnulib-tool.
50167
50168 2008-09-26  Bruno Haible  <bruno@clisp.org>
50169
50170         * gnulib-tool (func_version): Change directory to $gnulib_dir before
50171         invoking git-version-gen.
50172
50173 2008-09-26  Bruno Haible  <bruno@clisp.org>
50174
50175         * posix-modules: Update to directory names changed on 2008-01-19.
50176         Remove commas in output before splitting into words. No more need to
50177         avoid 'ftruncate' since 2007-02-19.
50178
50179 2008-09-26  Bruno Haible  <bruno@clisp.org>
50180
50181         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
50182
50183 2008-09-26  Bruno Haible  <bruno@clisp.org>
50184
50185         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
50186         * modules/fwriteerror (Depends-on): Add errno.
50187
50188 2008-09-26  Bruno Haible  <bruno@clisp.org>
50189
50190         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
50191         * tests/test-vc-list-files-cvs.sh: Likewise.
50192
50193 2008-09-26  Bruno Haible  <bruno@clisp.org>
50194
50195         * doc/posix-headers/sys_resource.texi: Reorder items.
50196
50197 2008-09-26  Jim Meyering  <meyering@redhat.com>
50198
50199         fts: tweak inode comparison function
50200         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
50201         inode numbers, as documented.
50202
50203         fts: sort dirent entries on inode number before traversing
50204         This avoids a quadratic, seek-related performance penalty when
50205         operating on a directory containing many entries (measurable at 10k;
50206         3.5 hours at 2 million entries with a cold cache) on certain types
50207         of file systems, including ext3 and ext4, but not tmpfs.
50208         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
50209         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
50210         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
50211         (fs_handles_readdir_ordered_dirents_efficiently): New function.
50212         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
50213         (fts_build): Set the stat.st_ino member from D_INO.
50214         If it is likely to be useful, sort dirent entries on inode number.
50215
50216         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
50217         and the struct statfs.f_type member.
50218         * modules/fts (Depends-on): Add d-ino.
50219
50220 2008-09-26  Bruno Haible  <bruno@clisp.org>
50221
50222         * modules/sigpipe-die (Depends-on): Add sigpipe.
50223
50224         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
50225         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
50226         and GNULIB_STDIO_H_SIGPIPE are set.
50227         * lib/stdio-write.c: New file.
50228         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
50229         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50230         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50231         REPLACE_STDIO_WRITE_FUNCS.
50232         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
50233         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50234         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50235         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50236         * modules/stdio (Files): Add lib/stdio-write.c.
50237         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
50238         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50239         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50240         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50241         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
50242         REPLACE_FPRINTF_POSIX.
50243         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
50244         REPLACE_PRINTF_POSIX.
50245         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
50246         REPLACE_VFPRINTF_POSIX.
50247         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
50248         REPLACE_VPRINTF_POSIX.
50249         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
50250         SIGPIPE issue.
50251         * doc/posix-functions/fputc.texi: Likewise.
50252         * doc/posix-functions/fputs.texi: Likewise.
50253         * doc/posix-functions/fwrite.texi: Likewise.
50254         * doc/posix-functions/printf.texi: Likewise.
50255         * doc/posix-functions/putc.texi: Likewise.
50256         * doc/posix-functions/putchar.texi: Likewise.
50257         * doc/posix-functions/puts.texi: Likewise.
50258         * doc/posix-functions/vfprintf.texi: Likewise.
50259         * doc/posix-functions/vprintf.texi: Likewise.
50260
50261         * modules/safe-write (Depends-on): Add write.
50262
50263         * modules/sigpipe-tests: New file.
50264         * tests/test-sigpipe.c: New file.
50265         * tests/test-sigpipe.sh: New file.
50266
50267         * modules/write: New file.
50268         * lib/unistd.in.h: Include <sys/types.h>.
50269         (write): New declaration.
50270         * lib/write.c: New file.
50271         * m4/write.m4: New file.
50272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50273         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
50274         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
50275         GNULIB_WRITE, REPLACE_WRITE.
50276         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
50277         and the SIGPIPE issue.
50278
50279         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
50280         (raise): New declaration.
50281         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
50282         (ext_signal): New function.
50283         (rpl_raise): New function.
50284         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50285         GNULIB_SIGNAL_H_SIGPIPE.
50286         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
50287         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
50288
50289         * modules/sigpipe: New file.
50290         * m4/sigpipe.m4: New file.
50291
50292 2008-09-25  Derek Price  <derek@ximbiot.com>
50293             Bruno Haible  <bruno@clisp.org>
50294
50295         * gnulib-tool (func_import): Report all license incompatibilities, not
50296         just the first one.
50297
50298 2008-09-25  Bruno Haible  <bruno@clisp.org>
50299
50300         * gnulib-tool (func_import): When computing the edits, consider not
50301         only the Makefile.ams that exist but also those that will be generated.
50302
50303 2008-09-25  Simon Josefsson  <simon@josefsson.org>
50304
50305         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
50306         fixes gnulib-tool --test warning about duplicate dependency.
50307
50308 2008-09-25  Bruno Haible  <bruno@clisp.org>
50309
50310         * gnulib-tool: Don't ask the user to perform edits in the generated
50311         Makefile.ams.
50312         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
50313         apply to the Makefile.am being generated.
50314         (func_emit_tests_Makefile_am): Execute edits that apply to the
50315         Makefile.am being generated.
50316         (func_import): Setup list of Makefile.am edits before emitting the
50317         Makefile.ams, not at the end.
50318         (func_create_testdir): Update.
50319         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50320
50321 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50322
50323         * gnulib-tool (func_import): Store the --tests-base option in the
50324         comment in gnulib-cache.m4.
50325
50326 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
50327
50328         * NEWS: Document increased portability that sys_select now provides.
50329
50330         * lib/sys_select.in.h: Install select wrapper.
50331         * lib/sys_socket.in.h: Use more descriptive name when there is no
50332         select wrapper.
50333         * lib/winsock-select.c: New.
50334         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
50335         Require gl_HEADER_SYS_SOCKET.
50336         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
50337         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
50338         * tests/test-sys_select.c: Add functional tests.
50339
50340 2008-09-24  Eric Blake  <ebb9@byu.net>
50341
50342         open, fopen: close fd leak in last patch
50343         * lib/open.c (rpl_open): Close fd before returning error.
50344         * lib/fopen.c (rpl_fopen): Close fd before returning error.
50345         * doc/posix-functions/open.texi (open): Document that Irix also
50346         has the bug.
50347         * doc/posix-functions/fopen.texi (fopen): Likewise.
50348         Reported by Paolo Bonzini.
50349
50350 2008-09-24  Bruno Haible  <bruno@clisp.org>
50351
50352         Ensure that a filename ending in a slash cannot be used to access a
50353         non-directory.
50354         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
50355         to check whether it's really a directory.
50356         * lib/fopen.c: Include fcntl.h, unistd.h.
50357         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
50358         and fdopen().
50359         * modules/fopen (Depends-on): Add unistd.
50360         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
50361         * tests/test-fopen.c (main): Likewise.
50362         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
50363         * doc/posix-functions/fopen.texi: Likewise.
50364         Reported by Eric Blake.
50365
50366 2008-09-23  Eric Blake  <ebb9@byu.net>
50367
50368         c-stack: avoid compiler optimizations when provoking overflow
50369         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
50370         recursion harder to optimize, to ensure a stack overflow occurs.
50371         * tests/test-c-stack.c (recurse): Likewise.
50372         Borrowed from libsigsegv.
50373
50374         c-stack: work around Irix sigaltstack bug
50375         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
50376         whether sigaltstack uses wrong end of stack_t (copied in part from
50377         libsigsegv).
50378         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
50379         Irix bug, without requiring an over-allocation.
50380         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
50381         bug.
50382
50383         fopen: document mingw bug on directories
50384         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
50385         not allowing a stream visiting a directory, even though reading
50386         from such a stream is not portable.
50387
50388 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50389
50390         * lib/poll.c: Rewrite.
50391         * modules/poll: Depend on alloca.
50392
50393 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50394
50395         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
50396         instead define prototypes for a full set of wrappers.  Ensure
50397         that Cygwin does not use the compatibility code, which is only
50398         for MinGW.
50399         * lib/winsock.c: New.
50400         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
50401         * modules/sys_socket: Add lib/winsock.c.
50402
50403         * modules/poll-tests: Add errno and perror.
50404         * tests/test-poll.c: Use ioctl, not ioctlsocket.
50405
50406 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
50407
50408         * tests/test-poll.c: Downgrade minimum needed Winsock version.
50409
50410 2008-09-23  Bruno Haible  <bruno@clisp.org>
50411
50412         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
50413         * doc/glibc-functions/*: Likewise.
50414
50415 2008-09-23  Simon Josefsson  <simon@josefsson.org>
50416
50417         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
50418         success.
50419
50420 2008-09-22  Eric Blake  <ebb9@byu.net>
50421             Bruno Haible  <bruno@clisp.org>
50422
50423         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
50424         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
50425         supply %A but mishandle pseudo-NaN.
50426         Reported by Simon Josefsson.
50427
50428 2008-09-21  Bruno Haible  <bruno@clisp.org>
50429
50430         * tests/test-lock.c (main): Tweak skip message.
50431         * tests/test-tls.c (main): Likewise.
50432
50433 2008-09-21  Bruno Haible  <bruno@clisp.org>
50434
50435         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
50436         whether 'struct sigaction' has sa_sigaction here...
50437         (gl_PREREQ_SIG_HANDLER_H): ... not here.
50438         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
50439
50440 2008-09-21  Bruno Haible  <bruno@clisp.org>
50441
50442         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
50443         section.
50444         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
50445         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
50446         the new section.
50447         (Support for obsolete systems lacking POSIX:2001): New section.
50448         (String handling <string.h>): Move strdup to the new section.
50449         Suggested by Simon Josefsson and Paolo Bonzini.
50450
50451 2008-09-21  Bruno Haible  <bruno@clisp.org>
50452
50453         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
50454         exponents in %e and %g results on 'long double'. Needed for mingw's
50455         improved *printf functions.
50456         * tests/test-vasprintf-posix.c (test_function): Likewise.
50457         * tests/test-snprintf-posix.h (test_function): Likewise.
50458         * tests/test-sprintf-posix.h (test_function): Likewise.
50459         Reported by Eric Blake.
50460
50461 2008-09-21  Bruno Haible  <bruno@clisp.org>
50462
50463         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
50464         * tests/test-sprintf-posix.h (test_function): Likewise.
50465
50466 2008-09-21  Bruno Haible  <bruno@clisp.org>
50467
50468         * modules/getpass (Depends-on): Add strdup-posix.
50469
50470         New module 'strdup-posix'.
50471         * modules/strdup-posix: New file.
50472         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
50473         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
50474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50475         REPLACE_STRDUP.
50476         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
50477         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
50478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50479         strdup-posix.
50480
50481         * modules/strdup (Depends-on): Remove malloc-posix.
50482
50483 2008-09-20  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
50486         Wildenhues.
50487
50488 2008-09-20  Bruno Haible  <bruno@clisp.org>
50489
50490         Ensure that wint_t gets defined on IRIX 5.3.
50491         * lib/wchar.in.h (wint_t): Define if not defined by the system.
50492         * lib/wctype.in.h (wint_t): Likewise.
50493         (__wctype_wint_t): Remove type.
50494         (isw*): Use wint_t instead of __wctype_wint_t.
50495         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
50496         * modules/wchar (Files): Add m4/wint_t.m4.
50497         (Makefile.am): Substitute HAVE_WINT_T.
50498         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
50499         * tests/test-wctype.c: Check that wint_t is defined.
50500         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
50501         * doc/posix-headers/wctype.texi: Likewise.
50502         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50503
50504 2008-09-18  Bruno Haible  <bruno@clisp.org>
50505
50506         * gnulib-tool (func_exit): Update comment.
50507
50508 2008-09-18  Simon Josefsson  <simon@josefsson.org>
50509
50510         * modules/getaddrinfo (Depends-on): Remove strdup, this module
50511         assumes strdup exists and does not depend on strdup to return
50512         ENOMEM on out of memory conditions.
50513
50514 2008-09-18  Bruno Haible  <bruno@clisp.org>
50515
50516         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
50517         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
50518         digits for the exponent.
50519
50520 2008-09-18  Jim Meyering  <meyering@redhat.com>
50521             Bruno Haible  <bruno@clisp.org>
50522
50523         * lib/vasnprintf.c (decimal_point_char): Define also if
50524         NEED_PRINTF_INFINITE_LONG_DOUBLE.
50525
50526 2008-09-16  Bruno Haible  <bruno@clisp.org>
50527         and Eric Blake  <ebb9@byu.net>
50528
50529         vasnprintf: support Irix 5.3
50530         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
50531         that mishandle long double infinity.
50532         Reported by Tom G. Christensen.
50533
50534 2008-09-16  Bruno Haible  <bruno@clisp.org>
50535
50536         * doc/glibc-functions/scandir.texi: Mention the function is missing on
50537         Solaris 9.
50538         * doc/glibc-functions/alphasort.texi: Likewise.
50539         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
50540
50541 2008-09-16  Jim Meyering  <meyering@redhat.com>
50542
50543         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
50544         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
50545         a umask modification leak out of a subshell.  Otherwise, the
50546         opensolaris /bin/sh would be accepted and thus cause unwarranted
50547         failures in the coreutils test suite.
50548
50549 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
50550
50551         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
50552         to succeed.
50553
50554 2008-09-16  Jim Meyering  <meyering@redhat.com>
50555
50556         avoid spurious test failure when library is built without ACL support
50557         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
50558         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
50559         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
50560         * tests/test-copy-acl.sh: Likewise.
50561
50562 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50563
50564         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
50565         based on character occurrence counts.
50566
50567 2008-09-15  Eric Blake  <ebb9@byu.net>
50568
50569         tests: avoid some compiler warnings
50570         * tests/test-memchr.c (main): Pass NULL indirectly.
50571         * tests/test-closein.c (main): Avoid unused variable.
50572
50573 2008-09-15  Bruno Haible  <bruno@clisp.org>
50574
50575         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
50576         are missing on OpenBSD 4.0 individually.
50577         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50578
50579 2008-09-15  Bruno Haible  <bruno@clisp.org>
50580
50581         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
50582         * doc/posix-functions/strerror.texi: Mention also Cygwin.
50583         * doc/posix-functions/perror.texi: Likewise.
50584         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
50585         is missing.
50586         Reported by Eric Blake.
50587
50588         * lib/errno.in.h: Use replacement values >= 2000.
50589         Reported by Eric Blake.
50590
50591 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50592
50593         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
50594         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
50595         limit.
50596         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
50597         compareseq was aborted.
50598
50599 2008-09-14  Bruno Haible  <bruno@clisp.org>
50600
50601         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
50602         yvec_edit_count.
50603         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
50604         (fstrcmp_bounded): Simplify result computation accordingly.
50605
50606 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50607
50608         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
50609         (fstrcmp): Define in terms of fstrcmp_bounded.
50610         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
50611         lower_bound argument.
50612         Return quickly if the result is certainly < lower_bound.
50613         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
50614
50615 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50616
50617         * lib/diffseq.h (EARLY_ABORT): New macro.
50618         (compareseq): Change return type to bool. Return true when EARLY_ABORT
50619         evaluates to true.
50620
50621 2008-09-14  Bruno Haible  <bruno@clisp.org>
50622
50623         * modules/perror-tests: New file.
50624         * tests/test-perror.sh: New file.
50625         * tests/test-perror.c: New file.
50626
50627         New module 'perror'.
50628         * lib/stdio.in.h (perror): New declaration.
50629         * lib/perror.c: New file.
50630         * m4/perror.m4: New file.
50631         * modules/perror: New file.
50632         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
50633         * doc/posix-functions/perror.texi: Mention the perror module.
50634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
50635         REPLACE_PERROR.
50636         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
50637         REPLACE_PERROR.
50638
50639 2008-09-14  Bruno Haible  <bruno@clisp.org>
50640
50641         * modules/stdio (Makefile.am): Reorder to match the order in
50642         lib/stdio.in.h.
50643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50644
50645 2008-09-13  Bruno Haible  <bruno@clisp.org>
50646
50647         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
50648
50649 2008-09-13  Bruno Haible  <bruno@clisp.org>
50650
50651         Extend strerror to cover the added errno values.
50652         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
50653         (rpl_strerror): Provide error messages for the added errno values and
50654         for the WSA* values.
50655         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
50656         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
50657         strerror.
50658         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
50659         * modules/strerror (Depends-on): Add errno.
50660         * doc/posix-functions/strerror.texi: Document the change.
50661         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
50662         and EOVERFLOW.
50663
50664 2008-09-13  Bruno Haible  <bruno@clisp.org>
50665
50666         * modules/EOVERFLOW: Remove file.
50667         * m4/eoverflow.m4: Remove file.
50668         * modules/EOVERFLOW-tests: Remove file.
50669         * tests/test-EOVERFLOW.c: Remove file.
50670         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
50671         * modules/ftell (Depends-on): Likewise.
50672         * modules/getdelim (Depends-on): Likewise.
50673         * modules/getugroups (Depends-on): Likewise.
50674         * modules/poll (Depends-on): Likewise.
50675         * modules/snprintf (Depends-on): Likewise.
50676         * modules/sprintf-posix (Depends-on): Likewise.
50677         * modules/vasnprintf (Depends-on): Likewise.
50678         * modules/vasprintf (Depends-on): Likewise.
50679         * modules/vfprintf-posix (Depends-on): Likewise.
50680         * modules/vsnprintf (Depends-on): Likewise.
50681         * modules/vsprintf-posix (Depends-on): Likewise.
50682         * modules/xvasprintf (Depends-on): Likewise.
50683         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50684         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
50685         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
50686         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
50687         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50688         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
50689         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
50690         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
50691         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50692         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
50693         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
50694         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
50695         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50696         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
50697         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
50698         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
50699         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50700         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
50701         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
50702         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
50703         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50704         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
50705         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
50706         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
50707         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
50708         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50709         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
50710         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
50711         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
50712         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
50713         * MODULES.html.sh: Remove EOVERFLOW.
50714         * NEWS: Mention the change.
50715
50716 2008-09-13  Bruno Haible  <bruno@clisp.org>
50717
50718         * modules/errno-tests: New file.
50719         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
50720
50721         * lib/errno.in.h: New file.
50722         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
50723         * modules/errno: New file.
50724         * doc/posix-headers/errno.texi: Update documentation.
50725         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
50726
50727 2008-09-13  Bruno Haible  <bruno@clisp.org>
50728
50729         * tests/test-poll.c: Use #if for native Windows, rather than testing
50730         __MSVCRT__.
50731
50732 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50733             Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/glob.c: Don't include <pwd.h> on native Windows.
50736         (WINDOWS32): New macro.
50737         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
50738
50739 2008-09-13  Bruno Haible  <bruno@clisp.org>
50740
50741         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
50742         (ETIMEDOUT): Remove macro.
50743         (glthread_cond_timedwait_multithreaded): New declaration.
50744         (glthread_cond_timedwait): Use it.
50745         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
50746         (glthread_cond_timedwait_multithreaded): New function.
50747
50748 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50749
50750         * modules/poll-tests: Do not check for io.h.
50751         * tests/test-poll.c: Check for __MSVCRT__ instead.
50752
50753 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50754
50755         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
50756         * modules/poll-tests: Add inet_pton, stdbool, sockets.
50757         * tests/test-poll.c: Use them.  Use _pipe on Windows.
50758
50759 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
50760
50761         * modules/poll-tests: New.
50762         * tests/test-poll.c: New.
50763
50764 2008-09-12  Eric Blake  <ebb9@byu.net>
50765
50766         frexp: test for NetBSD failure on -0.0
50767         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
50768         not all, bugs from NetBSD 3.0 have been fixed.
50769         * doc/posix-functions/frexp.texi (frexp): Document bug.
50770         Reported by Thomas Klausner.
50771
50772         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
50773         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
50774         literal -0.0.
50775         Reported by Jonathan C. Patschke <jp@centtech.com>.
50776
50777 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50778
50779         * lib/glthread/cond.h: Use dummy implementation also if
50780         USE_WIN32_THREADS.
50781
50782 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50783
50784         * modules/fnmatch-posix (License): Change to LGPLv2+.
50785         * modules/fnmatch-gnu (License): Likewise.
50786
50787 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50788
50789         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
50790
50791 2008-09-11  Jim Meyering  <meyering@redhat.com>
50792
50793         * users.txt: Add gtk-vnc.
50794
50795 2008-09-08  Simon Josefsson  <simon@josefsson.org>
50796
50797         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
50798         rotate amounts.
50799
50800         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
50801         required for 16-bit and 8-bit rotates.
50802         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
50803         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
50804         UINT8_MAX instead of hard-coded constants.
50805         Suggested by Paul Eggert.
50806
50807 2008-09-07  Bruno Haible  <bruno@clisp.org>
50808
50809         * tests/test-striconveh.c (main): Check behaviour when converting from
50810         UTF-7.
50811
50812         Make striconveh work better with stateful encodings.
50813         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
50814         that iconv does not increment the inptr when returning -1/EINVAL.
50815
50816 2008-09-07  Bruno Haible  <bruno@clisp.org>
50817
50818         * build-aux/config.rpath: Update according to libtool-2.2.6.
50819         * build-aux/config.libpath: Likewise.
50820
50821 2008-09-06  Bruno Haible  <bruno@clisp.org>
50822
50823         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
50824         * lib/freadptr.c (freadptr): Likewise.
50825         * lib/freadseek.c (freadptrinc): Likewise.
50826         Reported by Simon Josefsson.
50827
50828 2008-09-06  Bruno Haible  <bruno@clisp.org>
50829
50830         * modules/freadptr (License): Change to LGPLv2+.
50831         * modules/freadseek (License): Likewise.
50832         Suggested by Eric Blake.
50833
50834         * modules/memchr2 (License): Change to LGPLv2+.
50835         Approved by Eric Blake.
50836
50837 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50838             Bruno Haible  <bruno@clisp.org>
50839
50840         Make gnulib-tool work with native 'sed' on AIX.
50841         * gnulib-tool (sed_noop): New variable.
50842         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
50843         func_add_or_update, func_create_testdir): Use it to initialize sed
50844         script variables.
50845         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50846
50847 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
50848             Bruno Haible  <bruno@clisp.org>
50849
50850         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
50851         also works after #include directives.
50852
50853 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
50854
50855         getdate.y: reject an out-of-range timezone value
50856         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
50857         the range [-24...+24].  When specified with only one or two digits,
50858         * tests/test-getdate.c: Tests for the fix.
50859         * doc/getdate.texi: Document this change.
50860
50861 2008-09-03  Bruno Haible  <bruno@clisp.org>
50862
50863         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
50864
50865 2008-09-02  Simon Josefsson  <simon@josefsson.org>
50866
50867         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
50868         <bruce.korb@gmail.com> with ideas from Ben Pfaff
50869         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
50870         Blake <ebb9@byu.net>.
50871
50872         * tests/test-bitrotate.c: Add more test vectors.
50873
50874 2008-09-02  Eric Blake  <ebb9@byu.net>
50875
50876         vasnprintf-posix: handle large precision via %.*d
50877         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
50878         when handling it ourselves.
50879         * tests/test-vasnprintf-posix.c (test_function): Add test.
50880         * tests/test-snprintf-posix.h (test_function): Likewise.
50881         * tests/test-sprintf-posix.h (test_function): Likewise.
50882         * tests/test-vasprintf-posix.c (test_function): Likewise.
50883         Reported by Alain Guibert.
50884
50885 2008-09-01  Eric Blake  <ebb9@byu.net>
50886
50887         c-stack: make configure-time check more robust
50888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
50889         successful sigaction call.
50890         Reported by Tom G. Christensen.
50891
50892 2008-09-01  Bruno Haible  <bruno@clisp.org>
50893
50894         New module 'findprog-lgpl'.
50895         * modules/findprog-lgpl: New file.
50896         * lib/findprog-lgpl.c: New file.
50897         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
50898         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
50899         to decide whether to use strdup or xstrdup, concatenated_filename or
50900         xconcatenated_filename.
50901
50902 2008-09-01  Bruno Haible  <bruno@clisp.org>
50903
50904         Split module 'concat-filename' into 'concat-filename' (LGPL) and
50905         'xconcat-filename' (GPL).
50906         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
50907         (License): Change to LGPLv2+.
50908         * modules/xconcat-filename: New file.
50909         * lib/concat-filename.h (concatenated_filename): Change specification.
50910         (xconcatenated_filename): New declaration.
50911         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
50912         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
50913         memory situations.
50914         * lib/xconcat-filename.c: New file.
50915         * NEWS: Mention the change.
50916         * lib/findprog.c: Include concat-filename.h, not filename.h.
50917         (find_in_path): Use xconcatenated_filename instead of
50918         concatenated_filename.
50919         * lib/javacomp.c: Include concat-filename.h, not filename.h.
50920         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
50921         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
50922         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
50923         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
50924         instead of concatenated_filename.
50925         * lib/javaexec.c: Include concat-filename.h, not filename.h.
50926         (execute_java_class): Use xconcatenated_filename instead of
50927         concatenated_filename.
50928         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
50929         * modules/javacomp (Depends-on): Likewise.
50930         * modules/javaexec (Depends-on): Likewise.
50931
50932 2008-09-01  Bruno Haible  <bruno@clisp.org>
50933
50934         Split module 'filename' into 'filename' and 'concat-filename'.
50935         * modules/filename: Keep only lib/filename.h.
50936         (License): Change to LGPLv2+.
50937         * modules/concat-filename: New file, extracted from modules/filename.
50938         * lib/filename.h (concatenated_filename): Remove declaration.
50939         * lib/concat-filename.h: New file, extracted from lib/filename.h.
50940         * lib/concat-filename.c: Include concat-filename.h.
50941         * NEWS: Mention the change.
50942
50943 2008-09-01  Simon Josefsson  <simon@josefsson.org>
50944
50945         * lib/bitrotate.h (rotl8, rotr8): Add.
50946
50947         * modules/bitrotate (configure.ac): Need
50948         AC_REQUIRE([AC_C_INLINE]).
50949         (Description): Mention stdint.h.  Reported by Bruno Haible
50950         <bruno@clisp.org>.
50951
50952         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
50953         Paolo Bonzini <bonzini@gnu.org>.
50954
50955 2008-08-31  Bruno Haible  <bruno@clisp.org>
50956
50957         Assume Solaris specific bi-arch conventions on Solaris systems.
50958         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
50959         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
50960         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
50961         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
50962         like acl_libdirstem.
50963         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
50964         acl_libdirstem.
50965         * NEWS: Mention the change.
50966         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
50967
50968 2008-08-31  Jim Meyering  <meyering@redhat.com>
50969
50970         * lib/strftime.h: Add comments describing the two added arguments.
50971
50972         remove duplicate #include directives
50973         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
50974         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
50975
50976 2008-08-31  Bruno Haible  <bruno@clisp.org>
50977
50978         New module 'sigpipe-die'.
50979         * modules/sigpipe-die: New file.
50980         * lib/sigpipe-die.h: New file.
50981         * lib/sigpipe-die.c: New file.
50982         * MODULES.html.sh (Signal handling): Add sigpipe-die.
50983
50984 2008-08-31  Bruno Haible  <bruno@clisp.org>
50985
50986         Don't override previously installed signal handlers.
50987         * lib/fatal-signal.c (saved_sigactions): New variable.
50988         (uninstall_handlers): Reset the signal to the saved handler, not
50989         to SIG_DFL (except when ignored).
50990         (install_handlers): Save the previous handlers.
50991
50992 2008-08-30  Bruno Haible  <bruno@clisp.org>
50993
50994         * gnulib-tool (func_reset_sigpipe): New function.
50995         (func_get_automake_snippet, func_modules_transitive_closure,
50996         func_import): Invoke it before a join command that reads from stdin,
50997         to avoid "echo: write error: Broken pipe" error messages on stderr.
50998         Reported by Sam Steingold <sds@gnu.org>.
50999
51000 2008-08-30  Bruno Haible  <bruno@clisp.org>
51001
51002         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
51003         Code copied from m4/open.m4.
51004         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
51005         access and the filename ends in a slash. Code copied from lib/open.c.
51006         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
51007         * tests/test-fopen.c (main): Check against bug with trailing slash.
51008
51009 2008-08-29  Bruno Haible  <bruno@clisp.org>
51010
51011         Avoid some "gcc -pedantic" warnings.
51012         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
51013         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
51014         * lib/dirent.in.h: Likewise.
51015         * lib/fcntl.in.h: Likewise.
51016         * lib/float.in.h: Likewise.
51017         * lib/iconv.in.h: Likewise.
51018         * lib/inttypes.in.h: Likewise.
51019         * lib/locale.in.h: Likewise.
51020         * lib/math.in.h: Likewise.
51021         * lib/netinet_in.in.h: Likewise.
51022         * lib/search.in.h: Likewise.
51023         * lib/signal.in.h: Likewise.
51024         * lib/stdarg.in.h: Likewise.
51025         * lib/stdint.in.h: Likewise.
51026         * lib/stdio.in.h: Likewise.
51027         * lib/stdlib.in.h: Likewise.
51028         * lib/string.in.h: Likewise.
51029         * lib/strings.in.h: Likewise.
51030         * lib/sys_select.in.h: Likewise.
51031         * lib/sys_socket.in.h: Likewise.
51032         * lib/sys_stat.in.h: Likewise.
51033         * lib/sys_time.in.h: Likewise.
51034         * lib/sysexits.in.h: Likewise.
51035         * lib/time.in.h: Likewise.
51036         * lib/unistd.in.h: Likewise.
51037         * lib/wchar.in.h: Likewise.
51038         * lib/wctype.in.h: Likewise.
51039         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
51040         * modules/fchdir (Makefile.am): Likewise.
51041         * modules/fcntl (Makefile.am): Likewise.
51042         * modules/float (Makefile.am): Likewise.
51043         * modules/iconv_open (Makefile.am): Likewise.
51044         * modules/inttypes (Makefile.am): Likewise.
51045         * modules/locale (Makefile.am): Likewise.
51046         * modules/math (Makefile.am): Likewise.
51047         * modules/netinet_in (Makefile.am): Likewise.
51048         * modules/search (Makefile.am): Likewise.
51049         * modules/signal (Makefile.am): Likewise.
51050         * modules/stdarg (Makefile.am): Likewise.
51051         * modules/stdint (Makefile.am): Likewise.
51052         * modules/stdio (Makefile.am): Likewise.
51053         * modules/stdlib (Makefile.am): Likewise.
51054         * modules/string (Makefile.am): Likewise.
51055         * modules/strings (Makefile.am): Likewise.
51056         * modules/sys_select (Makefile.am): Likewise.
51057         * modules/sys_socket (Makefile.am): Likewise.
51058         * modules/sys_stat (Makefile.am): Likewise.
51059         * modules/sys_time (Makefile.am): Likewise.
51060         * modules/sysexits (Makefile.am): Likewise.
51061         * modules/time (Makefile.am): Likewise.
51062         * modules/unistd (Makefile.am): Likewise.
51063         * modules/wchar (Makefile.am): Likewise.
51064         * modules/wctype (Makefile.am): Likewise.
51065         Reported by Reuben Thomas <rrt@sc3d.org>.
51066
51067 2008-08-29  Bruno Haible  <bruno@clisp.org>
51068
51069         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
51070         any more.
51071
51072 2008-08-29  Simon Josefsson  <simon@josefsson.org>
51073
51074         * MODULES.html.sh (Misc): Add bitrotate.
51075
51076         * modules/bitrotate: New file.
51077
51078         * lib/bitrotate.h: New file.
51079
51080         * modules/bitrotate-tests: New file.
51081
51082         * tests/test-bitrotate.c: New file.
51083
51084         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
51085         on the bitrotate module.
51086
51087         * lib/arctwo.c: Use new bitrotate module.
51088
51089 2008-08-29  Jim Meyering  <meyering@redhat.com>
51090
51091         bootstrap: merge changes from coreutils
51092         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
51093         of copied files.  Remove a kludge, now that this is fixed.
51094         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
51095         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
51096         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
51097
51098 2008-08-29  Bruno Haible  <bruno@clisp.org>
51099
51100         * MODULES.html.sh: Remove --cvs-urls option.
51101
51102 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
51103
51104         maint.mk: adjust to file name change
51105         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
51106
51107 2008-08-28  Jim Meyering  <meyering@redhat.com>
51108
51109         * modules/getndelim2 (License): Relicense to LGPLv2+.
51110         Approved by Richard Stallman for the version of 1995, and by
51111         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
51112
51113 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
51114
51115         * lib/getdelim.c (flockfile, funlockfile): Make all of them
51116         dummy if one is not available.  Do not touch them if
51117         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
51118         (getc_maybe_unlocked): New.
51119         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
51120
51121 2008-08-26  Eric Blake  <ebb9@byu.net>
51122
51123         doc/INSTALL: resync from autoconf
51124         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
51125         (INSTALL_PRELUDE): Delete; this is done more efficiently by
51126         moving...
51127         * install.texi [!autoconf]: ...here.  Resync from autoconf.
51128         * INSTALL: Regenerate.
51129         * INSTALL.ISO: New file.
51130         * INSTALL.UTF-8: Likewise.
51131
51132 2008-08-26  Jim Meyering  <meyering@redhat.com>
51133
51134         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
51135         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
51136         these definitions conditional, so that they may be overridden, too.
51137
51138 2008-08-26  Bruno Haible  <bruno@clisp.org>
51139
51140         Generate INSTALL file variants with prettier quotes.
51141         * doc/Makefile (INSTALL_PRELUDE): New macro.
51142         (INSTALL): Use it.
51143         (INSTALL.ISO, INSTALL.UTF-8): New rules.
51144
51145 2008-08-26  Bruno Haible  <bruno@clisp.org>
51146
51147         Run makeinfo in an English locale.
51148         * doc/Makefile (MAKEINFO): New variable.
51149
51150 2008-08-26  Bruno Haible  <bruno@clisp.org>
51151
51152         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
51153         Suggested by Eric Blake.
51154
51155 2008-08-25  Bruno Haible  <bruno@clisp.org>
51156
51157         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
51158
51159 2008-08-25  Eric Blake  <ebb9@byu.net>
51160
51161         c-stack: test that stack overflow can be caught
51162         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
51163         that platform allows handling stack overflow; at least OS/2 EMX
51164         has sigaltstack, but crashes before transferring control to
51165         handler on stack overflow.
51166         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
51167         check for HAVE_STACK_OVERFLOW_HANDLING.
51168         Reported by Elbert Pol.
51169
51170 2008-08-25  Bruno Haible  <bruno@clisp.org>
51171
51172         * doc/posix-functions/strftime.texi: Fix description of strftime
51173         module.
51174
51175 2008-08-24  Bruno Haible  <bruno@clisp.org>
51176
51177         * tests/uniwidth/test-uc_width2.c: New file.
51178         * tests/uniwidth/test-uc_width2.sh: New file.
51179         * modules/uniwidth/width-tests (Files): Add the new files.
51180         (TESTS): Add uniwidth/test-uc_width2.sh.
51181         (TESTS_ENVIRONMENT): New variable.
51182         (check_PROGRAMS): Add test-uc_width2.
51183         (test_uc_width2_SOURCES): New variable.
51184
51185         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
51186         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
51187         not 0x00AB.
51188         Reported by Alexander V. Lukyanov <lav@netis.ru>.
51189
51190 2008-08-22  Eric Blake  <ebb9@byu.net>
51191
51192         test-lock, test-tls: mention why a test is skipped
51193         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
51194         skipped.
51195         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
51196
51197         count-one-bits: relax license
51198         * modules/count-one-bits (License): Relicense to LGPLv2+.
51199         Suggested by Ludovic Courtès, approved by Ben Pfaff.
51200
51201 2008-08-22  Andreas Schwab  <schwab@suse.de>
51202
51203         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
51204         Remove spurious space in assignment.
51205
51206 2008-08-21  Simon Josefsson  <simon@josefsson.org>
51207
51208         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
51209         Paul Eggert <eggert@CS.UCLA.EDU>.
51210
51211 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
51212
51213         * modules/gettext: Add m4/threadlib.m4.
51214
51215 2008-08-19  Eric Blake  <ebb9@byu.net>
51216
51217         test-c-stack: fix compilation failure on FreeBSD 5.0
51218         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
51219         headers before <sys/resource.h>.
51220         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
51221         the bug.
51222         Reported by Nelson H. F. Beebe.
51223
51224         strverscmp: migrate from "strverscmp.h" to <string.h>
51225         * modules/string (Makefile.am): Add new hooks.
51226         * modules/strverscmp (Files): Remove strverscmp.h.
51227         (Depends-on): Add string.
51228         (configure.ac): Add indicator.
51229         (Include): Mention new header.
51230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
51231         defaults.
51232         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
51233         results.
51234         * lib/strverscmp.h: Delete.
51235         * lib/string.in.h (strverscmp): Provide declaration, when needed.
51236         * tests/test-strverscmp.c (includes): Adjust client.
51237         * lib/check-version.c (includes): Likewise.
51238         * NEWS: Document the change.
51239
51240         strverscmp: add unit test
51241         * modules/strverscmp-tests: New file.
51242         * tests/test-strverscmp.c: Likewise.
51243
51244 2008-08-19  Simon Josefsson  <simon@josefsson.org>
51245
51246         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
51247         regarding Windows crypto stuff, from Mono.
51248
51249 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
51250
51251         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
51252         if present, for intel RND.  Return error on failures.
51253
51254 2008-08-18  Ben Pfaff  <blp@gnu.org>
51255
51256         gitlog-to-changelog: give better diagnostic for failed pipe-open
51257         * build-aux/gitlog-to-changelog: Improve error message: suggest
51258         that the version of Git may be too old.
51259
51260 2008-08-18  Simon Josefsson  <simon@josefsson.org>
51261
51262         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
51263         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
51264
51265 2008-08-18  Bruno Haible  <bruno@clisp.org>
51266
51267         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
51268         pthread_in_use().
51269
51270 2008-08-18  Bruno Haible  <bruno@clisp.org>
51271
51272         * lib/glthread/threadlib.c: Include <pthread.h>.
51273
51274 2008-08-18  Bruno Haible  <bruno@clisp.org>
51275
51276         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
51277         glthread_recursive_lock_* macros.
51278         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
51279         Fix syntax error.
51280
51281 2008-08-18  Bruno Haible  <bruno@clisp.org>
51282
51283         * lib/glthread/thread.c: Avoid forcing a context switch right after
51284         thread creation.
51285
51286 2008-08-17  Bruno Haible  <bruno@clisp.org>
51287
51288         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
51289         * lib/glthread/thread.h: Provide Win32 specific implementation.
51290         * modules/thread (Files): Add lib/glthread/thread.c.
51291         (Depends-on): Add lock.
51292         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
51293
51294 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51295
51296         New module 'yield'.
51297         * modules/yield: New file.
51298         * lib/glthread/yield.h: New file.
51299         * m4/yield.m4: New file.
51300         * MODULES.html.sh (Multithreading): Add yield.
51301
51302 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51303
51304         New module 'thread'.
51305         * modules/thread: New file.
51306         * lib/glthread/thread.h: New file.
51307         * m4/thread.m4: New file.
51308         * MODULES.html.sh (Multithreading): Add thread.
51309
51310 2008-08-17  Bruno Haible  <bruno@clisp.org>
51311
51312         * lib/glthread/lock.h: Include <stdlib.h> always.
51313         * lib/glthread/tls.h: Likewise.
51314         * lib/glthread/cond.h: Likewise.
51315
51316 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51317
51318         New module 'cond'.
51319         * modules/cond: New file.
51320         * lib/glthread/cond.h: New file.
51321         * lib/glthread/cond.c: New file.
51322         * m4/cond.m4: New file.
51323         * MODULES.html.sh (Multithreading): Add cond.
51324
51325 2008-08-16  Eric Blake  <ebb9@byu.net>
51326
51327         c-stack: fix regression on Irix 5.3 from 2008-06-21
51328         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
51329         sa_sigaction...
51330         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
51331         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
51332         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
51333         * modules/signal (Makefile.am): Use the value.
51334         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
51335         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
51336         * doc/posix-headers/signal.texi (signal.h): Document this
51337         portability issue.
51338         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
51339         Reported by Tom G. Christensen.
51340
51341 2008-08-17  Bruno Haible  <bruno@clisp.org>
51342
51343         New module 'threadlib'.
51344         * modules/threadlib: New file.
51345         * lib/glthread/threadlib.c: New file, extracted from
51346         lib/glthread/lock.c.
51347         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
51348         functions.
51349         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
51350         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
51351         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
51352         macros.
51353         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
51354         (gl_DISABLE_THREADS): Remove macro.
51355         * modules/lock (Files): Remove build-aux/config.rpath.
51356         (Depends-on): Remove havelib. Add threadlib.
51357         (configure.ac-early): Remove section.
51358         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
51359         * modules/tls (Depends-on): Remove lock. Add threadlib.
51360         (Link): New section, copied from threadlib.
51361         * MODULES.html.sh (Multithreading): Add threadlib.
51362
51363 2008-08-14  Bruno Haible  <bruno@clisp.org>
51364
51365         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
51366         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
51367         glthread_rwlock_unlock, glthread_rwlock_destroy,
51368         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
51369         glthread_recursive_lock_destroy): Define as macros always.
51370         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
51371         glthread_lock_lock.
51372         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
51373         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
51374         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
51375         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
51376         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
51377         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
51378         (glthread_recursive_lock_lock_func): Renamed from
51379         glthread_recursive_lock_lock.
51380         (glthread_recursive_lock_unlock_func): Renamed from
51381         glthread_recursive_lock_unlock.
51382         (glthread_recursive_lock_destroy_func): Renamed from
51383         glthread_recursive_lock_destroy.
51384
51385 2008-08-14  Bruno Haible  <bruno@clisp.org>
51386
51387         * lib/glthread/lock.h: Renamed from lib/lock.h.
51388         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
51389         * lib/glthread/tls.h: Renamed from lib/tls.h.
51390         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
51391         * lib/fstrcmp.c: Update includes.
51392         * lib/strsignal.c: Update includes.
51393         * modules/lock (Files, Makefile.am): Update.
51394         (Include): Change to "glthread/lock.h".
51395         * modules/tls (Files, Makefile.am): Update.
51396         (Include): Change to "glthread/tls.h".
51397         * tests/test-lock.c: Update includes.
51398         * tests/test-tls.c: Update includes.
51399         * NEWS: Mention the renamed header files.
51400
51401 2008-08-11  Jim Meyering  <meyering@redhat.com>
51402
51403         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
51404
51405 2008-08-11  Eric Blake  <ebb9@byu.net>
51406
51407         test-c-stack: avoid C99-ism
51408         * tests/test-c-stack.c (main): Fix whitespace, move declaration
51409         before statement.
51410         Reported by Alain Guibert.
51411
51412 2008-08-10  Jim Meyering  <meyering@redhat.com>
51413
51414         ensure that return value of uinttostr et al are not ignored
51415         * lib/inttostr.h (__GNUC_PREREQ): Define.
51416         (__attribute_warn_unused_result__): Define.
51417         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
51418
51419 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
51420
51421         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
51422         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
51423
51424 2008-08-07  Jim Meyering  <meyering@redhat.com>
51425
51426         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
51427
51428         * modules/mkstemp (License): Relicense under LGPLv2+.
51429         * modules/tempname (License): Likewise.
51430
51431 2008-08-06  Bruno Haible  <bruno@clisp.org>
51432
51433         * lib/poll.c (poll): Further micro-optimization.
51434
51435 2008-08-06  Jim Meyering  <meyering@redhat.com>
51436
51437         inet_pton.c: use locale-independent tolower
51438         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
51439         (inet_pton6): Use c_tolower rather than tolower.
51440         * modules/inet_pton (Depends-on): Add c-ctype.
51441
51442 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
51443
51444         * lib/poll.c (poll): Avoid division when timeout is 0, cache
51445         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
51446
51447 2008-08-06  Jim Meyering  <meyering@redhat.com>
51448
51449         * modules/inet_pton (License): Relicense under LGPLv2+.
51450
51451 2008-08-03  Bruno Haible  <bruno@clisp.org>
51452
51453         Additional non-aborting API for lock and tls.
51454         * lib/lock.h: Include <errno.h>.
51455         (glthread_lock_init): New macro/function.
51456         (gl_lock_init): Define as wrapper around glthread_lock_init.
51457         (glthread_lock_lock): New macro/function.
51458         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
51459         (glthread_lock_unlock): New macro/function.
51460         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
51461         (glthread_lock_destroy): New macro/function.
51462         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
51463         (glthread_rwlock_init): New macro/function.
51464         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
51465         (glthread_rwlock_rdlock): New macro/function.
51466         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
51467         (glthread_rwlock_wrlock): New macro/function.
51468         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
51469         (glthread_rwlock_unlock): New macro/function.
51470         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
51471         (glthread_rwlock_destroy): New macro/function.
51472         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
51473         (glthread_recursive_lock_init): New macro/function.
51474         (gl_recursive_lock_init): Define as wrapper around
51475         glthread_recursive_lock_init.
51476         (glthread_recursive_lock_lock): New macro/function.
51477         (gl_recursive_lock_lock): Define as wrapper around
51478         glthread_recursive_lock_lock.
51479         (glthread_recursive_lock_unlock): New macro/function.
51480         (gl_recursive_lock_unlock): Define as wrapper around
51481         glthread_recursive_lock_unlock.
51482         (glthread_recursive_lock_destroy): New macro/function.
51483         (gl_recursive_lock_destroy): Define as wrapper around
51484         glthread_recursive_lock_destroy.
51485         (glthread_once): New macro/function.
51486         (gl_once): Define as wrapper around glthread_once.
51487         Update function declarations.
51488         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
51489         glthread_rwlock_init. Return error code.
51490         (glthread_rwlock_rdlock_multithreaded): Renamed from
51491         glthread_rwlock_rdlock. Return error code.
51492         (glthread_rwlock_wrlock_multithreaded): Renamed from
51493         glthread_rwlock_wrlock. Return error code.
51494         (glthread_rwlock_unlock_multithreaded): Renamed from
51495         glthread_rwlock_unlock. Return error code.
51496         (glthread_rwlock_destroy_multithreaded): Renamed from
51497         glthread_rwlock_destroy. Return error code.
51498         (glthread_recursive_lock_init_multithreaded): Renamed from
51499         glthread_recursive_lock_init. Return error code.
51500         (glthread_recursive_lock_lock_multithreaded): Renamed from
51501         glthread_recursive_lock_lock. Return error code.
51502         (glthread_recursive_lock_unlock_multithreaded): Renamed from
51503         glthread_recursive_lock_unlock. Return error code.
51504         (glthread_recursive_lock_destroy_multithreaded): Renamed from
51505         glthread_recursive_lock_destroy. Return error code.
51506         (glthread_once_call): Make static.
51507         (glthread_once_multithreaded): Renamed from glthread_once.
51508         * lib/tls.h: Include <errno.h>.
51509         (glthread_tls_key_init): New macro/function.
51510         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
51511         (glthread_tls_set): New macro/function.
51512         (gl_tls_set): Define as wrapper around glthread_tls_set.
51513         (glthread_tls_key_destroy): New macro/function.
51514         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
51515         Update function declarations.
51516         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
51517         glthread_tls_get.
51518         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51519
51520 2008-08-04  Eric Blake  <ebb9@byu.net>
51521
51522         gnumakefile: use space, not TAB, outside of targets
51523         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
51524
51525 2008-08-02  Jim Meyering  <meyering@redhat.com>
51526
51527         getdate.y: avoid locale-dependent date parsing failure
51528         In Turkish locales, getdate would fail to recognize keywords
51529         containing a lowercase "i".  The solution is not to rely on
51530         locale-sensitive case-conversion.
51531         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
51532         (lookup_word): Use c_toupper in place of toupper.
51533         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
51534         Reported by Vefa Bicakci <bicave@superonline.com> in
51535         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
51536         * modules/getdate (Depends-on): Add c-ctype.
51537
51538 2008-08-02  Bruno Haible  <bruno@clisp.org>
51539
51540         * gnulib-tool (func_import): When updating or creating a .gitignore
51541         file, prepend each added line with a slash, and ignore leading slashes
51542         from the existing lines.
51543         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51544
51545 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51546
51547         Portability fix for GNU make 3.79.1.
51548         * top/GNUmakefile: Avoid 'else COND', which older GNU make
51549         versions do not understand.
51550
51551 2008-08-01  Bruno Haible  <bruno@clisp.org>
51552
51553         Work around bug of HP-UX 10.20 cc with -0.0 literal.
51554         * tests/test-isnanf.h (zero): New variable.
51555         (main): Avoid literal -0.0f.
51556         * tests/test-isnand.h (zero): New variable.
51557         (main): Avoid literal -0.0.
51558         * tests/test-isnanl.h (zero): New variable.
51559         (main): Avoid literal -0.0L.
51560         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
51561         (test_float, test_double, test_long_double): Avoid literals -0.0f,
51562         -0.0, -0.0L.
51563         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
51564         (test_signbitd): Avoid literal -0.0.
51565         (test_signbitl): Avoid literal -0.0L.
51566         * tests/test-ceilf1.c (zero): New variable.
51567         (main): Avoid literal -0.0f.
51568         * tests/test-ceill.c (zero): New variable.
51569         (main): Avoid literal -0.0L.
51570         * tests/test-floorf1.c (zero): New variable.
51571         (main): Avoid literal -0.0f.
51572         * tests/test-floorl.c (zero): New variable.
51573         (main): Avoid literal -0.0L.
51574         * tests/test-roundf1.c (zero): New variable.
51575         (main): Avoid literal -0.0f.
51576         * tests/test-round1.c (zero): New variable.
51577         (main): Avoid literal -0.0.
51578         * tests/test-roundl.c (zero): New variable.
51579         (main): Avoid literal -0.0L.
51580         * tests/test-truncf1.c (zero): New variable.
51581         (main): Avoid literal -0.0f.
51582         * tests/test-trunc1.c (zero): New variable.
51583         (main): Avoid literal -0.0.
51584         * tests/test-truncl.c (zero): New variable.
51585         (main): Avoid literal -0.0L.
51586         * tests/test-frexp.c (zero): New variable.
51587         (main): Avoid literal -0.0.
51588         * tests/test-frexpl.c (zero): New variable.
51589         (main): Avoid literal -0.0L.
51590         * tests/test-ldexpl.c (zero): New variable.
51591         (main): Avoid literal -0.0L.
51592         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
51593         (zerod, zerol): New variables.
51594         (test_function): Avoid literals -0.0, -0.0L.
51595         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
51596         (zerod, zerol): New variables.
51597         (test_function): Avoid literals -0.0, -0.0L.
51598         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
51599         (zerod, zerol): New variables.
51600         (test_function): Avoid literals -0.0, -0.0L.
51601         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
51602         (zerod, zerol): New variables.
51603         (test_function): Avoid literals -0.0, -0.0L.
51604         * tests/test-strtod.c (zero): New variable.
51605         (main): Avoid literal -0.0.
51606         Reported by Jonathan C. Patschke <jp@centtech.com>.
51607
51608 2008-07-31  Jim Meyering  <meyering@redhat.com>
51609
51610         sha256.h: correct definition of SHA224_DIGEST_SIZE
51611         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
51612         Reported by Paulie Pena IV <paulie4@gmail.com>.
51613         Define as 224 / 8, rather than as a literal.
51614         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
51615         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
51616         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
51617
51618 2008-07-31  Bruno Haible  <bruno@clisp.org>
51619
51620         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
51621         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
51622         Reported by Jonathan Patschke <jp@centtech.com>.
51623
51624 2008-07-31  Bruno Haible  <bruno@clisp.org>
51625
51626         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
51627         Reported by Paolo Bonzini <bonzini@gnu.org>.
51628
51629 2008-07-30  Eric Blake  <ebb9@byu.net>
51630
51631         test-strtod: allow compilation without -lm
51632         * tests/test-strtod.c (main): Avoid link dependence on fabs.
51633         Reported by Dennis Clarke <blastwave@gmail.com>.
51634
51635 2008-07-28  Jim Meyering  <meyering@redhat.com>
51636
51637         bootstrap: work also when there are no .po files in po/
51638         * build-aux/bootstrap (update_po_files): Complete the change
51639         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
51640
51641 2008-07-27  Jim Meyering  <meyering@redhat.com>
51642
51643         * users.txt: Add zile.
51644
51645 2008-07-26  Ben Pfaff  <blp@gnu.org>
51646
51647         Add missing dependencies on new m4/exponent[fdl].m4 files.
51648         * modules/isnanf-nolibm: Add m4/exponentf.m4.
51649         * modules/isnand-nolibm: Add m4/exponentd.m4.
51650         * modules/isnanl-nolibm: Add m4/exponentl.m4.
51651         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
51652         m4/isnan[fdl].m4, because the macros actually used moved.
51653         Reported by Jim Meyering.
51654
51655 2008-07-14  Ben Pfaff  <blp@gnu.org>
51656
51657         Add isinf module.
51658         * lib/isinf.c: New file.
51659         * lib/math.in.h: Define isinf macro if we have decided to replace
51660         it.
51661         * m4/isinf.m4: New file.
51662         * m4/math_h.m4: Initialize and substitute variables for isinf
51663         module.
51664         * modules/isinf: New file.
51665         * modules/isinf-tests: New file.
51666         * modules/math: Add substitutions for new module.
51667         * tests/test-isinf.c: New file.
51668         * doc/posix-functions/isinf.texi: Mention new module.
51669         * MODULES.html.sh: Mention new module.
51670
51671 2008-07-14  Ben Pfaff  <blp@gnu.org>
51672
51673         Factor out some macros for use by additional modules.
51674         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
51675         exponentf.m4.
51676         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
51677         exponentd.m4.
51678         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
51679         file exponentl.m4.
51680         * m4/exponentf.m4: New file.
51681         * m4/exponentd.m4: New file.
51682         * m4/exponentl.m4: New file.
51683         * modules/isnanf: Use new file m4/exponentf.m4.
51684         * modules/isnand: Use new file m4/exponentd.m4.
51685         * modules/isnanl: Use new file m4/exponentl.m4.
51686
51687 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
51688
51689         mktime.c: normalize tp->tm_isdst value to -1/0/1.
51690         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
51691         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
51692         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
51693
51694         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
51695         readlink on platforms without PATH_MAX.
51696
51697 2008-07-21  Eric Blake  <ebb9@byu.net>
51698
51699         Warn, not fail, on stale version.
51700         * top/GNUmakefile (_curr-ver): Tone down previous patch.
51701
51702         Don't allow installation with stale devel version number.
51703         * top/GNUmakefile (_is-install-target): New macro.
51704         (_curr-ver): Forbid installation with stale version number.
51705
51706 2008-07-20  Bruno Haible  <bruno@clisp.org>
51707
51708         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
51709         TESTS_ENVIRONMENT.
51710         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
51711
51712 2008-07-20  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/c-stack.h (c_stack_action): Add documentation.
51715         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
51716
51717 2008-07-20  Bruno Haible  <bruno@clisp.org>
51718
51719         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
51720         * modules/readlink (License): Likewise.
51721
51722 2008-07-17  Eric Blake  <ebb9@byu.net>
51723
51724         * modules/c-stack (Link): Fix typo.
51725
51726         Make c-stack use libsigsegv, when available.
51727         * modules/c-stack (Depends-on): Add libsigsegv.
51728         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
51729         needed.
51730         * lib/c-stack.c (SIGSTKSZ): Define fallback.
51731         (segv_handler, overflow_handler, c_stack_action)
51732         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
51733         implementation when libsigsegv is available, but only when using
51734         the library is necessary.
51735         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
51736         comment, explaining why XSI check fails on Linux.
51737         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
51738         * tests/test-c-stack2.sh: Tweak skip message.
51739         * NEWS: Document new link-time requirements.
51740
51741 2008-07-16  Eric Blake  <ebb9@byu.net>
51742
51743         c-stack: Expose false positives when not using libsigsegv.
51744         * modules/c-stack-tests (Files): Expand test.
51745         * tests/test-c-stack.c (main): Add means to conditionally trigger
51746         non-overflow SIGSEGV.
51747         * tests/test-c-stack2.sh: New file.
51748
51749 2008-07-14  Bruno Haible  <bruno@clisp.org>
51750
51751         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
51752         Reported by Eric Blake.
51753
51754 2008-07-14  Sam Steingold  <sds@gnu.org>
51755             Bruno Haible  <bruno@clisp.org>
51756
51757         New module libsigsegv.
51758         * modules/libsigsegv: New file.
51759         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
51760         modifications.
51761         * MODULES.html.sh (Signal handling): New section.
51762
51763 2008-07-14  Bruno Haible  <bruno@clisp.org>
51764
51765         * modules/unictype/ctype-* (Description): Add the word "function".
51766         Improves the resulting doc in MODULES.html.
51767
51768 2008-07-12  Ben Pfaff  <blp@gnu.org>
51769
51770         Add longlong module.
51771         * modules/longlong: New file.
51772
51773 2008-07-12  Bruno Haible  <bruno@clisp.org>
51774
51775         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
51776         to empty.
51777
51778 2008-07-10  Ben Pfaff  <blp@gnu.org>
51779
51780         Add isnan module.
51781         * doc/posix-functions/isnan.texi: Mention new module.
51782         * lib/math.in.h: Define isnan macro if we have decided to replace
51783         it.
51784         * m4/isnan.m4: New file.
51785         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
51786         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
51787         also.
51788         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
51789         redundancy.
51790         * m4/math_h.m4: Initialize and substitute variables for isnan
51791         module.
51792         * modules/isnan: New file.
51793         * modules/isnan-tests: New file.
51794         * modules/math: Add substitutions for new module.
51795         * tests/test-isnan.c: New file.
51796         * MODULES.html.sh: Mention new module.
51797
51798 2008-07-10  Ben Pfaff  <blp@gnu.org>
51799
51800         Add isnanf module.
51801         * lib/isnanf.m4: New file.
51802         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
51803         (gl_HAVE_ISNANF_IN_LIBM): New macro.
51804         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
51805         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
51806         * modules/isnanf: New file.
51807         * modules/isnanf-tests: New file.
51808         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
51809         files.
51810         * tests/test-isnanf-nolibm.c: factored most of its contents into
51811         new file tests/test-isnanf.h.
51812         * tests/test-isnanf.h: New file.
51813         * tests/test-isnanf.c: New file.
51814         * MODULES.html.sh: Mention new module.
51815         * doc/glibc-functions/isnanf.texi: Mention new module.
51816
51817 2008-07-10  Ben Pfaff  <blp@gnu.org>
51818
51819         Add isnand module.
51820         * lib/isnand.h: New file.
51821         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
51822         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
51823         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
51824         functionality also.
51825         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
51826         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
51827         (gl_HAVE_ISNAND_IN_LIBM): New macro.
51828         * modules/isnand: New file.
51829         * modules/isnand-tests: New file.
51830         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
51831         files.
51832         * tests/test-isnand-nolibm.c: factored most of its contents into
51833         new file tests/test-isnand.h.
51834         * tests/test-isnand.h: New file.
51835         * tests/test-isnand.c: New file.
51836         * MODULES.html.sh: Mention new module.
51837
51838 2008-07-10  Ben Pfaff  <blp@gnu.org>
51839
51840         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
51841         * lib/isnand.h: Rename lib/isnand-nolibm.h.
51842         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
51843         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
51844         * modules/isnanf-nolibm: Update references to renamed files.
51845         * modules/isnand-nolibm: Likewise.
51846         * modules/isnanf-nolibm-tests: Likewise.
51847         * modules/isnand-nolibm-tests: Likewise.
51848         * lib/frexp.c: Likewise.
51849         * lib/isfinite.c: Likewise.
51850         * lib/signbitd.c: Likewise.
51851         * lib/signbitf.c: Likewise.
51852         * lib/vasnprintf.c: Likewise.
51853         * tests/test-ceilf1.c: Likewise.
51854         * tests/test-ceilf2.c: Likewise.
51855         * tests/test-floorf1.c: Likewise.
51856         * tests/test-floorf2.c: Likewise.
51857         * tests/test-frexp.c: Likewise.
51858         * tests/test-round1.c: Likewise.
51859         * tests/test-round2.c: Likewise.
51860         * tests/test-roundf1.c: Likewise.
51861         * tests/test-strtod.c: Likewise.
51862         * tests/test-trunc1.c: Likewise.
51863         * tests/test-trunc2.c: Likewise.
51864         * tests/test-truncf1.c: Likewise.
51865         * tests/test-truncf2.c: Likewise.
51866         * NEWS: Mention the renamed header files.
51867
51868 2008-07-11  Jim Meyering  <meyering@redhat.com>
51869
51870         vc-list-files: make the last-resort awk code more portable
51871         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
51872         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
51873         does not support it.
51874
51875 2008-07-10  Eric Blake  <ebb9@byu.net>
51876
51877         Work with tar's bootstrap.
51878         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
51879         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
51880         an m4 comment.
51881
51882 2008-07-09  Jim Meyering  <meyering@redhat.com>
51883
51884         posix-shell.m4: fix typo that made this test malfunction
51885         * m4/posix-shell.m4: Remove capitalization in variable name.
51886
51887 2008-07-08  Bruno Haible  <bruno@clisp.org>
51888
51889         * m4/onceonly.m4: Update comments.
51890         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51891
51892 2008-07-04  Jim Meyering  <meyering@redhat.com>
51893
51894         * users.txt: Add vc-dwim.
51895         (bison, coreutils): Use the gitweb URL.
51896
51897 2008-07-03  Jim Meyering  <meyering@redhat.com>
51898
51899         * users.txt: Add libffcall.  From Sam Steingold.
51900
51901 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
51902
51903         getdate.y: do not ignore TZ with relative day, month or year offset
51904         * lib/getdate.y (get_date): Move the tz-handling block to follow the
51905         relative-date-handling, since otherwise, the latter would clobber the
51906         sole output (an updated Start value) of the tz-handling block.
51907         * tests/test-getdate.c: Tests for the fix
51908
51909 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51910
51911         Recognize 'foo_LIBRARIES += libgnu.a'.
51912         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
51913         makefile snippet has already specified an installation location,
51914         also using '+='.
51915
51916 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
51917
51918         getdate.y: factor out common actions
51919         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
51920         Use them in place of open-coded actions.
51921
51922 2008-07-01  Simon Josefsson  <simon@josefsson.org>
51923
51924         Add self-test for getdate module.
51925         * modules/getdate-tests: New file.
51926         * tests/test-getdate.c: New file.
51927
51928 2008-06-29  Bruno Haible  <bruno@clisp.org>
51929
51930         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
51931         .gitignore.
51932         Reported by Sylvain Beucler <beuc@beuc.net>.
51933
51934 2008-06-29  Bruno Haible  <bruno@clisp.org>
51935
51936         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
51937         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
51938
51939 2008-06-29  Bruno Haible  <bruno@clisp.org>
51940
51941         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
51942         EXTRA_DIST.
51943         Reported by Sylvain Beucler <beuc@beuc.net>.
51944
51945 2008-06-26  Jim Meyering  <meyering@redhat.com>
51946
51947         make several modules depend on the "open" module
51948         This provides slightly increased consistency when opening-for-write
51949         the name of a non-directory spelled with a trailing slash.
51950         * modules/chdir-safer: Likewise.
51951         * modules/chown: Likewise.
51952         * modules/clean-temp: Likewise.
51953         * modules/copy-file: Likewise.
51954         * modules/fchdir: Likewise.
51955         * modules/fcntl-safer: Likewise.
51956         * modules/pipe: Likewise.
51957         * modules/utime: Likewise.
51958         Prompted by Eric Blake and Bruno Haible.
51959
51960 2008-06-24  Andreas Schwab  <schwab@suse.de>
51961
51962         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
51963         literals can be used as initializers for global variables.
51964
51965 2008-06-23  Eric Blake  <ebb9@byu.net>
51966
51967         Make gnulib-cache.m4 easier to diff.
51968         * gnulib-tool (func_import): Allow newlines when reading cached
51969         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
51970
51971 2008-06-23  Bruno Haible  <bruno@clisp.org>
51972
51973         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
51974         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
51975         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
51976         m4/signalblocking.m4.
51977         (gl_PREREQ_SIGACTION): Don't invoke it.
51978         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
51979         gl_PREREQ_SIG_HANDLER_H.
51980         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51981         Don't check for sigaction here.
51982
51983 2008-06-23  Bruno Haible  <bruno@clisp.org>
51984
51985         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
51986         (install_handlers): Don't set the SA_RESETHAND flag.
51987
51988 2008-06-23  Bruno Haible  <bruno@clisp.org>
51989
51990         * m4/sigaction.m4: Comment fixes.
51991         * lib/signal.in.h: Likewise.
51992
51993 2008-06-23  Eric Blake  <ebb9@byu.net>
51994
51995         Fix typo.
51996         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
51997
51998         Avoid SA_ namespace.
51999         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
52000         Reported by Ralf Wildenhues.
52001
52002         Avoid test failure due to SA_RESTORER.
52003         * tests/test-sigaction.c (SA_MASK): New macro.
52004         (main): Avoid failing due to extension flags being set.
52005         Reported by Jim Meyering.
52006
52007         Revert use of sig-handler.h in sigprocmask.c.
52008         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
52009         it requires the existence of struct sigaction.
52010         * lib/sigprocmask.c (handler_t): Restore typedef.
52011         (rpl_signal, old_handlers): Use local type.
52012
52013 2008-06-22  Bruno Haible  <bruno@clisp.org>
52014
52015         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
52016         conditionally.
52017         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52018
52019 2008-06-22  Bruno Haible  <bruno@clisp.org>
52020
52021         * doc/posix-functions/siginterrupt.texi: Move note.
52022
52023         * lib/signal.in.h (SA_RESTART): New macro.
52024         * lib/sigaction.c: Update comment.
52025
52026         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
52027
52028         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
52029         (gl_PREREQ_SIGPROCMASK): Invoke it.
52030         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
52031
52032         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
52033
52034         * lib/sigprocmask.c: Update a comment.
52035
52036 2008-06-21  Eric Blake  <ebb9@byu.net>
52037
52038         Use sigaction module rather than signal().
52039         * modules/c-stack (Depends-on): Add sigaction.
52040         * modules/fatal-signal (Depends-on): Likewise.
52041         * modules/nanosleep (Depends-on): Likewise.
52042         * modules/sigprocmask (Files): Add sig-handler.h.
52043         * modules/sigaction (Files): Likewise.
52044         * lib/sig-handler.h (get_handler): New file, suggested by Paul
52045         Eggert.
52046         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
52047         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
52048         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
52049         (init_fatal_signals): Likewise.
52050         * lib/nanosleep.c (rpl_nanosleep): Likewise.
52051         (siginterrupt): Delete fallback.
52052         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
52053         instead.
52054         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
52055         siginterrupt.
52056
52057         New module sigaction, for mingw.
52058         * modules/sigaction: New module...
52059         * modules/sigaction-tests: ...and its test.
52060         * m4/sigaction.m4: New file.
52061         * lib/sigaction.c: Likewise.
52062         * tests/test-sigaction.c: Likewise.
52063         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
52064         * modules/signal (Makefile.am): Likewise.
52065         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
52066         needed.
52067         * doc/posix-headers/signal.texi (signal.h): Mention provided
52068         types.
52069         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
52070         that sigaction is preferable.
52071         * doc/posix-functions/sigaction.texi (sigaction): Mention new
52072         module.
52073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52074         sigaction.
52075
52076         Improve robustness of sigprocmask by overriding signal.
52077         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
52078         is in use.
52079         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
52080         (SIGKILL, SIGSTOP): Provide fallbacks.
52081         (rpl_signal): Implement.
52082         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
52083         signal can be called inside handlers.
52084
52085         Fix nanosleep module on mingw.
52086         * modules/nanosleep (Depends-on): Add sys_select.
52087         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
52088
52089         Fix licensing of sigprocmask.
52090         * modules/raise (License): Relicense as LGPL.
52091
52092 2008-06-21  Bruno Haible  <bruno@clisp.org>
52093
52094         * lib/propername.c (proper_name_utf8): Don't use the transliterated
52095         result if it contains question marks.
52096         Reported by Michael Geng <linux@michaelgeng.de>.
52097
52098 2008-06-19  Bruno Haible  <bruno@clisp.org>
52099
52100         Fix CVS-ism.
52101         * doc/gnulib.texi: Include updated-stamp.texi.
52102         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
52103         (updated-stamp.texi): New rule.
52104         (gnulib.info): Depend on it.
52105         * doc/.gitignore: Add updated-stamp.texi.
52106         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
52107
52108 2008-06-19  Bruno Haible  <bruno@clisp.org>
52109
52110         * doc/Makefile (gnulib.info): Update and simplify dependencies.
52111         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52112
52113 2008-06-19  Eric Blake  <ebb9@byu.net>
52114
52115         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
52116         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
52117         Reported by Stepan Kasal.
52118
52119 2008-06-18  Bruno Haible  <bruno@clisp.org>
52120
52121         * lib/fatal-signal.c (init_fatal_signals): Add comment.
52122         Reported by Eric Blake.
52123
52124 2008-06-18  Eric Blake  <ebb9@byu.net>
52125
52126         Work around cygwin 1.5.25 strsignal bug.
52127         * tests/test-strsignal.c: Allow for const char *.
52128         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
52129
52130 2008-06-18  Simon Josefsson  <simon@josefsson.org>
52131
52132         * users.txt: Update URL to article and add author/date
52133         information.
52134
52135 2008-06-17  Bruno Haible  <bruno@clisp.org>
52136
52137         New macro gl_DISABLE_THREADS.
52138         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
52139         if the user did not pass --enable-threads or --disable-threads option.
52140         (gl_DISABLE_THREADS): New macro.
52141         Reported by Eric Blake <ebb9@byu.net>.
52142
52143 2008-06-17  Bruno Haible  <bruno@clisp.org>
52144
52145         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
52146         when the macro ignores it.
52147         Based on a patch by Eric Blake <ebb9@byu.net>.
52148
52149 2008-06-17  Bruno Haible  <bruno@clisp.org>
52150
52151         * modules/tls (License): Change to LGPLv2+.
52152         Reported by Eric Blake.
52153
52154 2008-06-17  Eric Blake  <ebb9@byu.net>
52155
52156         Simplify c-stack prerequisites.
52157         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
52158         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
52159         no longer requires <ucontext.h> to exist.  Optimize setrlimit
52160         check.
52161         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
52162         <sys/resource.h>.
52163
52164         Move c-stack test into testsuite.
52165         * modules/c-stack-tests: New file.
52166         * lib/c-stack.c [DEBUG]: Move test program...
52167         * tests/test-c-stack.c: ...into this new file.  Skip rather than
52168         fail test if sigaltstack is lacking.
52169         * tests/test-c-stack.sh: New driver file.
52170
52171 2008-06-16  Eric Blake  <ebb9@byu.net>
52172
52173         Use raise module consistently.
52174         * modules/fatal-signal (Depends-on): Add raise.
52175         * modules/sigprocmask (Depends-on): Likewise.
52176         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
52177         * lib/sigprocmask.c (sigprocmask): Likewise.
52178         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52179         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
52180
52181         Fix compliance bug in sigpending.
52182         * lib/sigprocmask.c (sigpending): Return pending array via
52183         parameter, not return value.
52184
52185 2008-06-14  Eric Blake  <ebb9@byu.net>
52186
52187         Improve obstack-printf test code.
52188         * tests/test-obstack-printf.c (test_function): Fix comment, and
52189         simplify usage of obstack_* in macros.  Add a test for coverage.
52190         Reported by Bruno Haible.
52191
52192 2008-06-14  Bruno Haible  <bruno@clisp.org>
52193
52194         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
52195         array size as a constant, not as a const variable.
52196         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
52197         AC_USE_SYSTEM_EXTENSIONS.
52198         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
52199         Test whether the obstack_printf function actually exists.
52200         * modules/obstack-printf (Depends-on): Add extensions.
52201         (Include): Remove obstack.h.
52202         * modules/obstack-printf-posix (Depends-on): Add extensions.
52203         (Include): Remove obstack.h.
52204
52205 2008-06-13  Eric Blake  <ebb9@byu.net>
52206
52207         Add obstack-printf and obstack-printf-posix modules.
52208         * modules/obstack-printf: New file.
52209         * modules/obstack-printf-posix: Likewise.
52210         * MODULES.html.sh (Misc): Mention them.
52211         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52212         Likewise.
52213         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52214         Likewise.
52215         * modules/stdio (Makefile.am): Accomodate new modules.
52216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52217         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
52218         Declare.
52219         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
52220         functions.
52221         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
52222         (gl_REPLACE_OBSTACK_PRINTF): New macros
52223         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
52224         * tests/test-obstack-printf.c: New file.
52225         * modules/obstack-printf-tests: Likewise.
52226         * modules/obstack-printf-posix-tests: Likewise.
52227
52228 2008-06-11  Bruno Haible  <bruno@clisp.org>
52229
52230         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
52231         * lib/open.c: Include errno.h.
52232         (open): Fail when attempting to write to a file that has a trailing
52233         slash.
52234         * tests/test-open.c (main): Test against trailing slash bug.
52235         * doc/posix-functions/open.texi: Mention the trailing slash bug.
52236
52237 2008-06-10  Bruno Haible  <bruno@clisp.org>
52238
52239         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
52240         for $? to work inside the trap command, with various /bin/sh-s.
52241         * tests/test-vc-list-files-cvs.sh: Likewise.
52242
52243 2008-06-10  Bruno Haible  <bruno@clisp.org>
52244
52245         * lib/acl-internal.h: Don't include gettext.h here.
52246         * lib/set-mode-acl.c: Include gettext.h here.
52247         * lib/copy-acl.c: Likewise.
52248
52249 2008-06-10  Bruno Haible  <bruno@clisp.org>
52250
52251         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
52252         * lib/wait-process.c (wait_subprocess): Likewise.
52253         * lib/execute.h (execute): Add termsigp argument.
52254         * lib/execute.c (execute): Likewise.
52255         * lib/csharpcomp.c (compile_csharp_using_pnet,
52256         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
52257         * lib/csharpexec.c (execute_csharp_using_pnet,
52258         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
52259         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
52260         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
52261         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
52262         is_jikes_present): Update.
52263         * lib/javaexec.c (execute_java_class): Update.
52264         * lib/javaversion.c (execute_and_read_line): Update.
52265         * NEWS: Document the changes.
52266         Reported by Eric Blake.
52267
52268 2008-06-10  Eric Blake  <ebb9@byu.net>
52269
52270         Add missing include.
52271         * tests/test-strstr.c (includes): Add <signal.h>.
52272         * tests/test-strcasestr.c (includes): Likewise.
52273         * tests/test-memmem.c (includes): Likewise.
52274
52275 2008-06-10  Bruno Haible  <bruno@clisp.org>
52276
52277         * lib/wait-process.c (wait_subprocess): Add an assertion.
52278
52279 2008-06-10  Bruno Haible  <bruno@clisp.org>
52280
52281         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
52282
52283 2008-06-10  Bruno Haible  <bruno@clisp.org>
52284
52285         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
52286         using alarm().
52287         * tests/test-strcasestr.c (main): Likewise.
52288         * tests/test-strstr.c (main): Likewise.
52289
52290 2008-06-09  Bruno Haible  <bruno@clisp.org>
52291
52292         Work around the Solaris 10 ACE ACLs ABI change.
52293         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
52294         declare if ACL_NO_TRIVIAL is present.
52295         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
52296         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
52297         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
52298         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
52299         define if ACL_NO_TRIVIAL is present.
52300         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
52301         and use the current ABI.
52302         (file_has_acl): Use same #if condition as elsewhere.
52303         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
52304         in use, and use the current ABI.
52305         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
52306         Reported by Jim Meyering.
52307
52308 2008-06-09  Eric Blake  <ebb9@byu.net>
52309
52310         Work around environments that (stupidly) ignore SIGALRM.
52311         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
52312         before using alarm().
52313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52314         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52315         Reported by Ian Beckwith <ianb@erislabs.net>.
52316
52317         Produce autobuild blurb earlier in log.
52318         * modules/autobuild (configure.ac-early): Move AB_INIT here.
52319
52320 2008-06-09  Jim Meyering  <meyering@redhat.com>
52321         and OndÅ™ej Vašík  <ovasik@redhat.com>
52322
52323         utimens.c: correct kernel bug work-around
52324         OndÅ™ej Vašík found that the invalid return value of 280 indicates
52325         failure, not success, and the kernel bug we're trying to work
52326         around affects not just the utimensat call, but also the fallback
52327         futimens call.
52328         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
52329         not success.
52330         [HAVE_FUTIMENS]: Use the same work-around, here.
52331
52332 2008-06-09  Jim Meyering  <meyering@redhat.com>
52333
52334         add more guards around definition of ACE_-related code
52335         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
52336         ALLOW and ACE_OWNER are also defined.
52337
52338 2008-06-08  Bruno Haible  <bruno@clisp.org>
52339
52340         * lib/acl-internal.h: Add me as co-author.
52341         * lib/file-has-acl.c: Likewise.
52342         * lib/set-mode-acl.c: Likewise.
52343         * lib/copy-acl.c: Likewise.
52344
52345 2008-06-08  Bruno Haible  <bruno@clisp.org>
52346
52347         Add support for AIX ACLs.
52348         * lib/acl-internal.h (acl_nontrivial): New declaration.
52349         * lib/file-has-acl.c (acl_nontrivial): New function.
52350         (file_has_acl): Add implementation using AIX 4 ACL API.
52351         * lib/set-mode-acl.c (qset_acl): Likewise.
52352         * lib/copy-acl.c (qcopy_acl): Likewise.
52353
52354 2008-06-08  Bruno Haible  <bruno@clisp.org>
52355
52356         Add support for HP-UX ACLs.
52357         * lib/acl-internal.h (acl_nontrivial): New declaration.
52358         * lib/file-has-acl.c (acl_nontrivial): New function.
52359         (file_has_acl): Add implementation using HP-UX 11 ACL API.
52360         * lib/set-mode-acl.c (qset_acl): Likewise.
52361         * lib/copy-acl.c (qcopy_acl): Likewise.
52362
52363 2008-06-08  Bruno Haible  <bruno@clisp.org>
52364
52365         Add support for Cygwin ACLs.
52366         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
52367         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
52368         the chmod_or_fchmod call.
52369         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
52370
52371 2008-06-08  Bruno Haible  <bruno@clisp.org>
52372
52373         Fix bug with setuid modes in Solaris 10+ code.
52374         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
52375         succeeded, when the mode contains some special bits.
52376
52377 2008-06-08  Bruno Haible  <bruno@clisp.org>
52378
52379         Add support for Solaris 7..10 ACLs.
52380         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
52381         declarations.
52382         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
52383         functions.
52384         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
52385         * lib/set-mode-acl.c (qset_acl): Likewise.
52386         * lib/copy-acl.c (qcopy_acl): Likewise.
52387
52388 2008-06-08  Bruno Haible  <bruno@clisp.org>
52389
52390         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
52391         declaration.
52392         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
52393         (acl_access_nontrivial): Remove MacOS X case.
52394         (file_has_acl): Use acl_extended_nontrivial.
52395         * lib/copy-acl.c (qcopy_acl): Likewise.
52396
52397 2008-06-08  Bruno Haible  <bruno@clisp.org>
52398
52399         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
52400
52401 2008-06-08  Jim Meyering  <meyering@redhat.com>
52402
52403         * modules/acl (Maintainer): Add Bruno Haible.
52404
52405 2008-06-07  Bruno Haible  <bruno@clisp.org>
52406
52407         Improve support for Tru64 ACLs.
52408         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
52409         ACL on OSF/1.
52410
52411 2008-06-07  Bruno Haible  <bruno@clisp.org>
52412
52413         Add support for MacOS X ACLs.
52414         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
52415         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
52416         * lib/set-mode-acl.c (qset_acl): Likewise.
52417         * lib/copy-acl.c (qcopy_acl): Likewise.
52418
52419 2008-06-07  Bruno Haible  <bruno@clisp.org>
52420
52421         Fix memory leak introduced on 2008-05-22.
52422         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
52423         use.
52424
52425 2008-06-07  Bruno Haible  <bruno@clisp.org>
52426
52427         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
52428         to construct an empty ACL.
52429
52430 2008-06-07  Bruno Haible  <bruno@clisp.org>
52431
52432         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
52433         precisely.
52434         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
52435
52436 2008-06-07  Bruno Haible  <bruno@clisp.org>
52437
52438         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
52439         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
52440
52441 2008-06-07  Bruno Haible  <bruno@clisp.org>
52442
52443         * doc/posix-functions/_setjmp.texi: Explain the use of this function
52444         regardless of POSIX.
52445         * doc/posix-functions/_longjmp.texi: Likewise.
52446         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
52447         SystemV platform in this case.
52448
52449 2008-06-06  Eric Blake  <ebb9@byu.net>
52450
52451         Document abort() bugs.
52452         * doc/posix-functions/abort.texi (abort): Mention anomalies.
52453
52454         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
52455         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
52456         sigsetjmp.
52457         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
52458         siglongjmp, but only as a macro.
52459         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
52460         is obsolete.
52461         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
52462
52463         Tweak documentation to cover cygwin argz bugs.
52464         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
52465         argz bug fix; no code change needed since no cygwin releases
52466         occurred between the last fix and the bug being tested.
52467         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
52468         module and recently fixed cygwin bugs.
52469         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
52470         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
52471         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
52472         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
52473         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
52474         Likewise.
52475         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
52476         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
52477         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
52478         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
52479         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
52480         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
52481         Likewise.
52482
52483         Avoid gcc warning on cygwin.
52484         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
52485         !ACL_NO_TRIVIAL]: Avoid unused variable.
52486
52487 2008-06-05  Eric Blake  <ebb9@byu.net>
52488
52489         Be tolerant of UNKNOWN version in gnulib-tool test dir.
52490         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
52491         git-version-gen fails to come up with a version.
52492         Reported by Simon Josefsson.
52493
52494 2008-06-05  Jim Meyering  <meyering@redhat.com>
52495             Paul Eggert  <eggert@cs.ucla.edu>
52496
52497         utimens.c: work around a probable Linux kernel bug
52498         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
52499         appears to be a kernel bug that causes utimensat to return 280
52500         instead of 0, indicating success.
52501
52502 2008-06-04  Bruno Haible  <bruno@clisp.org>
52503
52504         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
52505         2008-06-01 commit.
52506
52507 2008-06-04  Bruno Haible  <bruno@clisp.org>
52508
52509         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
52510         * lib/file-has-acl.c (acl_access_nontrivial): New function.
52511         (file_has_acl): Use it. Save errno afterwards.
52512         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
52513
52514 2008-06-03  Bruno Haible  <bruno@clisp.org>
52515
52516         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
52517         draft code. Simplify #ifs.
52518         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
52519         Put Solaris code after POSIX-draft code. Fix comments regarding
52520         Solaris 10, HP-UX. Mention Cygwin.
52521         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
52522
52523 2008-06-03  Eric Blake  <ebb9@byu.net>
52524
52525         Provide fallback for older kernels.
52526         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
52527         Provide runtime fallback if kernel lacks support.
52528         Reported by Mike Frysinger.
52529
52530 2008-06-02  Bruno Haible  <bruno@clisp.org>
52531
52532         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
52533         it exists.
52534
52535 2008-06-02  Bruno Haible  <bruno@clisp.org>
52536
52537         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
52538         * lib/copy-acl.c (qcopy_acl): Update comment.
52539
52540 2008-06-02  Bruno Haible  <bruno@clisp.org>
52541
52542         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
52543         like ACL APIs.
52544
52545 2008-06-02  Bruno Haible  <bruno@clisp.org>
52546
52547         * tests/test-file-has-acl.sh: Use different code for Cygwin.
52548         * tests/test-set-mode-acl.sh: Likewise.
52549         * tests/test-copy-acl.sh: Likewise.
52550         * tests/test-copy-file.sh: Likewise.
52551
52552 2008-06-02  Bruno Haible  <bruno@clisp.org>
52553
52554         * tests/test-file-has-acl.sh: Remove unused code.
52555
52556 2008-06-01  Bruno Haible  <bruno@clisp.org>
52557
52558         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
52559         (copy_acl): Just a wrapper around qcopy_acl that emits the error
52560         messages.
52561         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
52562
52563 2008-06-01  Bruno Haible  <bruno@clisp.org>
52564
52565         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
52566         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
52567         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
52568         APIs.
52569         * modules/acl-tests (configure.ac): Remove tests now contained in
52570         m4/acl.m4.
52571
52572 2008-06-02  Jim Meyering  <meyering@redhat.com>
52573
52574         announce-gen: use a better key-server host name
52575         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
52576         it may be more consistently reliable.  Suggested by Werner Koch
52577         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
52578
52579 2008-06-01  Bruno Haible  <bruno@clisp.org>
52580
52581         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
52582         Reported by Voroskoi Andras <voroskoi@gmail.com>.
52583
52584 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
52585
52586         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
52587
52588 2008-06-01  Bruno Haible  <bruno@clisp.org>
52589
52590         New ACL tests.
52591         * tests/test-file-has-acl.sh: New file.
52592         * tests/test-file-has-acl.c: New file.
52593         * tests/test-set-mode-acl.sh: New file.
52594         * tests/test-set-mode-acl.c: New file.
52595         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
52596         * tests/test-copy-acl.c: New file.
52597         * modules/acl-tests: New file, based on modules/copy-file-tests.
52598         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
52599         (Depends-on): Add acl-tests.
52600         (configure.ac): Remove checks.
52601         (Makefile.am): Don't create test-sameacls program here any more.
52602
52603 2008-06-01  Bruno Haible  <bruno@clisp.org>
52604
52605         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
52606         * tests/test-sameacls.c: Include progname.h.
52607         (main): Invoke set_program_name. Portability fixes for MacOS X,
52608         Solaris, HP-UX.
52609
52610 2008-06-01  Bruno Haible  <bruno@clisp.org>
52611
52612         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
52613         function.
52614         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
52615
52616 2008-06-01  Bruno Haible  <bruno@clisp.org>
52617
52618         * modules/rpmatch (Depends-on): Add strdup.
52619
52620 2008-06-01  Bruno Haible  <bruno@clisp.org>
52621
52622         * lib/pipe.c: Include unistd-safer.h.
52623         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
52624         * modules/pipe (Depends-on): Add unistd-safer.
52625
52626 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52627
52628         * modules/autobuild (configure.ac): Call AB_INIT.
52629
52630 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52631
52632         * tests/test-getaddrinfo.c: Don't print debug messages by default.
52633         Suggested by Bruno Haible <bruno@clisp.org>.
52634
52635 2008-05-30  Simon Josefsson  <simon@josefsson.org>
52636
52637         * tests/test-base64.c: Cast size_t to unsigned long when invoking
52638         printf.  Use %lu instead of %d.  Reported by Bruno Haible
52639         <bruno@clisp.org>.
52640
52641 2008-05-29  Eric Blake  <ebb9@byu.net>
52642
52643         Prefer new POSIX 200x interfaces over futimesat.
52644         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
52645         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
52646         when available.
52647         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
52648
52649 2008-05-28  Bruno Haible  <bruno@clisp.org>
52650
52651         * modules/stpcpy (License): Change to LGPLv2+.
52652         Requested by David Lutterkort <dlutter@redhat.com>.
52653
52654 2008-05-27  Bruno Haible  <bruno@clisp.org>
52655
52656         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
52657         current mingw.
52658         Reported by Jose E. Marchesi <jemarch@gnu.org>.
52659
52660 2008-05-27  Bruno Haible  <bruno@clisp.org>
52661
52662         * modules/iconv_open (Link): New section, from module 'iconv'.
52663         * modules/striconv (Link): Likewise.
52664         * modules/striconveh (Link): Likewise.
52665         * modules/xstriconv (Link): Likewise.
52666         * modules/unicodeio (Link): Likewise.
52667         * modules/propername (Link): Likewise.
52668         Reported by Jim Meyering.
52669
52670 2008-05-26  Jim Meyering  <meyering@redhat.com>
52671
52672         sha256: do not artificially restrict buffer length to be < 2^32
52673         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
52674         uint32_t to size_t.
52675         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
52676         to match.
52677
52678         avoid unaligned access errors, e.g., on sparc
52679         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
52680         direct access through a possibly-unaligned uint64* pointer.
52681         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
52682         direct access through a possibly-unaligned uint32* pointer.
52683         Prompted by this patch from Tom "spot" Callaway:
52684         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
52685
52686         sha512.c: fix typo in comment
52687         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
52688
52689 2008-05-25  Bruno Haible  <bruno@clisp.org>
52690
52691         * lib/set-mode-acl.c: Renamed from lib/acl.c.
52692         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
52693         (Makefile.am): Update lib_SOURCES.
52694
52695 2008-05-25  Bruno Haible  <bruno@clisp.org>
52696
52697         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
52698
52699 2008-05-25  Jim Meyering  <meyering@redhat.com>
52700
52701         useless-if-before-free: freed expr may have white-space differences
52702         * build-aux/useless-if-before-free: Recognize cases in which the
52703         freed expression differs from the tested one in embedded white
52704         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
52705         $1 was used, so we can't make any regexp shy.  Improved tests now
52706         detect this.
52707
52708         useless-if-before-free: accept white space in the expression.
52709         * build-aux/useless-if-before-free: For now, any white space
52710         in the expression must be identical in the free argument.
52711
52712         useless-if-before-free: efficiency tweak
52713         * build-aux/useless-if-before-free: Make the expression-matching
52714         regexp "shy".
52715         Make the *outer* regexp shy, not the expr-matching one.
52716
52717         update code-in-comment to accept cast of free arg
52718         * build-aux/useless-if-before-free: Update regexp.
52719
52720 2008-05-25  Bruno Haible  <bruno@clisp.org>
52721
52722         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
52723         * modules/copy-file-tests (Files, Makefile.am): Update.
52724         * tests/test-copy-file.c (func_test_copy): Update.
52725
52726 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
52727
52728         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
52729
52730 2008-05-23  Bruno Haible  <bruno@clisp.org>
52731
52732         Improve support for ACLs on OSF/1.
52733         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
52734         Remove fallback for unknown flavors of ACLs.
52735
52736 2008-05-22  Bruno Haible  <bruno@clisp.org>
52737
52738         Add support for ACLs on OSF/1.
52739         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
52740         replacements.
52741         (acl_free_text): New macro fallback.
52742         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
52743         acl_free.
52744         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
52745         acl_free_text function. Require AC_C_INLINE.
52746
52747 2008-05-22  Bruno Haible  <bruno@clisp.org>
52748
52749         Make copy_acl work on MacOS X 10.5.
52750         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
52751         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
52752         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
52753         If MODE_INSIDE_ACL, don't assume that every system has the same text
52754         representation for ACLs as FreeBSD.
52755         * lib/copy-acl.c (copy_acl): Add support for platforms with
52756         !MODE_INSIDE_ACL.
52757         * lib/file-has-acl.c (file_has_acl): Likewise.
52758         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
52759         FreeBSD, MacOS X, or IRIX, respectively.
52760
52761 2008-05-22  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/acl.h: Don't include <sys/acl.h>.
52764         (GETACLCNT): Move fallback to lib/acl-internal.h.
52765         * lib/acl-internal.h: Include <sys/acl.h> here.
52766         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
52767
52768 2008-05-22  Bruno Haible  <bruno@clisp.org>
52769
52770         Split off copy_acl function to separate file.
52771         * lib/copy-acl.c: New file, extracted from lib/acl.c.
52772         * lib/acl.c (copy_acl): Moved function to separate file.
52773         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
52774         * modules/acl (Files): Add lib/copy-acl.c.
52775         (Makefiles.am): Augment lib_SOURCES.
52776
52777 2008-05-22  Bruno Haible  <bruno@clisp.org>
52778
52779         * modules/copy-file-tests: New file.
52780         * tests/test-copy-file.sh: New file.
52781         * tests/test-copy-file.c: New file.
52782         * tests/test-copy-file-sameacls.c: New file.
52783
52784 2008-05-22  Eric Blake  <ebb9@byu.net>
52785
52786         Avoid gcc warning.
52787         * tests/test-memcmp.c (main): Pass NULL indirectly.
52788
52789 2008-05-21  Bruno Haible  <bruno@clisp.org>
52790
52791         Add reference doc about ACLs.
52792         * doc/acl-resources.txt: New file.
52793         * doc/acl-cygwin.txt: New file.
52794
52795 2008-05-21  Bruno Haible  <bruno@clisp.org>
52796
52797         Avoid one more warning from gcc.
52798         * lib/vasnprintf.c (IF_LINT): Update comments.
52799         (VASNPRINTF): Use it also for the 'prefix' array initializer.
52800
52801 2008-05-21  Jim Meyering  <meyering@redhat.com>
52802
52803         avoid a warning from gcc
52804         * lib/vasnprintf.c (IF_LINT): Define.
52805         (scale10_round_decimal_long_double):
52806         Use it to avoid a "may be used uninitialized" warning.
52807         (scale10_round_decimal_double): Likewise.
52808
52809 2008-05-21  Simon Josefsson  <simon@josefsson.org>
52810
52811         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
52812         declared.
52813
52814 2008-05-20  Bruno Haible  <bruno@clisp.org>
52815
52816         * tests/test-memcmp.c (main): Test also the sign of the result. Test
52817         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
52818
52819 2008-05-20  Simon Josefsson  <simon@josefsson.org>
52820
52821         * modules/memcmp-tests: New file.
52822         * tests/test-memcmp.c: New file.
52823
52824 2008-05-19  Bruno Haible  <bruno@clisp.org>
52825
52826         * modules/propername (Notice, configure.ac): Put quoted "..." into
52827         --keyword option.
52828         * lib/propername.h: Update comments accordingly.
52829         Reported by Eric Blake.
52830
52831 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
52832
52833         * modules/getpass-gnu (Depends-on): Add fseeko.
52834
52835 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52836
52837         * modules/base64-tests: New file.
52838
52839 2008-05-19  Bo Borgerson <gigabo@gmail.com>
52840
52841         * lib/base64.c (base64_decode_ctx): If a decode context structure
52842         was passed in use it to ignore newlines.  If a context structure
52843         was _not_ passed in, continue to treat newlines as garbage (this
52844         is the historical behavior).  Formerly base64_decode.
52845         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52846         takes a decode context structure.
52847         * lib/base64.h (base64_decode): Macro for four-argument calls.
52848         (base64_decode_alloc): Likewise.
52849         * lib/base64.c (base64_decode_ctx): If a decode context structure
52850         was passed in use it to ignore newlines.  If a context structure
52851         was _not_ passed in, continue to treat newlines as garbage (this
52852         is the historical behavior).  Formerly base64_decode.
52853         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
52854         takes a decode context structure.
52855         * lib/base64.h (base64_decode): Macro for four-argument calls.
52856         (base64_decode_alloc): Likewise.
52857
52858 2008-05-19  Jim Meyering  <meyering@redhat.com>
52859
52860         avoid a warning from gcc
52861         * lib/trim.c (IF_LINT): Define.
52862         (trim2): Use it to avoid a "may be used uninitialized" warning.
52863
52864         Fix doc typo.
52865         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
52866
52867 2008-05-19  Bruno Haible  <bruno@clisp.org>
52868
52869         * doc/glibc-functions/getpass.texi: Document limits of other
52870         implementations.
52871
52872 2008-05-19  Simon Josefsson  <simon@josefsson.org>
52873             Bruno Haible <bruno@clisp.org>
52874
52875         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
52876
52877 2008-05-18  Bruno Haible  <bruno@clisp.org>
52878
52879         * modules/propername: New file, from GNU gettext.
52880         * lib/propername.h: New file, from GNU gettext.
52881         * lib/propername.c: New file, from GNU gettext.
52882         * MODULES.html.sh (Internationalization functions): Add propername.
52883
52884 2008-05-16  Jim Meyering  <meyering@redhat.com>
52885             Bruno Haible  <bruno@clisp.org>
52886
52887         Avoid some warnings from "gcc -Wshadow".
52888         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
52889
52890 2008-05-15  Eric Blake  <ebb9@byu.net>
52891
52892         Extend previous patch to cygwin 1.7.0.
52893         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
52894         fast implementation in cygwin >= 1.7.0.
52895         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52896         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52897
52898 2008-05-15  Bruno Haible  <bruno@clisp.org>
52899
52900         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
52901         implementation in glibc >= 2.9.
52902         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52903         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52904
52905 2008-05-15  Bruno Haible  <bruno@clisp.org>
52906
52907         * MODULES.html.sh (Internationalization functions): Remove linebreak.
52908         (Unicode string functions): Add unilbrk/*.
52909         Reported by Karl Berry.
52910
52911 2008-05-15  Eric Blake  <ebb9@byu.net>
52912
52913         Fix violation of <stdbool.h> replacement in regex.
52914         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
52915         * lib/regexec.c (re_search_internal): Likewise.
52916         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
52917
52918 2008-05-15  Jim Meyering  <meyering@redhat.com>
52919
52920         avoid distracting test output when git or cvs is not found
52921         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
52922         * tests/test-vc-list-files-git.sh: Likewise.
52923
52924 2008-05-15  Eric Blake  <ebb9@byu.net>
52925
52926         Glibc finally accepted the memmem speedup code, bugzilla #5514.
52927         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
52928         glibc version.
52929         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
52930         * doc/posix-functions/strstr.texi (strstr): Likewise.
52931         * lib/str-two-way.h (MAX): Sychronize with glibc.
52932
52933 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
52934
52935         * lib/regcomp.c (optimize_utf8): Add a note on why we test
52936         opr.ctx_type.
52937         (calc_first): Initialize constraint field.
52938         (duplicate_node_closure): Use it instead of special casing ANCHORS.
52939         Fix grammar.
52940         (duplicate_node): Merge constraint field for all node types.
52941         (calc_eclosure_iter): Look at constraint field for all node types.
52942         * lib/regex_internal.c (create_cd_newstate): Don't look at
52943         opr.ctx_type.
52944
52945 2008-05-14  Bruno Haible  <bruno@clisp.org>
52946
52947         Help GCC to do better code generation.
52948         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
52949         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
52950         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
52951         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
52952         Declare with attribute 'malloc' if supported.
52953
52954 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
52955
52956         use "echo STR|wc -c" rather than unportable "expr length STR"
52957         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
52958         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
52959
52960 2008-05-14  Jim Meyering  <meyering@redhat.com>
52961
52962         use dd ibs=$n count=1 ... rather than less-portable head -c$n
52963         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
52964         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
52965         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
52966         via Collin Lasse.
52967
52968 2008-05-14  Eric Blake  <ebb9@byu.net>
52969
52970         Avoid quadratic growth in gl_LIBSOURCES.
52971         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
52972         Suggested by Bruno Haible.
52973
52974         Test xmemdup0.
52975         * modules/xmemdup0-tests: New file.
52976         * tests/test-xmemdup0.c: Likewise.
52977
52978 2008-05-13  Eric Blake  <ebb9@byu.net>
52979
52980         Split xmemdup0 into its own module.
52981         * modules/xmemdup0: New file.
52982         * lib/xmemdup0.h: Likewise.
52983         * lib/xmemdup0.c: Likewise.
52984         * MODULES.html.sh (Memory management functions): Add xmemdup0.
52985         * lib/xalloc.h (xmemdup0): Remove.
52986         * lib/xmalloc.c (xmemdup0): Likewise.
52987
52988 2008-05-13  Eric Blake  <ebb9@byu.net>
52989             Bruno Haible  <bruno@clisp.org>
52990
52991         Reduce number of forks required during autoconf.
52992         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
52993         and gl_LIBSOURCES_DIR.
52994         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
52995         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
52996         m4_syscmd per file.
52997         <m4_foreach_w>: Move...
52998         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
52999
53000 2008-05-13  Eric Blake  <ebb9@byu.net>
53001
53002         * gnulib-tool: Fix various comment typos.
53003
53004 2008-05-12  Bruno Haible  <bruno@clisp.org>
53005
53006         Tailor the linebreaking algorithm.
53007         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
53008
53009 2008-05-12  Bruno Haible  <bruno@clisp.org>
53010
53011         Update to Unicode 5.0.0.
53012         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53013         LBP_JV, LBP_JT. Redistribute values.
53014         (unilbrk_table): Change size.
53015         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
53016         Unicode TR#14 rev. 22.
53017         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53018         LBP_JV, LBP_JT. Redistribute values.
53019         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
53020         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
53021         Update.
53022         * lib/unilbrk/lbrkprop1.h: Regenerated.
53023         * lib/unilbrk/lbrkprop2.h: Regenerated.
53024         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
53025         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
53026         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
53027         Likewise.
53028         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
53029         Likewise.
53030         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
53031         result.
53032         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
53033         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
53034         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
53035         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
53036         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
53037         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
53038
53039 2008-05-11  Bruno Haible  <bruno@clisp.org>
53040
53041         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
53042
53043 2008-05-11  Bruno Haible  <bruno@clisp.org>
53044
53045         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
53046         * modules/unilbrk/gen-lbrk: New file.
53047
53048 2008-05-11  Bruno Haible  <bruno@clisp.org>
53049
53050         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
53051         * m4/sha512.m4 (gl_SHA512): Likewise.
53052
53053 2008-05-11  Jim Meyering  <meyering@redhat.com>
53054
53055         New modules: crypto/sha256, crypto/sha512 (from coreutils)
53056         * modules/crypto/sha256: New file.
53057         * modules/crypto/sha512: Likewise.
53058         * lib/sha256.c: Likewise.
53059         * lib/sha256.h: Likewise.
53060         * lib/sha512.c: Likewise.
53061         * lib/sha512.h: Likewise.
53062         * lib/u64.h: Likewise.
53063         * m4/sha256.m4: Likewise.
53064         * m4/sha512.m4: Likewise.
53065         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
53066
53067 2008-05-10  Bruno Haible  <bruno@clisp.org>
53068
53069         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
53070         (Input/Output <stdio.h>): Add xprintf.
53071         (Signal handling <signal.h>): Add strsignal.
53072         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
53073         (Core language properties): Add func.
53074         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
53075         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
53076         strings.
53077         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
53078         (Input/output): New section.
53079         (File system functions): Add openat-die, stat-macros.
53080         (Networking functions): Add sockets.
53081         (Unicode string functions): Add unictype/*.
53082         (Support for building libraries and executables): Add gperf.
53083         (Support for building documentation): Add agpl-3.0.
53084         (Misc): Add nocrash.
53085
53086 2008-05-10  Bruno Haible  <bruno@clisp.org>
53087
53088         * modules/unictype/gen-ctype: New file.
53089
53090 2008-05-10  Jim Meyering  <meyering@redhat.com>
53091
53092         Make chdir-safer.c more efficient on a system with no symlinks.
53093         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
53094         also if ELOOP is zero.  Suggested by Bruno Haible.
53095
53096         Make chdir-safer.c slightly safer.
53097         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
53098         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
53099
53100         Avoid compile failure on systems without ELOOP (like mingw).
53101         * lib/chdir-safer.c (ELOOP): Define if not already defined.
53102         Reported by Bruno Haible.
53103
53104 2008-05-10  Bruno Haible  <bruno@clisp.org>
53105
53106         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
53107         (is_utf8_encoding): Use a case-insensitive comparison.
53108         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
53109         streq.
53110
53111 2008-05-10  Bruno Haible  <bruno@clisp.org>
53112
53113         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
53114         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
53115         * lib/unilbrk/ulc-common.h (iconv_string_length,
53116         iconv_string_keeping_offsets): Remove declarations.
53117         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
53118         Don't include <iconv.h>, streq.h, xsize.h.
53119         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
53120         conversion.
53121         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
53122         <iconv.h>, streq.h, xsize.h.
53123         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
53124         conversion.
53125         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
53126         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
53127         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
53128         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
53129
53130 2008-05-10  Bruno Haible  <bruno@clisp.org>
53131
53132         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
53133         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
53134
53135         * modules/unilbrk/u32-width-linebreaks-tests: New file.
53136         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
53137
53138         * modules/unilbrk/u16-width-linebreaks-tests: New file.
53139         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
53140
53141         * modules/unilbrk/u8-width-linebreaks-tests: New file.
53142         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
53143
53144         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
53145         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
53146
53147         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
53148         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
53149
53150         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
53151         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
53152
53153         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
53154         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
53155
53156 2008-05-10  Bruno Haible  <bruno@clisp.org>
53157
53158         Split up 'linebreak' module.
53159         * lib/unilbrk.h: New file, based on lib/linebreak.h.
53160         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
53161         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
53162         modifications.
53163         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
53164         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
53165         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
53166         lib/linebreak.c.
53167         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
53168         lib/linebreak.c.
53169         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
53170         lib/linebreak.c.
53171         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
53172         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
53173         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
53174         lib/linebreak.c.
53175         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
53176         lib/linebreak.c.
53177         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
53178         lib/linebreak.c.
53179         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
53180         lib/linebreak.c.
53181         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
53182         lib/linebreak.c.
53183         * modules/unilbrk/base: New file.
53184         * modules/unilbrk/tables: New file.
53185         * modules/unilbrk/u8-possible-linebreaks: New file.
53186         * modules/unilbrk/u16-possible-linebreaks: New file.
53187         * modules/unilbrk/u32-possible-linebreaks: New file.
53188         * modules/unilbrk/ulc-common: New file.
53189         * modules/unilbrk/ulc-possible-linebreaks: New file.
53190         * modules/unilbrk/u8-width-linebreaks: New file.
53191         * modules/unilbrk/u16-width-linebreaks: New file.
53192         * modules/unilbrk/u32-width-linebreaks: New file.
53193         * modules/unilbrk/ulc-width-linebreaks: New file.
53194         * lib/linebreak.h: Remove file.
53195         * lib/linebreak.c: Remove file.
53196         * m4/linebreak.m4: Remove file.
53197         * modules/linebreak: Remove file.
53198         * NEWS: Mention the changes.
53199
53200 2008-05-09  Eric Blake  <ebb9@byu.net>
53201
53202         Add xmemdup0.
53203         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
53204         implementation.
53205         * lib/xmalloc.c (xmemdup0): New C implementation.
53206
53207 2008-05-08  Bruno Haible  <bruno@clisp.org>
53208
53209         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
53210
53211 2008-05-07  Eric Blake  <ebb9@byu.net>
53212
53213         Support cross-compilation of <wctype.h>.
53214         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
53215         AC_CACHE_CHECK.
53216
53217 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
53218
53219         * build-aux/vc-list-files: Add support for bzr.
53220
53221 2008-05-03  Jim Meyering  <meyering@redhat.com>
53222
53223         avoid failed assertion with tight malloc
53224         * tests/test-getndelim2.c: Correct an off-by-one assertion.
53225
53226 2008-05-03  Simon Josefsson  <simon@josefsson.org>
53227
53228         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
53229         are needed from arpa/inet.h.
53230         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
53231         Reported by Bruno Haible.
53232
53233 2008-05-02  Jim Meyering  <meyering@redhat.com>
53234
53235         avoid compilation error on FreeBSD 6
53236         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
53237
53238 2008-05-01  Jim Meyering  <meyering@redhat.com>
53239
53240         useless-if-before-free: correct --help's exit status description
53241         * build-aux/useless-if-before-free (usage): Like grep, exit 0
53242         for one or more matches, etc.  Reported by Bruno Haible.
53243
53244         vc-list-files: make the stand-alone gnulib test work
53245         * modules/vc-list-files-tests (configure.ac):
53246         Define and AC_SUBST abs_aux_dir.
53247         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
53248         $(abs_top_srcdir) to each script and having each of them
53249         duplicate the work of setting PATH, set PATH here, using
53250         the new variable, abs_aux_dir instead.
53251         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
53252         * tests/test-vc-list-files-git.sh: Likewise.
53253         Reported by Bruno Haible.
53254
53255 2008-05-01  Bruno Haible  <bruno@clisp.org>
53256
53257         * lib/getndelim2.c (getndelim2): Fix newsize computation during
53258         reallocation. Rename 'done' to 'found_delimiter'.
53259
53260 2008-05-01  Jim Meyering  <meyering@redhat.com>
53261
53262         vc-list-files: accommodate /bin/sh like the one from Solaris 10
53263         * build-aux/vc-list-files: Use `...`, not $(...).
53264
53265 2008-04-30  Jim Meyering  <meyering@redhat.com>
53266
53267         add tests for vc-list-files
53268         * modules/vc-list-files-tests: New module.
53269         * tests/test-vc-list-files-cvs.sh: New file.
53270         * tests/test-vc-list-files-git.sh: New file.
53271
53272         avoid a warning from gcc
53273         * lib/getndelim2.c (IF_LINT): Define.
53274         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
53275
53276         vc-list-files: work properly with build-aux/cvsu, too
53277         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
53278         to all cvs-based clauses.
53279
53280         vc-list-files: work properly in the CVS+awk case, too
53281         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
53282
53283         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
53284         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
53285         take more than one file argument, so .  Add quotes, just in case $dir
53286         ever contains a shell meta-character.  Prompted by Soren Hansen in
53287         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
53288
53289 2008-04-29  Eric Blake  <ebb9@byu.net>
53290
53291         Optimize getndelim2 to use block operations when possible.
53292         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
53293         freadseek, and memchr2.
53294         * lib/getndelim2.c (getndelim2): Use them for block reads.
53295
53296 2008-04-29  Bruno Haible  <bruno@clisp.org>
53297
53298         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
53299         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53300         * modules/inet_ntop (Depends-on): Add extensions.
53301         * modules/inet_pton (Depends-on): Likewise.
53302         Reported by Simon Josefsson.
53303
53304 2008-04-29  Jim Meyering  <meyering@redhat.com>
53305
53306         When the is more than one match in a block, match all of them.
53307         * build-aux/useless-if-before-free: Iterate through each block
53308         until there are no more matches.
53309
53310         Fix broken useless-if-before-free script.
53311         * build-aux/useless-if-before-free: Fix typo: missing "?" after
53312         the expression to match cast of argument to free-like function.
53313
53314 2008-04-29  Eric Blake  <ebb9@byu.net>
53315
53316         Use new header.
53317         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
53318
53319 2008-04-29  Jim Meyering  <meyering@redhat.com>
53320
53321         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
53322         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
53323         by gnulib to exist and to declare e.g., inet_ntop.
53324         Don't include "inet_ntop.h", now removed.
53325
53326         * m4/arpa_inet_h.m4: Remove trailing blanks.
53327
53328 2008-04-29  Eric Blake  <ebb9@byu.net>
53329
53330         Silence valgrind on safe reads beyond potential array bounds.
53331         * lib/rawmemchr.valgrind: New file.
53332         * lib/strchrnul.valgrind: Likewise.
53333         * modules/rawmemchr (Files): Distribute new file.
53334         * modules/strchrnul (Files): Likewise.
53335         Suggested by Bruno Haible.
53336
53337 2008-04-29  Bruno Haible  <bruno@clisp.org>
53338
53339         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
53340         (inet_ntop, inet_pton): Change portability warning's wording.
53341         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
53342         Invoke gl_CHECK_NEXT_HEADERS.
53343         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
53344         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
53345         set ARPA_INET_H.
53346         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53347         * modules/arpa_inet (Description): No longer only for systems that
53348         lack it.
53349         (Depends-on): Add include_next.
53350         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
53351         HAVE_ARPA_INET_H.
53352
53353 2008-04-29  Jim Meyering  <meyering@redhat.com>
53354
53355         * modules/mkdir (License): Re-license as LGPLv2+.
53356
53357 2008-04-29  Bruno Haible  <bruno@clisp.org>
53358
53359         * modules/rawmemchr (Maintainer): Set to Eric.
53360         * modules/strchrnul (Maintainer): Likewise.
53361
53362 2008-04-29  Simon Josefsson  <simon@josefsson.org>
53363
53364         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
53365         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
53366
53367         * modules/arpa_inet (arpa/inet.h): Use them.
53368
53369 2008-04-28  Eric Blake  <ebb9@byu.net>
53370
53371         Test getndelim2.
53372         * modules/getndelim2-tests: New file.
53373         * tests/test-getndelim2.c: Likewise.
53374         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
53375         stream.
53376         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
53377
53378         * MODULES.html.sh: Document new module.
53379
53380 2008-04-20  Bruno Haible  <bruno@clisp.org>
53381
53382         * lib/c-stack.c (die): Use raise.
53383         * modules/c-stack (Depends-on): Add raise.
53384
53385 2008-04-28  Bruno Haible  <bruno@clisp.org>
53386
53387         Expect rpmatch to be declared.
53388         * lib/yesno.c (rpmatch): Remove declaration.
53389
53390         Declare rpmatch.
53391         * lib/stdlib.in.h (rpmatch): New declaration.
53392         * lib/rpmatch.c: Include <stdlib.h> first.
53393         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
53394         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
53395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
53396         HAVE_RPMATCH.
53397         * modules/rpmatch (Depends-on): Add stdlib, extensions.
53398         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53399         (Include): Set to <stdlib.h>.
53400         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
53401         HAVE_RPMATCH.
53402         * NEWS: Document the change.
53403
53404 2008-04-28  Bruno Haible  <bruno@clisp.org>
53405
53406         Change rpmatch to use nl_langinfo when appropriate.
53407         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
53408         (N_): New macro.
53409         (localized_pattern): New function/macro.
53410         (try): Remove match, nomatch arguments. Copy the pattern into safe
53411         memory before caching it.
53412         (rpmatch): Use localized_pattern. Add translator comments.
53413         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
53414         Suggested by Eric Blake.
53415         * modules/rpmatch (Depends-on): Add stdbool.
53416
53417 2008-04-28  Eric Blake  <ebb9@byu.net>
53418
53419         Add rawmemchr module, matching glibc.
53420         * modules/string (Makefile.am): New indicator.
53421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
53422         * lib/string.in.h (rawmemchr): Declare when appropriate.
53423         * modules/rawmemchr: New file.
53424         * m4/rawmemchr.m4: Likewise.
53425         * lib/rawmemchr.c: Likewise.
53426         * modules/rawmemchr-tests: Likewise.
53427         * tests/test-rawmemchr.c: Likewise.
53428         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
53429         module.
53430         * modules/strchrnul (Depends-on): Add rawmemchr.
53431         * lib/strchrnul.c (strchrnul): Optimize a corner case.
53432
53433         Whitespace cleanup.
53434         * tests/test-strchrnul.c: Reindent.
53435         * lib/strchrnul.c: Likewise.
53436
53437         Optimize and test strchrnul.
53438         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
53439         * modules/strchrnul-tests: New file.
53440         * tests/test-strchrnul.c: Likewise.
53441
53442         Remove intprops dependency.
53443         * modules/memchr (Depends-on): Remove intprops.
53444         * modules/memrchr (Depends-on): Likewise.
53445         * modules/memchr2 (Depends-on): Likewise.
53446         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
53447         * lib/memrchr.c (__memrchr): Likewise.
53448         * lib/memrchr2.c (memchr2): Likewise.
53449         Reported by Simon Josefsson.
53450
53451 2008-04-28  Simon Josefsson  <simon@josefsson.org>
53452
53453         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
53454         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53455
53456 2008-04-28  Simon Josefsson  <simon@josefsson.org>
53457
53458         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
53459
53460         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
53461
53462         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
53463
53464         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
53465         declarations.
53466         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
53467
53468         * m4/inet_pton.m4: Don't check for header files.
53469
53470         * m4/inet_ntop.m4: Don't check for header files.
53471
53472 2008-04-28  Simon Josefsson  <simon@josefsson.org>
53473
53474         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
53475         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
53476         trigger for cygwin).
53477         Reported by Bruno Haible  <bruno@clisp.org>.
53478
53479 2008-04-28  Bruno Haible  <bruno@clisp.org>
53480
53481         * doc/posix-functions/strdup.texi: Mention mingw problem.
53482
53483 2008-04-27  Bruno Haible  <bruno@clisp.org>
53484
53485         * modules/stat-time-tests (Depends-on): Add sleep.
53486         * tests/test-stat-time.c (force_unlink): New function.
53487         (cleanup): Use it.
53488         (test_mtime): Remove the ctime related tests.
53489         (test_ctime): New function, containing the ctime related tests.
53490         (main): Call test_ctime, except on native Windows platforms.
53491
53492 2008-04-27  Bruno Haible  <bruno@clisp.org>
53493
53494         * lib/rpmatch.c (rpmatch): Add some comments.
53495         Reported by James Youngman <jay@gnu.org>.
53496
53497 2008-04-27  Bruno Haible  <bruno@clisp.org>
53498
53499         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
53500         quiet NaNs.
53501
53502 2008-04-27  Bruno Haible  <bruno@clisp.org>
53503
53504         Make test-yesno.sh work on mingw.
53505         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
53506         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
53507         (main): Set stdin to binary mode.
53508         * modules/yesno-tests (Depends-on): Add binary-io.
53509
53510 2008-04-27  Bruno Haible  <bruno@clisp.org>
53511
53512         Fix 'isfinite' on x86, x86_64, ia64 platforms.
53513         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
53514         argument that lie outside the IEEE 854 domain.
53515         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
53516         (gl_ISFINITE): Use it.
53517         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
53518
53519 2008-04-27  Bruno Haible  <bruno@clisp.org>
53520
53521         Allow local renaming in config.h.
53522         * lib/memrchr.c (memrchr): Don't undefine outside libc.
53523
53524 2008-04-27  Bruno Haible  <bruno@clisp.org>
53525
53526         * lib/memchr.c (__memchr): Change type of 'i'.
53527         * lib/memchr2.c (memchr2): Likewise.
53528
53529 2008-04-26  Eric Blake  <ebb9@byu.net>
53530         and Bruno Haible  <bruno@clisp.org>
53531
53532         Optimize and test memrchr.
53533         * modules/memrchr (Depends-on): Add intprops.
53534         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
53535         * modules/memrchr-tests: New file.
53536         * tests/test-memrchr.c: New file.
53537
53538 2008-04-26  Bruno Haible  <bruno@clisp.org>
53539
53540         Add tentative support for DragonFly BSD.
53541         * lib/stdio-impl.h: Add macros for DragonFly BSD.
53542         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
53543         fp.
53544         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
53545         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
53546         * lib/fpurge.c (fpurge): Likewise.
53547         * lib/freadable.c (freaadable): Likewise.
53548         * lib/freadahead.c (freadahead): Likewise.
53549         * lib/freading.c (freading): Likewise.
53550         * lib/freadptr.c (freadptr): Likewise.
53551         * lib/freadseek.c (freadptrinc): Likewise.
53552         * lib/fseeko.c (fseeko): Likewise.
53553         * lib/fseterr.c (fseterr): Likewise.
53554         * lib/fwritable.c (fwritable): Likewise.
53555         * lib/fwriting.c (fwriting): Likewise.
53556
53557 2008-04-26  Bruno Haible  <bruno@clisp.org>
53558
53559         * lib/stdio-impl.h: New file.
53560         * lib/fbufmode.c: Include stdio-impl.h.
53561         (fbufmode): Use fp_, remove redundant #defines.
53562         * lib/fflush.c: Include stdio-impl.h.
53563         (clear_ungetc_buffer): Remove redundant #defines.
53564         * lib/fpurge.c: Include stdio-impl.h.
53565         (fpurge): Remove redundant #defines.
53566         * lib/freadable.c: Include stdio-impl.h.
53567         (freadable): Remove redundant #defines.
53568         * lib/freadahead.c: Include stdio-impl.h.
53569         (freadahead): Remove redundant #defines.
53570         * lib/freading.c: Include stdio-impl.h.
53571         (freading): Remove redundant #defines.
53572         * lib/freadptr.c: Include stdio-impl.h.
53573         (freadptr): Remove redundant #defines.
53574         * lib/freadseek.c: Include stdio-impl.h.
53575         (freadptrinc): Remove redundant #defines.
53576         * lib/fseeko.c: Include stdio-impl.h.
53577         (rpl_fseeko): Remove redundant #defines.
53578         * lib/fseterr.c: Include stdio-impl.h.
53579         (fseterr): Remove redundant #defines.
53580         * lib/fwritable.c: Include stdio-impl.h.
53581         (fwritable: Remove redundant #defines.
53582         * lib/fwriting.c: Include stdio-impl.h.
53583         (fwriting): Remove redundant #defines.
53584         * modules/fbufmode (Files): Add lib/stdio-impl.h.
53585         * modules/fflush (Files): Likewise.
53586         * modules/fpurge (Files): Likewise.
53587         * modules/freadable (Files): Likewise.
53588         * modules/freadahead (Files): Likewise.
53589         * modules/freading (Files): Likewise.
53590         * modules/freadptr (Files): Likewise.
53591         * modules/freadseek (Files): Likewise.
53592         * modules/fseeko (Files): Likewise.
53593         * modules/fseterr (Files): Likewise.
53594         * modules/fwritable (Files): Likewise.
53595         * modules/fwriting (Files): Likewise.
53596
53597 2008-04-26  Bruno Haible  <bruno@clisp.org>
53598
53599         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
53600         restore_seek_optimization, update_fpos_cache): New functions, extracted
53601         from rpl_fflush.
53602         (rpl_fflush): Use them.
53603         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
53604         (gl_REPLACE_FFLUSH): Use it.
53605
53606 2008-04-26  Bruno Haible  <bruno@clisp.org>
53607
53608         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
53609         on Solaris.
53610         * tests/test-xstrtoimax.sh: Likewise.
53611         * tests/test-xstrtoumax.sh: Likewise.
53612         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53613
53614 2008-04-26  Bruno Haible  <bruno@clisp.org>
53615
53616         * modules/memchr-tests: New file.
53617         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
53618
53619 2008-04-26  Eric Blake  <ebb9@byu.net>
53620             Bruno Haible  <bruno@clisp.org>
53621
53622         * lib/memchr.c: Include intprops.h.
53623         (__memchr): Optimize parallel detection of matching bytes. Rename local
53624         variables. Add explanatory comments.
53625
53626 2008-04-26  Bruno Haible  <bruno@clisp.org>
53627
53628         Fix module 'memchr', broken since 2000-10-28.
53629         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
53630
53631 2008-04-26  Bruno Haible  <bruno@clisp.org>
53632
53633         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
53634         comments.
53635
53636 2008-04-25  Eric Blake  <ebb9@byu.net>
53637
53638         Use native fstatat on cygwin 1.7.0.
53639         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
53640         first.
53641
53642 2008-04-23  Eric Blake  <ebb9@byu.net>
53643
53644         Improve memchr2 performance.
53645         * lib/memchr2.c (memchr2): Further optimize parallel detection of
53646         NUL bytes.
53647         * modules/memchr2 (Depends-on): Use intprops.h.
53648
53649 2008-04-23  Simon Josefsson  <simon@josefsson.org>
53650
53651         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
53652         an inline function instead of a CPP macro.  Patch by Ben Pfaff
53653         <blp@cs.stanford.edu>.
53654
53655 2008-04-23  Simon Josefsson  <simon@josefsson.org>
53656
53657         * lib/arpa_inet.in.h: New file.
53658
53659         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
53660         (Makefile.am): Sed in substitute header file.
53661
53662         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
53663         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
53664
53665         * modules/inet_ntop (configure.ac): Use
53666         gl_ARPA_INET_MODULE_INDICATOR.
53667
53668         * modules/inet_pton (configure.ac): Use
53669         gl_ARPA_INET_MODULE_INDICATOR.
53670
53671 2008-04-22  Jim Meyering  <meyering@redhat.com>
53672
53673         * modules/verify (License): Re-license as LGPLv2+.
53674
53675 2008-04-22  Simon Josefsson  <simon@josefsson.org>
53676
53677         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
53678         parameter to void* as per POSIX standard (MinGW uses char*).
53679
53680 2008-04-21  Bruno Haible  <bruno@clisp.org>
53681
53682         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53683         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
53684         Define to replacements if REPLACE_ISWCNTRL is 1.
53685         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
53686         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
53687         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
53688         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
53689         what it fixes.
53690         * doc/posix-functions/iswalpha.texi: Likewise.
53691         * doc/posix-functions/iswblank.texi: Likewise.
53692         * doc/posix-functions/iswcntrl.texi: Likewise.
53693         * doc/posix-functions/iswdigit.texi: Likewise.
53694         * doc/posix-functions/iswgraph.texi: Likewise.
53695         * doc/posix-functions/iswlower.texi: Likewise.
53696         * doc/posix-functions/iswprint.texi: Likewise.
53697         * doc/posix-functions/iswpunct.texi: Likewise.
53698         * doc/posix-functions/iswspace.texi: Likewise.
53699         * doc/posix-functions/iswupper.texi: Likewise.
53700         * doc/posix-functions/iswxdigit.texi: Likewise.
53701         Reported by Alain Guibert.
53702
53703 2008-04-21  Bruno Haible  <bruno@clisp.org>
53704
53705         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
53706         Patch by Alain Guibert.
53707
53708 2008-04-21  Bruno Haible  <bruno@clisp.org>
53709
53710         Fix test failures on mingw.
53711         * tests/test-xstrtol.c (print_no_progname): New function.
53712         (main): Install it in error_print_progname hook.
53713         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
53714         * tests/test-xstrtoimax.sh: Likewise.
53715         * tests/test-xstrtoumax.sh: Likewise.
53716
53717 2008-04-21  Bruno Haible  <bruno@clisp.org>
53718
53719         Fix test failure on mingw.
53720         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
53721
53722 2008-04-21  Bruno Haible  <bruno@clisp.org>
53723
53724         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
53725         Actually assign a value.
53726
53727 2008-04-20  Bruno Haible  <bruno@clisp.org>
53728
53729         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
53730         take 2.
53731         * lib/canonicalize.c (canonicalize_file_name): Elide if the
53732         'canonicalize-lgpl' module is also used.
53733         * lib/canonicalize-lgpl.c: Undo last change.
53734         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
53735
53736 2008-04-20  Bruno Haible  <bruno@clisp.org>
53737
53738         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
53739         config.h. Provide _mkdir based fallback for mingw.
53740         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
53741         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
53742         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
53743         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
53744         rather than defining mkdir in config.h.
53745         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
53746         (gl_SYS_STAT_H_DEFAULTS): New macro.
53747         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
53748         HAVE_IO_H any more.
53749         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
53750         HAVE_DECL_MKDIR and HAVE_IO_H.
53751
53752 2008-04-20  Bruno Haible  <bruno@clisp.org>
53753
53754         * lib/isapipe.c: Port to native Windows platforms.
53755
53756 2008-04-20  Bruno Haible  <bruno@clisp.org>
53757
53758         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
53759
53760 2008-04-21  Eric Blake  <ebb9@byu.net>
53761
53762         Work around preprocessors that don't handle UINTMAX_MAX.
53763         * lib/memchr2.c (memchr2): Avoid embedded #if.
53764         Reported by Alain Guibert, fix suggested by Bruno Haible.
53765
53766 2008-04-21  Simon Josefsson  <simon@josefsson.org>
53767
53768         * doc/posix-functions/strftime.texi (strftime): Explain better
53769         Windows incompatibility.  Suggested by Micah Cowan
53770         <micah@cowan.name>.
53771
53772 2008-04-20  Bruno Haible  <bruno@clisp.org>
53773
53774         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
53775         unistr/u8-mblen.
53776
53777 2008-04-20  Bruno Haible  <bruno@clisp.org>
53778
53779         Fix test failure on platforms with non-GNU iconv.
53780         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
53781         (U_TO_U8): Use it, rather than u16_to_u8.
53782         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
53783         units at the end of the input string.
53784         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
53785
53786 2008-04-20  Bruno Haible  <bruno@clisp.org>
53787
53788         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
53789         when the resulting length is 0.
53790         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
53791
53792 2008-04-20  Bruno Haible  <bruno@clisp.org>
53793
53794         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
53795         works.
53796         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
53797
53798 2008-04-20  Bruno Haible  <bruno@clisp.org>
53799
53800         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
53801         * modules/tsearch-tests (configure.ac): Test for initstate function.
53802
53803 2008-04-20  Bruno Haible  <bruno@clisp.org>
53804
53805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
53806         for nlink_t if missing.
53807         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
53808
53809 2008-04-19  Bruno Haible  <bruno@clisp.org>
53810
53811         Work around snprintf bug on Linux libc5.
53812         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
53813         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53814         gl_SNPRINTF_SIZE1.
53815         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53816         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
53817         that test failed.
53818         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
53819         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
53820         * modules/snprintf (Files): Add m4/printf.m4.
53821         * modules/vsnprintf (Files): Likewise.
53822         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
53823         * doc/posix-functions/vsnprintf.texi: Likewise.
53824
53825 2008-04-19  Bruno Haible  <bruno@clisp.org>
53826
53827         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
53828         from 0.0058 to less than 10^-7.
53829
53830 2008-04-19  Bruno Haible  <bruno@clisp.org>
53831
53832         Fix rounding when a precision is given.
53833         * lib/vasnprintf.c (is_borderline): New function.
53834         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
53835         9...9x.
53836         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
53837         %e, %g.
53838         * tests/test-vasprintf-posix.c (test_function): Likewise.
53839         * tests/test-snprintf-posix.h (test_function): Likewise.
53840         * tests/test-sprintf-posix.h (test_function): Likewise.
53841         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
53842         * tests/test-printf-posix.h (test_function): Likewise.
53843         * tests/test-printf-posix.output: Update.
53844         Reported by John Darrington <john@darrington.wattle.id.au> via
53845         Ben Pfaff <blp@cs.stanford.edu>.
53846
53847 2008-04-18  Simon Josefsson  <simon@josefsson.org>
53848
53849         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
53850         Suggested by Bruno Haible <bruno@clisp.org>.
53851
53852 2008-04-17  Bruno Haible  <bruno@clisp.org>
53853
53854         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
53855         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
53856         implementation.
53857         Patch by Bruce Merry <bmerry@gmail.com>.
53858
53859 2008-04-17  Simon Josefsson  <simon@josefsson.org>
53860
53861         * doc/posix-functions/strftime.texi (strftime): Mention that %e
53862         doesn't work under Windows.
53863
53864 2008-04-16  Bruno Haible  <bruno@clisp.org>
53865
53866         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
53867         New macros.
53868         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
53869         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
53870         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
53871         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
53872         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
53873         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
53874         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
53875         macros.
53876         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
53877         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
53878         Northern Sotho, Uighur.
53879
53880 2008-04-16  Bruno Haible  <bruno@clisp.org>
53881
53882         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
53883         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
53884         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
53885         Reported by Daniel Bergström <daniel@octocode.com>.
53886
53887 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
53888             Bruno Haible  <bruno@clisp.org>
53889
53890         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
53891         function.
53892         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
53893         New functions, mostly extracted from gl_locale_name_default.
53894         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
53895
53896 2008-04-16  Eric Blake  <ebb9@byu.net>
53897
53898         Adjust strtod detection to catch glibc 2.7 bug.
53899         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
53900         Reported by John Gatewood Ham.
53901
53902 2008-04-16  Bruno Haible  <bruno@clisp.org>
53903
53904         Add tentative support for Linux libc5.
53905         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
53906         * lib/fpurge.c (fpurge): Likewise.
53907         * lib/freadable.c (freadable): Likewise.
53908         * lib/freadahead.c (freadahead): Likewise.
53909         * lib/freading.c (freading): Likewise.
53910         * lib/freadptr.c (freadptr): Likewise.
53911         * lib/freadseek.c (freadptrinc): Likewise.
53912         * lib/fseeko.c (rpl_fseeko): Likewise.
53913         * lib/fseterr.c (fseterr): Likewise.
53914         * lib/fwritable.c (fwritable): Likewise.
53915         * lib/fwriting.c (fwriting): Likewise.
53916         Reported by Alain Guibert <alguibert+bts@free.fr>.
53917
53918 2008-04-15  Bruno Haible  <bruno@clisp.org>
53919
53920         * modules/mathl (configure.ac): Define module indicator.
53921
53922 2008-04-15  Bruno Haible  <bruno@clisp.org>
53923
53924         * lib/logl.c (logl): Remove unused variables.
53925
53926 2008-04-15  Bruno Haible  <bruno@clisp.org>
53927
53928         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
53929         fails.
53930
53931 2008-04-15  Bruno Haible  <bruno@clisp.org>
53932
53933         * lib/trim.c (trim2): Fix argument of isspace() macro.
53934
53935 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
53936
53937         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
53938         to 0.
53939         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
53940
53941 2008-04-14  Bruno Haible  <bruno@clisp.org>
53942
53943         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
53944         AC_LANG_PROGRAM argument.
53945         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
53946         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
53947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
53948         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53949         * m4/math_h.m4 (gl_MATH_H): Likewise.
53950         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
53951         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53952         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
53953         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
53954         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53955         * m4/regex.m4 (gl_REGEX): Likewise.
53956         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
53957         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
53958         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53959         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
53960         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53961         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53962         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53963         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53964
53965 2008-04-14  Jim Meyering  <meyering@redhat.com>
53966
53967         test-strtod: fix typos: s/abs/fabs/
53968         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
53969
53970 2008-04-13  Bruno Haible  <bruno@clisp.org>
53971
53972         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
53973         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
53974         module is also used and while not building the reloc-wrapper.
53975
53976 2008-04-13  Bruno Haible  <bruno@clisp.org>
53977
53978         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
53979
53980 2008-04-13  Bruno Haible  <bruno@clisp.org>
53981
53982         Fix AIX compilation failure introduced on 2008-04-02.
53983         * tests/test-frexp.c (exp): Undefine before redefining.
53984         * tests/test-frexpl.c (exp): Likewise.
53985
53986 2008-04-13  Bruno Haible  <bruno@clisp.org>
53987
53988         Work around a HP-UX stdio bug.
53989         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
53990         * tests/test-ftello.c (main): Likewise.
53991         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
53992         * doc/posix-functions/ftello.texi: Likewise.
53993
53994 2008-04-13  Bruno Haible  <bruno@clisp.org>
53995
53996         Make test-signbit pass on HP-UX/hppa.
53997         * tests/test-signbit.c (minus_zerol): New variable.
53998         (test_signbitl): Use it.
53999
54000 2008-04-13  Bruno Haible  <bruno@clisp.org>
54001
54002         Make truncl work on OSF/1 4.0.
54003         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
54004         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54005         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
54007         HAVE_DECL_TRUNCL.
54008         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
54009         HAVE_DECL_TRUNCL.
54010         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
54011
54012 2008-04-13  Bruno Haible  <bruno@clisp.org>
54013
54014         * lib/unictype.h: Remove trailing comma from enumeration definitions.
54015
54016 2008-04-13  Bruno Haible  <bruno@clisp.org>
54017
54018         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
54019         expression, so as to avoid HP-UX 11 cc compiler bug.
54020
54021 2008-04-13  Bruno Haible  <bruno@clisp.org>
54022
54023         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
54024
54025 2008-04-13  Bruno Haible  <bruno@clisp.org>
54026
54027         * lib/git-merge-changelog.c: Remove empty declaration outside of
54028         functions.
54029
54030 2008-04-13  Bruno Haible  <bruno@clisp.org>
54031
54032         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
54033
54034 2008-04-13  Bruno Haible  <bruno@clisp.org>
54035
54036         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
54037         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
54038         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
54039         also if it exists but lacks definitions of the SHUT_* macros.
54040         * modules/sys_socket (Description): Update.
54041         Reported by Elbert Pol <e.pol@chello.nl>.
54042
54043 2008-04-13  Bruno Haible  <bruno@clisp.org>
54044
54045         * lib/localcharset.c (OS2): Don't redefine if already defined.
54046         Reported by Elbert Pol <e.pol@chello.nl>.
54047
54048 2008-04-13  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/binary-io.h [__EMX__]: Include <io.h>.
54051         Reported by Elbert Pol <e.pol@chello.nl>.
54052
54053 2008-04-12  Bruno Haible  <bruno@clisp.org>
54054
54055         * lib/fpucw.h: Enable the definitions also for x86_64.
54056         Needed for NetBSD/x86_64.
54057         Reported by Thomas Klausner <tk@giga.or.at>.
54058
54059 2008-04-12  Bruno Haible  <bruno@clisp.org>
54060
54061         * tests/test-strtod.c: Include isnand.h.
54062         (main): Use isnand instead of isnan.
54063         Reported by Jim Meyering.
54064
54065 2008-04-12  Bruno Haible  <bruno@clisp.org>
54066
54067         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
54068         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54069
54070 2008-04-12  Jim Meyering  <meyering@redhat.com>
54071
54072         * m4/math_h.m4 (gl_MATH_H): Fix typos.
54073
54074 2008-04-12  Bruno Haible  <bruno@clisp.org>
54075
54076         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
54077         Reported by Elbert Pol <e.pol@chello.nl>.
54078
54079 2008-04-12  Eric Blake  <ebb9@byu.net>
54080
54081         Work around Solaris 10 math.h bug.
54082         * m4/math_h.m4 (gl_MATH_H): Check for bug.
54083         (gl_MATH_H_DEFAULTS): Set up default.
54084         * modules/math (Makefile.am): Replace new indicators.
54085         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
54086         * tests/test-math.c (main): Test this.
54087         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
54088         * doc/posix-headers/math.texi (math.h): Mention bug.
54089         Reported by Nelson H. F. Beebe and Jim Meyering.
54090
54091 2008-04-11  Bruno Haible  <bruno@clisp.org>
54092
54093         Adapt to future versions of Apple GCC.
54094         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
54095         Reported by Peter O'Gorman <peter@pogma.com>.
54096
54097 2008-04-11  Bruno Haible  <bruno@clisp.org>
54098
54099         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
54100
54101 2008-04-11  Bruno Haible  <bruno@clisp.org>
54102
54103         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
54104
54105         * modules/getaddrinfo-tests (Makefile.am): Define
54106         test_getaddrinfo_LDADD.
54107
54108 2008-04-11  Bruno Haible  <bruno@clisp.org>
54109
54110         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
54111         (init): Fix syntax error.
54112         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
54113         is declared.
54114
54115 2008-04-11  Bruno Haible  <bruno@clisp.org>
54116
54117         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
54118         * modules/glob (Depends-on): Add stdbool.
54119
54120 2008-04-11  Bruno Haible  <bruno@clisp.org>
54121
54122         * lib/trim.c: Include <string.h>.
54123
54124 2008-04-11  Eric Blake  <ebb9@byu.net>
54125
54126         Avoid compile failure on OS/2.
54127         * lib/regex_internal.h (internal_function): Disable optimization
54128         on OS/2 (__EMX__), where it caused compiler error.
54129         Reported by Elbert Pol.
54130
54131 2008-04-11  Bruno Haible  <bruno@clisp.org>
54132
54133         Flush the standard error stream before aborting. Needed on mingw.
54134         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
54135         * tests/test-array_list.c (ASSERT): Likewise.
54136         * tests/test-array_oset.c (ASSERT): Likewise.
54137         * tests/test-avltree_list.c (ASSERT): Likewise.
54138         * tests/test-avltree_oset.c (ASSERT): Likewise.
54139         * tests/test-avltreehash_list.c (ASSERT): Likewise.
54140         * tests/test-binary-io.c (ASSERT): Likewise.
54141         * tests/test-byteswap.c (ASSERT): Likewise.
54142         * tests/test-c-ctype.c (ASSERT): Likewise.
54143         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
54144         * tests/test-c-strcasestr.c (ASSERT): Likewise.
54145         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
54146         * tests/test-c-strstr.c (ASSERT): Likewise.
54147         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
54148         * tests/test-canonicalize.c (ASSERT): Likewise.
54149         * tests/test-carray_list.c (ASSERT): Likewise.
54150         * tests/test-ceilf1.c (ASSERT): Likewise.
54151         * tests/test-ceilf2.c (ASSERT): Likewise.
54152         * tests/test-ceill.c (ASSERT): Likewise.
54153         * tests/test-count-one-bits.c (ASSERT): Likewise.
54154         * tests/test-fbufmode.c (ASSERT): Likewise.
54155         * tests/test-fflush2.c (ASSERT): Likewise.
54156         * tests/test-floorf1.c (ASSERT): Likewise.
54157         * tests/test-floorf2.c (ASSERT): Likewise.
54158         * tests/test-floorl.c (ASSERT): Likewise.
54159         * tests/test-fopen.c (ASSERT): Likewise.
54160         * tests/test-fpending.c (ASSERT): Likewise.
54161         * tests/test-fprintf-posix.c (ASSERT): Likewise.
54162         * tests/test-fpurge.c (ASSERT): Likewise.
54163         * tests/test-freadable.c (ASSERT): Likewise.
54164         * tests/test-freadahead.c (ASSERT): Likewise.
54165         * tests/test-freading.c (ASSERT): Likewise.
54166         * tests/test-freadptr.c (ASSERT): Likewise.
54167         * tests/test-freadptr2.c (ASSERT): Likewise.
54168         * tests/test-freadseek.c (ASSERT): Likewise.
54169         * tests/test-freopen.c (ASSERT): Likewise.
54170         * tests/test-frexp.c (ASSERT): Likewise.
54171         * tests/test-frexpl.c (ASSERT): Likewise.
54172         * tests/test-fseek.c (ASSERT): Likewise.
54173         * tests/test-fseeko.c (ASSERT): Likewise.
54174         * tests/test-fstrcmp.c (ASSERT): Likewise.
54175         * tests/test-ftell.c (ASSERT): Likewise.
54176         * tests/test-ftello.c (ASSERT): Likewise.
54177         * tests/test-func.c (ASSERT): Likewise.
54178         * tests/test-fwritable.c (ASSERT): Likewise.
54179         * tests/test-fwriting.c (ASSERT): Likewise.
54180         * tests/test-getdelim.c (ASSERT): Likewise.
54181         * tests/test-getline.c (ASSERT): Likewise.
54182         * tests/test-i-ring.c (ASSERT): Likewise.
54183         * tests/test-iconv-utf.c (ASSERT): Likewise.
54184         * tests/test-iconv.c (ASSERT): Likewise.
54185         * tests/test-isfinite.c (ASSERT): Likewise.
54186         * tests/test-isnand.c (ASSERT): Likewise.
54187         * tests/test-isnanf.c (ASSERT): Likewise.
54188         * tests/test-isnanl.h (ASSERT): Likewise.
54189         * tests/test-ldexpl.c (ASSERT): Likewise.
54190         * tests/test-linked_list.c (ASSERT): Likewise.
54191         * tests/test-linkedhash_list.c (ASSERT): Likewise.
54192         * tests/test-localename.c (ASSERT): Likewise.
54193         * tests/test-lseek.c (ASSERT): Likewise.
54194         * tests/test-mbscasecmp.c (ASSERT): Likewise.
54195         * tests/test-mbscasestr1.c (ASSERT): Likewise.
54196         * tests/test-mbscasestr2.c (ASSERT): Likewise.
54197         * tests/test-mbscasestr3.c (ASSERT): Likewise.
54198         * tests/test-mbscasestr4.c (ASSERT): Likewise.
54199         * tests/test-mbschr.c (ASSERT): Likewise.
54200         * tests/test-mbscspn.c (ASSERT): Likewise.
54201         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
54202         * tests/test-mbspbrk.c (ASSERT): Likewise.
54203         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
54204         * tests/test-mbsrchr.c (ASSERT): Likewise.
54205         * tests/test-mbsspn.c (ASSERT): Likewise.
54206         * tests/test-mbsstr1.c (ASSERT): Likewise.
54207         * tests/test-mbsstr2.c (ASSERT): Likewise.
54208         * tests/test-mbsstr3.c (ASSERT): Likewise.
54209         * tests/test-memchr2.c (ASSERT): Likewise.
54210         * tests/test-memmem.c (ASSERT): Likewise.
54211         * tests/test-open.c (ASSERT): Likewise.
54212         * tests/test-printf-frexp.c (ASSERT): Likewise.
54213         * tests/test-printf-frexpl.c (ASSERT): Likewise.
54214         * tests/test-printf-posix.c (ASSERT): Likewise.
54215         * tests/test-quotearg.c (ASSERT): Likewise.
54216         * tests/test-rbtree_list.c (ASSERT): Likewise.
54217         * tests/test-rbtree_oset.c (ASSERT): Likewise.
54218         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
54219         * tests/test-round1.c (ASSERT): Likewise.
54220         * tests/test-roundf1.c (ASSERT): Likewise.
54221         * tests/test-roundl.c (ASSERT): Likewise.
54222         * tests/test-signbit.c (ASSERT): Likewise.
54223         * tests/test-sleep.c (ASSERT): Likewise.
54224         * tests/test-snprintf-posix.c (ASSERT): Likewise.
54225         * tests/test-snprintf.c (ASSERT): Likewise.
54226         * tests/test-sprintf-posix.c (ASSERT): Likewise.
54227         * tests/test-stat-time.c (ASSERT): Likewise.
54228         * tests/test-strcasestr.c (ASSERT): Likewise.
54229         * tests/test-strerror.c (ASSERT): Likewise.
54230         * tests/test-striconv.c (ASSERT): Likewise.
54231         * tests/test-striconveh.c (ASSERT): Likewise.
54232         * tests/test-striconveha.c (ASSERT): Likewise.
54233         * tests/test-strsignal.c (ASSERT): Likewise.
54234         * tests/test-strstr.c (ASSERT): Likewise.
54235         * tests/test-strtod.c (ASSERT): Likewise.
54236         * tests/test-trunc1.c (ASSERT): Likewise.
54237         * tests/test-trunc2.c (ASSERT): Likewise.
54238         * tests/test-truncf1.c (ASSERT): Likewise.
54239         * tests/test-truncf2.c (ASSERT): Likewise.
54240         * tests/test-truncl.c (ASSERT): Likewise.
54241         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
54242         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
54243         * tests/test-vasnprintf.c (ASSERT): Likewise.
54244         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
54245         * tests/test-vasprintf.c (ASSERT): Likewise.
54246         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
54247         * tests/test-vprintf-posix.c (ASSERT): Likewise.
54248         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
54249         * tests/test-vsnprintf.c (ASSERT): Likewise.
54250         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
54251         * tests/test-wcwidth.c (ASSERT): Likewise.
54252         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
54253         * tests/test-xprintf-posix.c (ASSERT): Likewise.
54254         * tests/test-xvasprintf.c (ASSERT): Likewise.
54255         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
54256         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
54257         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
54258         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
54259         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
54260         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
54261         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
54262         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
54263         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
54264         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
54265         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
54266         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
54267         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
54268         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
54269         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
54270         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
54271         * tests/unictype/test-block_list.c (ASSERT): Likewise.
54272         * tests/unictype/test-block_of.c (ASSERT): Likewise.
54273         * tests/unictype/test-block_test.c (ASSERT): Likewise.
54274         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
54275         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
54276         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
54277         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
54278         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
54279         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
54280         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
54281         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
54282         * tests/unictype/test-combining.c (ASSERT): Likewise.
54283         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
54284         * tests/unictype/test-digit.c (ASSERT): Likewise.
54285         * tests/unictype/test-mirror.c (ASSERT): Likewise.
54286         * tests/unictype/test-numeric.c (ASSERT): Likewise.
54287         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
54288         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
54289         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
54290         * tests/unictype/test-scripts.c (ASSERT): Likewise.
54291         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
54292         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
54293         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
54294         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
54295         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
54296         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
54297         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
54298         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
54299         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
54300         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
54301         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
54302         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
54303         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
54304         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
54305         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
54306         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
54307         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
54308         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
54309         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
54310         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
54311         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
54312         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
54313         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
54314         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
54315         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
54316         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
54317         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
54318         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
54319         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
54320         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
54321         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
54322         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
54323         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
54324         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
54325         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
54326         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
54327         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
54328         Reported by Eric Blake.
54329
54330 2008-04-11  Bruno Haible  <bruno@clisp.org>
54331
54332         * lib/wchar.in.h: Tweak comment.
54333
54334 2008-04-11  Bruno Haible  <bruno@clisp.org>
54335
54336         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
54337         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
54338         gl_COMMON.
54339         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
54340
54341 2008-04-11  Bruno Haible  <bruno@clisp.org>
54342
54343         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
54344
54345 2008-04-11  Simon Josefsson  <simon@josefsson.org>
54346
54347         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
54348         of attempting to use non-existing /dev/*random.  Based on patch
54349         from Adam Strzelecki <ono@java.pl> in
54350         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
54351
54352 2008-04-08  Bruno Haible  <bruno@clisp.org>
54353
54354         Add tentative support for emx+gcc.
54355         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
54356         * lib/fpurge.c (fpurge): Likewise.
54357         * lib/freadable.c (freadable): Likewise.
54358         * lib/freadahead.c (freadahead): Likewise.
54359         * lib/freading.c (freading): Likewise.
54360         * lib/freadptr.c (freadptr): Likewise.
54361         * lib/freadseek.c (freadptrinc): Likewise.
54362         * lib/fseeko.c (rpl_fseeko): Likewise.
54363         * lib/fseterr.c (fseterr): Likewise.
54364         * lib/fwritable.c (fwritable): Likewise.
54365         * lib/fwriting.c (fwriting): Likewise.
54366         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
54367
54368 2008-04-09  Eric Blake  <ebb9@byu.net>
54369
54370         Avoid some autoconf warnings.
54371         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
54372         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
54373         * m4/afs.m4 (gl_AFS): Likewise.
54374         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
54375         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
54376         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54377         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
54378         (gl_INTEGER_TYPE_SUFFIX): Likewise.
54379         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
54380         (AC_CHECK_DECLS_ONCE): Likewise.
54381         Rename file...
54382         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
54383         gnulib-tool requires autoconf 2.59 or better.
54384         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
54385
54386 2008-04-08  Eric Blake  <ebb9@byu.net>
54387
54388         Use 'git describe --match' if present (added in git 1.5.5).
54389         * build-aux/git-version-gen: Limit result to tags that match 'v*'
54390         if possible.
54391
54392 2008-04-08  Bruno Haible  <bruno@clisp.org>
54393
54394         Add tentative support for OpenServer.
54395         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
54396         _ptr, _cnt.
54397         * lib/fpurge.c (fpurge): Likewise.
54398         * lib/freadable.c (freadable): Likewise.
54399         * lib/freadahead.c (freadahead): Likewise.
54400         * lib/freading.c (freading): Likewise.
54401         * lib/freadptr.c (freadptr): Likewise.
54402         * lib/freadseek.c (freadptrinc): Likewise.
54403         * lib/fseeko.c (rpl_fseeko): Likewise.
54404         * lib/fseterr.c (fseterr): Likewise.
54405         * lib/fwritable.c (fwritable): Likewise.
54406         * lib/fwriting.c (fwriting): Likewise.
54407         Reported by Roger Cornelius <rac@tenzing.org> and
54408         Brian K. White <brian@aljex.com>.
54409
54410 2008-04-06  Jim Meyering  <meyering@redhat.com>
54411
54412         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
54413
54414 2008-04-06  Bruno Haible  <bruno@clisp.org>
54415
54416         Avoid possible error with non-ASCII bytes in UTF-8 locales.
54417         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
54418         * tests/test-printf-posix.sh: Likewise.
54419         * tests/test-vfprintf-posix.sh: Likewise.
54420         * tests/test-vprintf-posix.sh: Likewise.
54421         * tests/test-xprintf-posix.sh: Likewise.
54422
54423 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54424
54425         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
54426         hide error from 'ls', needed on OS/2.
54427         Report by Elbert Pol <elbert.pol@gmail.com>.
54428
54429 2008-04-04  Eric Blake  <ebb9@byu.net>
54430
54431         Make test-fseeko.c failures meaningful.
54432         * tests/test-fseeko.c: Print line number on failure.
54433         * tests/test-fseek.c: Likewise.
54434         Reported by Nelson H. F. Beebe.
54435
54436         Improve strtod bug detection check.
54437         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
54438         required for Solaris 10.
54439         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
54440
54441 2008-04-04  Bruno Haible  <bruno@clisp.org>
54442
54443         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
54444         by m4/setenv.m4.
54445
54446 2008-04-03  Eric Blake  <ebb9@byu.net>
54447
54448         Ensure sane .version contents.
54449         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
54450         version string.
54451         * build-aux/git-version-gen: Improve documentation.
54452
54453         Make GNU make output nicer.
54454         * top/GNUmakefile [!_have-Makefile]: Add dependency on
54455         MAKECMDGOALS to enforce message for all command line targets.  Set
54456         srcdir for use in maint.mk.
54457
54458         Another maintainer tweak.
54459         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
54460         a target that regenerates version.
54461
54462 2008-04-03  Jim Meyering  <meyering@redhat.com>
54463
54464         vc-list-files: don't cause coreutils "make po-check" failure
54465         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
54466
54467 2008-04-03  Eric Blake  <ebb9@byu.net>
54468
54469         Allow VPATH usage of vc-list-files.
54470         * build-aux/vc-list-files (scriptversion): Add timestamp.
54471         (options): Add --help, --version, -C.
54472         (CVS): Support installed cvsu.
54473
54474 2008-04-02  Bruno Haible  <bruno@clisp.org>
54475
54476         Avoid some "statement with no effect" warnings from gcc.
54477         * tests/test-wctype.c (main): Explicitly ignore unused values.
54478         Reported by Jim Meyering.
54479
54480 2008-04-02  Jim Meyering  <meyering@redhat.com>
54481
54482         Avoid some warnings from "gcc -Wshadow".
54483         * tests/test-frexp.c (exp): Define to a different identifier.
54484         * tests/test-frexpl.c (exp): Likewise.
54485
54486 2008-04-03  Jim Meyering  <meyering@redhat.com>
54487
54488         bootstrap: remove dangling *.[ch] symlinks from lib
54489         * build-aux/bootstrap [dangling symlink removal]: Move find's
54490         -depth option to precede all others, to avoid a warning.
54491         Remove *.[ch] files too, and from "$source_base" (usually lib/).
54492
54493 2008-04-02  Bruno Haible  <bruno@clisp.org>
54494
54495         Avoid some warnings from "gcc -Wshadow".
54496         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
54497         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
54498         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
54499         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
54500         Reported by Jim Meyering.
54501
54502 2008-04-01  Bruno Haible  <bruno@clisp.org>
54503
54504         Fix test to work on IRIX 6.5 with cc.
54505         * tests/test-math.c (numeric_equal): New function.
54506         (main): Use it.
54507
54508 2008-04-01  Bruno Haible  <bruno@clisp.org>
54509
54510         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
54511
54512 2008-04-01  Bruno Haible  <bruno@clisp.org>
54513
54514         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
54515         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54516         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
54517         (Depends-on): Remove math.
54518
54519         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
54520         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54521         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
54522         (Depends-on): Remove math.
54523
54524         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
54525         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54526         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
54527         (Depends-on): Remove math.
54528         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
54529         (Depends-on): Remove math.
54530
54531         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
54532         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
54533         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
54534         (Depends-on): Remove math.
54535         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
54536         (Depends-on): Remove math.
54537
54538         * tests/test-round1.c: Include nan.h.
54539         (main): Use NaNd instead of NAN.
54540         * modules/round-tests (Files): Add tests/nan.h.
54541
54542         * tests/test-trunc1.c: Include nan.h.
54543         (main): Use NaNd instead of NAN.
54544         * modules/trunc-tests (Files): Add tests/nan.h.
54545
54546         * tests/test-roundf1.c: Include nan.h.
54547         (main): Use NaNf instead of NAN.
54548         * modules/roundf-tests (Files): Add tests/nan.h.
54549
54550         * tests/test-truncf1.c: Include nan.h.
54551         (main): Use NaNf instead of NAN.
54552         * modules/truncf-tests (Files): Add tests/nan.h.
54553
54554         * tests/test-ceilf1.c: Include nan.h.
54555         (main): Use NaNf instead of NAN.
54556         * modules/ceilf-tests (Files): Add tests/nan.h.
54557
54558         * tests/test-floorf1.c: Include nan.h.
54559         (main): Use NaNf instead of NAN.
54560         * modules/floorf-tests (Files): Add tests/nan.h.
54561
54562         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
54563         (main): Use NaNf instead of NAN.
54564         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
54565
54566         * tests/test-isnand.c: Include nan.h instead of <math.h>.
54567         (main): Use NaNd instead of NAN.
54568         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
54569
54570         * tests/test-frexp.c: Include nan.h.
54571         (main): Use NaNd instead of NAN.
54572         * modules/frexp-tests (Files): Add tests/nan.h.
54573
54574         * lib/isnan.c: Don't include <math.h>.
54575         (FUNC): Don't use NAN macro.
54576         * modules/isnand-nolibm (Depends-on): Remove math.
54577         * modules/isnanf-nolibm (Depends-on): Remove math.
54578         * modules/isnanl (Depends-on): Remove math.
54579         * modules/isnanl-nolibm (Depends-on): Remove math.
54580
54581         * tests/nan.h: New file.
54582
54583 2008-04-01  Eric Blake  <ebb9@byu.net>
54584
54585         Fix typos.
54586         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
54587         values to be the right type.
54588
54589         For now, cater to gnulib strtod inaccuracies.
54590         * tests/test-strtod.c (main): Allow 1-ulp error on expected
54591         fractional results.  While not as nice from a QoI perspective, it
54592         is a quicker patch than correctly implementing decimal to binary
54593         rounding.
54594
54595 2008-03-31  Eric Blake  <ebb9@byu.net>
54596
54597         Guarantee a definition of NAN.
54598         * lib/math.in.h (NAN): Define if missing.
54599         * tests/test-math.c (main): Test it.
54600         * doc/posix-headers/math.texi (math.h): Document this.
54601         * lib/isnan.c (rpl_isnand): Use it.
54602         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
54603         * tests/test-floorf1.c (NaN): Likewise.
54604         * tests/test-frexp.c (NaN): Likewise.
54605         * tests/test-isnand.c (NaN): Likewise.
54606         * tests/test-isnanf.c (NaN): Likewise.
54607         * tests/test-round1.c (NaN): Likewise.
54608         * tests/test-roundf1.c (NaN): Likewise.
54609         * tests/test-snprintf-posix.h (NaN): Likewise.
54610         * tests/test-sprintf-posix.h (NaN): Likewise.
54611         * tests/test-trunc1.c (NaN): Likewise.
54612         * tests/test-truncf1.c (NaN): Likewise.
54613         * tests/test-vasnprintf-posix.c (NaN): Likewise.
54614         * tests/test-vasprintf-posix.c (NaN): Likewise.
54615         * modules/isnand-nolibm (Depends-on): Add math.
54616         * modules/isnanf-nolibm (Depends-on): Likewise.
54617         * modules/isnanl (Depends-on): Likewise.
54618         * modules/isnanl-nolibm (Depends-on): Likewise.
54619         * modules/snprintf-posix-tests (Depends-on): Likewise.
54620         * modules/sprintf-posix-tests (Depends-on): Likewise.
54621         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
54622         * modules/vsprintf-posix-tests (Depends-on): Likewise.
54623         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
54624         * modules/vasprintf-posix-tests (Depends-on): Likewise.
54625
54626 2008-03-31  Bruno Haible  <bruno@clisp.org>
54627
54628         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
54629         * doc/posix-functions/strtod.texi: Likewise.
54630
54631 2008-03-31  Bruno Haible  <bruno@clisp.org>
54632
54633         * tests/test-strtod.c (main): Don't use C99 syntax.
54634
54635 2008-03-31  Bruno Haible  <bruno@clisp.org>
54636
54637         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
54638         Reported by Eric Blake.
54639
54640 2008-03-31  Jim Meyering  <meyering@redhat.com>
54641
54642         Don't compare actual signbit return values.
54643         * tests/test-strtod.c (main): Rather, compare only their
54644         zero/non-zero nature.
54645
54646 2008-03-31  Eric Blake  <ebb9@byu.net>
54647
54648         More strtod documentation.
54649         * doc/posix-functions/strtod.texi (strtod): Interpret more test
54650         failures as distinct bugs.
54651
54652 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54653
54654         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
54655         Problem reported by Erik Benada in
54656         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
54657
54658 2008-03-30  Bruno Haible  <bruno@clisp.org>
54659
54660         * tests/test-strtod.c: Add comments about which assertion fails on which
54661         platform.
54662         * doc/posix-functions/strtod.texi: Add info about many more platforms.
54663
54664 2008-03-30  Eric Blake  <ebb9@byu.net>
54665
54666         Test signbit behavior on zeros.
54667         * tests/test-signbit.c (test_signbitf): Add tests for zero.
54668         (test_signbitd, test_signbitl): Likewise.
54669
54670         More strtod touchups.
54671         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
54672         sign of negative underflow, for now.  Use .5, not .1.
54673         * doc/posix-functions/strtod.texi (strtod): Mention these
54674         limitations.
54675         Reported by Jim Meyering.
54676
54677 2008-03-30  Bruno Haible  <bruno@clisp.org>
54678
54679         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
54680         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
54681
54682 2008-03-30  Bruno Haible  <bruno@clisp.org>
54683
54684         Avoid failure when attempting to return empty iconv results on some
54685         platforms.
54686         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
54687         allocation, don't report ENOMEM when the resulting string is empty.
54688
54689 2008-03-30  Bruno Haible  <bruno@clisp.org>
54690
54691         Fix buffer overrun.
54692         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
54693         Don't consider the width for tmp_length. Check count against tmp_length
54694         before doing the padding. Ensure enough allocation during padding.
54695
54696 2008-03-30  Eric Blake  <ebb9@byu.net>
54697
54698         strtod touchups.
54699         * lib/strtod.c (strtod): Avoid compiler warnings.
54700         Reported by Jim Meyering.
54701
54702 2008-03-30  Bruno Haible  <bruno@clisp.org>
54703
54704         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
54705         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
54706         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
54707         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
54708         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
54709         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
54710         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
54711         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
54712
54713         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
54714         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
54715         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
54716         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
54717         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
54718         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
54719         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
54720         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
54721
54722         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
54723         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
54724         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
54725         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
54726         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
54727         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
54728         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
54729         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
54730
54731         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
54732         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
54733
54734         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
54735         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
54736
54737         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
54738         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
54739
54740         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
54741         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
54742         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
54743
54744         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
54745         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
54746         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
54747
54748         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
54749         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
54750         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
54751
54752         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
54753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
54754         * modules/vasprintf (Depends-on): Add EOVERFLOW.
54755
54756         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
54757         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
54758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
54759         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
54760         (Depends-on): Add EOVERFLOW.
54761         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
54762         (Depends-on): Add EOVERFLOW.
54763         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54764         (Depends-on): Add EOVERFLOW.
54765         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
54766         (Depends-on): Add EOVERFLOW.
54767         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54768         (Depends-on): Add EOVERFLOW.
54769         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
54770         (Depends-on): Add EOVERFLOW.
54771         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54772         (Depends-on): Add EOVERFLOW.
54773         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
54774         (Depends-on): Add EOVERFLOW.
54775
54776         * lib/sprintf.c (EOVERFLOW): Remove fallback.
54777         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
54778         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
54779
54780         * lib/snprintf.c (EOVERFLOW): Remove fallback.
54781         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
54782         * modules/snprintf (Depends-on): Add EOVERFLOW.
54783
54784         * lib/poll.c (EOVERFLOW): Remove fallback.
54785         * modules/poll (Depends-on): Add EOVERFLOW.
54786
54787         * lib/getugroups.c (EOVERFLOW): Remove fallback.
54788         * modules/getugroups (Depends-on): Add EOVERFLOW.
54789
54790         * lib/getdelim.c (EOVERFLOW): Remove fallback.
54791         * modules/getdelim (Depends-on): Add EOVERFLOW.
54792
54793         * lib/ftell.c (EOVERFLOW): Remove fallback.
54794         * modules/ftell (Depends-on): Add EOVERFLOW.
54795
54796         * lib/fprintf.c (EOVERFLOW): Remove fallback.
54797         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
54798         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
54799
54800         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
54801
54802         * modules/EOVERFLOW-tests: New file.
54803         * tests/test-EOVERFLOW.c: New file.
54804
54805         * modules/EOVERFLOW: New file.
54806         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
54807
54808 2008-03-30  Bruno Haible  <bruno@clisp.org>
54809
54810         Fix bug introduced on 2007-06-10.
54811         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
54812         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
54813
54814 2008-03-30  Bruno Haible  <bruno@clisp.org>
54815
54816         Improve freadseek's efficiency after ungetc.
54817         * lib/freadseek.c: Include freadahead.h.
54818         (freadptrinc): New function, extracted from freadseek.
54819         (freadseek): Use it in a loop. Use freadahead to determine the number
54820         of loop iterations.
54821         * modules/freadseek (Depends-on): Add freadahead.
54822         (configure.ac): Require AC_C_INLINE.
54823
54824 2008-03-30  Bruno Haible  <bruno@clisp.org>
54825
54826         * lib/freadseek.c (freadseek): Don't ignore the return value of
54827         freadptr.
54828
54829 2008-03-29  Eric Blake  <ebb9@byu.net>
54830
54831         Add hex float support.
54832         * modules/strtod (Depends-on): Add c-ctype.
54833         (Link): Mention POW_LIB.
54834         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
54835         whitespace between 'e' and exponent.
54836         * tests/test-strtod.c (main): Enable hex float tests.
54837         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
54838         now provides.
54839
54840         Document various strtod bugs, with some fixes.
54841         * doc/posix-functions/strtod.texi (strtod): Document bugs with
54842         "-0x", "inf", "nan", and hex constants.
54843         * doc/posix-functions/atof.texi (atof): Likewise.
54844         * modules/stdlib (Makefile.am): Support strtod.
54845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
54846         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
54847         detect additional strtod bugs.
54848         * lib/stdlib.in.h (rpl_strtod): Add declarations.
54849         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
54850         bool where appropriate.  Parse 'inf' and 'nan'.
54851         * tests/test-strtod.c: New file.
54852         * modules/strtod (Depends-on): Add stdbool, stdlib.
54853         (configure.ac): Turn on module indicator.
54854         * modules/strtod-tests: New module.
54855
54856 2008-03-29  Eric Blake  <ebb9@byu.net>
54857
54858         Fix ftell on mingw.
54859         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
54860         * modules/ftell-tests (Depends-on): Add binary-io.
54861         * modules/ftello-tests (Depends-on): Likewise.
54862         * tests/test-ftell.c (main): Enhance test to cover behavior after
54863         ungetc.  Enforce binary mode.
54864         * tests/test-ftello.c (main): Likewise.
54865
54866         Pass test-freadseek on cygwin.
54867         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
54868         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
54869         ungetc buffer.
54870
54871         * tests/test-fflush2.c (main): Fix typo.
54872
54873 2008-03-29  Bruno Haible  <bruno@clisp.org>
54874
54875         * tests/test-fflush2.c (main): Temporarily disable the contents of
54876         this test.
54877         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
54878         Reported by Eric Blake.
54879
54880 2008-03-28  Simon Josefsson  <simon@josefsson.org>
54881
54882         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
54883         (GC_SHA224_DIGEST_SIZE): Add.
54884
54885         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
54886         (gc_hash_digest_length): Likewise.
54887         (gc_hash_buffer): Likewise.
54888
54889 2008-03-25  Bruno Haible  <bruno@clisp.org>
54890
54891         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
54892         detail which gettext release to use.
54893         Reported by Simon Josefsson.
54894
54895 2008-03-26  Jim Meyering  <meyering@redhat.com>
54896
54897         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
54898         * modules/gnumakefile (clean-GNUmakefile): Also, use
54899         test ... && ... || : syntax rather than if-then ... fi.
54900
54901         gnumakefile: Don't double-quote-expand $(VPATH) value.
54902         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
54903
54904 2008-03-24  Eric Blake  <ebb9@byu.net>
54905
54906         Alter GNUmakefile to install into top directory.
54907         * modules/maintainer-makefile: Split, and add dependency...
54908         * modules/gnumakefile: to this new module.
54909         * build-aux/GNUmakefile: Move...
54910         * top/GNUmakefile: ...here.
54911         * build-aux/maint.mk: Move...
54912         * top/maint.mk: ...here.
54913         * MODULES.html.sh (Support for maintaining...): Document new
54914         module.
54915
54916 2008-03-23  Bruno Haible  <bruno@clisp.org>
54917
54918         * gnulib-tool: New options --vc-files, --no-vc-files.
54919         (func_usage): Document them.
54920         (vc_files): New variable.
54921         (func_import): Consider vc_files.
54922         (func_create_testdir): Set vc_files to empty.
54923         Suggested by Jim Meyering and Karl Berry.
54924
54925 2008-03-23  Bruno Haible  <bruno@clisp.org>
54926
54927         Fix regex compilation error on HP-UX 11.
54928         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
54929         * modules/regex (Files): Add m4/mbstate_t.m4.
54930         Reported by Ton Voon <ton.voon@altinity.com>.
54931
54932 2008-03-23  Bruno Haible  <bruno@clisp.org>
54933
54934         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
54935
54936 2008-03-23  Eric Blake  <ebb9@byu.net>
54937             Bruno Haible  <bruno@clisp.org>
54938
54939         Install files from top/ in the destination directory.
54940         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54941         augmentation also for the files from top/.
54942         (func_import, func_create_testdir): Rewrite file names:
54943         top/filename -> filename.
54944
54945 2008-03-23  Bruno Haible  <bruno@clisp.org>
54946
54947         Tweak "gnulib --version" output.
54948         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
54949
54950 2008-03-23  Bruno Haible  <bruno@clisp.org>
54951
54952         Tweak "gnulib --version" output.
54953         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
54954         rather than contents of ChangeLog, when possible.
54955
54956 2008-03-21  Eric Blake  <ebb9@byu.net>
54957
54958         More --version tweaks.
54959         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
54960         date of last ChangeLog entry.
54961
54962 2008-03-21  Jim Meyering  <meyering@redhat.com>
54963
54964         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
54965
54966 2008-03-20  Eric Blake  <ebb9@byu.net>
54967
54968         VPATH fix.
54969         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
54970
54971 2008-03-20  Simon Josefsson  <simon@josefsson.org>
54972
54973         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
54974         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
54975
54976 2008-03-20  Eric Blake  <ebb9@byu.net>
54977
54978         Sync GNUmakefile with coreutils.
54979         * build-aux/GNUmakefile (have-Makefile): Rename...
54980         (_have-Makefile): ...to this, for namespace consideration.
54981         (GNUmakefile.cfg): Include, if present.
54982         (_autoreconf): Define a default.
54983         (_is-dist-target): New rule for rebuilds to pick up intra-release
54984         version.
54985         (maint-cfg.mk): Rename...
54986         (cfg.mk): ...to this.
54987
54988 2008-03-18  Jim Meyering  <meyering@redhat.com>
54989
54990         New script and module: mktempd
54991         * MODULES.html.sh (maint+release support): Add mktempd.
54992         * build-aux/mktempd: New file.
54993         * modules/mktempd: New file.
54994
54995 2008-03-15  Jim Meyering  <meyering@redhat.com>
54996
54997         Undo last change.
54998         * lib/sha1.c, lib/md5.c: 63 != ~63.
54999         Reported by Andreas Schwab.
55000
55001         sha1.c, md5.c: Hoist a redundant expression.
55002         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
55003         "ctx->buflen" only once, before calling *_process_block.
55004         * lib/md5.c (md5_process_bytes): Likewise.
55005
55006 2008-03-14  Eric Blake  <ebb9@byu.net>
55007
55008         Bump copyright year in files generated by gnulib-tool.
55009         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
55010         gnulib-tool, rather than hard-coding it.
55011
55012         Fix 'gnulib-tool --version' output to work with git.
55013         * gnulib-tool (func_gnulib_dir): New function, extracted from...
55014         (startup): ...here.
55015         (func_version): Use it to invoke git-version-gen, rather than
55016         relying on CVS keyword expansion.  Modernize wording.
55017         (cvsdatestamp, last_checkin_date, version): Kill unused
55018         variables.
55019
55020 2008-03-12  Jim Meyering  <meyering@redhat.com>
55021
55022         Recognize optional cast of the argument to free.
55023         * build-aux/useless-if-before-free: Update regexps.
55024
55025         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
55026
55027 2008-03-11  Bruno Haible  <bruno@clisp.org>
55028
55029         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
55030         by a single package.
55031         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
55032         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
55033         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
55034         Reported by Sam Steingold <sds@gnu.org>.
55035
55036 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55037
55038         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
55039         repositories.
55040
55041 2008-03-11  Bruno Haible  <bruno@clisp.org>
55042
55043         Avoid conflicts between local macro definitions.
55044         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55045         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
55046
55047 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
55048             Bruno Haible  <bruno@clisp.org>
55049
55050         Make va_copy work with some version of xlc on AIX 5.1.
55051         * lib/stdarg.in.h: New file.
55052         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
55053         On AIX, use a <stdarg.h> file substitute.
55054         * modules/stdarg (Files): Add lib/stdarg.in.h.
55055         (Depends-on): Add include_next.
55056         (Makefile.am): Build a stdarg.h substitute if requested.
55057         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
55058
55059 2008-03-10  Bruno Haible  <bruno@clisp.org>
55060
55061         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
55062         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55063         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55064
55065 2008-03-10  Bruno Haible  <bruno@clisp.org>
55066
55067         * modules/stdlib (Depends-on): Add include_next, remove
55068         absolute-header.
55069
55070 2008-03-09  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/freadahead.h (freadahead): Document more precisely.
55073         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
55074         the sum of both buffer sizes.
55075         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
55076         * NEWS: Document the change.
55077
55078 2008-03-09  Bruno Haible  <bruno@clisp.org>
55079
55080         Extend freadptr to return also the buffer size.
55081         * lib/freadptr.h (freadptr): Add sizep argument.
55082         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
55083         (freadptr): Add sizep argument. Determine buffer size like freadahead
55084         does.
55085         * tests/test-freadptr.c: Don't include freadahead.h.
55086         (main): Adapt for new calling convention of freadptr.
55087         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
55088         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
55089         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
55090         tests/test-freadptr2.sh.
55091         (Depends): Remove freadahead.
55092         (TESTS): Add test-freadptr2.sh.
55093         (check_PROGRAMS): Add test-freadptr2.
55094
55095 2008-03-09  Bruno Haible  <bruno@clisp.org>
55096
55097         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
55098         Report and solution by Simon Josefsson.
55099
55100 2008-03-06  Bruno Haible  <bruno@clisp.org>
55101
55102         Make fflush after ungetc work on BSD platforms.
55103         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
55104         * tests/test-fflush2.c: New file.
55105         * tests/test-fflush2.sh: New file.
55106         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
55107         tests/test-fflush2.c.
55108         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
55109         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
55110
55111 2008-03-06  Eric Blake  <ebb9@byu.net>
55112
55113         Likewise for ftello.
55114         * modules/ftello (Dependencies): Add extensions.
55115         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
55116
55117 2008-03-06  Bruno Haible  <bruno@clisp.org>
55118
55119         * modules/fseeko (Dependencies): Add extensions.
55120         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
55121         Needed on glibc systems.
55122
55123 2008-03-06  Bruno Haible  <bruno@clisp.org>
55124
55125         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
55126         email address.
55127         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55128
55129 2008-03-06  Bruno Haible  <bruno@clisp.org>
55130
55131         * users.txt: Add libgnupdf.
55132
55133 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55134
55135         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
55136         (Header File Substitutes, Function Substitutes,
55137         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
55138         (Build robot for gnulib): Fix typo.
55139
55140 2008-03-06  Bruno Haible  <bruno@clisp.org>
55141
55142         * doc/gnulib-tool.texi (VCS Issues): Small updates.
55143         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55144
55145 2008-03-06  Bruno Haible  <bruno@clisp.org>
55146
55147         * doc/func.texi: New file, extracted from doc/gnulib.texi.
55148         * doc/gnulib.texi: Include it.
55149
55150 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55151
55152         * modules/func (License): Change license to unlimited; there was
55153         no LGPL parts in the module anyway.
55154
55155 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55156
55157         * modules/__func__: Renamed to modules/func.
55158         * modules/__func__-tests: Renamed to modules/func-tests.
55159         * tests/test-__func__.c: Renamed to tests/test-func.c.
55160         * m4/__func__.m4: Renamed to m4/func.m4.
55161         * doc/gnulib.texi (__func__): Section renamed to func.
55162         Suggested by Eric Blake <ebb9@byu.net>.
55163
55164 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55165
55166         * doc/gnulib.texi (__func__): Use C99 terminology when talking
55167         about __func__.  Make example self-contained.  Suggested by Eric
55168         Blake <ebb9@byu.net>.
55169
55170         * tests/test-__func__.c (main): Avoid extraneous () around __func.
55171         Suggested by Eric Blake <ebb9@byu.net>.
55172
55173 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55174
55175         * modules/__func__: New file.
55176         * modules/__func__-tests: New file.
55177         * tests/test-__func__.c: New file.
55178         * m4/__func__.m4: New file.
55179         * doc/gnulib.texi (__func__): Document __func__ module.
55180
55181 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55182
55183         * modules/byteswap (License): Re-license as LGPLv2+.
55184
55185 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55186
55187         * doc/Makefile: Add pdf target.
55188
55189 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55190
55191         * modules/inline (License): Use 'unlimited', since there are only
55192         *.m4 files in this module.
55193
55194 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55195             Bruno Haible  <bruno@clisp.org>
55196
55197         Add support for HP C 7.1 on OpenVMS 8.3.
55198         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
55199
55200 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55201
55202         Update VMS specifics.
55203         * lib/getopt.c [VMS]: Remove include of unixlib.h.
55204
55205 2008-03-02  Jim Meyering  <meyering@redhat.com>
55206
55207         Remove the last dependency on the "free" module.
55208         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
55209         Reported by Bob Proulx.
55210
55211         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
55212
55213         Remove useless "if" tests before free.  Deprecate "free" module.
55214         * doc/posix-functions/free.texi: Mention that this
55215         module is no longer useful.
55216         * modules/free (Notice): Say this module is obsolete.
55217         * modules/readutmp (Depends-on): Remove free.
55218         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
55219         * lib/putenv.c (putenv): Likewise.
55220         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
55221         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
55222         * tests/test-c-strcasestr.c (main): Likewise.
55223         * tests/test-c-strstr.c (main): Likewise.
55224         * tests/test-mbscasestr1.c (main): Likewise.
55225         * tests/test-mbscasestr2.c (main): Likewise.
55226         * tests/test-mbsstr1.c (main): Likewise.
55227         * tests/test-mbsstr2.c (main): Likewise.
55228         * tests/test-memmem.c (main): Likewise.
55229         * tests/test-strcasestr.c (main): Likewise.
55230         * tests/test-striconv.c (main): Likewise.
55231         * tests/test-striconveh.c (main): Likewise.
55232         * tests/test-striconveha.c (main): Likewise.
55233         * tests/test-strstr.c (main): Likewise.
55234
55235         * build-aux/git-version-gen: Adjust a comment and the Usage string.
55236
55237         bootstrap: sync from coreutils again
55238         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
55239
55240 2008-03-01  Jim Meyering  <meyering@redhat.com>
55241
55242         bootstrap: sync from coreutils
55243         * build-aux/bootstrap (update_po_files): Copy a .po file into place
55244         also when the target doesn't exist.
55245
55246 2008-03-01  Eric Blake  <ebb9@byu.net>
55247
55248         Fix bugs in last patch.
55249         * lib/memchr2.c (memchr2): Fix typo.
55250         * tests/test-memchr2.c: Test previous bug, and don't use GNU
55251         extension.
55252         Reported by Bruce Korb.
55253
55254         New module 'memchr2'.
55255         * modules/memchr2: New file.
55256         * modules/memchr2-tests: Likewise.
55257         * lib/memchr2.h: Likewise.
55258         * lib/memchr2.c: Likewise, based on memchr.c.
55259         * tests/test-memchr2.c: New test.
55260         * MODULES.html.sh (String handling): Add memchr2.
55261
55262 2008-02-29  Bruno Haible  <bruno@clisp.org>
55263
55264         * modules/freadseek-tests: New file.
55265         * tests/test-freadseek.sh: New file.
55266         * tests/test-freadseek.c: New file.
55267
55268         New module 'freadseek'.
55269         * modules/freadseek: New file.
55270         * lib/freadseek.h: New file.
55271         * lib/freadseek.c: New file.
55272         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
55273
55274 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55275
55276         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
55277         wydawca.
55278
55279         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
55280         program_invocation_name and program_invocation_short_name are
55281         present.
55282
55283 2008-02-28  Bruno Haible  <bruno@clisp.org>
55284
55285         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
55286         * tests/test-freadptr.sh: Also test non-seekable stdin.
55287
55288 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
55289
55290         * build-aux/bootstrap (source_base, m4_base)
55291         (doc_base, tests_base): New variables.
55292         (gnulib_tool_options): Do not hardcode base directories, use
55293         the above variables instead.
55294
55295 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
55296
55297         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
55298
55299 2008-02-28  Bruno Haible  <bruno@clisp.org>
55300
55301         * modules/freadptr-tests: New file.
55302         * tests/test-freadptr.sh: New file.
55303         * tests/test-freadptr.c: New file.
55304
55305         New module 'freadptr'.
55306         * modules/freadptr: New file.
55307         * lib/freadptr.h: New file.
55308         * lib/freadptr.c: New file.
55309         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
55310
55311 2008-02-26  Karl Berry  <karl@freefriends.org>
55312
55313         Sync from Libtool:
55314         * libltdl/argz.c (argz_add, argz_count): New functions.
55315         * libltdl/argz.in.h: Declare them.
55316         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
55317
55318 2008-02-22  Bruno Haible  <bruno@clisp.org>
55319
55320         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
55321         is a pointer type.  Needed for HP-UX 10.
55322         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
55323         * doc/posix-functions/gmtime_r.texi: Likewise.
55324         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55325
55326 2008-02-24  Bruno Haible  <bruno@clisp.org>
55327
55328         * modules/environ-tests: New file.
55329         * tests/test-environ.c: New file.
55330
55331         New module 'environ'.
55332         * modules/environ: New file.
55333         * lib/unistd.in.h (environ): New declaration.
55334         * m4/environ.m4: New file.
55335         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
55336         after use.
55337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
55338         HAVE_DECL_ENVIRON.
55339         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
55340         HAVE_DECL_ENVIRON.
55341         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
55342         wrong claim that 'environ' is missing on some systems.
55343         * modules/execute (Depends-on): Add environ.
55344         * lib/execute.c (environ): Remove fallback declaration.
55345         * modules/pipe (Depends-on): Add environ.
55346         * lib/pipe.c (environ): Remove fallback declaration.
55347         * modules/setenv (Depends-on): Add environ.
55348         * lib/setenv.c (environ): Remove fallback declaration.
55349         * modules/unsetenv (Depends-on): Add environ.
55350         * lib/unsetenv.c (environ): Remove fallback declaration.
55351         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
55352         m4/environ.m4.
55353         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
55354         (gl_PREREQ_UNSETENV): Likewise.
55355
55356 2008-02-24  Bruno Haible  <bruno@clisp.org>
55357
55358         * doc/posix-functions/environ.texi: Document the MacOS X problem.
55359
55360 2008-02-20  Bob Proulx  <bob@proulx.com>
55361
55362         Enable use of older two part flavor 'git describe'.
55363         * build-aux/git-version-gen: If using the older two part flavor of
55364         git version then recreate the third part now present in the
55365         newer three part flavor of git describe.
55366
55367 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
55368
55369         * lib/fts.c (fts_build): Typo correction to comment.
55370
55371 2008-02-17  Bruno Haible  <bruno@clisp.org>
55372
55373         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
55374         generating no-op conflicts.
55375
55376 2008-02-17  Bruno Haible  <bruno@clisp.org>
55377
55378         Speed up by 10%.
55379         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
55380         result_entries, rather than an index-based loop.
55381
55382 2008-02-17  Bruno Haible  <bruno@clisp.org>
55383
55384         Speed up by 25%.
55385         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
55386         'hashcode_cached'.
55387         (entry_create): New function.
55388         (entry_hashcode): Use the cached hashcode if possible.
55389         (read_changelog_file, try_split_merged_entry): Use entry_create.
55390
55391 2008-02-17  Bruno Haible  <bruno@clisp.org>
55392
55393         Speed up from O(n^2) to O(n) for long ChangeLog files.
55394         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
55395         (read_changelog_file): Change implementation of entries_reversed list
55396         to rbtreehash.
55397         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
55398
55399 2008-02-17  Bruno Haible  <bruno@clisp.org>
55400
55401         New option --split-merged-entry.
55402         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
55403         (find_paragraph_end, try_split_merged_entry): New functions.
55404         (long_options): Add option --split-merged-entry.
55405         (usage): Document option --split-merged-entry.
55406         (main): Implement option --split-merged-entry.
55407         Reported by Eric Blake.
55408
55409 2008-02-17  Bruno Haible  <bruno@clisp.org>
55410
55411         * lib/git-merge-changelog.c: Include c-strstr.h.
55412         (main): Support the "git pull --rebase" situation.
55413         * modules/git-merge-changelog (Depends-on): Add c-strstr.
55414         Reported by Eric Blake.
55415
55416 2008-02-16  Eric Blake  <ebb9@byu.net>
55417
55418         Avoid doubling \ in common case of "c-maybe" quoting style.
55419         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
55420         eliding outer quotes.
55421         * lib/quotearg.h: Document this.
55422         * tests/test-quotearg.c (result_strings, inputs, results_g)
55423         (flag_results, locale_results): Test it by adding a new string to
55424         each test group.
55425         (compare_strings): Test new string.
55426
55427 2008-02-13  Eric Blake  <ebb9@byu.net>
55428
55429         Avoid trigraph quoting in default output.
55430         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
55431         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
55432         unless explicitly requested.
55433         * tests/test-quotearg.c (flag_results, main): Add additional tests.
55434
55435 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
55436
55437         Don't rely on signed integer overflowing to negative value.
55438         * lib/getugroups.c (getugroups): Include <limits.h>.
55439         Instead, compare against INT_MAX, and increment only if the test passes.
55440
55441 2008-02-13  Jim Meyering  <meyering@redhat.com>
55442         and Eric Blake  <ebb9@byu.net>
55443
55444         Avoid shadowing warning and compile errors on Linux.
55445         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
55446         forwarding macros on Linux.
55447         (dcgettext): Define a stub, for Linux.
55448         (results_g, main): Avoid warnings.
55449
55450 2008-02-12  Eric Blake  <ebb9@byu.net>
55451
55452         Silence warning in last patch.
55453         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
55454
55455         Quotearg part 4: add tests, fix c-maybe colon quoting.
55456         * lib/quotearg.h: Improve documentation.
55457         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
55458         escapes when adding outer quotes.  When quoting trigraphs, use
55459         valid C notation.  When quoting NUL, omit extra characters if next
55460         character is not digit.  Alter prototype.
55461         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
55462         callers.
55463         * modules/quotearg-tests: New module.
55464         * tests/test-quotearg.c: New test.
55465
55466 2008-02-07  Eric Blake  <ebb9@byu.net>
55467
55468         Quotearg part 3: add flag to control outer quote elision.
55469         * lib/quotearg.h (c_maybe_quoting_style): New style.
55470         (enum quoting_flags): Better documentation of flags.
55471         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
55472         c-maybe style.
55473         (quotearg_buffer_restyled): Handle new flag to elide outer
55474         quotes.
55475
55476         Quotearg part 2: add flag that can control NUL elision.
55477         * lib/quotearg.h (set_quoting_flags): New prototype.
55478         * lib/quotearg.c (struct quoting_options): Add flag field.
55479         (set_quoting_flags): New function.
55480         (quotearg_buffer_restyled): Add flags parameter.
55481         (quotearg_alloc_mem): Set the flag if length cannot be returned.
55482         (quotearg_n_options): Set the flag, since length cannot be
55483         returned.
55484         (quoting_options_from_style): Default flags correctly.
55485
55486         Quotearg part 1: more wrappers, restore quotearg_char state.
55487         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
55488         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
55489         (quotearg_colon_mem): New wrappers.
55490         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
55491         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
55492         functions.
55493         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
55494         (quotearg_colon_mem): New functions.
55495
55496 2008-02-11  Bruno Haible  <bruno@clisp.org>
55497
55498         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
55499         library in the current directory: it does not work with parallel make.
55500         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55501
55502 2008-02-11  Bruno Haible  <bruno@clisp.org>
55503
55504         * .gitattributes: New file.
55505
55506 2008-02-11  Jim Meyering  <meyering@redhat.com>
55507
55508         useless-if-before-free: Fix reversed exit values.
55509         * build-aux/useless-if-before-free: Use correct values
55510         for EXIT_MATCH and EXIT_NO_MATCH.
55511
55512         * build-aux/useless-if-before-free: Close stdout carefully.
55513
55514 2008-02-10  Bruno Haible  <bruno@clisp.org>
55515
55516         New module 'git-merge-changelog'.
55517         * modules/git-merge-changelog: New file.
55518         * lib/git-merge-changelog.c: New file.
55519
55520 2008-02-10  Jim Meyering  <meyering@redhat.com>
55521
55522         useless-if-before-free: New option: --list (-l).
55523
55524         useless-if-before-free: Don't exit immediately upon open failure.
55525         * build-aux/useless-if-before-free: Exit 2 for errors.
55526         Upon failure to open a file, don't exit immediately.
55527         Rather, just warn and continue with any remaining files.
55528
55529 2008-02-10  Bruno Haible  <bruno@clisp.org>
55530
55531         New abstract list operation 'node_set_value'.
55532         * lib/gl_list.h (gl_list_node_set_value): New function.
55533         (struct gl_list_implementation): New field node_set_value.
55534         * lib/gl_list.c (gl_list_node_set_value): New function.
55535         * lib/gl_array_list.c (gl_array_node_set_value): New function.
55536         (gl_array_list_implementation): Update.
55537         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
55538         (gl_carray_list_implementation): Update.
55539         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
55540         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
55541         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
55542         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
55543         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
55544         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
55545         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
55546         Update.
55547         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
55548         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
55549         (gl_sublist_list_implementation): Update.
55550
55551 2008-02-10  Bruno Haible  <bruno@clisp.org>
55552
55553         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
55554         Needed when ELEMENT is #defined to 'some_type *'.
55555
55556 2008-02-10  Jim Meyering  <meyering@redhat.com>
55557
55558         New script and module: useless-if-before-free
55559         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
55560         * build-aux/useless-if-before-free: New file.
55561         * modules/useless-if-before-free: New file.
55562
55563         * build-aux/gitlog-to-changelog: Use committer date, not author date.
55564
55565         xstrtol_error: Fix typo.
55566         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
55567         s/exit_failure/exit_status/.
55568
55569 2008-02-09  Jim Meyering  <meyering@redhat.com>
55570
55571         New script and module: gitlog-to-changelog
55572         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
55573         * modules/gitlog-to-changelog: New file.
55574         * build-aux/gitlog-to-changelog: New file.
55575
55576 2008-02-08  Jim Meyering  <meyering@redhat.com>
55577
55578         Avoid two "parameter unused" warnings.
55579         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
55580         Mark "st" as used.
55581
55582         Use "git COMMAND", not "git-COMMAND".
55583         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
55584         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
55585         * build-aux/git-version-gen: Use "git status", not "git-status".
55586
55587 2008-02-07  Bruno Haible  <bruno@clisp.org>
55588
55589         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
55590         Avoids a crash on Windows Vista.
55591         Reported by Adam Strzelecki <ono@java.pl> via
55592         Simon Josefsson <simon@josefsson.org>.
55593
55594 2008-02-06  Bruno Haible  <bruno@clisp.org>
55595
55596         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
55597         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
55598         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
55599         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
55600         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55601         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55602         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
55603         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
55604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55607         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55608         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55609         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55611         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
55612         left-adjust flag.
55613         * tests/test-snprintf-posix.h (test_function): Likewise.
55614         * tests/test-sprintf-posix.h (test_function): Likewise.
55615         * tests/test-vasprintf-posix.c (test_function): Likewise.
55616         * doc/posix-functions/fprintf.texi: Update.
55617         * doc/posix-functions/printf.texi: Update.
55618         * doc/posix-functions/snprintf.texi: Update.
55619         * doc/posix-functions/sprintf.texi: Update.
55620         * doc/posix-functions/vfprintf.texi: Update.
55621         * doc/posix-functions/vprintf.texi: Update.
55622         * doc/posix-functions/vsnprintf.texi: Update.
55623         * doc/posix-functions/vsprintf.texi: Update.
55624         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55625
55626 2008-02-06  Bruno Haible  <bruno@clisp.org>
55627
55628         Fix bug introduced on 2008-01-26.
55629         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
55630
55631 2008-02-06  Bruno Haible  <bruno@clisp.org>
55632
55633         Fix bug introduced on 2007-06-10.
55634         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
55635         !NEED_PRINTF_FLAG_ZERO.
55636
55637 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
55638
55639         getloadavg: use libperfstat on AIX5
55640         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
55641
55642 2008-02-03  Bruno Haible  <bruno@clisp.org>
55643
55644         * lib/diffseq.h: Add comments about required #includes.
55645         Reported by Michael Biggs <gnulib@doubleplum.net>.
55646
55647 2008-02-01  Bruno Haible  <bruno@clisp.org>
55648
55649         * users.txt: Add gnuit.
55650
55651 2008-01-31  Bruno Haible  <bruno@clisp.org>
55652
55653         * lib/md4.c (set_uint32): Mark as inline.
55654         * lib/md5.c (set_uint32): Likewise.
55655         * lib/sha1.c (set_uint32): Likewise.
55656         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
55657         * m4/md5.m4 (gl_MD5): Likewise.
55658         * m4/sha1.m4 (gl_SHA1): Likewise.
55659
55660 2008-01-31  Jim Meyering  <meyering@redhat.com>
55661
55662         Use "sizeof VAR", rather than a literal "4".
55663         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
55664         * lib/md4.c (md4_read_ctx): Likewise.
55665         * lib/sha1.c (sha1_read_ctx): Likewise.
55666
55667 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55668
55669         * tests/test-sha1.c: New file, based on test-md5.c.
55670
55671         * modules/crypto/sha1-tests: New file.
55672
55673 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55674
55675         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
55676
55677 2008-01-31  Jim Meyering  <meyering@redhat.com>
55678
55679         Prefer "sizeof v" over the equivalent "4".
55680         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
55681         * lib/md5.c (set_uint32): Likewise.
55682         * lib/sha1.c (set_uint32): Likewise.
55683
55684 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55685
55686         * lib/sha1.c (set_uint32): Mark function as static.
55687
55688 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55689
55690         md2: clarify comments to say that alignment is not required.
55691         * lib/md2.h: Remove warning about alignment in comment.
55692         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
55693         never been required.
55694
55695 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55696
55697         md4: adapt alignment constraint fix from sha1.
55698         * lib/md4.c (set_uint32): New function, from sha1.c
55699         (md4_read_ctx): Use it.
55700         (md4_finish_ctx): Doc fix.
55701         * lib/md4.h: Doc fix.
55702
55703 2008-01-31  Simon Josefsson  <simon@josefsson.org>
55704
55705         md5: adapt alignment constraint fix from sha1.
55706         * lib/md5.c (set_uint32): New function, from sha1.c
55707         (md5_read_ctx): Use it.
55708         (md5_finish_ctx): Doc fix.
55709         * lib/md5.h: Doc fix.
55710
55711 2008-01-30  Peter Palfrader  <weasel@debian.org>
55712
55713         sha1: remove the result buffer alignment constraint
55714         * lib/sha1.c (set_uint32): New function.
55715         (sha1_read_ctx): Rewrite to remove the result buffer alignment
55716         constraint.
55717         (sha1_finish_ctx): Remove comment warning about alignment constraint.
55718         * lib/sha1.h: Likewise.
55719
55720 2008-01-30  Andreas Schwab  <schwab@suse.de>
55721             Bruno Haible  <bruno@clisp.org>
55722
55723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
55724         correct definition of LDBL_MIN_EXP.
55725
55726 2008-01-30  Karl Berry  <karl@gnu.org>
55727
55728         * config/srclist-update: try to preserve x bit on updates.
55729         * config/srclistvars.sh: update for karl.
55730
55731 2008-01-29  Jim Meyering  <meyering@redhat.com>
55732
55733         vasnprintf.c: Avoid warning about unused label
55734         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
55735         "overflow" label definition and associated code with the
55736         same cpp condition that guards the sole use of that label.
55737
55738 2008-01-26  Bruno Haible  <bruno@clisp.org>
55739
55740         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
55741         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
55742         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
55743         * lib/isnanl-nolibm.h (isnanl): Likewise.
55744         Reported by Paul Eggert <eggert@cs.ucla.edu>.
55745
55746 2008-01-26  Bruno Haible  <bruno@clisp.org>
55747
55748         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
55749         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
55750
55751 2008-01-26  Bruno Haible  <bruno@clisp.org>
55752
55753         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
55754         GCC >= 4.0 built-in.
55755         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
55756
55757 2008-01-26  Bruno Haible  <bruno@clisp.org>
55758
55759         Rename isnan, applicable to 'double' only, to isnand.
55760         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
55761         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
55762         (configure.ac): Update.
55763         (Include): Replace "isnan.h" with "isnand.h".
55764         * m4/isnand.m4: Renamed from m4/isnan.m4.
55765         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
55766         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
55767         instead of isnan.c.
55768         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
55769         instead of HAVE_ISNAN_IN_LIBC.
55770         (isnand): Renamed from isnan.
55771         * lib/isnand.c: New file.
55772         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
55773         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
55774         (Makefile.am): Update.
55775         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
55776         Include isnand.h instead of isnan.h.
55777         (main): Test isnand instead of isnan.
55778         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
55779         isnan-nolibm.
55780         * modules/frexp (Depends-on): Likewise.
55781         * modules/frexp-tests (Depends-on): Likewise.
55782         * modules/frexp-nolibm (Depends-on): Likewise.
55783         * modules/frexp-nolibm-tests (Depends-on): Likewise.
55784         * modules/isfinite (Depends-on): Likewise.
55785         * modules/round-tests (Depends-on): Likewise.
55786         * modules/signbit (Depends-on): Likewise.
55787         * modules/signbit-tests (Depends-on): Likewise.
55788         * modules/snprintf-posix (Depends-on): Likewise.
55789         * modules/sprintf-posix (Depends-on): Likewise.
55790         * modules/trunc-tests (Depends-on): Likewise.
55791         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55792         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55793         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55794         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55795         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55796         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55797         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55798         * modules/vasnprintf-posix (Depends-on): Likewise.
55799         * modules/vasprintf-posix (Depends-on): Likewise.
55800         * modules/vfprintf-posix (Depends-on): Likewise.
55801         * modules/vsnprintf-posix (Depends-on): Likewise.
55802         * modules/vsprintf-posix (Depends-on): Likewise.
55803         * lib/frexp.c: Include isnand.h instead of isnan.h.
55804         (ISNAN): Set to isnand instead of isnan.
55805         * lib/isfinite.c: Include isnand.h instead of isnan.h.
55806         (gl_isfinited): Use isnand instead of isnan.
55807         * lib/signbitd.c: Include isnand.h instead of isnan.h.
55808         (gl_signbitd): Use isnand instead of isnan.
55809         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
55810         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
55811         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
55812         (main): Use isnand instead of isnan.
55813         * tests/test-round1.c: Include isnand.h.
55814         (main): Use isnand instead of isnan.
55815         * tests/test-round2.c: Include isnand.h instead of isnan.h.
55816         (ISNAN): Set to isnand instead of isnan.
55817         * tests/test-trunc1.c: Include isnand.h.
55818         (main): Use isnand instead of isnan.
55819         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
55820         (equal): Use isnand instead of isnan.
55821         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
55822         isnand-nolibm.
55823         * NEWS: Mention the change.
55824
55825 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55826             Bruno Haible  <bruno@clisp.org>
55827
55828         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
55829         the GCC builtins for signbits are present and set
55830         REPLACE_SIGNBIT_USING_GCC if so.
55831         * lib/math.in.h (signbit): Define using GCC builtins if
55832         REPLACE_SIGNBIT_USING_GCC is set.
55833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
55834         REPLACE_SIGNBIT_USING_GCC.
55835         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
55836
55837 2008-01-25  Jim Meyering  <meyering@redhat.com>
55838
55839         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
55840         * lib/poll.c: Include <config.h>, not "config.h".
55841         * tests/test-getaddrinfo.c: Likewise.
55842
55843 2008-01-25  Simon Josefsson  <simon@josefsson.org>
55844
55845         * modules/sockets-tests: New file.
55846
55847 2008-01-24  Simon Josefsson  <simon@josefsson.org>
55848
55849         * modules/sockets: New module, can be used to call WSA_Startup and
55850         WSA_Cleanup when needed.
55851
55852         * lib/sockets.h, lib/sockets.c: New files.
55853
55854         * m4/sockets.m4: New file.
55855
55856         * tests/test-sockets.c: New file.
55857
55858 2008-01-19  Bruno Haible  <bruno@clisp.org>
55859
55860         * doc/posix-headers: Renamed from doc/headers.
55861         * doc/posix-functions: Renamed from doc/functions.
55862         * doc/gnulib.texi: Update.
55863
55864 2008-01-19  Bruno Haible  <bruno@clisp.org>
55865
55866         * doc/glibc-functions/strcasestr.texi: Include contents of
55867         doc/functions/strcasestr.texi, fixing the list of platforms.
55868         * doc/functions/strcasestr.texi: Remove file.
55869
55870 2008-01-19  Bruno Haible  <bruno@clisp.org>
55871
55872         * doc/glibc-functions/memmem.texi: Include contents of
55873         doc/functions/memmem.texi.
55874         * doc/functions/memmem.texi: Remove file.
55875
55876 2008-01-18  Bruno Haible  <bruno@clisp.org>
55877
55878         * doc/glibc-functions/*.texi: New files.
55879         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
55880         to use the new files.
55881
55882 2008-01-17  Bruno Haible  <bruno@clisp.org>
55883
55884         * tests/test-gethostname.c (main): Fix printf statement.
55885
55886 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55887
55888         * modules/gethostname-tests: New file.
55889
55890         * tests/test-gethostname.c: New file.
55891
55892 2008-01-17  Simon Josefsson  <simon@josefsson.org>
55893
55894         * lib/gethostname.c: Include string.h unconditionally, strncpy is
55895         used by the UNAME case.  Reported by Bruno Haible
55896         <bruno@clisp.org>.
55897
55898 2008-01-17  Eric Blake  <ebb9@byu.net>
55899
55900         Convert c-strcasestr to be more efficient.
55901         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
55902         (Depends-on): Add c-strcase, remove malloca, strnlen.
55903         * tests/test-c-strcasestr.c (main): Enhance test.
55904         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
55905
55906 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55907
55908         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
55909         Use it in creating po/Makevars.
55910
55911 2008-01-15  Simon Josefsson  <simon@josefsson.org>
55912
55913         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
55914         Applications that requires it should initialize libgcrypt
55915         manually.
55916
55917 2008-01-16  Simon Josefsson  <simon@josefsson.org>
55918
55919         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
55920
55921 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
55922
55923         Fix problem with getdate on mingw32 reported by Simon Josefsson
55924         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
55925         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
55926         tzname", when deciding whether to declare tzname.
55927         * lib/strftime.c (tzname): Likewise.
55928
55929 2008-01-15  Bruno Haible  <bruno@clisp.org>
55930
55931         Work around a MacOS X 10.5 bug in frexpl().
55932         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
55933         * doc/functions/frexpl.texi: Document the bug.
55934         Reported by Elias Pipping <pipping@gentoo.org>.
55935
55936 2008-01-14  Eric Blake  <ebb9@byu.net>
55937
55938         Touch up previous patch.
55939         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
55940         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
55941
55942         Convert strcasestr module to use Two-Way algorithm.
55943         * modules/strcasestr-simple: New module, based on the old
55944         strcasestr, but with Two-Way rather than KMP.
55945         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
55946         * lib/string.in.h (rpl_strcasestr): Declare.
55947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
55948         performance.
55949         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
55950         * modules/string (Makefile.am): Support strcasestr.
55951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
55952         * modules/strcasestr-tests (Depends-on): Check for alarm.
55953         * tests/test-strcasestr.c: Augment test.
55954         * lib/str-two-way.h: Clean up stray macro.
55955         * NEWS: Document new module.
55956         * MODULES.html.sh (string handling): Likewise.
55957         * doc/functions/strcasestr.texi: New file.
55958         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
55959         here, since it is not a POSIX function.
55960
55961 2008-01-14  Colin Watson  <cjwatson@debian.org>
55962             Bruno Haible  <bruno@clisp.org>
55963
55964         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
55965         works fine; if not, set REPLACE_STRSIGNAL.
55966         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
55967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55968         REPLACE_STRSIGNAL.
55969         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
55970         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
55971         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
55972
55973 2008-01-14  Bruno Haible  <bruno@clisp.org>
55974
55975         * modules/strsignal (Include): Change to <string.h>.
55976
55977 2008-01-14  Colin Watson  <cjwatson@debian.org>
55978
55979         * modules/argp (Notice): Add a notice recommending to change
55980         XGETTEXT_OPTIONS.
55981         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
55982
55983 2008-01-13  Colin Watson  <cjwatson@debian.org>
55984
55985         * modules/strsignal-tests: New file.
55986         * tests/test-strsignal.c: New file.
55987
55988         * lib/strsignal.c: New file, from glibc with modifications.
55989         * lib/siglist.h: New file, from glibc with modifications.
55990         * lib/string.in.h (strsignal): New declaration.
55991         * m4/strsignal.m4: New file.
55992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55993         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
55994         * modules/strsignal: New file.
55995         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
55996         HAVE_DECL_STRSIGNAL.
55997
55998 2008-01-13  Bruno Haible  <bruno@clisp.org>
55999
56000         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
56001         locale encoding is not ASCII. Needed for OpenBSD 4.0.
56002         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56003         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56004
56005 2008-01-13  Bruno Haible  <bruno@clisp.org>
56006
56007         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
56008         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
56009         * lib/argp.h (__attribute__): Likewise.
56010         * lib/c-stack.c (__attribute__): Likewise.
56011         * lib/error.h (__attribute__): Likewise.
56012         * lib/fts.c (__attribute__): Likewise.
56013         * lib/openat.h (__attribute__): Likewise.
56014         * lib/stdio.in.h (__attribute__): Likewise.
56015         * lib/string.in.h (__attribute__): Likewise.
56016         * lib/utimens.c (__attribute__): Likewise.
56017         * lib/vasnprintf.h (__attribute__): Likewise.
56018         * lib/xalloc.h (__attribute__): Likewise.
56019         * lib/xprintf.h (__attribute__): Likewise.
56020         * lib/xstrtol.h (__attribute__): Likewise.
56021         * lib/xvasprintf.h (__attribute__): Likewise.
56022
56023 2008-01-12  Bruno Haible  <bruno@clisp.org>
56024
56025         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
56026         * doc/glibc-headers/a.out.texi: New file.
56027         * doc/glibc-headers/aliases.texi: New file.
56028         * doc/glibc-headers/alloca.texi: New file.
56029         * doc/glibc-headers/ar.texi: New file.
56030         * doc/glibc-headers/argp.texi: New file.
56031         * doc/glibc-headers/argz.texi: New file.
56032         * doc/glibc-headers/byteswap.texi: New file.
56033         * doc/glibc-headers/crypt.texi: New file.
56034         * doc/glibc-headers/endian.texi: New file.
56035         * doc/glibc-headers/envz.texi: New file.
56036         * doc/glibc-headers/err.texi: New file.
56037         * doc/glibc-headers/error.texi: New file.
56038         * doc/glibc-headers/execinfo.texi: New file.
56039         * doc/glibc-headers/fpu_control.texi: New file.
56040         * doc/glibc-headers/fstab.texi: New file.
56041         * doc/glibc-headers/fts.texi: New file.
56042         * doc/glibc-headers/getopt.texi: New file.
56043         * doc/glibc-headers/ieee754.texi: New file.
56044         * doc/glibc-headers/ifaddrs.texi: New file.
56045         * doc/glibc-headers/libintl.texi: New file.
56046         * doc/glibc-headers/mcheck.texi: New file.
56047         * doc/glibc-headers/mntent.texi: New file.
56048         * doc/glibc-headers/obstack.texi: New file.
56049         * doc/glibc-headers/paths.texi: New file.
56050         * doc/glibc-headers/printf.texi: New file.
56051         * doc/glibc-headers/pty.texi: New file.
56052         * doc/glibc-headers/resolv.texi: New file.
56053         * doc/glibc-headers/shadow.texi: New file.
56054         * doc/glibc-headers/sysexits.texi: New file.
56055         * doc/glibc-headers/ttyent.texi: New file.
56056
56057 2008-01-12  Jim Meyering  <meyering@redhat.com>
56058
56059         announce-gen: emit Gnulib's git-based version string.
56060         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
56061         New option --gnulib-version=V, where V is expected to be
56062         the output of running git describe in the gnulib directory.
56063         (get_tool_versions): Request feedback on xdelta.  I suspect it's
56064         not useful, and plan to stop publishing an xdelta file with each
56065         coreutils release.
56066
56067         * build-aux/announce-gen: Also check for lzma-compressed files.
56068
56069 2008-01-11  Bruno Haible  <bruno@clisp.org>
56070
56071         * tests/test-memmem.c (main): Increase maximum allowed time.
56072         * tests/test-strstr.c (main): Likewise.
56073
56074 2008-01-11  Bruno Haible  <bruno@clisp.org>
56075
56076         * doc/functions/memmem.texi: Add more precisions about platforms.
56077         * doc/functions/strstr.texi: Likewise.
56078
56079 2008-01-10  Eric Blake  <ebb9@byu.net>
56080
56081         * m4/strstr.m4: Delete cruft from copy-n-paste.
56082         Reported by Bruno Haible.
56083
56084 2008-01-10  Bruno Haible  <bruno@clisp.org>
56085
56086         Make c-strstr rely on strstr.
56087         * lib/c-strstr.c: Don't include str-kmp.h.
56088         (c_strstr): Define in terms of strstr.
56089         * modules/c-strstr (Files): Remove lib/str-kmp.h.
56090         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
56091
56092 2008-01-10  Bruno Haible  <bruno@clisp.org>
56093
56094         * doc/gnulib.texi (String Functions in C Locale): New section.
56095         * doc/c-ctype.texi: New file.
56096         * doc/c-strcase.texi: New file.
56097         * doc/c-strcaseeq.texi: New file.
56098         * doc/c-strcasestr.texi: New file.
56099         * doc/c-strstr.texi: New file.
56100         * doc/c-strtod.texi: New file.
56101         * doc/c-strtold.texi: New file.
56102
56103 2008-01-10  Eric Blake  <ebb9@byu.net>
56104
56105         * lib/relocatable.h: Fix a comment.
56106
56107 2008-01-10  Eric Blake  <ebb9@byu.net>
56108
56109         Share two-way algorithm.
56110         * lib/str-two-way.h: New file, merged from...
56111         * lib/memmem.c: ...here...
56112         * lib/strstr.c: ...and here.
56113         * modules/memmem (Files): Use it.
56114         * modules/strstr (Files): Likewise.
56115
56116         Avoid quadratic strstr implementations.
56117         * lib/strstr.c: New file.
56118         * m4/strstr.m4: Likewise.
56119         * modules/strstr: Likewise.
56120         * modules/strstr-tests: Likewise.
56121         * tests/test-strstr.c: Likewise.
56122         * lib/string.in.h (rpl_strstr): Declare.
56123         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
56124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
56125         * modules/string (Makefile.am): Likewise.
56126         * MODULES.html.sh (string handling): Mention new module.
56127         * doc/functions/strstr.texi (strstr): Document the bug.
56128
56129 2008-01-10  Bruno Haible  <bruno@clisp.org>
56130
56131         * lib/relocatable.h (relocate): State whether result is freshly
56132         allocated or not.
56133         * lib/relocatable.c (relocate): Return a freshly allocated string
56134         instead of a pointer to a privately held string.
56135         Reported by Sylvain Beucler <beuc@gnu.org>.
56136
56137 2008-01-10  Colin Watson  <cjwatson@debian.org>
56138
56139         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
56140         s/S_ISNLK/S_ISLNK/.
56141
56142 2008-01-09  Bruno Haible  <bruno@clisp.org>
56143
56144         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
56145         and other files.
56146         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
56147         if it's only a guess.
56148         * modules/memmem: Simplify by depending on memmem-simple.
56149
56150 2008-01-09  Bruno Haible  <bruno@clisp.org>
56151
56152         Work around OpenBSD 4.0 tdelete() bug.
56153         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
56154         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
56155         macros and don't redefine the enum values.
56156         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
56157         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
56158         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
56159
56160 2008-01-09  Bruno Haible  <bruno@clisp.org>
56161
56162         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
56163         (main): Don't perform the tests if setlocale did not install a UTF-8
56164         locale. Needed on OpenBSD 4.0.
56165         * modules/wcwidth-tests (Depends-on): Add localcharset.
56166
56167 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56168
56169         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
56170         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
56171         * NEWS: announce this.
56172         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
56173
56174 2008-01-09  Simon Josefsson  <simon@josefsson.org>
56175         and Eric Blake  <ebb9@byu.net>
56176
56177         Add memmem-simple module.
56178         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
56179         (gl_FUNC_MEMMEM): Separate performance from presence checks.
56180         * modules/memmem-simple: New file.
56181         * modules/memmem (Description): Tweak.
56182         * MODULES.html.sh (string handling): Mention new module.
56183         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
56184         addressed by memmem-simple.
56185         * NEWS: Document the difference.
56186
56187 2008-01-09  Eric Blake  <ebb9@byu.net>
56188
56189         Give gcc some memmem optimization hints.
56190         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
56191         (strcasestr): Declare as pure.
56192         * modules/memmem (Maintainer): Claim my implementation.
56193
56194 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56195
56196         Support AIX 6.1 and higher.
56197         * build-aux/config.libpath: Likewise.
56198         * build-aux/config.rpath: Likewise.
56199
56200 2008-01-08  Jim Meyering  <meyering@redhat.com>
56201             Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
56204         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
56205         Reported by Peter Fales in
56206         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
56207
56208 2008-01-08  Bruno Haible  <bruno@clisp.org>
56209
56210         * modules/unictype/category-of (Depends-on): Add
56211         unictype/category-none.
56212         * modules/unictype/category-and-tests (Depends-on): Add
56213         unictype/category-{L,N,Lu,Nd}.
56214         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
56215         * modules/unictype/category-or-tests (Depends-on): Add
56216         unictype/category-{L,N}.
56217         * modules/unictype/category-name-tests (Depends-on): Add
56218         unictype/category-{Z,Nl}.
56219         Reported by Simon Josefsson.
56220
56221 2008-01-08  Bruno Haible  <bruno@clisp.org>
56222
56223         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
56224         convention better.
56225         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
56226         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
56227         Reported by Peter Miller <millerp@canb.auug.org.au>.
56228
56229 2008-01-08  Eric Blake  <ebb9@byu.net>
56230
56231         Rewrite memmem to guarantee linear complexity without malloc.
56232         * lib/memmem.c (memmem): Use Two-Way rather than
56233         Knuth-Morris-Pratt, to allow O(1) space usage.
56234         (critical_factorization, two_way_short_needle)
56235         (two_way_long_needle): New functions.
56236         (knuth_morris_pratt): Delete.
56237         * modules/memmem (Depends-on): No longer need malloca or stdbool.
56238         Add stdint.
56239         * tests/test-memmem.c (main): Add tests for periodic needle and
56240         sublinear performance.
56241         * doc/functions/memmem.texi (memmem): Document other deficiencies
56242         in cygwin and older glibc.
56243
56244 2008-01-08  Bruno Haible  <bruno@clisp.org>
56245
56246         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
56247         augmentation.
56248
56249 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
56250
56251         Add a configure time option: --disable-acl.
56252         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
56253         AC_ARG_ENABLE(acl).
56254
56255 2008-01-06  Simon Josefsson  <simon@josefsson.org>
56256
56257         * tests/test-localename.c: Don't include obsolete "setenv.h".
56258
56259         * modules/localename-tests (Depends-on): Need unsetenv.
56260
56261 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56262
56263         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
56264
56265 2008-01-06  Colin Watson  <cjwatson@debian.org>
56266
56267         * users.txt: Add man-db.
56268
56269 2008-01-07  Bruno Haible  <bruno@clisp.org>
56270
56271         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
56272         previous section name.
56273
56274 2008-01-07  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/progname.c (set_program_name): Don't strip off a leading
56277         "lt-" prefix outside a .libs directory.
56278         Suggested by Paul Eggert.
56279
56280 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
56281             Bruno Haible  <bruno@clisp.org>
56282
56283         Improve memory cleanup in 'relocatable' module.
56284         * lib/relocatable.h (compute_curr_prefix): Change return type to
56285         'char *'.
56286         * lib/relocatable.c (compute_curr_prefix): Change return type to
56287         'char *'. Free curr_installdir after use.
56288         (relocate): Free curr_prefix_better after use.
56289         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
56290
56291 2008-01-01  Bruno Haible  <bruno@clisp.org>
56292
56293         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
56294         failure on older glibc systems.
56295         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56296
56297 2008-01-05  Eric Blake  <ebb9@byu.net>
56298
56299         Avoid quadratic system memmem.
56300         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
56301         Reported by Ralf Wildenhues.
56302
56303         Fix memmem test for mingw.
56304         * modules/memmem-tests (configure.ac): Check for alarm.
56305         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
56306         it.
56307         * doc/functions/memmem.texi: New file.
56308         * doc/gnulib.texi (Function Substitutes): Add memmem.
56309         Reported by Bruno Haible.
56310
56311 2008-01-04  Bruno Haible  <bruno@clisp.org>
56312
56313         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
56314         Require gl_HEADER_STRINGS_H_DEFAULTS, not
56315         gl_HEADER_STRING_H_DEFAULTS.
56316
56317 2008-01-04  Eric Blake  <ebb9@byu.net>
56318
56319         Shorten duration of memmem test.
56320         * tests/test-memmem.c (main): Use alarm to declare failure if test
56321         is taking too long.
56322         Reported by Ralf Wildenhues.
56323
56324 2007-12-21  Simon Josefsson  <simon@josefsson.org>
56325
56326         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
56327         string, needed by strerror.
56328
56329 2008-01-03  Colin Watson  <cjwatson@debian.org>
56330             Bruno Haible  <bruno@clisp.org>
56331
56332         * doc/gnulib-tool.texi (Localization): New section.
56333
56334 2008-01-02  Bruno Haible  <bruno@clisp.org>
56335
56336         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
56337         variables to 'unsigned char *' type.
56338         Reported by Paul Eggert.
56339
56340 2008-01-02  Jim Meyering  <jim@meyering.net>
56341
56342         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
56343
56344 2007-12-31  Jim Meyering  <jim@meyering.net>
56345
56346         Avoid use of private FTS type name.
56347         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
56348
56349 2007-12-30  Karl Berry  <karl@gnu.org>
56350
56351         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
56352         work around defect in Texinfo and/or the standalone Info browser.
56353
56354 2007-12-30  Bruno Haible  <bruno@clisp.org>
56355
56356         Unify 5 copies of the KMP code.
56357         * lib/str-kmp.h: New file.
56358         * lib/c-strcasestr.c: Include str-kmp.h.
56359         (knuth_morris_pratt): Remove function.
56360         (c_strcasestr): Update.
56361         * lib/c-strstr.c: Include str-kmp.h.
56362         (knuth_morris_pratt): Remove function.
56363         (c_strcasestr): Update.
56364         * lib/mbscasestr.c: Include str-kmp.h.
56365         (knuth_morris_pratt_unibyte): Remove function.
56366         * lib/mbsstr.c: Include str-kmp.h.
56367         (knuth_morris_pratt_unibyte): Remove function.
56368         * lib/strcasestr.c: Include str-kmp.h.
56369         (knuth_morris_pratt): Remove function.
56370         (strcasestr): Update.
56371         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
56372         * modules/c-strstr (Files): Likewise.
56373         * modules/mbscasestr (Files): Likewise.
56374         * modules/mbsstr (Files): Likewise.
56375         * modules/strcasestr (Files): Likewise.
56376         Suggested by Paul Eggert.
56377
56378 2007-12-30  Bruno Haible  <bruno@clisp.org>
56379
56380         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
56381         defined.
56382
56383 2007-12-30  Bruno Haible  <bruno@clisp.org>
56384
56385         * lib/xmalloca.h: Include xalloc.h.
56386         (xnmalloca): New macro.
56387
56388 2007-12-30  Bruno Haible  <bruno@clisp.org>
56389
56390         * lib/malloca.h (nmalloca): New macro.
56391         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
56392         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
56393         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
56394         knuth_morris_pratt_multibyte): Likewise.
56395         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
56396         knuth_morris_pratt_multibyte): Likewise.
56397         * lib/memmem.c (knuth_morris_pratt): Likewise.
56398         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
56399
56400 2007-12-25  Bruno Haible  <bruno@clisp.org>
56401
56402         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
56403         * lib/glob.c: Don't include openat.h.
56404         (link_exists2_p): Add back the code that deals with the
56405         !GLOB_ALTDIRFUNC case.
56406         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
56407         let it do the filename concatenation.
56408         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
56409         * modules/glob (Depends-on): Remove openat.
56410
56411 2007-12-31  Bruno Haible  <bruno@clisp.org>
56412
56413         * modules/dirfd (License): Change to LGPLv2+.
56414         Approved by Jim Meyering.
56415
56416 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56417
56418         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
56419         when multiplying M by sizeof (size_t).
56420
56421 2007-12-10  Martin Lambers  <marlam@marlam.de>
56422
56423         Override getpagesize on mingw.
56424         * lib/getpagesize.c: New file.
56425         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
56426         * modules/getpagesize (Files): Add lib/getpagesize.c.
56427         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
56428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56429         REPLACE_GETPAGESIZE.
56430         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
56431
56432 2007-12-25  Bruno Haible  <bruno@clisp.org>
56433
56434         * modules/localcharset (Notice): New field.
56435         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
56436         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56437
56438 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56439             Bruno Haible  <bruno@clisp.org>
56440
56441         Avoid using the syntax symbol() in formatted documentation.
56442         * MODULES.html.sh (func_module): When replacing symbol() with a
56443         hyperlink, remove the parentheses. Show an error if some remain.
56444         Recognize and render the '...' syntax.
56445         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
56446         Rework. Add paragraph about GCC's inlining.
56447         * doc/alloca.texi: Likewise.
56448         * doc/error.texi: Remove parentheses from symbol reference.
56449         * doc/gnulib-intro.texi: Likewise.
56450         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
56451         * modules/fnmatch (Description): Reword to say "the ... function".
56452         * modules/full-read (Description): Likewise.
56453         * modules/full-write (Description): Likewise.
56454         * modules/safe-read (Description): Likewise.
56455         * modules/safe-write (Description): Likewise.
56456         * modules/strchrnul (Description): Likewise.
56457         * modules/trim (Description): Likewise.
56458         * modules/error (Description): Remove parentheses from symbol
56459         references.
56460         * modules/verror (Description): Likewise.
56461         Reported by Karl Berry.
56462
56463 2007-12-25  Bruno Haible  <bruno@clisp.org>
56464
56465         Fixup after 2007-10-16 commit.
56466         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
56467
56468 2007-12-24  Bruno Haible  <bruno@clisp.org>
56469
56470         Make --enable-relocatable work with DESTDIR.
56471         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
56472         to compute installdir from destprog.
56473         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
56474         also set the RELOC_DESTDIR variable.
56475         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
56476
56477 2007-12-24  Bruno Haible  <bruno@clisp.org>
56478
56479         Fix link error due to xalloc_die().
56480         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
56481         of xreadlink.
56482         * lib/relocwrapper.c: Update comments.
56483         * build-aux/install-reloc: Remove xreadlink.c from file list.
56484         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
56485         xreadlink.c.
56486         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
56487
56488 2007-12-24  Bruno Haible  <bruno@clisp.org>
56489
56490         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
56491         * lib/setenv.h: Remove file.
56492         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
56493         lib/setenv.h.
56494         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
56495         (Depends-on): Add stdlib.
56496         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
56497         gl_FUNC_UNSETENV.
56498         (Include): Replace setenv.h with <stdlib.h>.
56499         * modules/unsetenv: New file.
56500         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
56501         * lib/unsetenv.c: Include <stdlib.h> first.
56502         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
56503         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
56504         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
56505         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
56506         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
56507         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
56508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
56509         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
56510         * doc/functions/unsetenv.texi: Update.
56511         * modules/xsetenv (Depends-on): Add unsetenv.
56512         * modules/getdate (Depends-on): Likewise.
56513         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
56514         * lib/xsetenv.c: Don't include setenv.h.
56515         * lib/getdate.y: Likewise.
56516         * lib/relocwrapper.c: Likewise.
56517         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
56518         (Depends-on): Add stdlib.
56519         * NEWS: Mention the changes.
56520         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
56521
56522 2007-12-23  Bruno Haible  <bruno@clisp.org>
56523
56524         * lib/memmem.c (memmem): Use lowercase variable names. Tab
56525         indentation.
56526
56527 2007-12-23  Bruno Haible  <bruno@clisp.org>
56528
56529         * lib/c-strcasestr.c: Add more comments.
56530         * lib/c-strstr.c: Likewise.
56531         * lib/mbscasestr.c: Likewise.
56532         * lib/mbsstr.c: Likewise.
56533         * lib/strcasestr.c: Likewise.
56534         * lib/memmem.c: Likewise.
56535
56536 2007-12-23  Bruno Haible  <bruno@clisp.org>
56537
56538         * tests/test-memmem.c: Include <string.h> first.
56539
56540 2007-12-22  Bruno Haible  <bruno@clisp.org>
56541
56542         * gnulib-tool (func_create_testdir): Change $auxdir while generating
56543         the contents of $testsbase.
56544         Reported by Ralf Wildenhues.
56545
56546 2007-12-22  Bruno Haible  <bruno@clisp.org>
56547
56548         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
56549         two variables local_ldadd_before, local_ldadd_last.
56550
56551 2007-12-20  Eric Blake  <ebb9@byu.net>
56552
56553         Work around circular library issue when cross-compiling.
56554         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
56555         that progname.o does not need to pull in rpl_memcmp.
56556
56557 2007-12-19  Eric Blake  <ebb9@byu.net>
56558
56559         Fix memmem to avoid O(n^2) worst-case complexity.
56560         * lib/memmem.c (knuth_morris_pratt): New function.
56561         (memmem): Use it if first few naive iterations fail.
56562         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
56563         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
56564         * modules/memchr (License): Likewise.
56565         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
56566         malloca.
56567         * tests/test-memmem.c: Rewrite, borrowing ideas from
56568         test-mbsstr1.c; the old version wouldn't even compile!
56569         * modules/memmem-tests: New file.
56570         * lib/string.in.h (rpl_memmem): Add declaration.
56571         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
56572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
56573         REPLACE_MEMMEM.
56574
56575 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56576
56577         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
56578         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
56579         before any system include files, and undef after them all.  This
56580         should fix a problem on VMS reported by John E. Malmberg in
56581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
56582
56583 2007-12-17  Eric Blake  <ebb9@byu.net>
56584
56585         Revert addition of verify, for BSD/OS.
56586         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
56587         can't handle large files, for the sake of obsolete platforms.
56588         * modules/fseeko (Depends-on): Remove verify.
56589         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
56590         * doc/functions/ftello.texi (ftello): Likewise.
56591         * doc/functions/fgetpos.texi (fgetpos): Likewise.
56592         Reported by Larry Jones.
56593
56594 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
56595
56596         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
56597         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
56598
56599 2007-12-17  Jim Meyering  <meyering@redhat.com>
56600
56601         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
56602         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
56603         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
56604         * modules/getcwd (Depends-on): Add openat.
56605         Reported by Petr Salinger.
56606
56607 2007-12-17  Bruno Haible  <bruno@clisp.org>
56608
56609         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
56610         avoid a segmentation fault of the configure test on x86_64 systems.
56611
56612 2007-12-15  Jim Meyering  <meyering@redhat.com>
56613
56614         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
56615
56616 2007-12-13  Eric Blake  <ebb9@byu.net>
56617
56618         Another fseek test.
56619         * tests/test-fseek.c (main): Also test ungetc handling.
56620         * tests/test-fseeko.c (main): Likewise.
56621         * modules/fseeko (Depends-on): Add verify.
56622         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
56623         large.
56624         Reported by Larry Jones.
56625
56626         Fix fseeko on mingw.
56627         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
56628         seek.
56629
56630         Beef up fseek tests.
56631         * tests/test-fseek.c (main): Also test eof handling.
56632         * tests/test-fseeko.c (main): Likewise.
56633         Reported by Larry Jones.
56634
56635 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
56636
56637         Fix fseeko on BSD-based platforms.
56638         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
56639         successful seek.
56640
56641 2007-12-12  Eric Blake  <ebb9@byu.net>
56642
56643         Allow circular dependency of separate libtests.a
56644         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
56645         when use_libtests.
56646
56647 2007-12-11  Eric Blake  <ebb9@byu.net>
56648
56649         Fix bug with -0.0L in previous patch.
56650         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
56651         * tests/test-isnan.c (main): Also test on zeroes.
56652         * tests/test-isnanf.c (main): Likewise.
56653         * tests/test-isnanl.h (main): Likewise.
56654
56655         Detect pseudo-denormals on x86 even when cross-compiling.
56656         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
56657         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
56658         invalid bit patterns that happen to satisfy ==.
56659
56660         Avoid link failures with separate libtests.a.
56661         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
56662         last, to satisfy circular dependencies.
56663
56664 2007-12-11  Eric Blake  <ebb9@byu.net>
56665         and Bruno Haible  <bruno@clisp.org>
56666
56667         Fix OpenBSD 4.0 <float.h> handling of long double.
56668         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
56669         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
56670         * doc/headers/float.texi (float.h): Document OpenBSD bug.
56671
56672 2007-12-11  Jim Meyering  <meyering@redhat.com>
56673
56674         * users.txt: Add libvirt.
56675
56676         Support versions of autoconf prior to 2.59c.
56677         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
56678         if it is not already defined.
56679
56680 2007-12-09  Bruno Haible  <bruno@clisp.org>
56681
56682         Let 'gnulib-tool --import' collect sources needed for the tests in
56683         tests/ rather than in lib/.
56684         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
56685         argument. If true, add rules to generate libtests.a, and put libtests.a
56686         into $(LDADD). Consider source files in subdirectories and set
56687         uses_subdirs.
56688         (func_emit_initmacro_start, func_emit_initmacro_end,
56689         func_emit_initmacro_done): Pass all arguments explicitly.
56690         (func_import): Determine two module lists main_modules,
56691         testsrelated_modules. Determine use_libtests. Determine two variables
56692         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
56693         instead of just sed_transform_lib_file. Determine two variables
56694         main_files and testsrelated_files. Compute 'files' as the union of
56695         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
56696         func_add_or_update. In the generated gnulib-comp.m4, collect the
56697         object files for tests/ in different variables than those for lib/.
56698         Substitute LIBTESTS_LIBDEPS.
56699         (func_create_testdir): Combine the uses_subdirs results from
56700         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
56701
56702 2007-12-09  Bruno Haible  <bruno@clisp.org>
56703
56704         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
56705         the build-aux directory.
56706
56707 2007-12-09  Bruno Haible  <bruno@clisp.org>
56708
56709         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
56710         introduced on 2006-09-09.
56711
56712 2007-12-07  Jim Meyering  <meyering@redhat.com>
56713
56714         Let these macros work also with autoconf-2.59.
56715         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
56716         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
56717         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56718
56719 2007-12-06  Jim Meyering  <meyering@redhat.com>
56720
56721         Avoid a configure-time syntax error in gl_FUNC_ACL.
56722         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
56723         function in each branch, before testing the cache variable.
56724
56725 2007-12-04  Eric Blake  <ebb9@byu.net>
56726
56727         Make scripts executable.
56728         * build-aux/config.guess: Add execute permissions.
56729         * build-aux/config.sub: Likewise.
56730         * build-aux/gendocs.sh: Likewise.
56731
56732         Fix frexp on mingw.
56733         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
56734         cross-compiling.
56735         * doc/functions/frexp.texi (frexp): Document the bug.
56736
56737         Make cygwin fseeko check more reliable.
56738         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
56739         version numbers, rather than unrelated feature check.
56740         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
56741         * doc/functions/ftello.texi (ftello): Likewise.
56742         Reported by Bruno Haible.
56743
56744         * m4/strerror.m4: Bump version number.
56745
56746 2007-12-03  Bruno Haible  <bruno@clisp.org>
56747
56748         * doc/functions/mprotect.texi: Mention the mingw problem.
56749
56750 2007-12-03  Eric Blake  <ebb9@byu.net>
56751
56752         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
56753         REPLACE_STRERROR is initialized before this macro.
56754
56755 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56756
56757         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
56758         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
56759         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
56760         put -lsec in even for programs other than 'ls'.  This fixes a problem
56761         for gettext reported by Bruno Haible in
56762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
56763         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
56764         Add support for Solaris 10.  This isn't efficient, but should get the
56765         job done for now.
56766
56767 2007-12-03  James Youngman  <jay@gnu.org>
56768
56769         * doc/regexprops-generic.texi: change "an close-group" to "a
56770         close-group" and "illegal" to "not allowed".
56771
56772 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56773
56774         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
56775         pr_byname.h. Needed for the rare case when the maintainer has done
56776         "make maintainer-clean" in the source directory and then attempts a
56777         build outside the source directory.
56778         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
56779         scripts_byname.h.
56780
56781 2007-12-02  Martin Lambers <marlam@marlam.de>
56782             Bruno Haible  <bruno@clisp.org>
56783
56784         * lib/getpagesize.h: Remove file.
56785         * lib/unistd.in.h: Include declaration of getpagesize here.
56786         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
56787         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
56788         HAVE_SYS_PARAM_H.
56789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
56790         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56791         * modules/getpagesize (Files): Remove lib/getpagesize.h.
56792         (Depends-on): Add unistd.
56793         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56794         (Include): Use <unistd.h> instead of getpagesize.h.
56795         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
56796         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
56797         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
56798         gl_GETPAGESIZE invocation, already handled by module dependency.
56799         * lib/pagealign_alloc.c: Don't include getpagesize.h.
56800
56801 2007-12-02  Bruno Haible  <bruno@clisp.org>
56802
56803         * modules/strings-tests: New file.
56804         * tests/test-strings.c: New file.
56805
56806         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
56807         * lib/strings.in.h: New file.
56808         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
56809         * m4/strings_h.m4: New file.
56810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
56811         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
56812         * modules/strings: New file.
56813         * modules/string (Makefile.am): Update.
56814         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
56815         Reported by Karl Berry.
56816
56817 2007-12-01  Eric Blake  <ebb9@byu.net>
56818
56819         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
56820         accomodate fix in cygwin 1.5.25.
56821
56822 2007-12-01  Jim Meyering  <meyering@redhat.com>
56823
56824         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
56825         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
56826         that would inhibit utf8-optimization of a regexp containing line-
56827         or buffer-anchors, e.g., `^', `$'.
56828
56829 2007-11-30  Bruno Haible  <bruno@clisp.org>
56830
56831         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
56832         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
56833         glthread_recursive_lock_init.
56834         * lib/lock.c (glthread_recursive_lock_init)
56835         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
56836         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56837
56838 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
56839
56840         New function qset_acl, like set_acl but with syscall semantics.
56841         * lib/acl.h (qset_acl): New decl.
56842         * lib/acl.c (qset_acl): New function.
56843         (set_acl): Use new function.  Use more-consistent diagnostics.
56844
56845 2007-11-28  Jim Meyering  <meyering@redhat.com>
56846
56847         * modules/physmem (License): Change from GPL to LGPLv2+.
56848
56849 2007-11-26  Bruno Haible  <bruno@clisp.org>
56850
56851         * lib/vasnprintf.c (decode_long_double): Don't abort if the
56852         'long double' type has excess precision.
56853         Reported by Jim Meyering in
56854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
56855
56856 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56857
56858         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
56859         Sync from <http://gnu.org/licenses>.
56860         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
56861         with license text from same location.
56862         * doc/maintain.texi, doc/standards.texi:  Sync from
56863         <http://savannah.gnu.org/projects/gnustandards>.
56864
56865 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
56866         and Jim Meyering  <meyering@redhat.com>
56867
56868         Adjust getdate' grammar to accept a slightly more regular language.
56869         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
56870         Before, the former was rejected.
56871         * lib/getdate.y (digits_to_date_time): New function, factored
56872         out of ...
56873         (number): ...here.  Just call digits_to_date_time.
56874         (hybrid): New non-terminal to handle an <unsigned number,
56875         signed relative offset> sequence consistently.
56876
56877 2007-11-18  Jim Meyering  <meyering@redhat.com>
56878
56879         Pull my changes from coreutils:
56880         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
56881         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
56882         use of $gnulib_tool_option_extras, so that it's separated from the
56883         preceding argument.
56884
56885         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
56886         * build-aux/bootstrap (cp_mark_as_generated): Create any required
56887         parent destination directories before copying a file into place.
56888
56889 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56890
56891         bootstrap: work also with 4-argument variant of AC_INIT
56892         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
56893
56894 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56895
56896         Port test-getaddrinfo to Solaris.
56897         Problem reported by Bruno Haible in
56898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
56899         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
56900         explanation of setting 'hints'.
56901         Don't reject an implementation merely because it returns EAI_SERVICE.
56902         (EAI_SERVICE): Define to 0 if not defined.
56903
56904 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56905
56906         The license of gnu-make and posix-shell is now "GPLed build tool".
56907         * modules/gnu-make (License): Likewise.
56908         * modules/posix-shell (License): Likewise.
56909
56910         New module posix-shell, for determining a POSIX shell
56911         or perhaps something that is close enough to a POSIX shell.
56912         * m4/posix-shell.m4: New file.
56913         * modules/posix-shell: New file.
56914
56915         * MODULES.html.sh: Mention new module.
56916
56917         New module gnu-make, for determining whether we're using GNU Make.
56918         * m4/gnu-make.m4: New file.
56919         * modules/gnu-make: New file.
56920         * MODULES.html.sh: Mention new module.
56921
56922 2007-11-14  Jim Meyering  <meyering@redhat.com>
56923
56924         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
56925         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
56926         use this macro to create a function _definition_.
56927         Remove useless "#undef ARGMATCH_DIE".
56928
56929 2007-11-14  Bruno Haible  <bruno@clisp.org>
56930
56931         * lib/config.charset: Update for OpenBSD 4.1.
56932         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
56933
56934 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
56935
56936         Document 64-bit #if problems in stdint.texi.
56937         * doc/headers/stdint.texi (stdint.h): Mention problems with
56938         64-bit-#if, and how to work around them.
56939
56940         Don't insist on 'long long int' support in the preprocessor.  It
56941         breaks too many things.  For example, PRIdMAX still uses a 'long
56942         long int' format with the latest Sun compiler, even though
56943         HAVE_LONG_LONG_INT isn't defined due to that compiler's
56944         preprocessor problem.  This causes the latest coreutils to dump
56945         core on Solaris 10 sparc with the Sun C compiler.
56946         Instead, fix the 2007-10-16 problem in a different way, by evaluating
56947         the troublesome expressions at configure-time, not at #if-time.
56948         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
56949         preprocessor.
56950         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
56951         compile-time C checks, done at 'configure'-time.
56952         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
56953         * modules/inttypes (Makefile): Substitute the new symbols that
56954         gl_INTTYPES_H now generates.
56955         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
56956
56957 2007-11-12  Bruno Haible  <bruno@clisp.org>
56958
56959         Tests for Unicode character classification functions.
56960
56961         * modules/unictype/bidicategory-byname-tests: New file.
56962         * modules/unictype/bidicategory-name-tests: New file.
56963         * modules/unictype/bidicategory-of-tests: New file.
56964         * modules/unictype/bidicategory-test-tests: New file.
56965         * modules/unictype/block-list-tests: New file.
56966         * modules/unictype/block-of-tests: New file.
56967         * modules/unictype/block-test-tests: New file.
56968         * modules/unictype/category-C-tests: New file.
56969         * modules/unictype/category-Cc-tests: New file.
56970         * modules/unictype/category-Cf-tests: New file.
56971         * modules/unictype/category-Cn-tests: New file.
56972         * modules/unictype/category-Co-tests: New file.
56973         * modules/unictype/category-Cs-tests: New file.
56974         * modules/unictype/category-L-tests: New file.
56975         * modules/unictype/category-Ll-tests: New file.
56976         * modules/unictype/category-Lm-tests: New file.
56977         * modules/unictype/category-Lo-tests: New file.
56978         * modules/unictype/category-Lt-tests: New file.
56979         * modules/unictype/category-Lu-tests: New file.
56980         * modules/unictype/category-M-tests: New file.
56981         * modules/unictype/category-Mc-tests: New file.
56982         * modules/unictype/category-Me-tests: New file.
56983         * modules/unictype/category-Mn-tests: New file.
56984         * modules/unictype/category-N-tests: New file.
56985         * modules/unictype/category-Nd-tests: New file.
56986         * modules/unictype/category-Nl-tests: New file.
56987         * modules/unictype/category-No-tests: New file.
56988         * modules/unictype/category-P-tests: New file.
56989         * modules/unictype/category-Pc-tests: New file.
56990         * modules/unictype/category-Pd-tests: New file.
56991         * modules/unictype/category-Pe-tests: New file.
56992         * modules/unictype/category-Pf-tests: New file.
56993         * modules/unictype/category-Pi-tests: New file.
56994         * modules/unictype/category-Po-tests: New file.
56995         * modules/unictype/category-Ps-tests: New file.
56996         * modules/unictype/category-S-tests: New file.
56997         * modules/unictype/category-Sc-tests: New file.
56998         * modules/unictype/category-Sk-tests: New file.
56999         * modules/unictype/category-Sm-tests: New file.
57000         * modules/unictype/category-So-tests: New file.
57001         * modules/unictype/category-Z-tests: New file.
57002         * modules/unictype/category-Zl-tests: New file.
57003         * modules/unictype/category-Zp-tests: New file.
57004         * modules/unictype/category-Zs-tests: New file.
57005         * modules/unictype/category-and-not-tests: New file.
57006         * modules/unictype/category-and-tests: New file.
57007         * modules/unictype/category-byname-tests: New file.
57008         * modules/unictype/category-name-tests: New file.
57009         * modules/unictype/category-none-tests: New file.
57010         * modules/unictype/category-of-tests: New file.
57011         * modules/unictype/category-or-tests: New file.
57012         * modules/unictype/category-test-withtable-tests: New file.
57013         * modules/unictype/combining-class-tests: New file.
57014         * modules/unictype/ctype-alnum-tests: New file.
57015         * modules/unictype/ctype-alpha-tests: New file.
57016         * modules/unictype/ctype-blank-tests: New file.
57017         * modules/unictype/ctype-cntrl-tests: New file.
57018         * modules/unictype/ctype-digit-tests: New file.
57019         * modules/unictype/ctype-graph-tests: New file.
57020         * modules/unictype/ctype-lower-tests: New file.
57021         * modules/unictype/ctype-print-tests: New file.
57022         * modules/unictype/ctype-punct-tests: New file.
57023         * modules/unictype/ctype-space-tests: New file.
57024         * modules/unictype/ctype-upper-tests: New file.
57025         * modules/unictype/ctype-xdigit-tests: New file.
57026         * modules/unictype/decimal-digit-tests: New file.
57027         * modules/unictype/digit-tests: New file.
57028         * modules/unictype/mirror-tests: New file.
57029         * modules/unictype/numeric-tests: New file.
57030         * modules/unictype/property-alphabetic-tests: New file.
57031         * modules/unictype/property-ascii-hex-digit-tests: New file.
57032         * modules/unictype/property-bidi-arabic-digit-tests: New file.
57033         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
57034         * modules/unictype/property-bidi-block-separator-tests: New file.
57035         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
57036         * modules/unictype/property-bidi-common-separator-tests: New file.
57037         * modules/unictype/property-bidi-control-tests: New file.
57038         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
57039         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
57040         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
57041         * modules/unictype/property-bidi-european-digit-tests: New file.
57042         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
57043         * modules/unictype/property-bidi-left-to-right-tests: New file.
57044         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
57045         * modules/unictype/property-bidi-other-neutral-tests: New file.
57046         * modules/unictype/property-bidi-pdf-tests: New file.
57047         * modules/unictype/property-bidi-segment-separator-tests: New file.
57048         * modules/unictype/property-bidi-whitespace-tests: New file.
57049         * modules/unictype/property-byname-tests: New file.
57050         * modules/unictype/property-combining-tests: New file.
57051         * modules/unictype/property-composite-tests: New file.
57052         * modules/unictype/property-currency-symbol-tests: New file.
57053         * modules/unictype/property-dash-tests: New file.
57054         * modules/unictype/property-decimal-digit-tests: New file.
57055         * modules/unictype/property-default-ignorable-code-point-tests: New file.
57056         * modules/unictype/property-deprecated-tests: New file.
57057         * modules/unictype/property-diacritic-tests: New file.
57058         * modules/unictype/property-extender-tests: New file.
57059         * modules/unictype/property-format-control-tests: New file.
57060         * modules/unictype/property-grapheme-base-tests: New file.
57061         * modules/unictype/property-grapheme-extend-tests: New file.
57062         * modules/unictype/property-grapheme-link-tests: New file.
57063         * modules/unictype/property-hex-digit-tests: New file.
57064         * modules/unictype/property-hyphen-tests: New file.
57065         * modules/unictype/property-id-continue-tests: New file.
57066         * modules/unictype/property-id-start-tests: New file.
57067         * modules/unictype/property-ideographic-tests: New file.
57068         * modules/unictype/property-ids-binary-operator-tests: New file.
57069         * modules/unictype/property-ids-trinary-operator-tests: New file.
57070         * modules/unictype/property-ignorable-control-tests: New file.
57071         * modules/unictype/property-iso-control-tests: New file.
57072         * modules/unictype/property-join-control-tests: New file.
57073         * modules/unictype/property-left-of-pair-tests: New file.
57074         * modules/unictype/property-line-separator-tests: New file.
57075         * modules/unictype/property-logical-order-exception-tests: New file.
57076         * modules/unictype/property-lowercase-tests: New file.
57077         * modules/unictype/property-math-tests: New file.
57078         * modules/unictype/property-non-break-tests: New file.
57079         * modules/unictype/property-not-a-character-tests: New file.
57080         * modules/unictype/property-numeric-tests: New file.
57081         * modules/unictype/property-other-alphabetic-tests: New file.
57082         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
57083         * modules/unictype/property-other-grapheme-extend-tests: New file.
57084         * modules/unictype/property-other-id-continue-tests: New file.
57085         * modules/unictype/property-other-id-start-tests: New file.
57086         * modules/unictype/property-other-lowercase-tests: New file.
57087         * modules/unictype/property-other-math-tests: New file.
57088         * modules/unictype/property-other-uppercase-tests: New file.
57089         * modules/unictype/property-paired-punctuation-tests: New file.
57090         * modules/unictype/property-paragraph-separator-tests: New file.
57091         * modules/unictype/property-pattern-syntax-tests: New file.
57092         * modules/unictype/property-pattern-white-space-tests: New file.
57093         * modules/unictype/property-private-use-tests: New file.
57094         * modules/unictype/property-punctuation-tests: New file.
57095         * modules/unictype/property-quotation-mark-tests: New file.
57096         * modules/unictype/property-radical-tests: New file.
57097         * modules/unictype/property-sentence-terminal-tests: New file.
57098         * modules/unictype/property-soft-dotted-tests: New file.
57099         * modules/unictype/property-space-tests: New file.
57100         * modules/unictype/property-terminal-punctuation-tests: New file.
57101         * modules/unictype/property-test-tests: New file.
57102         * modules/unictype/property-titlecase-tests: New file.
57103         * modules/unictype/property-unassigned-code-value-tests: New file.
57104         * modules/unictype/property-unified-ideograph-tests: New file.
57105         * modules/unictype/property-uppercase-tests: New file.
57106         * modules/unictype/property-variation-selector-tests: New file.
57107         * modules/unictype/property-white-space-tests: New file.
57108         * modules/unictype/property-xid-continue-tests: New file.
57109         * modules/unictype/property-xid-start-tests: New file.
57110         * modules/unictype/property-zero-width-tests: New file.
57111         * modules/unictype/scripts-tests: New file.
57112         * modules/unictype/syntax-c-ident-tests: New file.
57113         * modules/unictype/syntax-c-whitespace-tests: New file.
57114         * modules/unictype/syntax-java-ident-tests: New file.
57115         * modules/unictype/syntax-java-whitespace-tests: New file.
57116         * tests/unictype/test-bidi_byname.c: New file.
57117         * tests/unictype/test-bidi_name.c: New file.
57118         * tests/unictype/test-bidi_of.c: New file.
57119         * tests/unictype/test-bidi_test.c: New file.
57120         * tests/unictype/test-block_list.c: New file.
57121         * tests/unictype/test-block_of.c: New file.
57122         * tests/unictype/test-block_test.c: New file.
57123         * tests/unictype/test-categ_and.c: New file.
57124         * tests/unictype/test-categ_and_not.c: New file.
57125         * tests/unictype/test-categ_byname.c: New file.
57126         * tests/unictype/test-categ_name.c: New file.
57127         * tests/unictype/test-categ_none.c: New file.
57128         * tests/unictype/test-categ_of.c: New file.
57129         * tests/unictype/test-categ_or.c: New file.
57130         * tests/unictype/test-categ_test_withtable.c: New file.
57131         * tests/unictype/test-combining.c: New file.
57132         * tests/unictype/test-decdigit.c: New file.
57133         * tests/unictype/test-digit.c: New file.
57134         * tests/unictype/test-mirror.c: New file.
57135         * tests/unictype/test-numeric.c: New file.
57136         * tests/unictype/test-pr_byname.c: New file.
57137         * tests/unictype/test-pr_test.c: New file.
57138         * tests/unictype/test-predicate-part1.h: New file.
57139         * tests/unictype/test-predicate-part2.h: New file.
57140         * tests/unictype/test-scripts.c: New file.
57141         * tests/unictype/test-sy_c_ident.c: New file.
57142         * tests/unictype/test-sy_java_ident.c: New file.
57143
57144         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
57145         for Unicode 5.0.0.
57146         * tests/unictype/test-categ_Cc.c: Likewise.
57147         * tests/unictype/test-categ_Cf.c: Likewise.
57148         * tests/unictype/test-categ_Cn.c: Likewise.
57149         * tests/unictype/test-categ_Co.c: Likewise.
57150         * tests/unictype/test-categ_Cs.c: Likewise.
57151         * tests/unictype/test-categ_L.c: Likewise.
57152         * tests/unictype/test-categ_Ll.c: Likewise.
57153         * tests/unictype/test-categ_Lm.c: Likewise.
57154         * tests/unictype/test-categ_Lo.c: Likewise.
57155         * tests/unictype/test-categ_Lt.c: Likewise.
57156         * tests/unictype/test-categ_Lu.c: Likewise.
57157         * tests/unictype/test-categ_M.c: Likewise.
57158         * tests/unictype/test-categ_Mc.c: Likewise.
57159         * tests/unictype/test-categ_Me.c: Likewise.
57160         * tests/unictype/test-categ_Mn.c: Likewise.
57161         * tests/unictype/test-categ_N.c: Likewise.
57162         * tests/unictype/test-categ_Nd.c: Likewise.
57163         * tests/unictype/test-categ_Nl.c: Likewise.
57164         * tests/unictype/test-categ_No.c: Likewise.
57165         * tests/unictype/test-categ_P.c: Likewise.
57166         * tests/unictype/test-categ_Pc.c: Likewise.
57167         * tests/unictype/test-categ_Pd.c: Likewise.
57168         * tests/unictype/test-categ_Pe.c: Likewise.
57169         * tests/unictype/test-categ_Pf.c: Likewise.
57170         * tests/unictype/test-categ_Pi.c: Likewise.
57171         * tests/unictype/test-categ_Po.c: Likewise.
57172         * tests/unictype/test-categ_Ps.c: Likewise.
57173         * tests/unictype/test-categ_S.c: Likewise.
57174         * tests/unictype/test-categ_Sc.c: Likewise.
57175         * tests/unictype/test-categ_Sk.c: Likewise.
57176         * tests/unictype/test-categ_Sm.c: Likewise.
57177         * tests/unictype/test-categ_So.c: Likewise.
57178         * tests/unictype/test-categ_Z.c: Likewise.
57179         * tests/unictype/test-categ_Zl.c: Likewise.
57180         * tests/unictype/test-categ_Zp.c: Likewise.
57181         * tests/unictype/test-categ_Zs.c: Likewise.
57182         * tests/unictype/test-ctype_alnum.c: Likewise.
57183         * tests/unictype/test-ctype_alpha.c: Likewise.
57184         * tests/unictype/test-ctype_blank.c: Likewise.
57185         * tests/unictype/test-ctype_cntrl.c: Likewise.
57186         * tests/unictype/test-ctype_digit.c: Likewise.
57187         * tests/unictype/test-ctype_graph.c: Likewise.
57188         * tests/unictype/test-ctype_lower.c: Likewise.
57189         * tests/unictype/test-ctype_print.c: Likewise.
57190         * tests/unictype/test-ctype_punct.c: Likewise.
57191         * tests/unictype/test-ctype_space.c: Likewise.
57192         * tests/unictype/test-ctype_upper.c: Likewise.
57193         * tests/unictype/test-ctype_xdigit.c: Likewise.
57194         * tests/unictype/test-decdigit.h: Likewise.
57195         * tests/unictype/test-digit.h: Likewise.
57196         * tests/unictype/test-numeric.h: Likewise.
57197         * tests/unictype/test-pr_alphabetic.c: Likewise.
57198         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
57199         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57200         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57201         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
57202         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57203         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
57204         * tests/unictype/test-pr_bidi_control.c: Likewise.
57205         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
57206         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
57207         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57208         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57209         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57210         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57211         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57212         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57213         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
57214         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
57215         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
57216         * tests/unictype/test-pr_combining.c: Likewise.
57217         * tests/unictype/test-pr_composite.c: Likewise.
57218         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57219         * tests/unictype/test-pr_dash.c: Likewise.
57220         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57221         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
57222         * tests/unictype/test-pr_deprecated.c: Likewise.
57223         * tests/unictype/test-pr_diacritic.c: Likewise.
57224         * tests/unictype/test-pr_extender.c: Likewise.
57225         * tests/unictype/test-pr_format_control.c: Likewise.
57226         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57227         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57228         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57229         * tests/unictype/test-pr_hex_digit.c: Likewise.
57230         * tests/unictype/test-pr_hyphen.c: Likewise.
57231         * tests/unictype/test-pr_id_continue.c: Likewise.
57232         * tests/unictype/test-pr_id_start.c: Likewise.
57233         * tests/unictype/test-pr_ideographic.c: Likewise.
57234         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
57235         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
57236         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57237         * tests/unictype/test-pr_iso_control.c: Likewise.
57238         * tests/unictype/test-pr_join_control.c: Likewise.
57239         * tests/unictype/test-pr_left_of_pair.c: Likewise.
57240         * tests/unictype/test-pr_line_separator.c: Likewise.
57241         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57242         * tests/unictype/test-pr_lowercase.c: Likewise.
57243         * tests/unictype/test-pr_math.c: Likewise.
57244         * tests/unictype/test-pr_non_break.c: Likewise.
57245         * tests/unictype/test-pr_not_a_character.c: Likewise.
57246         * tests/unictype/test-pr_numeric.c: Likewise.
57247         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57248         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
57249         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
57250         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57251         * tests/unictype/test-pr_other_id_start.c: Likewise.
57252         * tests/unictype/test-pr_other_lowercase.c: Likewise.
57253         * tests/unictype/test-pr_other_math.c: Likewise.
57254         * tests/unictype/test-pr_other_uppercase.c: Likewise.
57255         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
57256         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
57257         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
57258         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
57259         * tests/unictype/test-pr_private_use.c: Likewise.
57260         * tests/unictype/test-pr_punctuation.c: Likewise.
57261         * tests/unictype/test-pr_quotation_mark.c: Likewise.
57262         * tests/unictype/test-pr_radical.c: Likewise.
57263         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57264         * tests/unictype/test-pr_soft_dotted.c: Likewise.
57265         * tests/unictype/test-pr_space.c: Likewise.
57266         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57267         * tests/unictype/test-pr_titlecase.c: Likewise.
57268         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57269         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57270         * tests/unictype/test-pr_uppercase.c: Likewise.
57271         * tests/unictype/test-pr_variation_selector.c: Likewise.
57272         * tests/unictype/test-pr_white_space.c: Likewise.
57273         * tests/unictype/test-pr_xid_continue.c: Likewise.
57274         * tests/unictype/test-pr_xid_start.c: Likewise.
57275         * tests/unictype/test-pr_zero_width.c: Likewise.
57276         * tests/unictype/test-sy_c_whitespace.c: Likewise.
57277         * tests/unictype/test-sy_java_whitespace.c: Likewise.
57278
57279 2007-11-12  Bruno Haible  <bruno@clisp.org>
57280
57281         Unicode character classification functions.
57282         * lib/unictype.h: New file.
57283         * modules/unictype/base: New file.
57284         * modules/unictype/category-L: New file.
57285         * modules/unictype/category-Lu: New file.
57286         * modules/unictype/category-Ll: New file.
57287         * modules/unictype/category-Lt: New file.
57288         * modules/unictype/category-Lm: New file.
57289         * modules/unictype/category-Lo: New file.
57290         * modules/unictype/category-M: New file.
57291         * modules/unictype/category-Mn: New file.
57292         * modules/unictype/category-Mc: New file.
57293         * modules/unictype/category-Me: New file.
57294         * modules/unictype/category-N: New file.
57295         * modules/unictype/category-Nd: New file.
57296         * modules/unictype/category-Nl: New file.
57297         * modules/unictype/category-No: New file.
57298         * modules/unictype/category-P: New file.
57299         * modules/unictype/category-Pc: New file.
57300         * modules/unictype/category-Pd: New file.
57301         * modules/unictype/category-Ps: New file.
57302         * modules/unictype/category-Pe: New file.
57303         * modules/unictype/category-Pi: New file.
57304         * modules/unictype/category-Pf: New file.
57305         * modules/unictype/category-Po: New file.
57306         * modules/unictype/category-S: New file.
57307         * modules/unictype/category-Sm: New file.
57308         * modules/unictype/category-Sc: New file.
57309         * modules/unictype/category-Sk: New file.
57310         * modules/unictype/category-So: New file.
57311         * modules/unictype/category-Z: New file.
57312         * modules/unictype/category-Zs: New file.
57313         * modules/unictype/category-Zl: New file.
57314         * modules/unictype/category-Zp: New file.
57315         * modules/unictype/category-C: New file.
57316         * modules/unictype/category-Cc: New file.
57317         * modules/unictype/category-Cf: New file.
57318         * modules/unictype/category-Cs: New file.
57319         * modules/unictype/category-Co: New file.
57320         * modules/unictype/category-Cn: New file.
57321         * modules/unictype/category-or: New file.
57322         * modules/unictype/category-of: New file.
57323         * modules/unictype/category-test: New file.
57324         * modules/unictype/category-test-withtable: New file.
57325         * modules/unictype/category-byname: New file.
57326         * modules/unictype/category-none: New file.
57327         * modules/unictype/category-and: New file.
57328         * modules/unictype/category-and-not: New file.
57329         * modules/unictype/category-name: New file.
57330         * modules/unictype/combining-class: New file.
57331         * modules/unictype/category-all: New file.
57332         * modules/unictype/bidicategory-all: New file.
57333         * modules/unictype/bidicategory-byname: New file.
57334         * modules/unictype/bidicategory-name: New file.
57335         * modules/unictype/bidicategory-of: New file.
57336         * modules/unictype/bidicategory-test: New file.
57337         * modules/unictype/decimal-digit: New file.
57338         * modules/unictype/digit: New file.
57339         * modules/unictype/numeric: New file.
57340         * modules/unictype/mirror: New file.
57341         * modules/unictype/property-white-space: New file.
57342         * modules/unictype/property-alphabetic: New file.
57343         * modules/unictype/property-other-alphabetic: New file.
57344         * modules/unictype/property-not-a-character: New file.
57345         * modules/unictype/property-default-ignorable-code-point: New file.
57346         * modules/unictype/property-other-default-ignorable-code-point: New
57347         file.
57348         * modules/unictype/property-deprecated: New file.
57349         * modules/unictype/property-logical-order-exception: New file.
57350         * modules/unictype/property-variation-selector: New file.
57351         * modules/unictype/property-private-use: New file.
57352         * modules/unictype/property-unassigned-code-value: New file.
57353         * modules/unictype/property-uppercase: New file.
57354         * modules/unictype/property-other-uppercase: New file.
57355         * modules/unictype/property-lowercase: New file.
57356         * modules/unictype/property-other-lowercase: New file.
57357         * modules/unictype/property-titlecase: New file.
57358         * modules/unictype/property-soft-dotted: New file.
57359         * modules/unictype/property-id-start: New file.
57360         * modules/unictype/property-other-id-start: New file.
57361         * modules/unictype/property-id-continue: New file.
57362         * modules/unictype/property-other-id-continue: New file.
57363         * modules/unictype/property-xid-start: New file.
57364         * modules/unictype/property-xid-continue: New file.
57365         * modules/unictype/property-pattern-white-space: New file.
57366         * modules/unictype/property-pattern-syntax: New file.
57367         * modules/unictype/property-join-control: New file.
57368         * modules/unictype/property-grapheme-base: New file.
57369         * modules/unictype/property-grapheme-extend: New file.
57370         * modules/unictype/property-other-grapheme-extend: New file.
57371         * modules/unictype/property-grapheme-link: New file.
57372         * modules/unictype/property-bidi-control: New file.
57373         * modules/unictype/property-bidi-left-to-right: New file.
57374         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
57375         * modules/unictype/property-bidi-arabic-right-to-left: New file.
57376         * modules/unictype/property-bidi-european-digit: New file.
57377         * modules/unictype/property-bidi-eur-num-separator: New file.
57378         * modules/unictype/property-bidi-eur-num-terminator: New file.
57379         * modules/unictype/property-bidi-arabic-digit: New file.
57380         * modules/unictype/property-bidi-common-separator: New file.
57381         * modules/unictype/property-bidi-block-separator: New file.
57382         * modules/unictype/property-bidi-segment-separator: New file.
57383         * modules/unictype/property-bidi-whitespace: New file.
57384         * modules/unictype/property-bidi-non-spacing-mark: New file.
57385         * modules/unictype/property-bidi-boundary-neutral: New file.
57386         * modules/unictype/property-bidi-pdf: New file.
57387         * modules/unictype/property-bidi-embedding-or-override: New file.
57388         * modules/unictype/property-bidi-other-neutral: New file.
57389         * modules/unictype/property-hex-digit: New file.
57390         * modules/unictype/property-ascii-hex-digit: New file.
57391         * modules/unictype/property-ideographic: New file.
57392         * modules/unictype/property-unified-ideograph: New file.
57393         * modules/unictype/property-radical: New file.
57394         * modules/unictype/property-ids-binary-operator: New file.
57395         * modules/unictype/property-ids-trinary-operator: New file.
57396         * modules/unictype/property-zero-width: New file.
57397         * modules/unictype/property-space: New file.
57398         * modules/unictype/property-non-break: New file.
57399         * modules/unictype/property-iso-control: New file.
57400         * modules/unictype/property-format-control: New file.
57401         * modules/unictype/property-dash: New file.
57402         * modules/unictype/property-hyphen: New file.
57403         * modules/unictype/property-punctuation: New file.
57404         * modules/unictype/property-line-separator: New file.
57405         * modules/unictype/property-paragraph-separator: New file.
57406         * modules/unictype/property-quotation-mark: New file.
57407         * modules/unictype/property-sentence-terminal: New file.
57408         * modules/unictype/property-terminal-punctuation: New file.
57409         * modules/unictype/property-currency-symbol: New file.
57410         * modules/unictype/property-math: New file.
57411         * modules/unictype/property-other-math: New file.
57412         * modules/unictype/property-paired-punctuation: New file.
57413         * modules/unictype/property-left-of-pair: New file.
57414         * modules/unictype/property-combining: New file.
57415         * modules/unictype/property-composite: New file.
57416         * modules/unictype/property-decimal-digit: New file.
57417         * modules/unictype/property-numeric: New file.
57418         * modules/unictype/property-diacritic: New file.
57419         * modules/unictype/property-extender: New file.
57420         * modules/unictype/property-ignorable-control: New file.
57421         * modules/unictype/property-test: New file.
57422         * modules/unictype/property-byname: New file.
57423         * modules/unictype/property-all: New file.
57424         * modules/unictype/scripts: New file.
57425         * modules/unictype/scripts-all: New file.
57426         * modules/unictype/block-of: New file.
57427         * modules/unictype/block-test: New file.
57428         * modules/unictype/block-list: New file.
57429         * modules/unictype/block-all: New file.
57430         * modules/unictype/syntax-c-whitespace: New file.
57431         * modules/unictype/syntax-java-whitespace: New file.
57432         * modules/unictype/syntax-c-ident: New file.
57433         * modules/unictype/syntax-java-ident: New file.
57434         * modules/unictype/ctype-alnum: New file.
57435         * modules/unictype/ctype-alpha: New file.
57436         * modules/unictype/ctype-cntrl: New file.
57437         * modules/unictype/ctype-digit: New file.
57438         * modules/unictype/ctype-graph: New file.
57439         * modules/unictype/ctype-lower: New file.
57440         * modules/unictype/ctype-print: New file.
57441         * modules/unictype/ctype-punct: New file.
57442         * modules/unictype/ctype-space: New file.
57443         * modules/unictype/ctype-upper: New file.
57444         * modules/unictype/ctype-xdigit: New file.
57445         * modules/unictype/ctype-blank: New file.
57446         * lib/unictype/bidi_byname.c: New file.
57447         * lib/unictype/bidi_name.c: New file.
57448         * lib/unictype/bidi_of.c: New file.
57449         * lib/unictype/bidi_test.c: New file.
57450         * lib/unictype/bitmap.h: New file.
57451         * lib/unictype/block_test.c: New file.
57452         * lib/unictype/blocks.c: New file.
57453         * lib/unictype/categ_C.c: New file.
57454         * lib/unictype/categ_Cc.c: New file.
57455         * lib/unictype/categ_Cf.c: New file.
57456         * lib/unictype/categ_Cn.c: New file.
57457         * lib/unictype/categ_Co.c: New file.
57458         * lib/unictype/categ_Cs.c: New file.
57459         * lib/unictype/categ_L.c: New file.
57460         * lib/unictype/categ_Ll.c: New file.
57461         * lib/unictype/categ_Lm.c: New file.
57462         * lib/unictype/categ_Lo.c: New file.
57463         * lib/unictype/categ_Lt.c: New file.
57464         * lib/unictype/categ_Lu.c: New file.
57465         * lib/unictype/categ_M.c: New file.
57466         * lib/unictype/categ_Mc.c: New file.
57467         * lib/unictype/categ_Me.c: New file.
57468         * lib/unictype/categ_Mn.c: New file.
57469         * lib/unictype/categ_N.c: New file.
57470         * lib/unictype/categ_Nd.c: New file.
57471         * lib/unictype/categ_Nl.c: New file.
57472         * lib/unictype/categ_No.c: New file.
57473         * lib/unictype/categ_P.c: New file.
57474         * lib/unictype/categ_Pc.c: New file.
57475         * lib/unictype/categ_Pd.c: New file.
57476         * lib/unictype/categ_Pe.c: New file.
57477         * lib/unictype/categ_Pf.c: New file.
57478         * lib/unictype/categ_Pi.c: New file.
57479         * lib/unictype/categ_Po.c: New file.
57480         * lib/unictype/categ_Ps.c: New file.
57481         * lib/unictype/categ_S.c: New file.
57482         * lib/unictype/categ_Sc.c: New file.
57483         * lib/unictype/categ_Sk.c: New file.
57484         * lib/unictype/categ_Sm.c: New file.
57485         * lib/unictype/categ_So.c: New file.
57486         * lib/unictype/categ_Z.c: New file.
57487         * lib/unictype/categ_Zl.c: New file.
57488         * lib/unictype/categ_Zp.c: New file.
57489         * lib/unictype/categ_Zs.c: New file.
57490         * lib/unictype/categ_and.c: New file.
57491         * lib/unictype/categ_and_not.c: New file.
57492         * lib/unictype/categ_byname.c: New file.
57493         * lib/unictype/categ_name.c: New file.
57494         * lib/unictype/categ_none.c: New file.
57495         * lib/unictype/categ_of.c: New file.
57496         * lib/unictype/categ_or.c: New file.
57497         * lib/unictype/categ_test.c: New file.
57498         * lib/unictype/combining.c: New file.
57499         * lib/unictype/ctype_alnum.c: New file.
57500         * lib/unictype/ctype_alpha.c: New file.
57501         * lib/unictype/ctype_blank.c: New file.
57502         * lib/unictype/ctype_cntrl.c: New file.
57503         * lib/unictype/ctype_digit.c: New file.
57504         * lib/unictype/ctype_graph.c: New file.
57505         * lib/unictype/ctype_lower.c: New file.
57506         * lib/unictype/ctype_print.c: New file.
57507         * lib/unictype/ctype_punct.c: New file.
57508         * lib/unictype/ctype_space.c: New file.
57509         * lib/unictype/ctype_upper.c: New file.
57510         * lib/unictype/ctype_xdigit.c: New file.
57511         * lib/unictype/decdigit.c: New file.
57512         * lib/unictype/digit.c: New file.
57513         * lib/unictype/identsyntaxmap.h: New file.
57514         * lib/unictype/mirror.c: New file.
57515         * lib/unictype/numeric.c: New file.
57516         * lib/unictype/pr_alphabetic.c: New file.
57517         * lib/unictype/pr_ascii_hex_digit.c: New file.
57518         * lib/unictype/pr_bidi_arabic_digit.c: New file.
57519         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
57520         * lib/unictype/pr_bidi_block_separator.c: New file.
57521         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
57522         * lib/unictype/pr_bidi_common_separator.c: New file.
57523         * lib/unictype/pr_bidi_control.c: New file.
57524         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
57525         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
57526         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
57527         * lib/unictype/pr_bidi_european_digit.c: New file.
57528         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
57529         * lib/unictype/pr_bidi_left_to_right.c: New file.
57530         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
57531         * lib/unictype/pr_bidi_other_neutral.c: New file.
57532         * lib/unictype/pr_bidi_pdf.c: New file.
57533         * lib/unictype/pr_bidi_segment_separator.c: New file.
57534         * lib/unictype/pr_bidi_whitespace.c: New file.
57535         * lib/unictype/pr_byname.c: New file.
57536         * lib/unictype/pr_byname.gperf: New file.
57537         * lib/unictype/pr_combining.c: New file.
57538         * lib/unictype/pr_composite.c: New file.
57539         * lib/unictype/pr_currency_symbol.c: New file.
57540         * lib/unictype/pr_dash.c: New file.
57541         * lib/unictype/pr_decimal_digit.c: New file.
57542         * lib/unictype/pr_default_ignorable_code_point.c: New file.
57543         * lib/unictype/pr_deprecated.c: New file.
57544         * lib/unictype/pr_diacritic.c: New file.
57545         * lib/unictype/pr_extender.c: New file.
57546         * lib/unictype/pr_format_control.c: New file.
57547         * lib/unictype/pr_grapheme_base.c: New file.
57548         * lib/unictype/pr_grapheme_extend.c: New file.
57549         * lib/unictype/pr_grapheme_link.c: New file.
57550         * lib/unictype/pr_hex_digit.c: New file.
57551         * lib/unictype/pr_hyphen.c: New file.
57552         * lib/unictype/pr_id_continue.c: New file.
57553         * lib/unictype/pr_id_start.c: New file.
57554         * lib/unictype/pr_ideographic.c: New file.
57555         * lib/unictype/pr_ids_binary_operator.c: New file.
57556         * lib/unictype/pr_ids_trinary_operator.c: New file.
57557         * lib/unictype/pr_ignorable_control.c: New file.
57558         * lib/unictype/pr_iso_control.c: New file.
57559         * lib/unictype/pr_join_control.c: New file.
57560         * lib/unictype/pr_left_of_pair.c: New file.
57561         * lib/unictype/pr_line_separator.c: New file.
57562         * lib/unictype/pr_logical_order_exception.c: New file.
57563         * lib/unictype/pr_lowercase.c: New file.
57564         * lib/unictype/pr_math.c: New file.
57565         * lib/unictype/pr_non_break.c: New file.
57566         * lib/unictype/pr_not_a_character.c: New file.
57567         * lib/unictype/pr_numeric.c: New file.
57568         * lib/unictype/pr_other_alphabetic.c: New file.
57569         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
57570         * lib/unictype/pr_other_grapheme_extend.c: New file.
57571         * lib/unictype/pr_other_id_continue.c: New file.
57572         * lib/unictype/pr_other_id_start.c: New file.
57573         * lib/unictype/pr_other_lowercase.c: New file.
57574         * lib/unictype/pr_other_math.c: New file.
57575         * lib/unictype/pr_other_uppercase.c: New file.
57576         * lib/unictype/pr_paired_punctuation.c: New file.
57577         * lib/unictype/pr_paragraph_separator.c: New file.
57578         * lib/unictype/pr_pattern_syntax.c: New file.
57579         * lib/unictype/pr_pattern_white_space.c: New file.
57580         * lib/unictype/pr_private_use.c: New file.
57581         * lib/unictype/pr_punctuation.c: New file.
57582         * lib/unictype/pr_quotation_mark.c: New file.
57583         * lib/unictype/pr_radical.c: New file.
57584         * lib/unictype/pr_sentence_terminal.c: New file.
57585         * lib/unictype/pr_soft_dotted.c: New file.
57586         * lib/unictype/pr_space.c: New file.
57587         * lib/unictype/pr_terminal_punctuation.c: New file.
57588         * lib/unictype/pr_test.c: New file.
57589         * lib/unictype/pr_titlecase.c: New file.
57590         * lib/unictype/pr_unassigned_code_value.c: New file.
57591         * lib/unictype/pr_unified_ideograph.c: New file.
57592         * lib/unictype/pr_uppercase.c: New file.
57593         * lib/unictype/pr_variation_selector.c: New file.
57594         * lib/unictype/pr_white_space.c: New file.
57595         * lib/unictype/pr_xid_continue.c: New file.
57596         * lib/unictype/pr_xid_start.c: New file.
57597         * lib/unictype/pr_zero_width.c: New file.
57598         * lib/unictype/scripts.c: New file.
57599         * lib/unictype/sy_c_ident.c: New file.
57600         * lib/unictype/sy_c_whitespace.c: New file.
57601         * lib/unictype/sy_java_ident.c: New file.
57602         * lib/unictype/sy_java_whitespace.c: New file.
57603
57604         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
57605         Unicode 5.0.0.
57606         * lib/unictype/blocks.h: Likewise.
57607         * lib/unictype/categ_C.h: Likewise.
57608         * lib/unictype/categ_Cc.h: Likewise.
57609         * lib/unictype/categ_Cf.h: Likewise.
57610         * lib/unictype/categ_Cn.h: Likewise.
57611         * lib/unictype/categ_Co.h: Likewise.
57612         * lib/unictype/categ_Cs.h: Likewise.
57613         * lib/unictype/categ_L.h: Likewise.
57614         * lib/unictype/categ_Ll.h: Likewise.
57615         * lib/unictype/categ_Lm.h: Likewise.
57616         * lib/unictype/categ_Lo.h: Likewise.
57617         * lib/unictype/categ_Lt.h: Likewise.
57618         * lib/unictype/categ_Lu.h: Likewise.
57619         * lib/unictype/categ_M.h: Likewise.
57620         * lib/unictype/categ_Mc.h: Likewise.
57621         * lib/unictype/categ_Me.h: Likewise.
57622         * lib/unictype/categ_Mn.h: Likewise.
57623         * lib/unictype/categ_N.h: Likewise.
57624         * lib/unictype/categ_Nd.h: Likewise.
57625         * lib/unictype/categ_Nl.h: Likewise.
57626         * lib/unictype/categ_No.h: Likewise.
57627         * lib/unictype/categ_P.h: Likewise.
57628         * lib/unictype/categ_Pc.h: Likewise.
57629         * lib/unictype/categ_Pd.h: Likewise.
57630         * lib/unictype/categ_Pe.h: Likewise.
57631         * lib/unictype/categ_Pf.h: Likewise.
57632         * lib/unictype/categ_Pi.h: Likewise.
57633         * lib/unictype/categ_Po.h: Likewise.
57634         * lib/unictype/categ_Ps.h: Likewise.
57635         * lib/unictype/categ_S.h: Likewise.
57636         * lib/unictype/categ_Sc.h: Likewise.
57637         * lib/unictype/categ_Sk.h: Likewise.
57638         * lib/unictype/categ_Sm.h: Likewise.
57639         * lib/unictype/categ_So.h: Likewise.
57640         * lib/unictype/categ_Z.h: Likewise.
57641         * lib/unictype/categ_Zl.h: Likewise.
57642         * lib/unictype/categ_Zp.h: Likewise.
57643         * lib/unictype/categ_Zs.h: Likewise.
57644         * lib/unictype/categ_of.h: Likewise.
57645         * lib/unictype/combining.h: Likewise.
57646         * lib/unictype/ctype_alnum.h: Likewise.
57647         * lib/unictype/ctype_alpha.h: Likewise.
57648         * lib/unictype/ctype_blank.h: Likewise.
57649         * lib/unictype/ctype_cntrl.h: Likewise.
57650         * lib/unictype/ctype_digit.h: Likewise.
57651         * lib/unictype/ctype_graph.h: Likewise.
57652         * lib/unictype/ctype_lower.h: Likewise.
57653         * lib/unictype/ctype_print.h: Likewise.
57654         * lib/unictype/ctype_punct.h: Likewise.
57655         * lib/unictype/ctype_space.h: Likewise.
57656         * lib/unictype/ctype_upper.h: Likewise.
57657         * lib/unictype/ctype_xdigit.h: Likewise.
57658         * lib/unictype/decdigit.h: Likewise.
57659         * lib/unictype/digit.h: Likewise.
57660         * lib/unictype/mirror.h: Likewise.
57661         * lib/unictype/numeric.h: Likewise.
57662         * lib/unictype/pr_alphabetic.h: Likewise.
57663         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57664         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57665         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57666         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57667         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57668         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57669         * lib/unictype/pr_bidi_control.h: Likewise.
57670         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57671         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57672         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57673         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57674         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57675         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57676         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57677         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57678         * lib/unictype/pr_bidi_pdf.h: Likewise.
57679         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57680         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57681         * lib/unictype/pr_combining.h: Likewise.
57682         * lib/unictype/pr_composite.h: Likewise.
57683         * lib/unictype/pr_currency_symbol.h: Likewise.
57684         * lib/unictype/pr_dash.h: Likewise.
57685         * lib/unictype/pr_decimal_digit.h: Likewise.
57686         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57687         * lib/unictype/pr_deprecated.h: Likewise.
57688         * lib/unictype/pr_diacritic.h: Likewise.
57689         * lib/unictype/pr_extender.h: Likewise.
57690         * lib/unictype/pr_format_control.h: Likewise.
57691         * lib/unictype/pr_grapheme_base.h: Likewise.
57692         * lib/unictype/pr_grapheme_extend.h: Likewise.
57693         * lib/unictype/pr_grapheme_link.h: Likewise.
57694         * lib/unictype/pr_hex_digit.h: Likewise.
57695         * lib/unictype/pr_hyphen.h: Likewise.
57696         * lib/unictype/pr_id_continue.h: Likewise.
57697         * lib/unictype/pr_id_start.h: Likewise.
57698         * lib/unictype/pr_ideographic.h: Likewise.
57699         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57700         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57701         * lib/unictype/pr_ignorable_control.h: Likewise.
57702         * lib/unictype/pr_iso_control.h: Likewise.
57703         * lib/unictype/pr_join_control.h: Likewise.
57704         * lib/unictype/pr_left_of_pair.h: Likewise.
57705         * lib/unictype/pr_line_separator.h: Likewise.
57706         * lib/unictype/pr_logical_order_exception.h: Likewise.
57707         * lib/unictype/pr_lowercase.h: Likewise.
57708         * lib/unictype/pr_math.h: Likewise.
57709         * lib/unictype/pr_non_break.h: Likewise.
57710         * lib/unictype/pr_not_a_character.h: Likewise.
57711         * lib/unictype/pr_numeric.h: Likewise.
57712         * lib/unictype/pr_other_alphabetic.h: Likewise.
57713         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57714         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57715         * lib/unictype/pr_other_id_continue.h: Likewise.
57716         * lib/unictype/pr_other_id_start.h: Likewise.
57717         * lib/unictype/pr_other_lowercase.h: Likewise.
57718         * lib/unictype/pr_other_math.h: Likewise.
57719         * lib/unictype/pr_other_uppercase.h: Likewise.
57720         * lib/unictype/pr_paired_punctuation.h: Likewise.
57721         * lib/unictype/pr_paragraph_separator.h: Likewise.
57722         * lib/unictype/pr_pattern_syntax.h: Likewise.
57723         * lib/unictype/pr_pattern_white_space.h: Likewise.
57724         * lib/unictype/pr_private_use.h: Likewise.
57725         * lib/unictype/pr_punctuation.h: Likewise.
57726         * lib/unictype/pr_quotation_mark.h: Likewise.
57727         * lib/unictype/pr_radical.h: Likewise.
57728         * lib/unictype/pr_sentence_terminal.h: Likewise.
57729         * lib/unictype/pr_soft_dotted.h: Likewise.
57730         * lib/unictype/pr_space.h: Likewise.
57731         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57732         * lib/unictype/pr_titlecase.h: Likewise.
57733         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57734         * lib/unictype/pr_unified_ideograph.h: Likewise.
57735         * lib/unictype/pr_uppercase.h: Likewise.
57736         * lib/unictype/pr_variation_selector.h: Likewise.
57737         * lib/unictype/pr_white_space.h: Likewise.
57738         * lib/unictype/pr_xid_continue.h: Likewise.
57739         * lib/unictype/pr_xid_start.h: Likewise.
57740         * lib/unictype/pr_zero_width.h: Likewise.
57741         * lib/unictype/scripts.h: Likewise.
57742         * lib/unictype/scripts_byname.gperf: Likewise.
57743         * lib/unictype/sy_c_ident.h: Likewise.
57744         * lib/unictype/sy_c_whitespace.h: Likewise.
57745         * lib/unictype/sy_java_ident.h: Likewise.
57746         * lib/unictype/sy_java_whitespace.h: Likewise.
57747
57748         * lib/unictype/Makefile: New file.
57749         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
57750         glibc.
57751         * lib/unictype/3level.h: New file, copied from glibc.
57752         * lib/unictype/3levelbit.h: New file.
57753
57754 2007-11-11  Bruno Haible  <bruno@clisp.org>
57755
57756         * modules/gperf: New file.
57757         * modules/iconv_open (Depends-on): Add it.
57758         (Makefile.am): Remove the GPERF definition.
57759
57760 2007-11-11  Bruno Haible  <bruno@clisp.org>
57761
57762         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
57763         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
57764
57765 2007-11-11  Bruno Haible  <bruno@clisp.org>
57766
57767         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
57768         (usage): Remove function.
57769
57770 2007-11-11  Bruno Haible  <bruno@clisp.org>
57771
57772         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
57773         gl_FUNC_CEILF_LIBS.
57774         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
57775         gl_FUNC_CEIL_LIBS.
57776         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
57777         gl_FUNC_CEILL_LIBS.
57778         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
57779         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
57780         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
57781
57782 2007-11-11  Bruno Haible  <bruno@clisp.org>
57783
57784         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
57785         roundf were declared but do not exist on functions.
57786         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
57787         roundl were declared but do not exist on functions.
57788         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
57789         HAVE_FLOORL_AND_CEILL, respectively.
57790         Needed for Sun C on Solaris 10.
57791
57792 2007-11-11  Bruno Haible  <bruno@clisp.org>
57793
57794         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
57795         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
57796         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
57797         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
57798         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
57799         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
57800         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
57801         HAVE_DECL_ROUNDF.
57802         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
57803         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
57804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
57805         of HAVE_DECL_ROUND*.
57806         * modules/math (Makefile.am): Update.
57807
57808 2007-11-10  Bruno Haible  <bruno@clisp.org>
57809
57810         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
57811         ptrdiff_t as m4/intl.m4.
57812
57813 2007-11-10  Jim Meyering  <meyering@redhat.com>
57814
57815         Avoid link failure for the argmatch test.
57816         * tests/test-argmatch.c (usage): Define function to avoid a link
57817         failure: argmatch_die requires a usage function.
57818
57819 2007-11-09  Bruno Haible  <bruno@clisp.org>
57820
57821         * doc/functions/snprintf.texi: Mention BeOS deficiency.
57822         * doc/functions/vsnprintf.texi: Likewise.
57823         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
57824         with a size argument < 2.
57825
57826 2007-11-09  Bruno Haible  <bruno@clisp.org>
57827
57828         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
57829         buffer. Fixes an inefficiency introduced on 2007-11-03.
57830
57831 2007-11-09  Bruno Haible  <bruno@clisp.org>
57832
57833         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
57834         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
57835
57836 2007-11-08  Jim Meyering  <meyering@redhat.com>
57837
57838         Change cache variable name prefix "jm_" to "gl_" everywhere.
57839         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
57840         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
57841         * m4/uptime.m4: s/gl_/jm_/
57842
57843 2007-11-07  Bruno Haible  <bruno@clisp.org>
57844
57845         Update to GNU gettext 0.17.
57846         * m4/intl.m4: Update to GNU gettext 0.17.
57847         * m4/po.m4: Likewise.
57848         * modules/gettext (Files): Remove m4/ulonglong.m4.
57849         (configure.ac): Require gettext infrastructure from version 0.17.
57850
57851 2007-11-06  Bruno Haible  <bruno@clisp.org>
57852
57853         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
57854         symbolic values are not defined in a public header.
57855         * lib/freadable.c (freadable) [QNX]: Likewise.
57856         * lib/freadahead.c (freadahead) [QNX]: Likewise.
57857         * lib/freading.c (freading) [QNX]: Likewise.
57858         * lib/fseterr.c (fseterr) [QNX]: Likewise.
57859         * lib/fwritable.c (fwritable) [QNX]: Likewise.
57860         * lib/fwriting.c (fwriting) [QNX]: Likewise.
57861         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
57862         Reported by Alain Magloire.
57863
57864         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
57865
57866 2007-11-05  Bruno Haible  <bruno@clisp.org>
57867
57868         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
57869         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
57870         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
57871         Reported by Eric Blake.
57872
57873 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57874             Bruno Haible  <bruno@clisp.org>
57875
57876         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
57877         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
57878         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
57879         (malloc): Undefine also before including <stdlib.h>.
57880         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
57881         Needed on OSF/1 4.0.
57882
57883 2007-11-05  Jim Meyering  <meyering@redhat.com>
57884
57885         git-version-gen: sync from coreutils.
57886         * build-aux/git-version-gen: Add comments.
57887         Change the first '-' to '.' in the snapshot version string,
57888         e.g., 6.9-377-08144 -> 6.9.377-08144
57889         Remove first parameter.
57890         Don't declare a version "-dirty" merely because a time
57891         stamp has changed.
57892
57893 2007-11-04  Bruno Haible  <bruno@clisp.org>
57894
57895         * lib/lock.h: Protect all macro definitions containing an 'if'
57896         statement through a "do { ... } while (0)".
57897         * lib/tls.h: Likewise.
57898
57899 2007-11-04  Bruno Haible  <bruno@clisp.org>
57900
57901         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
57902
57903 2007-11-04  Bruno Haible  <bruno@clisp.org>
57904
57905         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
57906         * modules/fprintf-posix (Depends-on): Add nocrash.
57907         * modules/snprintf-posix (Depends-on): Likewise.
57908         * modules/sprintf-posix (Depends-on): Likewise.
57909         * modules/vasnprintf-posix (Depends-on): Likewise.
57910         * modules/vasprintf-posix (Depends-on): Likewise.
57911         * modules/vfprintf-posix (Depends-on): Likewise.
57912         * modules/vsnprintf-posix (Depends-on): Likewise.
57913         * modules/vsprintf-posix (Depends-on): Likewise.
57914         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57915         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57916         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57917         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57918         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57919         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57920         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57921
57922 2007-11-04  Bruno Haible  <bruno@clisp.org>
57923
57924         * modules/nocrash: New file.
57925         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
57926         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
57927
57928 2007-11-04  Bruno Haible  <bruno@clisp.org>
57929
57930         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
57931         precision handling.
57932         * tests/test-vasprintf-posix.c (test_function): Likewise.
57933         * tests/test-snprintf-posix.h (test_function): Likewise.
57934         * tests/test-sprintf-posix.h (test_function): Likewise.
57935
57936         Fix *printf behaviour for large precisions on mingw and BeOS.
57937         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
57938         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
57939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
57940         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57941         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57942         gl_PRINTF_PRECISION and test its result. Invoke
57943         gl_PREREQ_VASNPRINTF_PRECISION.
57944         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57945         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57946         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57947         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57948         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57949         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57950         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57951         * doc/functions/fprintf.texi: Update.
57952         * doc/functions/printf.texi: Update.
57953         * doc/functions/snprintf.texi: Update.
57954         * doc/functions/sprintf.texi: Update.
57955         * doc/functions/vfprintf.texi: Update.
57956         * doc/functions/vprintf.texi: Update.
57957         * doc/functions/vsnprintf.texi: Update.
57958         * doc/functions/vsprintf.texi: Update.
57959
57960 2007-11-04  Bruno Haible  <bruno@clisp.org>
57961
57962         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
57963
57964 2007-11-04  Bruno Haible  <bruno@clisp.org>
57965
57966         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
57967         Reported by Sylvain Beucler <beuc@gnu.org>.
57968
57969 2007-11-03  Bruno Haible  <bruno@clisp.org>
57970
57971         * tests/test-fprintf-posix2.sh: New file.
57972         * tests/test-fprintf-posix2.c: New file.
57973         * modules/fprintf-posix-tests (Files): Add them.
57974         (TESTS): Add test-fprintf-posix2.sh.
57975         (configure.ac): Check for getrlimit and setrlimit.
57976         (check_PROGRAMS): Add test-fprintf-posix2.
57977
57978         * tests/test-printf-posix2.sh: New file.
57979         * tests/test-printf-posix2.c: New file.
57980         * modules/printf-posix-tests (Files): Add them.
57981         (TESTS): Add test-printf-posix2.sh.
57982         (configure.ac): Check for getrlimit and setrlimit.
57983         (check_PROGRAMS): Add test-printf-posix2.
57984
57985         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
57986         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
57987         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
57988         (decode_double): New function, copied from decode_long_double.
57989         (scale10_round_decimal_decoded): New function, extracted from
57990         scale10_round_decimal_long_double.
57991         (scale10_round_decimal_long_double): Use it.
57992         (scale10_round_decimal_double): New function.
57993         (floorlog10): New function.
57994         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
57995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
57996         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57997         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57998         gl_PRINTF_ENOMEM and test its result. Invoke
57999         gl_PREREQ_VASNPRINTF_ENOMEM.
58000         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58002         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58003         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58004         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58005         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58006         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58007         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
58008         * modules/snprintf-posix (Depends-on): Likewise.
58009         * modules/sprintf-posix (Depends-on): Likewise.
58010         * modules/vasnprintf-posix (Depends-on): Likewise.
58011         * modules/vasprintf-posix (Depends-on): Likewise.
58012         * modules/vfprintf-posix (Depends-on): Likewise.
58013         * modules/vsnprintf-posix (Depends-on): Likewise.
58014         * modules/vsprintf-posix (Depends-on): Likewise.
58015         * doc/functions/fprintf.texi: Update.
58016         * doc/functions/printf.texi: Update.
58017         * doc/functions/snprintf.texi: Update.
58018         * doc/functions/sprintf.texi: Update.
58019         * doc/functions/vfprintf.texi: Update.
58020         * doc/functions/vprintf.texi: Update.
58021         * doc/functions/vsnprintf.texi: Update.
58022         * doc/functions/vsprintf.texi: Update.
58023
58024 2007-11-03  Bruno Haible  <bruno@clisp.org>
58025
58026         * modules/frexp-nolibm-tests: New file.
58027
58028         * modules/frexp-nolibm: New file.
58029         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
58030
58031 2007-11-03  Bruno Haible  <bruno@clisp.org>
58032
58033         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
58034         value is C99 compliant.
58035         Needed for OSF/1 5.1.
58036
58037 2007-11-03  Bruno Haible  <bruno@clisp.org>
58038
58039         Fix out-of-memory handling of vasnprintf.
58040         * lib/printf-parse.c: Include <errno.h>.
58041         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
58042         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
58043         is already set.
58044
58045 2007-11-02  Eric Blake  <ebb9@byu.net>
58046
58047         Fix tests on cygwin.
58048         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
58049
58050 2007-11-01  Bruno Haible  <bruno@clisp.org>
58051
58052         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
58053         warning.
58054         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
58055         needed for POSIX compatibility.
58056
58057 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58058
58059         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
58060         for compatibility with GNU.
58061
58062 2007-11-01  Bruno Haible  <bruno@clisp.org>
58063
58064         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
58065         (putenv): Renamed from rpl_putenv. Change argument type from
58066         'const char *' to 'char *'.
58067         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
58068         of defining putenv in config.h, just set REPLACE_PUTENV.
58069         * modules/putenv (Depends-on): Add stdlib.
58070         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58071         (Include): Use <stdlib.h>.
58072         * lib/stdlib.in.h (putenv): New declaration.
58073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
58074         REPLACE_PUTENV.
58075         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
58076         REPLACE_PUTENV.
58077         Needed for MacOS X 10.5.0.
58078         Reported by Peter O'Gorman <peter@pogma.com>.
58079
58080 2007-11-01  Jim Meyering  <meyering@redhat.com>
58081
58082         Treat an empty date string exactly like "0".
58083         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
58084         if the remaining date string (to be parsed) is empty, use "0".
58085         Reported by Mischa Molhoek and discussed in this thread:
58086         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
58087
58088 2007-10-31  Bruno Haible  <bruno@clisp.org>
58089
58090         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
58091         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
58092         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
58093         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
58094         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
58095         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
58096
58097 2007-10-31  Bruno Haible  <bruno@clisp.org>
58098
58099         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
58100         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
58101         (AC_TYPE_LONG_LONG_INT): Use it.
58102         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
58103         it as well.
58104         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
58105         to m4/longlong.m4.
58106         * modules/stdint (Files): Remove m4/ulonglong.m4.
58107         * modules/strtoull (Files): Use m4/longlong.m4 instead of
58108         m4/ulonglong.m4.
58109         * modules/strtoumax (Files): Likewise.
58110
58111 2007-10-30  Bruno Haible  <bruno@clisp.org>
58112
58113         * modules/xvasprintf-posix: New file.
58114         Suggested by Eric Blake.
58115
58116 2007-10-30  Bruno Haible  <bruno@clisp.org>
58117
58118         * modules/xprintf-posix-tests: New file.
58119         * tests/test-xprintf-posix.sh: New file.
58120         * tests/test-xprintf-posix.c: New file.
58121         * tests/test-xfprintf-posix.c: New file.
58122
58123         * modules/xprintf-posix: New file.
58124
58125 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58126
58127         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
58128         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
58129         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
58130
58131 2007-10-29  Bruno Haible  <bruno@clisp.org>
58132
58133         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
58134         contain the special marker '_cv_'.
58135         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
58136         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
58137         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
58138         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
58139         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
58140         Reported by Ralf Wildenhues.
58141
58142 2007-10-29  Bruno Haible  <bruno@clisp.org>
58143
58144         * gnulib-tool (func_import): When --lgpl is not specified, set
58145         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
58146         GPLv3.
58147         Reported by Simon Josefsson.
58148
58149 2007-10-28  Bruno Haible  <bruno@clisp.org>
58150
58151         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
58152         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
58153         HAVE_DECL_ISFINITE.
58154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58155         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
58156         HAVE_DECL_ISFINITE.
58157
58158 2007-10-28  Bruno Haible  <bruno@clisp.org>
58159
58160         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
58161         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
58162
58163 2007-10-28  Bruno Haible  <bruno@clisp.org>
58164
58165         Fix link errors with Sun C 5.0 on Solaris 10.
58166         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
58167         function is declared but not present in the compiler's libm.
58168         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
58169         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
58170         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
58171         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
58172         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
58173         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
58174         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
58175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58176         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
58177         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
58178         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
58179         HAVE_DECL_FLOORL.
58180
58181 2007-10-28  Bruno Haible  <bruno@clisp.org>
58182
58183         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
58184         gl_FUNC_FLOORL. Cache the result.
58185         (gl_FUNC_FLOORL): Use it.
58186         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
58187         gl_FUNC_CEILL. Cache the result.
58188         (gl_FUNC_CEILL): Use it.
58189
58190         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
58191         gl_FUNC_FLOOR. Cache the result.
58192         (gl_FUNC_FLOOR): Use it.
58193         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
58194         gl_FUNC_CEIL. Cache the result.
58195         (gl_FUNC_CEIL): Use it.
58196
58197         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
58198         gl_FUNC_FLOORF. Cache the result.
58199         (gl_FUNC_FLOORF): Use it.
58200         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
58201         gl_FUNC_CEILF. Cache the result.
58202         (gl_FUNC_CEILF): Use it.
58203
58204 2007-10-28  Bruno Haible  <bruno@clisp.org>
58205
58206         * gnulib-tool: Allow specifying the LGPL version number through
58207         --lgpl=2 or --lgpl=3.
58208         (func_usage): Document --lgpl with argument.
58209         Handle --lgpl=... arguments.
58210         (func_import): Recognize also gl_LGPL calls with an argument. When
58211         --lgpl=2 is used and the module's license is just LGPL, report an
58212         error. Set sed_transform_lib_file according to the lgpl variable. In
58213         the generated files, use --lgpl or gl_LGPL invocations with argument,
58214         if necessary.
58215         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
58216         an LGPv2+ license.
58217         * doc/gnulib-tool.texi (Modified imports): Update explanation of
58218         gl_LGPL macro.
58219
58220 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58221             Bruno Haible  <bruno@clisp.org>
58222
58223         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
58224         (u16_uctomb_aux): Likewise.
58225         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
58226         !HAVE_INLINE.
58227         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
58228
58229 2007-10-28  Bruno Haible  <bruno@clisp.org>
58230
58231         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
58232         Invoke AM_GETTEXT_OPTION if it exists.
58233         * modules/vasprintf: Likewise.
58234         * modules/verror: Likewise.
58235         * modules/xprintf: Likewise.
58236         * modules/xvasprintf: Likewise.
58237
58238 2007-10-27  Ben Pfaff  <blp@gnu.org>
58239
58240         * lib/math.in.h: Define isfinite macro and prototypes for
58241         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
58242         implementations.
58243         * m4/math_h.m4: New substitutions for isfinite module.
58244         * lib/isfinite.c: New file.
58245         * m4/isfinite.m4: New file.
58246         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
58247         * modules/isfinite: New file.
58248         * modules/isfinite-tests: New file.
58249         * tests/tests-isfinite.c: New file.
58250         * doc/functions/isfinite.texi: Mention isfinite module.
58251         * MODULES.html.sh: Mention new module.
58252
58253 2007-10-27  Ben Pfaff  <blp@gnu.org>
58254
58255         Ralf Wildenhues reported that Tru64 4.0D declares the round
58256         functions but does not have definitions.
58257         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
58258         cannot be found in any library, set the output variable to
58259         "missing" instead of "".
58260         * m4/round.m4: Also use our substitute if we cannot find round in
58261         any library, even if it is declared.
58262         * m4/roundf.m4: Likewise for roundf.
58263         * m4/roundl.m4: Likewise for roundl.
58264         * lib/math.in.h: Undefine roundf, round, roundl before defining
58265         their replacements, to allow for hypothetical systems where these
58266         may be defined as macros but not available in libraries.
58267
58268 2007-10-27  Bruno Haible  <bruno@clisp.org>
58269
58270         * doc/gnulib.texi: Invoke @firstparagraphindent.
58271         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
58272         changes in gnulib.
58273         (Source changes): New section.
58274
58275 2007-10-26  Bruno Haible  <bruno@clisp.org>
58276
58277         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
58278         borrowed from autoconf.
58279
58280 2007-10-26  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
58283         strerror returned the empty string. Needed on HP-UX 11.00.
58284
58285 2007-10-24  Micah Cowan  <micah@cowan.name>
58286
58287         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
58288         * build-aux/bootstrap: Remove support for now-unnecessary option,
58289         --cvs-user, and envvars CVS_USER, CVS_RSH.
58290
58291 2007-10-24  Jim Meyering  <meyering@redhat.com>
58292
58293         Avoid diagnostics from sha1sum when there is no cached checksum.
58294         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
58295         if the po.s1 file hasn't been created yet.
58296
58297         * build-aux/bootstrap: Sync from coreutils:
58298         2007-10-24  Jim Meyering  <meyering@redhat.com>
58299         Get gnulib from the git repository, not from an obsolete cvs one.
58300         * build-aux/bootstrap: Suggestion from Micah Cowan.
58301         2007-10-04  Jim Meyering  <jim@meyering.net>
58302         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
58303         (update_po_files): Work also when there are no .po files in po/.
58304
58305 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58306
58307         * README: Append ".git" to git and cg examples.
58308         Problem reported by Benoit Sigoure.
58309
58310 2007-10-23  Micah Cowan  <micah@cowan.name>
58311
58312         * users.txt: Add wget.
58313
58314 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58315
58316         Fix linking of some unistdio tests on FreeBSD.
58317         * modules/unistdio/u16-vsnprintf-tests
58318         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
58319         * modules/unistdio/u16-vsprintf-tests
58320         (test_u16_vsnprintf1_LDADD): Likewise.
58321         * modules/unistdio/u32-vsnprintf-tests
58322         (test_u32_vsnprintf1_LDADD): Likewise.
58323         * modules/unistdio/u32-vsprintf-tests
58324         (test_u32_vsprintf1_LDADD): Likewise.
58325         * modules/unistdio/u8-vsnprintf-tests
58326         (test_u8_vsnprintf1_LDADD): Likewise.
58327         * modules/unistdio/u8-vsprintf-tests
58328         (test_u8_vsprintf1_LDADD): Likewise.
58329         * modules/unistdio/ulc-vsnprintf-tests
58330         (test_ulc_vsnprintf1_LDADD): Likewise.
58331         * modules/unistdio/ulc-vsprintf-tests
58332         (test_ulc_vsprintf1_LDADD): Likewise.
58333
58334         Fix linking of some uniconv tests on FreeBSD.
58335         * modules/uniconv/u16-conv-from-enc-tests
58336         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
58337         * modules/uniconv/u16-conv-to-enc-tests
58338         (test_u16_conv_to_enc_LDADD): Likewise.
58339         * modules/uniconv/u16-strconv-from-enc-tests
58340         (test_u16_strconv_from_enc_LDADD): Likewise.
58341         * modules/uniconv/u16-strconv-to-enc-tests
58342         (test_u16_strconv_to_enc_LDADD): Likewise.
58343         * modules/uniconv/u32-conv-from-enc-tests
58344         (test_u32_conv_from_enc_LDADD): Likewise.
58345         * modules/uniconv/u32-conv-to-enc-tests
58346         (test_u32_conv_to_enc_LDADD): Likewise.
58347         * modules/uniconv/u32-strconv-from-enc-tests
58348         (test_u32_strconv_from_enc_LDADD): Likewise.
58349         * modules/uniconv/u32-strconv-to-enc-tests
58350         (test_u32_strconv_to_enc_LDADD): Likewise.
58351         * modules/uniconv/u8-conv-from-enc-tests
58352         (test_u8_conv_from_enc_LDADD): Likewise.
58353         * modules/uniconv/u8-conv-to-enc-tests
58354         (test_u8_conv_to_enc_LDADD): Likewise.
58355         * modules/uniconv/u8-strconv-from-enc-tests
58356         (test_u8_strconv_from_enc_LDADD): Likewise.
58357         * modules/uniconv/u8-strconv-to-enc-tests
58358         (test_u8_strconv_to_enc_LDADD): Likewise.
58359
58360 2007-10-22  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
58363         size.
58364
58365 2007-10-22  Eric Blake  <ebb9@byu.net>
58366
58367         Tweak x*printf documentation.
58368         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
58369         variable name and comments.
58370         Suggested by Bruno Haible.
58371
58372 2007-10-22  Bruno Haible  <bruno@clisp.org>
58373
58374         * lib/acl.c (copy_acl): Fix file name in comment.
58375
58376 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58377
58378         Fix Tru64 problem with stdbool.h.
58379         * lib/stdbool.in.h (false, true):
58380         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
58381         Don't declare as an enum in this situation; it runs afoul of Tru64.
58382         Problem reported by Steven M. Schweda in
58383         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
58384
58385 2007-10-22  Eric Blake  <ebb9@byu.net>
58386
58387         Also wrap vf?printf.
58388         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
58389         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
58390         (xvprintf, xvfprintf): New functions.
58391
58392 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58393
58394         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
58395         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
58396
58397         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
58398         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
58399
58400 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58401
58402         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
58403         by Bruno Haible.
58404
58405 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58406
58407         * lib/getloadavg.c
58408         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
58409         Undef `sys' after including sys/table.h, for Tru64 4.0D.
58410
58411         * tests/test-i-ring.c: Work for C89.
58412
58413 2007-10-22  Bruno Haible  <bruno@clisp.org>
58414
58415         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
58416         -1u, in preprocessor expression, so that we don't test for the bug
58417         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
58418         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
58419
58420 2007-10-22  Eric Blake  <ebb9@byu.net>
58421
58422         * tests/test-yesno.sh: Silence stderr during test.
58423
58424 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58425
58426         * modules/crypto/gc-camellia: New file.
58427
58428         * m4/gc-camellia.m4: New file.
58429
58430         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
58431
58432         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
58433
58434 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58435
58436         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
58437         --help to stdout.  Reported by sms@antinode.org (Steven
58438         M. Schweda).
58439
58440 2007-10-22  Simon Josefsson  <simon@josefsson.org>
58441
58442         * users.txt: Fix link to libksba.
58443
58444 2007-10-21  Ben Pfaff  <blp@gnu.org>
58445
58446         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
58447         round.c roundf implementation that depends on floorf and ceilf to
58448         be tested unconditionally.
58449
58450 2007-10-21  Ben Pfaff  <blp@gnu.org>
58451
58452         * m4/check-libm-func.m4: Removed.
58453         * m4/check-math-lib.m4: New file.
58454         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
58455         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
58456         definition and lack of AC_LIBOBJ([roundf]).
58457         * m4/roundl.m4: Ditto, and similarly for roundl.
58458         * modules/round: Reference new m4 file.
58459         * modules/roundf: Ditto.
58460         * modules/roundl: Ditto.
58461         * tests/test-round2.c (main): Use ROUND instead of round.
58462         Bug report from Bruno Haible.
58463
58464 2007-10-21  Bruno Haible  <bruno@clisp.org>
58465
58466         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
58467         context.
58468
58469 2007-10-21  Bruno Haible  <bruno@clisp.org>
58470
58471         * tests/test-wcwidth.c (main): Allow negative result for some control
58472         characters.
58473
58474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
58475         Needed on OSF/1 5.1.
58476
58477 2007-10-21  Bruno Haible  <bruno@clisp.org>
58478
58479         * tests/test-floorf1.c: Include isnanf.h.
58480         (main): Use isnanf() instead of isnan().
58481         * tests/test-ceilf1.c: Include isnanf.h.
58482         (main): Use isnanf() instead of isnan().
58483         * tests/test-truncf1.c: Include isnanf.h.
58484         (main): Use isnanf() instead of isnan().
58485         * tests/test-roundf1.c: Include isnanf.h.
58486         (main): Use isnanf() instead of isnan().
58487
58488 2007-10-21  Eric Blake  <ebb9@byu.net>
58489
58490         * users.txt: Update URL for m4.
58491
58492 2007-10-21  Bruno Haible  <bruno@clisp.org>
58493
58494         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
58495
58496 2007-10-21  Bruno Haible  <bruno@clisp.org>
58497
58498         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
58499         Git's management files if the CVS files are not present.
58500
58501 2007-10-20  Bruno Haible  <bruno@clisp.org>
58502
58503         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
58504         gcc-3.4.x.
58505
58506 2007-10-20  Ben Pfaff  <blp@gnu.org>
58507
58508         * lib/math.in.h: Declare round, roundf, roundl if we are providing
58509         implementations.
58510         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
58511         * lib/round.c: New file.
58512         * lib/roundf.c: New file.
58513         * lib/roundl.c: New file.
58514         * m4/round.m4: New file.
58515         * m4/roundf.m4: New file.
58516         * m4/roundl.m4: New file.
58517         * m4/check-libm-func-m4: New file.
58518         * modules/math: Replace round, roundf, roundl related @VARS@ in
58519         math.in.h.
58520         * modules/round: New file.
58521         * modules/round-tests: New file.
58522         * modules/roundf: New file.
58523         * modules/roundf-tests: New file.
58524         * modules/roundl: New file.
58525         * modules/roundl-tests: New file.
58526         * tests/test-round1.c: New file.
58527         * tests/test-round2.c: New file.
58528         * tests/test-roundf1.c: New file.
58529         * tests/test-roundf2.c: New file.
58530         * tests/test-roundl.c: New file.
58531         * doc/functions/round.texi: Mention round module.
58532         * doc/functions/roundf.texi: Mention roundf module.
58533         * doc/functions/roundl.texi: Mention roundl module.
58534         * MODULES.html.sh: Mention new modules.
58535         Thanks to Bruno Haible for suggestions.
58536
58537 2007-10-20  Jim Meyering  <meyering@redhat.com>
58538
58539         * lib/xprintf.c: Include <config.h> unconditionally.
58540
58541         Change xprintf's license to GPL.
58542         * modules/xprintf (License): s/LGPL/GPL/, since this module
58543         depends on modules (exit and exitfail) which are GPL.
58544         Suggestion from Bruno Haible.
58545
58546         xprintf fixes.
58547         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
58548         Use a clearer diagnostic.
58549         Patch from Bruno Haible.
58550
58551 2007-10-20  Bruno Haible  <bruno@clisp.org>
58552
58553         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
58554         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
58555         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58556
58557 2007-10-20  Bruno Haible  <bruno@clisp.org>
58558
58559         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
58560         precision in the comparison result > x - 1 or similar.
58561         * tests/test-ceilf2.c (correct_result_p): Likewise.
58562         * tests/test-truncf2.c (correct_result_p): Likewise.
58563         * tests/test-trunc2.c (correct_result_p): Likewise.
58564         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58565
58566 2007-10-20  Bruno Haible  <bruno@clisp.org>
58567
58568         * modules/ceil: New file.
58569         * m4/ceil.m4: New file.
58570         * doc/functions/ceil.texi: Mention the 'ceil' module.
58571
58572 2007-10-20  Bruno Haible  <bruno@clisp.org>
58573
58574         * modules/floor: New file.
58575         * m4/floor.m4: New file.
58576         * doc/functions/floor.texi: Mention the 'floor' module.
58577
58578 2007-10-20  Bruno Haible  <bruno@clisp.org>
58579
58580         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
58581         of %a.
58582         * modules/floorf-tests (Depends-on): Likewise.
58583         * modules/truncf-tests (Depends-on): Likewise.
58584         * modules/trunc-tests (Depends-on): Likewise.
58585         Reported by Ben Pfaff.
58586
58587 2007-10-19  Jim Meyering  <meyering@redhat.com>
58588
58589         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
58590         Don't bother testing specific errno values.  Just test ferror.
58591
58592         New module: xprintf
58593         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
58594
58595 2007-10-19  Bruno Haible  <bruno@clisp.org>
58596
58597         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
58598         syntax.
58599         * modules/javaexec (Makefile.am): Likewise.
58600         * modules/relocatable-prog (Makefile.am): Likewise.
58601         Suggested by Jim Meyering.
58602
58603 2007-10-18  Bruno Haible  <bruno@clisp.org>
58604
58605         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
58606         Reported by Jim Meyering.
58607
58608 2007-10-18  Eric Blake  <ebb9@byu.net>
58609
58610         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
58611
58612 2007-10-18  Bruno Haible  <bruno@clisp.org>
58613
58614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
58615         the format string into writable memory. Needed in Fortify conditions.
58616
58617 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
58618             Bruno Haible  <bruno@clisp.org>
58619
58620         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
58621         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
58622         * modules/trim (Depends-on): Add mbchar.
58623         (configure.ac): Add gl_FUNC_MBRTOWC.
58624         (Makefile.am): Augment lib_SOURCES.
58625
58626 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58627
58628         Modify glob.c to use fstatat and dirfd, to simplify it.
58629         Suggested by Eric Blake.
58630         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
58631         Don't include <stdbool.h>; not used.
58632         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
58633         (link_exists_p): Simplify implementation, since we can now assume
58634         dirfd and fstatat.
58635         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
58636
58637 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58638
58639         * gnulib-tool (func_get_dependencies): Fix sed script to
58640         match only tests.
58641
58642 2007-10-17  Bruno Haible  <bruno@clisp.org>
58643
58644         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
58645         allow locale names without encoding suffix.
58646         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58647         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58648
58649 2007-10-16  Bruno Haible  <bruno@clisp.org>
58650
58651         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
58652         * lib/getgroups.c (getgroups): Likewise.
58653         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
58654
58655 2007-10-16  Bruno Haible  <bruno@clisp.org>
58656
58657         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
58658         * modules/malloc-posix (License): Likewise.
58659         * modules/realloc-posix (License): Likewise.
58660         * modules/calloc-posix (License): Likewise.
58661         * modules/intprops (License): Change from GPL to LGPL, with
58662         Paul Eggert's approval.
58663
58664 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58665
58666         Merge glibc changes into lib/glob.c.
58667
58668         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
58669         2007-10-15 04:59:03 UTC.  Here are the changes:
58670
58671         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
58672
58673         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
58674
58675         * lib/glob.c: Add some branch prediction throughout.
58676
58677         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
58678
58679         [BZ #5103]
58680         * lib/glob.c (glob): Recognize patterns starting \/.
58681
58682         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
58683
58684         [BZ #3996]
58685         * lib/glob.c (attribute_hidden): Define if not defined.
58686         (glob): Unescape dirname, filename or username when needed and not
58687         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
58688         is NULL.  Handle unescaped [ in pattern without closing ].
58689         Don't pass GLOB_CHECK down to recursive glob for directories.
58690         (__glob_pattern_type): New function.
58691         (__glob_pattern_p): Implement using __glob_pattern_type.
58692         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
58693         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
58694         Remove unreachable code.
58695
58696         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
58697
58698         * lib/glob.c (glob_in_dir): Add some comments and asserts to
58699         explain why there are no leaks.
58700
58701         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
58702
58703         [BZ #3253]
58704         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
58705         time, rather allocate increasingly bigger arrays of pointers, if
58706         possible with alloca, if too large with malloc.
58707
58708 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58709
58710         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
58711         Problem reported by H.Merijn Brand in
58712         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
58713         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
58714         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
58715
58716 2007-10-15  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
58719         with explicit rpl_ prefix.
58720         * lib/fopen.c (fopen): Likewise.
58721         * lib/freopen.c (freopen): Likewise.
58722         * lib/iconv.c (iconv): Likewise.
58723         * lib/iconv_close.c (iconv_close): Likewise.
58724
58725 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58726
58727         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
58728
58729 2007-10-15  Bruno Haible  <bruno@clisp.org>
58730
58731         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
58732         <stddef.h> instead of <stdlib.h> since we only need NULL.
58733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58734
58735 2007-10-15  Bruno Haible  <bruno@clisp.org>
58736
58737         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
58738         Replace paragraph talking about LIBOBJS.
58739         Reported by Colin Watson <cjwatson@debian.org>.
58740
58741 2007-10-15  Bruno Haible  <bruno@clisp.org>
58742
58743         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
58744         <stdlib.h> before using NULL.
58745
58746 2007-10-15  Simon Josefsson  <simon@josefsson.org>
58747
58748         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
58749         Reported by Albert Chin <china@thewrittenword.com>.
58750
58751 2007-10-14  Bruno Haible  <bruno@clisp.org>
58752
58753         * modules/iconv_open-utf-tests: New file.
58754         * tests/test-iconv-utf.c: New file.
58755
58756         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
58757         * modules/iconv_open-utf: New file.
58758         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
58759         (iconv, iconv_close): New declarations.
58760         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
58761         be defined.
58762         (iconv_open): Add special handling of conversion between UTF-8 and
58763         UTF-{16,32}{BE,LE}.
58764         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
58765         * lib/iconv_close.c: New file.
58766         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
58767         gl_FUNC_ICONV_OPEN.
58768         (gl_FUNC_ICONV_OPEN): Use it.
58769         (gl_FUNC_ICONV_OPEN_UTF): New macro.
58770         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
58771         and REPLACE_ICONV_UTF.
58772         * modules/iconv_open (Depends-on): Add c-strcase.
58773         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
58774         ICONV_CONST.
58775         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
58776
58777 2007-10-13  Albert Chin  <china@thewrittenword.com>
58778             Bruno Haible  <bruno@clisp.org>
58779
58780         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
58781         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
58782
58783 2007-10-13  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
58786         defined, use the ISO C99 inline semantics.
58787         * lib/argp.h (ARGP_EI): Likewise.
58788
58789 2007-10-13  Bruno Haible  <bruno@clisp.org>
58790
58791         Handle 'inline' change in gcc 4.3.0.
58792         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
58793         argp_fmtstream_write, argp_fmtstream_set_lmargin,
58794         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
58795         argp_fmtstream_point): Disable 'extern' declaration if the function
58796         definition is going to be provided inline.
58797         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
58798         semantics, not the ISO C99 inline semantics.
58799         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
58800         'extern' declaration if the function definition is going to be provided
58801         inline.
58802         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
58803         the GNU C inline semantics, not the ISO C99 inline semantics. With
58804         GCC 4.2, avoid a warning.
58805
58806 2007-10-13  Bruno Haible  <bruno@clisp.org>
58807
58808         * lib/freading.h (freading): Enable the use of __freading for
58809         glibc >= 2.7.
58810         * lib/freading.c (freading): Likewise.
58811
58812 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58813
58814         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
58815         "warning: C99 inline functions are not supported; using GNU89".
58816
58817 2007-10-12  Bruno Haible  <bruno@clisp.org>
58818
58819         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
58820         of 2.
58821         * tests/test-ceilf2.c: New file.
58822         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
58823
58824         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
58825         * modules/ceilf-tests: Update.
58826
58827 2007-10-12  Bruno Haible  <bruno@clisp.org>
58828
58829         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
58830         of 2.
58831         * tests/test-floorf2.c: New file.
58832         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
58833
58834         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
58835         * modules/floorf-tests: Update.
58836
58837 2007-10-12  Bruno Haible  <bruno@clisp.org>
58838
58839         * tests/test-trunc2.c: New file.
58840         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
58841
58842         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
58843         * modules/trunc-tests: Update.
58844
58845 2007-10-12  Bruno Haible  <bruno@clisp.org>
58846
58847         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
58848         of 2.
58849         * tests/test-truncf2.c: New file.
58850         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
58851
58852         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
58853         * modules/truncf-tests: Update.
58854
58855 2007-10-11  Eric Blake  <ebb9@byu.net>
58856
58857         Don't claim strerror is broken on Interix.
58858         * doc/functions/strerror.texi (strerror): Known broken systems are
58859         now Solaris 8, and not Interix.
58860         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
58861         Interix on cross-compile.
58862         Reported by Martin Koeppe in
58863         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
58864
58865 2007-10-11  Bruno Haible  <bruno@clisp.org>
58866
58867         * modules/i-ring-tests: New file.
58868         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
58869         instead of assert.
58870
58871 2007-10-11  Bruno Haible  <bruno@clisp.org>
58872
58873         * modules/filenamecat-tests: New file.
58874         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
58875         * lib/filenamecat.c: Remove test code.
58876
58877 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58878
58879         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
58880
58881         * lib/strerror.c: Include <string.h> always, to test interface,
58882         and to remove the need for the dummy.
58883         Include intprops.h to compute width instead of doing it ourselves
58884         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
58885         (strerror): Define it to return NULL if there's no system strerror.
58886         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
58887         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
58888         ancient pre-strerror Unix systems well any more.  Saying "unknown
58889         system error" is enough.
58890         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
58891         simpler strerror.c implementation.
58892         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
58893         Simplify the tests to reflect the simpler strerror implementation.
58894         * modules/strerror (Depends-on): Add intprops.
58895
58896 2007-10-09  Eric Blake  <ebb9@byu.net>
58897
58898         Silence test-fpending.
58899         * modules/fpending-tests (Files): Add wrapper script.
58900         * tests/test-fpending.sh: New file.
58901
58902 2007-10-09  Bruno Haible  <bruno@clisp.org>
58903
58904         * MODULES.html.sh (func_module): Don't create a hyperlink for
58905         function names like 'printf_frexp'.
58906         (Misc): Add crc, memxor.
58907         (Characteristics of floating types): New section.
58908         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
58909         isnanf-nolibm, signbit, trunc, truncf, truncl.
58910         (Enhancements for ISO C 99 functions): New subsection Input/output.
58911         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
58912         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
58913         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
58914         (Compatibility checks for POSIX:2001 functions): Add clock-time.
58915         (Enhancements for POSIX:2001 functions): Add chdir-long.
58916         (File system functions): Add areadlink, chdir-safer, read-file.
58917         Remove cycle-check.
58918         (File system as inode set): New section.
58919         (Date and time): Add gethrxtime.
58920         (Multithreading): Add openmp.
58921         (Internationalization functions): Add localename.
58922         (Unicode string functions): Add unistr/u*-mbsnlen.
58923         (Support for maintaining and releasing projects): Add git-version-gen.
58924         (Lone files): Remove directories.
58925
58926 2007-10-08  Ben Pfaff  <blp@gnu.org>
58927
58928         * lib/xmalloca.h: Fix typo in comment.
58929
58930 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58931
58932         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
58933         when avoiding problems with integer overflow.  Use a portable test
58934         instead.
58935
58936 2007-10-08  Simon Josefsson  <simon@josefsson.org>
58937
58938         * modules/dummy (License): Change to LGPLv2+.
58939         * modules/float (License): Likewise
58940         * modules/realloc (License): Likewise
58941         * modules/stdlib (License): Likewise
58942
58943 2007-10-07  Bruno Haible  <bruno@clisp.org>
58944
58945         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
58946         * floor.c (TWO_MANT_DIG): Likewise.
58947         * ceil.c (TWO_MANT_DIG): Likewise.
58948         Reported by Ben Pfaff.
58949
58950 2007-10-07  Bruno Haible  <bruno@clisp.org>
58951
58952         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
58953         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
58954         * lib/frexp.c (FUNC): Likewise.
58955         * lib/printf-frexp.h (printf_frexp): Likewise.
58956         * lib/printf-frexpl.h (printf_frexpl): Likewise.
58957         * lib/printf-frexp.c (FUNC): Likewise.
58958         Suggested by Jim Meyering.
58959
58960 2007-10-07  Jim Meyering  <meyering@redhat.com>
58961
58962         Make xnanosleep's integer overflow test more robust.
58963         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
58964         so that gcc-4.3.0 doesn't optimize away this test for overflow.
58965
58966 2007-10-07  Bruno Haible  <bruno@clisp.org>
58967
58968         * NEWS: Mention the license change.
58969
58970         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
58971         abbreviations in the modules files.
58972
58973         Change copyright notice from GPLv2+ to GPLv3+.
58974         * README: Change copyright notice.
58975         * MODULES.html.sh: Likewise.
58976         * build-aux/bootstrap.conf: Likewise.
58977         * build-aux/config.libpath: Likewise.
58978         * build-aux/csharpcomp.sh.in: Likewise.
58979         * build-aux/csharpexec.sh.in: Likewise.
58980         * build-aux/install-reloc: Likewise.
58981         * build-aux/javacomp.sh.in: Likewise.
58982         * build-aux/javaexec.sh.in: Likewise.
58983         * build-aux/ldd.sh.in: Likewise.
58984         * build-aux/reloc-ldflags: Likewise.
58985         * build-aux/relocatable.sh.in: Likewise.
58986         * build-aux/x-to-1.in: Likewise.
58987         * check-module: Likewise.
58988         * config/srclistvars.sh: Likewise.
58989         * gnulib-tool: Likewise.
58990         * lib/acl-internal.h: Likewise.
58991         * lib/acl.c: Likewise.
58992         * lib/acl.h: Likewise.
58993         * lib/acl_entries.c: Likewise.
58994         * lib/areadlink-with-size.c: Likewise.
58995         * lib/areadlink.c: Likewise.
58996         * lib/areadlink.h: Likewise.
58997         * lib/argmatch.c: Likewise.
58998         * lib/argmatch.h: Likewise.
58999         * lib/argp-ba.c: Likewise.
59000         * lib/argp-eexst.c: Likewise.
59001         * lib/argp-fmtstream.c: Likewise.
59002         * lib/argp-fmtstream.h: Likewise.
59003         * lib/argp-fs-xinl.c: Likewise.
59004         * lib/argp-help.c: Likewise.
59005         * lib/argp-namefrob.h: Likewise.
59006         * lib/argp-parse.c: Likewise.
59007         * lib/argp-pin.c: Likewise.
59008         * lib/argp-pv.c: Likewise.
59009         * lib/argp-pvh.c: Likewise.
59010         * lib/argp-xinl.c: Likewise.
59011         * lib/argp.h: Likewise.
59012         * lib/at-func.c: Likewise.
59013         * lib/atanl.c: Likewise.
59014         * lib/backupfile.c: Likewise.
59015         * lib/backupfile.h: Likewise.
59016         * lib/basename.c: Likewise.
59017         * lib/binary-io.h: Likewise.
59018         * lib/byteswap.in.h: Likewise.
59019         * lib/c-stack.c: Likewise.
59020         * lib/c-stack.h: Likewise.
59021         * lib/c-strcasestr.c: Likewise.
59022         * lib/c-strcasestr.h: Likewise.
59023         * lib/c-strstr.c: Likewise.
59024         * lib/c-strstr.h: Likewise.
59025         * lib/c-strtod.c: Likewise.
59026         * lib/calloc.c: Likewise.
59027         * lib/canon-host.c: Likewise.
59028         * lib/canon-host.h: Likewise.
59029         * lib/canonicalize-lgpl.c: Likewise.
59030         * lib/canonicalize.c: Likewise.
59031         * lib/canonicalize.h: Likewise.
59032         * lib/ceil.c: Likewise.
59033         * lib/ceilf.c: Likewise.
59034         * lib/ceill.c: Likewise.
59035         * lib/chdir-long.c: Likewise.
59036         * lib/chdir-long.h: Likewise.
59037         * lib/chdir-safer.c: Likewise.
59038         * lib/chdir-safer.h: Likewise.
59039         * lib/chown.c: Likewise.
59040         * lib/classpath.c: Likewise.
59041         * lib/classpath.h: Likewise.
59042         * lib/clean-temp.c: Likewise.
59043         * lib/clean-temp.h: Likewise.
59044         * lib/cloexec.c: Likewise.
59045         * lib/close-stream.c: Likewise.
59046         * lib/closein.c: Likewise.
59047         * lib/closein.h: Likewise.
59048         * lib/closeout.c: Likewise.
59049         * lib/closeout.h: Likewise.
59050         * lib/concat-filename.c: Likewise.
59051         * lib/copy-file.c: Likewise.
59052         * lib/copy-file.h: Likewise.
59053         * lib/count-one-bits.h: Likewise.
59054         * lib/crc.c: Likewise.
59055         * lib/crc.h: Likewise.
59056         * lib/creat-safer.c: Likewise.
59057         * lib/csharpcomp.c: Likewise.
59058         * lib/csharpcomp.h: Likewise.
59059         * lib/csharpexec.c: Likewise.
59060         * lib/csharpexec.h: Likewise.
59061         * lib/cycle-check.c: Likewise.
59062         * lib/cycle-check.h: Likewise.
59063         * lib/diacrit.c: Likewise.
59064         * lib/diacrit.h: Likewise.
59065         * lib/diffseq.h: Likewise.
59066         * lib/dirchownmod.c: Likewise.
59067         * lib/dirent.in.h: Likewise.
59068         * lib/dirfd.c: Likewise.
59069         * lib/dirfd.h: Likewise.
59070         * lib/dirname.c: Likewise.
59071         * lib/dirname.h: Likewise.
59072         * lib/dummy.c: Likewise.
59073         * lib/dup-safer.c: Likewise.
59074         * lib/dup2.c: Likewise.
59075         * lib/eealloc.h: Likewise.
59076         * lib/error.c: Likewise.
59077         * lib/error.h: Likewise.
59078         * lib/euidaccess.c: Likewise.
59079         * lib/exclude.c: Likewise.
59080         * lib/exclude.h: Likewise.
59081         * lib/execute.c: Likewise.
59082         * lib/execute.h: Likewise.
59083         * lib/exitfail.c: Likewise.
59084         * lib/exitfail.h: Likewise.
59085         * lib/expl.c: Likewise.
59086         * lib/fatal-signal.c: Likewise.
59087         * lib/fatal-signal.h: Likewise.
59088         * lib/fbufmode.c: Likewise.
59089         * lib/fbufmode.h: Likewise.
59090         * lib/fchdir.c: Likewise.
59091         * lib/fchmodat.c: Likewise.
59092         * lib/fchownat.c: Likewise.
59093         * lib/fcntl--.h: Likewise.
59094         * lib/fcntl-safer.h: Likewise.
59095         * lib/fcntl.in.h: Likewise.
59096         * lib/fd-safer.c: Likewise.
59097         * lib/fflush.c: Likewise.
59098         * lib/file-has-acl.c: Likewise.
59099         * lib/file-set.c: Likewise.
59100         * lib/file-type.c: Likewise.
59101         * lib/file-type.h: Likewise.
59102         * lib/fileblocks.c: Likewise.
59103         * lib/filemode.c: Likewise.
59104         * lib/filemode.h: Likewise.
59105         * lib/filename.h: Likewise.
59106         * lib/filenamecat.c: Likewise.
59107         * lib/filenamecat.h: Likewise.
59108         * lib/findprog.c: Likewise.
59109         * lib/findprog.h: Likewise.
59110         * lib/float.in.h: Likewise.
59111         * lib/floor.c: Likewise.
59112         * lib/floorf.c: Likewise.
59113         * lib/floorl.c: Likewise.
59114         * lib/fopen-safer.c: Likewise.
59115         * lib/fopen.c: Likewise.
59116         * lib/fpending.c: Likewise.
59117         * lib/fpending.h: Likewise.
59118         * lib/fprintf.c: Likewise.
59119         * lib/fprintftime.h: Likewise.
59120         * lib/fpucw.h: Likewise.
59121         * lib/fpurge.c: Likewise.
59122         * lib/fpurge.h: Likewise.
59123         * lib/freadable.c: Likewise.
59124         * lib/freadable.h: Likewise.
59125         * lib/freadahead.c: Likewise.
59126         * lib/freadahead.h: Likewise.
59127         * lib/freading.c: Likewise.
59128         * lib/freading.h: Likewise.
59129         * lib/free.c: Likewise.
59130         * lib/freopen.c: Likewise.
59131         * lib/frexp.c: Likewise.
59132         * lib/frexpl.c: Likewise.
59133         * lib/fseek.c: Likewise.
59134         * lib/fseterr.c: Likewise.
59135         * lib/fseterr.h: Likewise.
59136         * lib/fstatat.c: Likewise.
59137         * lib/fstrcmp.c: Likewise.
59138         * lib/fstrcmp.h: Likewise.
59139         * lib/fsusage.c: Likewise.
59140         * lib/fsusage.h: Likewise.
59141         * lib/ftell.c: Likewise.
59142         * lib/ftello.c: Likewise.
59143         * lib/fts-cycle.c: Likewise.
59144         * lib/fts.c: Likewise.
59145         * lib/fts_.h: Likewise.
59146         * lib/full-read.c: Likewise.
59147         * lib/full-read.h: Likewise.
59148         * lib/full-write.c: Likewise.
59149         * lib/full-write.h: Likewise.
59150         * lib/fwritable.c: Likewise.
59151         * lib/fwritable.h: Likewise.
59152         * lib/fwriteerror.c: Likewise.
59153         * lib/fwriteerror.h: Likewise.
59154         * lib/fwriting.c: Likewise.
59155         * lib/fwriting.h: Likewise.
59156         * lib/gcd.c: Likewise.
59157         * lib/gcd.h: Likewise.
59158         * lib/getcwd.c: Likewise.
59159         * lib/getdate.h: Likewise.
59160         * lib/getdate.y: Likewise.
59161         * lib/getdomainname.c: Likewise.
59162         * lib/getdomainname.h: Likewise.
59163         * lib/getgroups.c: Likewise.
59164         * lib/gethostname.c: Likewise.
59165         * lib/gethrxtime.c: Likewise.
59166         * lib/gethrxtime.h: Likewise.
59167         * lib/getloadavg.c: Likewise.
59168         * lib/getndelim2.c: Likewise.
59169         * lib/getndelim2.h: Likewise.
59170         * lib/getnline.c: Likewise.
59171         * lib/getnline.h: Likewise.
59172         * lib/getopt.c: Likewise.
59173         * lib/getopt.in.h: Likewise.
59174         * lib/getopt1.c: Likewise.
59175         * lib/getopt_int.h: Likewise.
59176         * lib/getpagesize.h: Likewise.
59177         * lib/getsubopt.c: Likewise.
59178         * lib/gettime.c: Likewise.
59179         * lib/getugroups.c: Likewise.
59180         * lib/getugroups.h: Likewise.
59181         * lib/getusershell.c: Likewise.
59182         * lib/gl_anyavltree_list1.h: Likewise.
59183         * lib/gl_anyavltree_list2.h: Likewise.
59184         * lib/gl_anyhash_list1.h: Likewise.
59185         * lib/gl_anyhash_list2.h: Likewise.
59186         * lib/gl_anylinked_list1.h: Likewise.
59187         * lib/gl_anylinked_list2.h: Likewise.
59188         * lib/gl_anyrbtree_list1.h: Likewise.
59189         * lib/gl_anyrbtree_list2.h: Likewise.
59190         * lib/gl_anytree_list1.h: Likewise.
59191         * lib/gl_anytree_list2.h: Likewise.
59192         * lib/gl_anytree_oset.h: Likewise.
59193         * lib/gl_anytreehash_list1.h: Likewise.
59194         * lib/gl_anytreehash_list2.h: Likewise.
59195         * lib/gl_array_list.c: Likewise.
59196         * lib/gl_array_list.h: Likewise.
59197         * lib/gl_array_oset.c: Likewise.
59198         * lib/gl_array_oset.h: Likewise.
59199         * lib/gl_avltree_list.c: Likewise.
59200         * lib/gl_avltree_list.h: Likewise.
59201         * lib/gl_avltree_oset.c: Likewise.
59202         * lib/gl_avltree_oset.h: Likewise.
59203         * lib/gl_avltreehash_list.c: Likewise.
59204         * lib/gl_avltreehash_list.h: Likewise.
59205         * lib/gl_carray_list.c: Likewise.
59206         * lib/gl_carray_list.h: Likewise.
59207         * lib/gl_linked_list.c: Likewise.
59208         * lib/gl_linked_list.h: Likewise.
59209         * lib/gl_linkedhash_list.c: Likewise.
59210         * lib/gl_linkedhash_list.h: Likewise.
59211         * lib/gl_list.c: Likewise.
59212         * lib/gl_list.h: Likewise.
59213         * lib/gl_oset.c: Likewise.
59214         * lib/gl_oset.h: Likewise.
59215         * lib/gl_rbtree_list.c: Likewise.
59216         * lib/gl_rbtree_list.h: Likewise.
59217         * lib/gl_rbtree_oset.c: Likewise.
59218         * lib/gl_rbtree_oset.h: Likewise.
59219         * lib/gl_rbtreehash_list.c: Likewise.
59220         * lib/gl_rbtreehash_list.h: Likewise.
59221         * lib/gl_sublist.c: Likewise.
59222         * lib/gl_sublist.h: Likewise.
59223         * lib/group-member.c: Likewise.
59224         * lib/group-member.h: Likewise.
59225         * lib/hard-locale.c: Likewise.
59226         * lib/hard-locale.h: Likewise.
59227         * lib/hash-pjw.c: Likewise.
59228         * lib/hash-pjw.h: Likewise.
59229         * lib/hash-triple.c: Likewise.
59230         * lib/hash.c: Likewise.
59231         * lib/hash.h: Likewise.
59232         * lib/human.c: Likewise.
59233         * lib/human.h: Likewise.
59234         * lib/i-ring.c: Likewise.
59235         * lib/i-ring.h: Likewise.
59236         * lib/idcache.c: Likewise.
59237         * lib/imaxabs.c: Likewise.
59238         * lib/imaxdiv.c: Likewise.
59239         * lib/inet_pton.c: Likewise.
59240         * lib/inet_pton.h: Likewise.
59241         * lib/intprops.h: Likewise.
59242         * lib/inttostr.c: Likewise.
59243         * lib/inttostr.h: Likewise.
59244         * lib/inttypes.in.h: Likewise.
59245         * lib/isapipe.c: Likewise.
59246         * lib/isdir.c: Likewise.
59247         * lib/isnan.c: Likewise.
59248         * lib/isnan.h: Likewise.
59249         * lib/isnanf.c: Likewise.
59250         * lib/isnanf.h: Likewise.
59251         * lib/isnanl-nolibm.h: Likewise.
59252         * lib/isnanl.c: Likewise.
59253         * lib/isnanl.h: Likewise.
59254         * lib/javacomp.c: Likewise.
59255         * lib/javacomp.h: Likewise.
59256         * lib/javaexec.c: Likewise.
59257         * lib/javaexec.h: Likewise.
59258         * lib/javaversion.c: Likewise.
59259         * lib/javaversion.h: Likewise.
59260         * lib/javaversion.java: Likewise.
59261         * lib/lbrkprop.h: Likewise.
59262         * lib/lchmod.h: Likewise.
59263         * lib/lchown.c: Likewise.
59264         * lib/ldexpl.c: Likewise.
59265         * lib/linebreak.c: Likewise.
59266         * lib/linebreak.h: Likewise.
59267         * lib/linebuffer.c: Likewise.
59268         * lib/linebuffer.h: Likewise.
59269         * lib/locale.in.h: Likewise.
59270         * lib/logl.c: Likewise.
59271         * lib/long-options.c: Likewise.
59272         * lib/long-options.h: Likewise.
59273         * lib/lstat.c: Likewise.
59274         * lib/lstat.h: Likewise.
59275         * lib/math.in.h: Likewise.
59276         * lib/mbchar.c: Likewise.
59277         * lib/mbchar.h: Likewise.
59278         * lib/mbfile.h: Likewise.
59279         * lib/mbiter.h: Likewise.
59280         * lib/mbscasecmp.c: Likewise.
59281         * lib/mbscasestr.c: Likewise.
59282         * lib/mbschr.c: Likewise.
59283         * lib/mbscspn.c: Likewise.
59284         * lib/mbslen.c: Likewise.
59285         * lib/mbsncasecmp.c: Likewise.
59286         * lib/mbsnlen.c: Likewise.
59287         * lib/mbspbrk.c: Likewise.
59288         * lib/mbspcasecmp.c: Likewise.
59289         * lib/mbsrchr.c: Likewise.
59290         * lib/mbssep.c: Likewise.
59291         * lib/mbsspn.c: Likewise.
59292         * lib/mbsstr.c: Likewise.
59293         * lib/mbstok_r.c: Likewise.
59294         * lib/mbswidth.c: Likewise.
59295         * lib/mbswidth.h: Likewise.
59296         * lib/mbuiter.h: Likewise.
59297         * lib/memcasecmp.c: Likewise.
59298         * lib/memcasecmp.h: Likewise.
59299         * lib/memchr.c: Likewise.
59300         * lib/memcmp.c: Likewise.
59301         * lib/memcoll.c: Likewise.
59302         * lib/memcoll.h: Likewise.
59303         * lib/memcpy.c: Likewise.
59304         * lib/memrchr.c: Likewise.
59305         * lib/mkancesdirs.c: Likewise.
59306         * lib/mkdir-p.c: Likewise.
59307         * lib/mkdir-p.h: Likewise.
59308         * lib/mkdir.c: Likewise.
59309         * lib/mkdirat.c: Likewise.
59310         * lib/mkdtemp.c: Likewise.
59311         * lib/mkstemp-safer.c: Likewise.
59312         * lib/mkstemp.c: Likewise.
59313         * lib/modechange.c: Likewise.
59314         * lib/modechange.h: Likewise.
59315         * lib/mountlist.c: Likewise.
59316         * lib/mountlist.h: Likewise.
59317         * lib/mpsort.c: Likewise.
59318         * lib/nanosleep.c: Likewise.
59319         * lib/obstack.c: Likewise.
59320         * lib/obstack.h: Likewise.
59321         * lib/open-safer.c: Likewise.
59322         * lib/open.c: Likewise.
59323         * lib/openat-die.c: Likewise.
59324         * lib/openat-priv.h: Likewise.
59325         * lib/openat-proc.c: Likewise.
59326         * lib/openat.c: Likewise.
59327         * lib/openat.h: Likewise.
59328         * lib/pagealign_alloc.c: Likewise.
59329         * lib/pagealign_alloc.h: Likewise.
59330         * lib/physmem.c: Likewise.
59331         * lib/physmem.h: Likewise.
59332         * lib/pipe-safer.c: Likewise.
59333         * lib/pipe.c: Likewise.
59334         * lib/pipe.h: Likewise.
59335         * lib/posixtm.c: Likewise.
59336         * lib/posixtm.h: Likewise.
59337         * lib/posixver.c: Likewise.
59338         * lib/printf-frexp.c: Likewise.
59339         * lib/printf-frexp.h: Likewise.
59340         * lib/printf-frexpl.c: Likewise.
59341         * lib/printf-frexpl.h: Likewise.
59342         * lib/printf.c: Likewise.
59343         * lib/progname.c: Likewise.
59344         * lib/progname.h: Likewise.
59345         * lib/progreloc.c: Likewise.
59346         * lib/putenv.c: Likewise.
59347         * lib/quote.c: Likewise.
59348         * lib/quote.h: Likewise.
59349         * lib/quotearg.c: Likewise.
59350         * lib/quotearg.h: Likewise.
59351         * lib/raise.c: Likewise.
59352         * lib/readline.c: Likewise.
59353         * lib/readline.h: Likewise.
59354         * lib/readlink.c: Likewise.
59355         * lib/readtokens.c: Likewise.
59356         * lib/readtokens.h: Likewise.
59357         * lib/readtokens0.c: Likewise.
59358         * lib/readtokens0.h: Likewise.
59359         * lib/readutmp.c: Likewise.
59360         * lib/readutmp.h: Likewise.
59361         * lib/realloc.c: Likewise.
59362         * lib/relocwrapper.c: Likewise.
59363         * lib/rename-dest-slash.c: Likewise.
59364         * lib/rename.c: Likewise.
59365         * lib/rmdir.c: Likewise.
59366         * lib/rpmatch.c: Likewise.
59367         * lib/safe-read.c: Likewise.
59368         * lib/safe-read.h: Likewise.
59369         * lib/safe-write.c: Likewise.
59370         * lib/safe-write.h: Likewise.
59371         * lib/same-inode.h: Likewise.
59372         * lib/same.c: Likewise.
59373         * lib/same.h: Likewise.
59374         * lib/save-cwd.c: Likewise.
59375         * lib/save-cwd.h: Likewise.
59376         * lib/savedir.c: Likewise.
59377         * lib/savedir.h: Likewise.
59378         * lib/savewd.c: Likewise.
59379         * lib/savewd.h: Likewise.
59380         * lib/search.in.h: Likewise.
59381         * lib/setenv.c: Likewise.
59382         * lib/setenv.h: Likewise.
59383         * lib/settime.c: Likewise.
59384         * lib/sh-quote.c: Likewise.
59385         * lib/sh-quote.h: Likewise.
59386         * lib/sig2str.c: Likewise.
59387         * lib/sig2str.h: Likewise.
59388         * lib/signal.in.h: Likewise.
59389         * lib/signbitd.c: Likewise.
59390         * lib/signbitf.c: Likewise.
59391         * lib/signbitl.c: Likewise.
59392         * lib/sigprocmask.c: Likewise.
59393         * lib/sincosl.c: Likewise.
59394         * lib/sleep.c: Likewise.
59395         * lib/sprintf.c: Likewise.
59396         * lib/sqrtl.c: Likewise.
59397         * lib/stat-time.h: Likewise.
59398         * lib/stdio--.h: Likewise.
59399         * lib/stdio-safer.h: Likewise.
59400         * lib/stdlib--.h: Likewise.
59401         * lib/stdlib-safer.h: Likewise.
59402         * lib/stdlib.in.h: Likewise.
59403         * lib/stpcpy.c: Likewise.
59404         * lib/stpncpy.c: Likewise.
59405         * lib/strchrnul.c: Likewise.
59406         * lib/strcspn.c: Likewise.
59407         * lib/strerror.c: Likewise.
59408         * lib/strftime.c: Likewise.
59409         * lib/strftime.h: Likewise.
59410         * lib/striconveh.c: Likewise.
59411         * lib/striconveh.h: Likewise.
59412         * lib/striconveha.c: Likewise.
59413         * lib/striconveha.h: Likewise.
59414         * lib/stripslash.c: Likewise.
59415         * lib/strnlen1.c: Likewise.
59416         * lib/strnlen1.h: Likewise.
59417         * lib/strtod.c: Likewise.
59418         * lib/strtoimax.c: Likewise.
59419         * lib/strtok_r.c: Likewise.
59420         * lib/strtol.c: Likewise.
59421         * lib/strtoll.c: Likewise.
59422         * lib/strtoul.c: Likewise.
59423         * lib/strtoull.c: Likewise.
59424         * lib/sysexits.in.h: Likewise.
59425         * lib/tempname.c: Likewise.
59426         * lib/tempname.h: Likewise.
59427         * lib/timespec.h: Likewise.
59428         * lib/tls.c: Likewise.
59429         * lib/tls.h: Likewise.
59430         * lib/tmpdir.c: Likewise.
59431         * lib/tmpdir.h: Likewise.
59432         * lib/tmpfile-safer.c: Likewise.
59433         * lib/tmpfile.c: Likewise.
59434         * lib/trigl.c: Likewise.
59435         * lib/trigl.h: Likewise.
59436         * lib/trim.c: Likewise.
59437         * lib/trim.h: Likewise.
59438         * lib/trunc.c: Likewise.
59439         * lib/truncf.c: Likewise.
59440         * lib/truncl.c: Likewise.
59441         * lib/tsearch.c: Likewise.
59442         * lib/unicodeio.c: Likewise.
59443         * lib/unicodeio.h: Likewise.
59444         * lib/unistd--.h: Likewise.
59445         * lib/unistd-safer.h: Likewise.
59446         * lib/unistdio/ulc-fprintf.c: Likewise.
59447         * lib/unistdio/ulc-vfprintf.c: Likewise.
59448         * lib/unlinkdir.c: Likewise.
59449         * lib/unlinkdir.h: Likewise.
59450         * lib/unlocked-io.h: Likewise.
59451         * lib/unsetenv.c: Likewise.
59452         * lib/userspec.c: Likewise.
59453         * lib/utime.c: Likewise.
59454         * lib/utimecmp.c: Likewise.
59455         * lib/utimecmp.h: Likewise.
59456         * lib/utimens.c: Likewise.
59457         * lib/verify.h: Likewise.
59458         * lib/verror.c: Likewise.
59459         * lib/verror.h: Likewise.
59460         * lib/version-etc-fsf.c: Likewise.
59461         * lib/version-etc.c: Likewise.
59462         * lib/version-etc.h: Likewise.
59463         * lib/vfprintf.c: Likewise.
59464         * lib/vprintf.c: Likewise.
59465         * lib/vsprintf.c: Likewise.
59466         * lib/w32spawn.h: Likewise.
59467         * lib/wait-process.c: Likewise.
59468         * lib/wait-process.h: Likewise.
59469         * lib/wcwidth.c: Likewise.
59470         * lib/write-any-file.c: Likewise.
59471         * lib/xalloc-die.c: Likewise.
59472         * lib/xalloc.h: Likewise.
59473         * lib/xasprintf.c: Likewise.
59474         * lib/xgetcwd.c: Likewise.
59475         * lib/xgetcwd.h: Likewise.
59476         * lib/xgetdomainname.c: Likewise.
59477         * lib/xgetdomainname.h: Likewise.
59478         * lib/xgethostname.c: Likewise.
59479         * lib/xmalloc.c: Likewise.
59480         * lib/xmalloca.c: Likewise.
59481         * lib/xmalloca.h: Likewise.
59482         * lib/xmemcoll.c: Likewise.
59483         * lib/xnanosleep.c: Likewise.
59484         * lib/xreadlink.c: Likewise.
59485         * lib/xreadlink.h: Likewise.
59486         * lib/xsetenv.c: Likewise.
59487         * lib/xsetenv.h: Likewise.
59488         * lib/xstriconv.c: Likewise.
59489         * lib/xstriconv.h: Likewise.
59490         * lib/xstrndup.c: Likewise.
59491         * lib/xstrndup.h: Likewise.
59492         * lib/xstrtod.c: Likewise.
59493         * lib/xstrtod.h: Likewise.
59494         * lib/xstrtol-error.c: Likewise.
59495         * lib/xstrtol.c: Likewise.
59496         * lib/xstrtol.h: Likewise.
59497         * lib/xtime.h: Likewise.
59498         * lib/xvasprintf.c: Likewise.
59499         * lib/xvasprintf.h: Likewise.
59500         * lib/yesno.c: Likewise.
59501         * lib/yesno.h: Likewise.
59502         * posix-modules: Likewise.
59503         * tests/test-alloca-opt.c: Likewise.
59504         * tests/test-arcfour.c: Likewise.
59505         * tests/test-arctwo.c: Likewise.
59506         * tests/test-argmatch.c: Likewise.
59507         * tests/test-argp-2.sh: Likewise.
59508         * tests/test-argp.c: Likewise.
59509         * tests/test-arpa_inet.c: Likewise.
59510         * tests/test-array_list.c: Likewise.
59511         * tests/test-array_oset.c: Likewise.
59512         * tests/test-atexit.c: Likewise.
59513         * tests/test-avltree_list.c: Likewise.
59514         * tests/test-avltree_oset.c: Likewise.
59515         * tests/test-avltreehash_list.c: Likewise.
59516         * tests/test-base64.c: Likewise.
59517         * tests/test-binary-io.c: Likewise.
59518         * tests/test-byteswap.c: Likewise.
59519         * tests/test-c-ctype.c: Likewise.
59520         * tests/test-c-strcasecmp.c: Likewise.
59521         * tests/test-c-strcasestr.c: Likewise.
59522         * tests/test-c-strncasecmp.c: Likewise.
59523         * tests/test-c-strstr.c: Likewise.
59524         * tests/test-canonicalize-lgpl.c: Likewise.
59525         * tests/test-canonicalize.c: Likewise.
59526         * tests/test-carray_list.c: Likewise.
59527         * tests/test-ceilf.c: Likewise.
59528         * tests/test-ceill.c: Likewise.
59529         * tests/test-count-one-bits.c: Likewise.
59530         * tests/test-crc.c: Likewise.
59531         * tests/test-dirname.c: Likewise.
59532         * tests/test-fbufmode.c: Likewise.
59533         * tests/test-fcntl.c: Likewise.
59534         * tests/test-fflush.c: Likewise.
59535         * tests/test-floorf.c: Likewise.
59536         * tests/test-floorl.c: Likewise.
59537         * tests/test-fopen.c: Likewise.
59538         * tests/test-fprintf-posix.c: Likewise.
59539         * tests/test-fprintf-posix.h: Likewise.
59540         * tests/test-fpurge.c: Likewise.
59541         * tests/test-freadable.c: Likewise.
59542         * tests/test-freadahead.c: Likewise.
59543         * tests/test-freading.c: Likewise.
59544         * tests/test-freopen.c: Likewise.
59545         * tests/test-frexp.c: Likewise.
59546         * tests/test-frexpl.c: Likewise.
59547         * tests/test-fseek.c: Likewise.
59548         * tests/test-fseeko.c: Likewise.
59549         * tests/test-fseterr.c: Likewise.
59550         * tests/test-fstrcmp.c: Likewise.
59551         * tests/test-ftell.c: Likewise.
59552         * tests/test-ftello.c: Likewise.
59553         * tests/test-fwritable.c: Likewise.
59554         * tests/test-fwriting.c: Likewise.
59555         * tests/test-getaddrinfo.c: Likewise.
59556         * tests/test-getpass.c: Likewise.
59557         * tests/test-gettimeofday.c: Likewise.
59558         * tests/test-hmac-md5.c: Likewise.
59559         * tests/test-hmac-sha1.c: Likewise.
59560         * tests/test-iconv.c: Likewise.
59561         * tests/test-iconvme.c: Likewise.
59562         * tests/test-inttypes.c: Likewise.
59563         * tests/test-isnan.c: Likewise.
59564         * tests/test-isnanf.c: Likewise.
59565         * tests/test-isnanl-nolibm.c: Likewise.
59566         * tests/test-isnanl.c: Likewise.
59567         * tests/test-isnanl.h: Likewise.
59568         * tests/test-ldexpl.c: Likewise.
59569         * tests/test-linked_list.c: Likewise.
59570         * tests/test-linkedhash_list.c: Likewise.
59571         * tests/test-locale.c: Likewise.
59572         * tests/test-localename.c: Likewise.
59573         * tests/test-lock.c: Likewise.
59574         * tests/test-lseek.c: Likewise.
59575         * tests/test-malloca.c: Likewise.
59576         * tests/test-math.c: Likewise.
59577         * tests/test-mbscasecmp.c: Likewise.
59578         * tests/test-mbscasestr1.c: Likewise.
59579         * tests/test-mbscasestr2.c: Likewise.
59580         * tests/test-mbscasestr3.c: Likewise.
59581         * tests/test-mbscasestr4.c: Likewise.
59582         * tests/test-mbschr.c: Likewise.
59583         * tests/test-mbscspn.c: Likewise.
59584         * tests/test-mbsncasecmp.c: Likewise.
59585         * tests/test-mbspbrk.c: Likewise.
59586         * tests/test-mbspcasecmp.c: Likewise.
59587         * tests/test-mbsrchr.c: Likewise.
59588         * tests/test-mbsspn.c: Likewise.
59589         * tests/test-mbsstr1.c: Likewise.
59590         * tests/test-mbsstr2.c: Likewise.
59591         * tests/test-mbsstr3.c: Likewise.
59592         * tests/test-md5.c: Likewise.
59593         * tests/test-memmem.c: Likewise.
59594         * tests/test-netinet_in.c: Likewise.
59595         * tests/test-open.c: Likewise.
59596         * tests/test-printf-frexp.c: Likewise.
59597         * tests/test-printf-frexpl.c: Likewise.
59598         * tests/test-printf-posix.c: Likewise.
59599         * tests/test-printf-posix.h: Likewise.
59600         * tests/test-rbtree_list.c: Likewise.
59601         * tests/test-rbtree_oset.c: Likewise.
59602         * tests/test-rbtreehash_list.c: Likewise.
59603         * tests/test-read-file.c: Likewise.
59604         * tests/test-rijndael.c: Likewise.
59605         * tests/test-search.c: Likewise.
59606         * tests/test-signbit.c: Likewise.
59607         * tests/test-sleep.c: Likewise.
59608         * tests/test-snprintf-posix.c: Likewise.
59609         * tests/test-snprintf-posix.h: Likewise.
59610         * tests/test-snprintf.c: Likewise.
59611         * tests/test-sprintf-posix.c: Likewise.
59612         * tests/test-sprintf-posix.h: Likewise.
59613         * tests/test-stat-time.c: Likewise.
59614         * tests/test-stdbool.c: Likewise.
59615         * tests/test-stdint.c: Likewise.
59616         * tests/test-stdio.c: Likewise.
59617         * tests/test-stdlib.c: Likewise.
59618         * tests/test-stpncpy.c: Likewise.
59619         * tests/test-strcasestr.c: Likewise.
59620         * tests/test-striconv.c: Likewise.
59621         * tests/test-striconveh.c: Likewise.
59622         * tests/test-striconveha.c: Likewise.
59623         * tests/test-string.c: Likewise.
59624         * tests/test-sys_select.c: Likewise.
59625         * tests/test-sys_socket.c: Likewise.
59626         * tests/test-sys_stat.c: Likewise.
59627         * tests/test-sys_time.c: Likewise.
59628         * tests/test-sysexits.c: Likewise.
59629         * tests/test-time.c: Likewise.
59630         * tests/test-tls.c: Likewise.
59631         * tests/test-trunc.c: Likewise.
59632         * tests/test-truncf.c: Likewise.
59633         * tests/test-truncl.c: Likewise.
59634         * tests/test-unistd.c: Likewise.
59635         * tests/test-vasnprintf-posix.c: Likewise.
59636         * tests/test-vasnprintf-posix2.c: Likewise.
59637         * tests/test-vasnprintf.c: Likewise.
59638         * tests/test-vasprintf-posix.c: Likewise.
59639         * tests/test-vasprintf.c: Likewise.
59640         * tests/test-verify.c: Likewise.
59641         * tests/test-vfprintf-posix.c: Likewise.
59642         * tests/test-vprintf-posix.c: Likewise.
59643         * tests/test-vsnprintf-posix.c: Likewise.
59644         * tests/test-vsnprintf.c: Likewise.
59645         * tests/test-vsprintf-posix.c: Likewise.
59646         * tests/test-wchar.c: Likewise.
59647         * tests/test-wctype.c: Likewise.
59648         * tests/test-wcwidth.c: Likewise.
59649         * tests/test-xstrtol.c: Likewise.
59650         * tests/test-xvasprintf.c: Likewise.
59651         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59652         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59653         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59654         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59655         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59656         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59657         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59658         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59659         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59660         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59661         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59662         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59663         * tests/uniname/test-uninames.c: Likewise.
59664         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59665         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
59666         * tests/unistdio/test-u16-printf1.h: Likewise.
59667         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59668         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59669         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59670         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59671         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59672         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59673         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59674         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
59675         * tests/unistdio/test-u32-printf1.h: Likewise.
59676         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59677         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59678         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59679         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59680         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59681         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59682         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59683         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
59684         * tests/unistdio/test-u8-printf1.h: Likewise.
59685         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59686         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59687         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59688         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59689         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59690         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59691         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59692         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
59693         * tests/unistdio/test-ulc-printf1.h: Likewise.
59694         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59695         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59696         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59697         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59698         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59699         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59700         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59701         * tests/uniwidth/test-u16-width.c: Likewise.
59702         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59703         * tests/uniwidth/test-u32-width.c: Likewise.
59704         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59705         * tests/uniwidth/test-u8-width.c: Likewise.
59706         * tests/uniwidth/test-uc_width.c: Likewise.
59707         * config/srclist-update: Likewise.
59708         (fixlicense): Update to GPLv3+.
59709
59710         Change copyright notice from LGPLv2.1+ to LGPLv3+.
59711         * tests/test-tsearch.c: Change copyright notice.
59712
59713         Change copyright notice from LGPLv2.0+ to LGPLv3+.
59714         * lib/c-strcaseeq.h: Change copyright notice.
59715         * lib/streq.h: Likewise.
59716         * lib/uniconv.h: Likewise.
59717         * lib/uniconv/u-conv-from-enc.h: Likewise.
59718         * lib/uniconv/u-conv-to-enc.h: Likewise.
59719         * lib/uniconv/u-strconv-from-enc.h: Likewise.
59720         * lib/uniconv/u-strconv-to-enc.h: Likewise.
59721         * lib/uniconv/u16-conv-from-enc.c: Likewise.
59722         * lib/uniconv/u16-conv-to-enc.c: Likewise.
59723         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
59724         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
59725         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
59726         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
59727         * lib/uniconv/u32-conv-from-enc.c: Likewise.
59728         * lib/uniconv/u32-conv-to-enc.c: Likewise.
59729         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
59730         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
59731         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
59732         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
59733         * lib/uniconv/u8-conv-from-enc.c: Likewise.
59734         * lib/uniconv/u8-conv-to-enc.c: Likewise.
59735         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
59736         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
59737         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
59738         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
59739         * lib/uniname.h: Likewise.
59740         * lib/uniname/uniname.c: Likewise.
59741         * lib/unistdio.h: Likewise.
59742         * lib/unistdio/u-asnprintf.h: Likewise.
59743         * lib/unistdio/u-asprintf.h: Likewise.
59744         * lib/unistdio/u-printf-args.c: Likewise.
59745         * lib/unistdio/u-printf-args.h: Likewise.
59746         * lib/unistdio/u-printf-parse.h: Likewise.
59747         * lib/unistdio/u-snprintf.h: Likewise.
59748         * lib/unistdio/u-sprintf.h: Likewise.
59749         * lib/unistdio/u-vasprintf.h: Likewise.
59750         * lib/unistdio/u-vsnprintf.h: Likewise.
59751         * lib/unistdio/u-vsprintf.h: Likewise.
59752         * lib/unistdio/u16-asnprintf.c: Likewise.
59753         * lib/unistdio/u16-asprintf.c: Likewise.
59754         * lib/unistdio/u16-printf-parse.c: Likewise.
59755         * lib/unistdio/u16-snprintf.c: Likewise.
59756         * lib/unistdio/u16-sprintf.c: Likewise.
59757         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
59758         * lib/unistdio/u16-u16-asprintf.c: Likewise.
59759         * lib/unistdio/u16-u16-snprintf.c: Likewise.
59760         * lib/unistdio/u16-u16-sprintf.c: Likewise.
59761         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
59762         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
59763         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
59764         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
59765         * lib/unistdio/u16-vasnprintf.c: Likewise.
59766         * lib/unistdio/u16-vasprintf.c: Likewise.
59767         * lib/unistdio/u16-vsnprintf.c: Likewise.
59768         * lib/unistdio/u16-vsprintf.c: Likewise.
59769         * lib/unistdio/u32-asnprintf.c: Likewise.
59770         * lib/unistdio/u32-asprintf.c: Likewise.
59771         * lib/unistdio/u32-printf-parse.c: Likewise.
59772         * lib/unistdio/u32-snprintf.c: Likewise.
59773         * lib/unistdio/u32-sprintf.c: Likewise.
59774         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
59775         * lib/unistdio/u32-u32-asprintf.c: Likewise.
59776         * lib/unistdio/u32-u32-snprintf.c: Likewise.
59777         * lib/unistdio/u32-u32-sprintf.c: Likewise.
59778         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
59779         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
59780         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
59781         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
59782         * lib/unistdio/u32-vasnprintf.c: Likewise.
59783         * lib/unistdio/u32-vasprintf.c: Likewise.
59784         * lib/unistdio/u32-vsnprintf.c: Likewise.
59785         * lib/unistdio/u32-vsprintf.c: Likewise.
59786         * lib/unistdio/u8-asnprintf.c: Likewise.
59787         * lib/unistdio/u8-asprintf.c: Likewise.
59788         * lib/unistdio/u8-printf-parse.c: Likewise.
59789         * lib/unistdio/u8-snprintf.c: Likewise.
59790         * lib/unistdio/u8-sprintf.c: Likewise.
59791         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
59792         * lib/unistdio/u8-u8-asprintf.c: Likewise.
59793         * lib/unistdio/u8-u8-snprintf.c: Likewise.
59794         * lib/unistdio/u8-u8-sprintf.c: Likewise.
59795         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
59796         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
59797         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
59798         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
59799         * lib/unistdio/u8-vasnprintf.c: Likewise.
59800         * lib/unistdio/u8-vasprintf.c: Likewise.
59801         * lib/unistdio/u8-vsnprintf.c: Likewise.
59802         * lib/unistdio/u8-vsprintf.c: Likewise.
59803         * lib/unistdio/ulc-asnprintf.c: Likewise.
59804         * lib/unistdio/ulc-asprintf.c: Likewise.
59805         * lib/unistdio/ulc-printf-parse.c: Likewise.
59806         * lib/unistdio/ulc-snprintf.c: Likewise.
59807         * lib/unistdio/ulc-sprintf.c: Likewise.
59808         * lib/unistdio/ulc-vasnprintf.c: Likewise.
59809         * lib/unistdio/ulc-vasprintf.c: Likewise.
59810         * lib/unistdio/ulc-vsnprintf.c: Likewise.
59811         * lib/unistdio/ulc-vsprintf.c: Likewise.
59812         * lib/unistr.h: Likewise.
59813         * lib/unistr/u-cpy-alloc.h: Likewise.
59814         * lib/unistr/u-cpy.h: Likewise.
59815         * lib/unistr/u-endswith.h: Likewise.
59816         * lib/unistr/u-move.h: Likewise.
59817         * lib/unistr/u-set.h: Likewise.
59818         * lib/unistr/u-startswith.h: Likewise.
59819         * lib/unistr/u-stpcpy.h: Likewise.
59820         * lib/unistr/u-stpncpy.h: Likewise.
59821         * lib/unistr/u-strcat.h: Likewise.
59822         * lib/unistr/u-strcpy.h: Likewise.
59823         * lib/unistr/u-strcspn.h: Likewise.
59824         * lib/unistr/u-strdup.h: Likewise.
59825         * lib/unistr/u-strlen.h: Likewise.
59826         * lib/unistr/u-strncat.h: Likewise.
59827         * lib/unistr/u-strncpy.h: Likewise.
59828         * lib/unistr/u-strnlen.h: Likewise.
59829         * lib/unistr/u-strpbrk.h: Likewise.
59830         * lib/unistr/u-strspn.h: Likewise.
59831         * lib/unistr/u-strstr.h: Likewise.
59832         * lib/unistr/u-strtok.h: Likewise.
59833         * lib/unistr/u16-check.c: Likewise.
59834         * lib/unistr/u16-chr.c: Likewise.
59835         * lib/unistr/u16-cmp.c: Likewise.
59836         * lib/unistr/u16-cpy-alloc.c: Likewise.
59837         * lib/unistr/u16-cpy.c: Likewise.
59838         * lib/unistr/u16-endswith.c: Likewise.
59839         * lib/unistr/u16-mblen.c: Likewise.
59840         * lib/unistr/u16-mbsnlen.c: Likewise.
59841         * lib/unistr/u16-mbtouc-aux.c: Likewise.
59842         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
59843         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
59844         * lib/unistr/u16-mbtouc.c: Likewise.
59845         * lib/unistr/u16-mbtoucr.c: Likewise.
59846         * lib/unistr/u16-move.c: Likewise.
59847         * lib/unistr/u16-next.c: Likewise.
59848         * lib/unistr/u16-prev.c: Likewise.
59849         * lib/unistr/u16-set.c: Likewise.
59850         * lib/unistr/u16-startswith.c: Likewise.
59851         * lib/unistr/u16-stpcpy.c: Likewise.
59852         * lib/unistr/u16-stpncpy.c: Likewise.
59853         * lib/unistr/u16-strcat.c: Likewise.
59854         * lib/unistr/u16-strchr.c: Likewise.
59855         * lib/unistr/u16-strcmp.c: Likewise.
59856         * lib/unistr/u16-strcpy.c: Likewise.
59857         * lib/unistr/u16-strcspn.c: Likewise.
59858         * lib/unistr/u16-strdup.c: Likewise.
59859         * lib/unistr/u16-strlen.c: Likewise.
59860         * lib/unistr/u16-strmblen.c: Likewise.
59861         * lib/unistr/u16-strmbtouc.c: Likewise.
59862         * lib/unistr/u16-strncat.c: Likewise.
59863         * lib/unistr/u16-strncmp.c: Likewise.
59864         * lib/unistr/u16-strncpy.c: Likewise.
59865         * lib/unistr/u16-strnlen.c: Likewise.
59866         * lib/unistr/u16-strpbrk.c: Likewise.
59867         * lib/unistr/u16-strrchr.c: Likewise.
59868         * lib/unistr/u16-strspn.c: Likewise.
59869         * lib/unistr/u16-strstr.c: Likewise.
59870         * lib/unistr/u16-strtok.c: Likewise.
59871         * lib/unistr/u16-to-u32.c: Likewise.
59872         * lib/unistr/u16-to-u8.c: Likewise.
59873         * lib/unistr/u16-uctomb-aux.c: Likewise.
59874         * lib/unistr/u16-uctomb.c: Likewise.
59875         * lib/unistr/u32-check.c: Likewise.
59876         * lib/unistr/u32-chr.c: Likewise.
59877         * lib/unistr/u32-cmp.c: Likewise.
59878         * lib/unistr/u32-cpy-alloc.c: Likewise.
59879         * lib/unistr/u32-cpy.c: Likewise.
59880         * lib/unistr/u32-endswith.c: Likewise.
59881         * lib/unistr/u32-mblen.c: Likewise.
59882         * lib/unistr/u32-mbsnlen.c: Likewise.
59883         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
59884         * lib/unistr/u32-mbtouc.c: Likewise.
59885         * lib/unistr/u32-mbtoucr.c: Likewise.
59886         * lib/unistr/u32-move.c: Likewise.
59887         * lib/unistr/u32-next.c: Likewise.
59888         * lib/unistr/u32-prev.c: Likewise.
59889         * lib/unistr/u32-set.c: Likewise.
59890         * lib/unistr/u32-startswith.c: Likewise.
59891         * lib/unistr/u32-stpcpy.c: Likewise.
59892         * lib/unistr/u32-stpncpy.c: Likewise.
59893         * lib/unistr/u32-strcat.c: Likewise.
59894         * lib/unistr/u32-strchr.c: Likewise.
59895         * lib/unistr/u32-strcmp.c: Likewise.
59896         * lib/unistr/u32-strcpy.c: Likewise.
59897         * lib/unistr/u32-strcspn.c: Likewise.
59898         * lib/unistr/u32-strdup.c: Likewise.
59899         * lib/unistr/u32-strlen.c: Likewise.
59900         * lib/unistr/u32-strmblen.c: Likewise.
59901         * lib/unistr/u32-strmbtouc.c: Likewise.
59902         * lib/unistr/u32-strncat.c: Likewise.
59903         * lib/unistr/u32-strncmp.c: Likewise.
59904         * lib/unistr/u32-strncpy.c: Likewise.
59905         * lib/unistr/u32-strnlen.c: Likewise.
59906         * lib/unistr/u32-strpbrk.c: Likewise.
59907         * lib/unistr/u32-strrchr.c: Likewise.
59908         * lib/unistr/u32-strspn.c: Likewise.
59909         * lib/unistr/u32-strstr.c: Likewise.
59910         * lib/unistr/u32-strtok.c: Likewise.
59911         * lib/unistr/u32-to-u16.c: Likewise.
59912         * lib/unistr/u32-to-u8.c: Likewise.
59913         * lib/unistr/u32-uctomb.c: Likewise.
59914         * lib/unistr/u8-check.c: Likewise.
59915         * lib/unistr/u8-chr.c: Likewise.
59916         * lib/unistr/u8-cmp.c: Likewise.
59917         * lib/unistr/u8-cpy-alloc.c: Likewise.
59918         * lib/unistr/u8-cpy.c: Likewise.
59919         * lib/unistr/u8-endswith.c: Likewise.
59920         * lib/unistr/u8-mblen.c: Likewise.
59921         * lib/unistr/u8-mbsnlen.c: Likewise.
59922         * lib/unistr/u8-mbtouc-aux.c: Likewise.
59923         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
59924         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
59925         * lib/unistr/u8-mbtouc.c: Likewise.
59926         * lib/unistr/u8-mbtoucr.c: Likewise.
59927         * lib/unistr/u8-move.c: Likewise.
59928         * lib/unistr/u8-next.c: Likewise.
59929         * lib/unistr/u8-prev.c: Likewise.
59930         * lib/unistr/u8-set.c: Likewise.
59931         * lib/unistr/u8-startswith.c: Likewise.
59932         * lib/unistr/u8-stpcpy.c: Likewise.
59933         * lib/unistr/u8-stpncpy.c: Likewise.
59934         * lib/unistr/u8-strcat.c: Likewise.
59935         * lib/unistr/u8-strchr.c: Likewise.
59936         * lib/unistr/u8-strcmp.c: Likewise.
59937         * lib/unistr/u8-strcpy.c: Likewise.
59938         * lib/unistr/u8-strcspn.c: Likewise.
59939         * lib/unistr/u8-strdup.c: Likewise.
59940         * lib/unistr/u8-strlen.c: Likewise.
59941         * lib/unistr/u8-strmblen.c: Likewise.
59942         * lib/unistr/u8-strmbtouc.c: Likewise.
59943         * lib/unistr/u8-strncat.c: Likewise.
59944         * lib/unistr/u8-strncmp.c: Likewise.
59945         * lib/unistr/u8-strncpy.c: Likewise.
59946         * lib/unistr/u8-strnlen.c: Likewise.
59947         * lib/unistr/u8-strpbrk.c: Likewise.
59948         * lib/unistr/u8-strrchr.c: Likewise.
59949         * lib/unistr/u8-strspn.c: Likewise.
59950         * lib/unistr/u8-strstr.c: Likewise.
59951         * lib/unistr/u8-strtok.c: Likewise.
59952         * lib/unistr/u8-to-u16.c: Likewise.
59953         * lib/unistr/u8-to-u32.c: Likewise.
59954         * lib/unistr/u8-uctomb-aux.c: Likewise.
59955         * lib/unistr/u8-uctomb.c: Likewise.
59956         * lib/unitypes.h: Likewise.
59957         * lib/uniwidth.h: Likewise.
59958         * lib/uniwidth/cjk.h: Likewise.
59959         * lib/uniwidth/u16-strwidth.c: Likewise.
59960         * lib/uniwidth/u16-width.c: Likewise.
59961         * lib/uniwidth/u32-strwidth.c: Likewise.
59962         * lib/uniwidth/u32-width.c: Likewise.
59963         * lib/uniwidth/u8-strwidth.c: Likewise.
59964         * lib/uniwidth/u8-width.c: Likewise.
59965         * lib/uniwidth/width.c: Likewise.
59966
59967 2007-10-07  Bruno Haible  <bruno@clisp.org>
59968
59969         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
59970         The file is still under LGPL (see modules/inttypes).
59971
59972 2007-10-06  Bruno Haible  <bruno@clisp.org>
59973
59974         * modules/trunc (Dependencies): Add 'extensions'.
59975         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
59976         Reported by Ben Pfaff <blp@gnu.org>.
59977
59978 2007-10-06  Bruno Haible  <bruno@clisp.org>
59979
59980         * modules/freopen-tests: New file.
59981         * tests/test-freopen.c: New file.
59982
59983         * modules/fopen-tests: New file.
59984         * tests/test-fopen.c: New file.
59985
59986         * modules/fopen: New file.
59987         * lib/fopen.c: New file.
59988         * m4/fopen.m4: New file.
59989         * modules/freopen: New file.
59990         * lib/freopen.c: New file.
59991         * m4/freopen.m4: New file.
59992         * lib/stdio.in.h (fopen, freopen): New declarations.
59993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
59994         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59995         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
59996         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
59997         * doc/functions/fopen.texi: Mention the 'fopen' module.
59998         * doc/functions/freopen.texi: Mention the 'freopen' module.
59999
60000 2007-10-06  Bruno Haible  <bruno@clisp.org>
60001
60002         * modules/open-tests: New file.
60003         * tests/test-open.c: New file.
60004
60005         * modules/open: New file.
60006         * lib/open.c: New file.
60007         * m4/open.m4: New file.
60008         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
60009         lib/open.c does.
60010         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
60011         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
60012         macros.
60013         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
60014         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
60015         REPLACE_OPEN.
60016         * doc/functions/open.texi: Mention the 'open' module.
60017
60018 2007-10-04  Bruno Haible  <bruno@clisp.org>
60019
60020         * modules/ceill-tests: New file.
60021         * tests/test-ceill.c: New file.
60022
60023         * modules/ceill: New file.
60024         * lib/ceill.c: Replace entire file.
60025         * m4/ceill.m4: New file.
60026         * lib/math.in.h (ceill): Replace declaration.
60027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
60028         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
60029         * doc/functions/ceill.texi: Mention the 'ceill' module.
60030         * modules/mathl (Files): Remove lib/ceill.c.
60031         (Depends-on): Add ceill.
60032
60033 2007-10-04  Bruno Haible  <bruno@clisp.org>
60034
60035         * modules/ceilf-tests: New file.
60036         * tests/test-ceilf.c: New file.
60037
60038         * modules/ceilf: New file.
60039         * lib/ceil.c: New file.
60040         * lib/ceilf.c: New file.
60041         * m4/ceilf.m4: New file.
60042         * lib/math.in.h (ceilf): New declaration.
60043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
60044         HAVE_DECL_CEILF.
60045         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
60046         HAVE_DECL_CEILF.
60047         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
60048
60049 2007-10-04  Bruno Haible  <bruno@clisp.org>
60050
60051         * modules/floorl-tests: New file.
60052         * tests/test-floorl.c: New file.
60053
60054         * modules/floorl: New file.
60055         * lib/floorl.c: Replace entire file.
60056         * m4/floorl.m4: New file.
60057         * lib/math.in.h (floorl): Replace declaration.
60058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
60059         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
60060         * doc/functions/floorl.texi: Mention the 'floorl' module.
60061         * modules/mathl (Files): Remove lib/floorl.c.
60062         (Depends-on): Add floorl.
60063
60064 2007-10-04  Bruno Haible  <bruno@clisp.org>
60065
60066         * modules/floorf-tests: New file.
60067         * tests/test-floorf.c: New file.
60068
60069         * modules/floorf: New file.
60070         * lib/floor.c: New file.
60071         * lib/floorf.c: New file.
60072         * m4/floorf.m4: New file.
60073         * lib/math.in.h (floorf): New declaration.
60074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
60075         HAVE_DECL_FLOORF.
60076         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
60077         HAVE_DECL_FLOORF.
60078         * doc/functions/floorf.texi: Mention the 'floorf' module.
60079
60080 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
60081             Bruno Haible  <bruno@clisp.org>
60082
60083         Advertise for the Git server instead of the CVS server.
60084         * doc/gnulib-intro.texi (Steady Development): Mention the Git
60085         repository instead of the CVS one.
60086         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
60087         about all VCS systems generically.
60088         * doc/gnulib.texi (Introduction): Capitalize `Git'.
60089
60090 2007-10-04  Bruno Haible  <bruno@clisp.org>
60091
60092         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
60093         means.
60094         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
60095
60096 2007-10-04  Bruno Haible  <bruno@clisp.org>
60097
60098         * modules/truncl-tests: New file.
60099         * tests/test-truncl.c: New file.
60100
60101         * modules/truncl: New file.
60102         * lib/truncl.c: New file.
60103         * m4/truncl.m4: New file.
60104         * lib/math.in.h (truncl): New declaration.
60105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
60106         HAVE_DECL_TRUNCL.
60107         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
60108         HAVE_DECL_TRUNCL.
60109         * doc/functions/truncl.texi: Mention the 'truncl' module.
60110
60111 2007-10-04  Bruno Haible  <bruno@clisp.org>
60112
60113         * modules/truncf-tests: New file.
60114         * tests/test-truncf.c: New file.
60115
60116         * modules/truncf: New file.
60117         * lib/trunc.c: Make paramerizable through USE_* macros.
60118         * lib/truncf.c: New file.
60119         * m4/truncf.m4: New file.
60120         * lib/math.in.h (truncf): New declaration.
60121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
60122         HAVE_DECL_TRUNCF.
60123         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
60124         HAVE_DECL_TRUNCF.
60125         * doc/functions/truncf.texi: Mention the 'truncf' module.
60126
60127 2007-10-03  Bruno Haible  <bruno@clisp.org>
60128
60129         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60130         augmentation also for tests modules.
60131         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
60132         * modules/atexit-tests (Makefile.am): Likewise.
60133         * modules/binary-io-tests (Makefile.am): Likewise.
60134         * modules/c-strcase-tests (Makefile.am): Likewise.
60135         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
60136         * modules/canonicalize-tests (Makefile.am): Likewise.
60137         * modules/closein-tests (Makefile.am): Likewise.
60138         * modules/fprintf-posix-tests (Makefile.am): Likewise.
60139         * modules/freadahead-tests (Makefile.am): Likewise.
60140         * modules/fseek-tests (Makefile.am): Likewise.
60141         * modules/fseeko-tests (Makefile.am): Likewise.
60142         * modules/ftell-tests (Makefile.am): Likewise.
60143         * modules/ftello-tests (Makefile.am): Likewise.
60144         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
60145         * modules/isnanl-tests (Makefile.am): Likewise.
60146         * modules/lseek-tests (Makefile.am): Likewise.
60147         * modules/mbscasecmp-tests (Makefile.am): Likewise.
60148         * modules/mbscasestr-tests (Makefile.am): Likewise.
60149         * modules/mbschr-tests (Makefile.am): Likewise.
60150         * modules/mbscspn-tests (Makefile.am): Likewise.
60151         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
60152         * modules/mbspbrk-tests (Makefile.am): Likewise.
60153         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
60154         * modules/mbsrchr-tests (Makefile.am): Likewise.
60155         * modules/mbsspn-tests (Makefile.am): Likewise.
60156         * modules/mbsstr-tests (Makefile.am): Likewise.
60157         * modules/printf-posix-tests (Makefile.am): Likewise.
60158         * modules/snprintf-posix-tests (Makefile.am): Likewise.
60159         * modules/sprintf-posix-tests (Makefile.am): Likewise.
60160         * modules/tsearch-tests (Makefile.am): Likewise.
60161         * modules/uniname/uniname-tests (Makefile.am): Likewise.
60162         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
60163         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
60164         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
60165         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
60166         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
60167         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
60168         * modules/vprintf-posix-tests (Makefile.am): Likewise.
60169         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
60170         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
60171         * modules/xstrtoimax-tests (Makefile.am): Likewise.
60172         * modules/xstrtol-tests (Makefile.am): Likewise.
60173         * modules/xstrtoumax-tests (Makefile.am): Likewise.
60174         * modules/yesno-tests (Makefile.am): Likewise.
60175
60176 2007-10-03  Bruno Haible  <bruno@clisp.org>
60177
60178         * modules/trunc-tests: New file.
60179         * tests/test-trunc.c: New file.
60180
60181         * modules/trunc: New file.
60182         * lib/trunc.c: New file.
60183         * m4/trunc.m4: New file.
60184         * lib/math.in.h (trunc): New declaration.
60185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
60186         HAVE_DECL_TRUNC.
60187         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
60188         HAVE_DECL_TRUNC.
60189         * doc/functions/trunc.texi: Mention the 'trunc' module.
60190
60191 2007-10-03  Bruno Haible  <bruno@clisp.org>
60192
60193         * tests/test-fpending.c: New file, mostly copied
60194         from coreutils/lib/t-fpending.c.
60195         * modules/fpending-tests: New file.
60196
60197 2007-10-03  Bruno Haible  <bruno@clisp.org>
60198
60199         Port the stdio extensions to QNX (untested).
60200         * lib/fseterr.c (fseterr): Add support for QNX.
60201         * lib/fbufmode.c (fbufmode): Likewise.
60202         * lib/freadable.c (freadable): Likewise.
60203         * lib/fwritable.c (fwritable): Likewise.
60204         * lib/freading.c (freading): Likewise.
60205         * lib/fwriting.c (fwriting): Likewise.
60206         * lib/freadahead.c (freadahed): Likewise.
60207         * lib/fpurge.c (fpurge): Likewise.
60208         * lib/fseeko.c (rpl_fseeko): Likewise.
60209
60210 2007-10-03  Bruno Haible  <bruno@clisp.org>
60211             Jim Meyering  <jim@meyering.net>
60212             Eric Blake  <ebb9@byu.net>
60213
60214         * doc/relocatable.texi: Use @command instead of @program.
60215
60216 2007-10-02  Jim Meyering  <jim@meyering.net>
60217
60218         Perform one more "_.h" -> ".in.h" substitution.
60219         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
60220         instead of unistd_.h here, too.
60221
60222 2007-10-01  Bruno Haible  <bruno@clisp.org>
60223
60224         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
60225         Needed for the alloca-opt module.
60226
60227 2007-09-30  Bruno Haible  <bruno@clisp.org>
60228
60229         * lib/alloca.in.h: Renamed from lib/alloca_.h.
60230         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
60231         alloca_.h.
60232         * lib/argz.in.h: Renamed from lib/argz_.h.
60233         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
60234         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
60235         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
60236         byteswap_.h.
60237         * lib/dirent.in.h: Renamed from lib/dirent_.h.
60238         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
60239         dirent_.h.
60240         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
60241         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
60242         fcntl_.h.
60243         * lib/float.in.h: Renamed from lib/float_.h.
60244         * modules/float (Files, Makefile.am): Use float.in.h instead of
60245         float_.h.
60246         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
60247         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
60248         fnmatch_.h.
60249         * lib/getopt.in.h: Renamed from lib/getopt_.h.
60250         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
60251         getopt_.h.
60252         * lib/glob.in.h: Renamed from lib/glob_.h.
60253         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
60254         * lib/iconv.in.h: Renamed from lib/iconv_.h.
60255         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
60256         iconv_.h.
60257         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
60258         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
60259         inttypes_.h.
60260         * lib/locale.in.h: Renamed from lib/locale_.h.
60261         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
60262         locale_.h.
60263         * lib/math.in.h: Renamed from lib/math_.h.
60264         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
60265         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
60266         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
60267         of netinet_in_.h. Add dependency.
60268         * lib/poll.in.h: Renamed from lib/poll_.h.
60269         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
60270         * lib/search.in.h: Renamed from lib/search_.h.
60271         * modules/search (Files, Makefile.am): Use search.in.h instead of
60272         search_.h.
60273         * lib/signal.in.h: Renamed from lib/signal_.h.
60274         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
60275         _signal.h.
60276         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
60277         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
60278         stdbool_.h.
60279         * lib/stdint.in.h: Renamed from lib/stdint_.h.
60280         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
60281         stdint_.h.
60282         * lib/stdio.in.h: Renamed from lib/stdio_.h.
60283         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
60284         stdio_.h.
60285         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
60286         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
60287         stdlib_.h.
60288         * lib/string.in.h: Renamed from lib/string_.h.
60289         * modules/string (Files, Makefile.am): Use string.in.h instead of
60290         string_.h.
60291         * doc/gnulib-tool.texi (Initial import): Update.
60292         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
60293         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
60294         of sys_select_.h. Add dependency.
60295         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
60296         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
60297         of sys_socket_.h.
60298         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
60299         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
60300         sys_stat_.h.
60301         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
60302         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
60303         sys_time_.h.
60304         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
60305         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
60306         sysexits_.h.
60307         * lib/time.in.h: Renamed from lib/time_.h.
60308         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
60309         * lib/unistd.in.h: Renamed from lib/unistd_.h.
60310         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
60311         unistd_.h.
60312         * lib/wchar.in.h: Renamed from lib/wchar_.h.
60313         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
60314         wchar_.h.
60315         * lib/wctype.in.h: Renamed from lib/wctype_.h.
60316         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
60317         wctype_.h.
60318         * build-aux/bootstrap (slurp): Update.
60319         * lib/.cppi-disable: Update.
60320
60321 2007-09-30  Bruno Haible  <bruno@clisp.org>
60322
60323         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
60324         Needed on BeOS.
60325
60326 2007-09-30  Bruno Haible  <bruno@clisp.org>
60327
60328         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
60329
60330 2007-09-29  Bruno Haible  <bruno@clisp.org>
60331
60332         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
60333
60334 2007-09-29  Bruno Haible  <bruno@clisp.org>
60335
60336         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
60337         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
60338         * build-aux/install-reloc: Compile also areadlink.c.
60339         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
60340
60341 2007-09-29  Bruno Haible  <bruno@clisp.org>
60342
60343         * gnulib-tool (func_emit_initmacro_done): Indentation.
60344
60345 2007-09-29  Bruno Haible  <bruno@clisp.org>
60346
60347         * README: Add CVS checkout update instructions.
60348         Info from Bob Proulx <bob@proulx.com>.
60349
60350 2007-09-28  Eric Blake  <ebb9@byu.net>
60351
60352         Provide move-if-change.
60353         * build-aux/move-if-change: New file, based on best practice
60354         rather than any canonical upstream location.
60355
60356 2007-09-28  Jim Meyering  <jim@meyering.net>
60357
60358         Fix canonicalize loop-detection corner case.
60359         Do not attempt to stat the symlink values stored via seen_triple.
60360         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
60361         on linux-2.6.18, (but not 2.6.22).
60362         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
60363         triple_compare.  The former compares dev,ino,filename, while the latter
60364         would actually stat dirname(filename) when dev and ino were equal.
60365         * lib/hash-triple.c: Install <string.h>.
60366         (STREQ): Define.
60367         (triple_compare_ino_str): New function.
60368         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
60369
60370 2007-09-28  Eric Blake  <ebb9@byu.net>
60371
60372         Enforce that AC_REPLACE_FUNCS files exist.
60373         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
60374         override check for typos.
60375
60376         Fix test-closein on Solaris 10.
60377         * tests/test-closein.c (main): Don't assume stdin can be inherited
60378         closed on all systems.
60379         * tests/test-closein.sh: Likewise.
60380         Reported by Piotr Tarnowski.
60381
60382 2007-09-28  Jim Meyering  <jim@meyering.net>
60383
60384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
60385
60386 2007-09-27  Jim Meyering  <jim@meyering.net>
60387
60388         canonicalize: Avoid a false-positive cycle failure.
60389         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
60390         Sort.  Remove cycle-check.
60391         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
60392         not cycle-check.h.
60393         (seen_triple): New function.
60394         (canonicalize_filename_mode): Use it instead of cycle-check.
60395         * tests/test-canonicalize.c: Add a test for this bug.
60396         * tests/test-canonicalize.sh: Set up and run the test.
60397
60398         New module, file-set, from coreutils.
60399         * modules/file-set: Define it.
60400         * lib/file-set.c, lib/file-set.h: Implement.
60401
60402         New module, hash-triple, from coreutils.
60403         * modules/hash-triple: Define it.
60404         * lib/hash-triple.c, lib/hash-triple.h: Implement.
60405
60406 2007-09-25  Eric Blake  <ebb9@byu.net>
60407
60408         Fix strerror on Interix.
60409         * lib/string_.h (strerror): Declare replacement.
60410         * doc/functions/strerror.texi (strerror): Document the Interix
60411         shortcoming.
60412         * modules/string (Makefile.am): Support new hooks.
60413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
60414         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
60415         gl_FUNC_STRERROR_SEPARATE.
60416         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
60417         * lib/strerror.c (rpl_strerror): Provide replacement.
60418         * modules/strerror (Depends-on): Add string.
60419         (configure.ac): Detect use of module.
60420         * tests/test-strerror.c: New file.
60421         * modules/strerror-tests: New test module.
60422         * modules/argp (Depends-on): Add strerror.
60423         * modules/error (Depends-on): Likewise.
60424         Reported by Martin Koeppe.
60425
60426 2007-09-24  Bruno Haible  <bruno@clisp.org>
60427
60428         * README: Update git instructions.
60429
60430 2007-09-24  Eric Blake  <ebb9@byu.net>
60431
60432         Revert fpending breakage from 2007-09-08.
60433         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
60434         __fpending.c.
60435
60436 2007-09-24  Jim Meyering  <jim@meyering.net>
60437
60438         filenamecat.c: Add a test.
60439         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
60440         showing how the function works when DIR is the empty string.
60441
60442 2007-09-21  Simon Josefsson  <simon@josefsson.org>
60443
60444         * tests/test-canonicalize.sh: Turn on executable bit.
60445
60446 2007-09-19  Eric Blake  <ebb9@byu.net>
60447
60448         * README: Update CVS instructions.
60449
60450 2007-09-18  Bruno Haible  <bruno@clisp.org>
60451
60452         * modules/areadlink: New file.
60453         * lib/areadlink.h (areadlink): New declaration.
60454         * lib/areadlink.c: New file, based on lib/xreadlink.c.
60455
60456 2007-09-17  Jim Meyering  <jim@meyering.net>
60457
60458         * lib/savewd.c (ESTALE) [!defined]: Define.
60459         Reported to be required on Interix by Martin Koeppe.
60460
60461 2007-09-17  Bruno Haible  <bruno@clisp.org>
60462
60463         * gnulib-tool (func_version): Use $version.
60464
60465 2007-09-16  Bruno Haible  <bruno@clisp.org>
60466
60467         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
60468         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
60469         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
60470         Reported by Greg Schafer <gschafer@zip.com.au>.
60471
60472 2007-09-15  Bruno Haible  <bruno@clisp.org>
60473
60474         * gnulib-tool (sed): Try a little harder to make bash understand the
60475         alias.
60476         Reported by Bruce Korb <bruce.korb@gmail.com>.
60477
60478 2007-09-13  Eric Blake  <ebb9@byu.net>
60479
60480         * ChangeLog: Remove conflict markers.
60481
60482 2007-09-13  Simon Josefsson  <simon@josefsson.org>
60483
60484         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
60485         Reported by Bruno Haible <bruno@clisp.org>.
60486
60487 2007-09-12  Bruno Haible  <bruno@clisp.org>
60488
60489         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
60490         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
60491         is not defined.
60492
60493 2007-09-12  Eric Blake  <ebb9@byu.net>
60494
60495         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
60496         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
60497         Autoconf definition.
60498         * modules/euidaccess (Depends-on): Add extensions, for
60499         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
60500         * modules/fnmatch (Depends-on): Likewise.
60501         * modules/getaddrinfo (Depends-on): Likewise.
60502         * modules/getdelim (Depends-on): Likewise.
60503         * modules/getline (Depends-on): Likewise.
60504         * modules/getsubopt (Depends-on): Likewise.
60505         * modules/gettext (Depends-on): Likewise.
60506         * modules/group-member (Depends-on): Likewise.
60507         * modules/mbchar (Depends-on): Likewise.
60508         * modules/memmem (Depends-on): Likewise.
60509         * modules/mempcpy (Depends-on): Likewise.
60510         * modules/memrchr (Depends-on): Likewise.
60511         * modules/pagealign_alloc (Depends-on): Likewise.
60512         * modules/readutmp (Depends-on): Likewise.
60513         * modules/stpcpy (Depends-on): Likewise.
60514         * modules/stpncpy (Depends-on): Likewise.
60515         * modules/strchrnul (Depends-on): Likewise.
60516         * modules/strndup (Depends-on): Likewise.
60517         * modules/strsep (Depends-on): Likewise.
60518         * modules/strverscmp (Depends-on): Likewise.
60519         * modules/vasprintf (Depends-on): Likewise.
60520         * modules/wcwidth (Depends-on): Likewise.
60521         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
60522         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
60523         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
60524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
60525         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60526         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60527         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
60528         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60529         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
60530         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
60531         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60532         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60533         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60534         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
60535         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
60536         * m4/readutmp.m4 (gl_READUTMP): Likewise.
60537         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60538         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60539         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60540         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60541         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60542         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60543         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60544         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
60545         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
60546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60547         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
60548         so that lock.m4 can be used in gettext without extensions module.
60549
60550 2007-09-11  Bruno Haible  <bruno@clisp.org>
60551
60552         * m4/isc-posix.m4: Remove file.
60553         Suggested by Eric Blake.
60554
60555 2007-09-11  Eric Blake  <ebb9@byu.net>
60556
60557         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
60558
60559 2007-09-10  Bruno Haible  <bruno@clisp.org>
60560
60561         * posix-modules: Fix typo in error message.
60562         Reported by Matt <mkraai@beckman.com>.
60563
60564 2007-09-09  Bruno Haible  <bruno@clisp.org>
60565
60566         * doc/functions/getdelim.texi: Update list of platforms lacking the
60567         function.
60568         * doc/functions/getline.texi: Likewise.
60569
60570 2007-09-09  Jim Meyering  <jim@meyering.net>
60571
60572         * lib/hash.c (hash_initialize): Detect calloc failure.
60573         Reported by Bruno Haible.
60574
60575 2007-09-09  Bruno Haible  <bruno@clisp.org>
60576
60577         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
60578         malloc or realloc fails.
60579
60580 2007-09-09  Bruno Haible  <bruno@clisp.org>
60581
60582         * modules/getcwd (Depends-on): Add malloc-posix.
60583         * modules/glob (Depends-on): Likewise.
60584         * modules/putenv (Depends-on): Likewise.
60585         * modules/strdup (Depends-on): Likewise.
60586         * modules/getdelim (Depends-on): Add realloc-posix.
60587         * modules/read-file (Depends-on): Likewise.
60588
60589 2007-09-09  Bruno Haible  <bruno@clisp.org>
60590
60591         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
60592         (gl_FUNC_MALLOC_POSIX): Require it.
60593         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
60594         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
60595         * modules/realloc (Files): Add m4/malloc.m4.
60596         * modules/calloc (Files): Likewise.
60597
60598 2007-09-09  Bruno Haible  <bruno@clisp.org>
60599
60600         * modules/malloc-posix: New file.
60601         * modules/malloc (Depends-on): Add malloc-posix.
60602         * lib/malloc.c: Include errno.h.
60603         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
60604         and a POSIX-compatible malloc into a single function. Set ENOMEM
60605         when returning NULL.
60606         * m4/malloc.m4: New file.
60607         * doc/functions/malloc.texi: Mention the malloc-posix module.
60608         * lib/stdlib_.h (malloc): New declaration.
60609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60610         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
60611         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
60612         and HAVE_MALLOC_POSIX.
60613
60614 2007-09-09  Bruno Haible  <bruno@clisp.org>
60615
60616         * modules/realloc-posix: New file.
60617         * modules/realloc (Depends-on): Add realloc-posix.
60618         * lib/realloc.c: Include errno.h.
60619         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
60620         and a POSIX-compatible realloc into a single function. Set ENOMEM
60621         when returning NULL.
60622         * m4/realloc.m4: New file.
60623         * doc/functions/realloc.texi: Mention the realloc-posix module.
60624         * lib/stdlib_.h (realloc): New declaration.
60625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60626         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
60627         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
60628         and HAVE_REALLOC_POSIX.
60629
60630 2007-09-09  Bruno Haible  <bruno@clisp.org>
60631
60632         * modules/calloc-posix: New file.
60633         * modules/calloc (Depends-on): Add calloc-posix.
60634         * lib/calloc.c: Include errno.h.
60635         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
60636         and a POSIX-compatible calloc into a single function. Set ENOMEM
60637         when returning NULL.
60638         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
60639         * doc/functions/calloc.texi: Mention the calloc-posix module.
60640         * lib/stdlib_.h (calloc): New declaration.
60641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60642         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
60643         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
60644         and HAVE_CALLOC_POSIX.
60645
60646 2007-09-09  Bruno Haible  <bruno@clisp.org>
60647
60648         Allow for modules to show an arbitrary notice.
60649         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
60650         * gnulib-tool: New option --extract-notice.
60651         (func_usage): Document it.
60652         (sed_extract_prog): Update.
60653         (func_get_notice): New function.
60654         (func_modules_notice): New function.
60655         (func_import, func_create_testdir): Invoke it.
60656         Suggested by Jim Meyering.
60657
60658 2007-09-09  Bruno Haible  <bruno@clisp.org>
60659
60660         * gnulib-tool: New options --verbose, --quiet.
60661         (func_usage): Document them.
60662         (verbose): New variable.
60663         (func_execute_command): New function.
60664         (func_import): Don't show the module list and the file list if
60665         $verbose < 0.
60666         (func_create_testdir): Likewise. Use func_execute_command.
60667         (func_create_megatestdir): Use func_execute_command.
60668
60669 2007-09-08  Bruno Haible  <bruno@clisp.org>
60670
60671         * gnulib-tool (func_import): Prefer rsync over wget when available,
60672         for fetching the PO files.
60673
60674 2007-09-08  Bruno Haible  <bruno@clisp.org>
60675
60676         * posix-modules: New file. Portions copied from gnulib-tool.
60677         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
60678
60679 2007-09-08  Jim Meyering  <jim@meyering.net>
60680
60681         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
60682         * lib/fpending.h: Rename from __fpending.h.
60683         * lib/fpending.c: Rename from __fpending.c.
60684         Include "fpending.h", not "__fpending.h".
60685         * lib/__fpending.h, lib/__fpending.c: Remove files.
60686         * modules/fpending (Files): Reflect new file names.
60687         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
60688
60689 2007-09-08  Bruno Haible  <bruno@clisp.org>
60690
60691         * m4/inttypes-h.m4: Remove stub file.
60692
60693 2007-09-07  Simon Josefsson  <simon@josefsson.org>
60694
60695         * doc/headers/stdint.texi: Discuss #include_next issue.
60696
60697 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60698
60699         * build-aux/bootstrap: Remove obsolete comment about wget --help.
60700
60701 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60702
60703         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
60704         in variable name.
60705
60706 2007-09-03  Jim Meyering  <jim@meyering.net>
60707
60708         New module: git-version-gen.
60709         * modules/git-version-gen: New file.
60710
60711         Import changes from coreutils for bootstrap script.
60712
60713         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
60714
60715         bootstrap: uses rsync to download the .po files
60716         * build-aux/bootstrap (po_download_command_format): New global.
60717         (download_po_files): Use rsync.
60718         (update_po_files): Don't remove .po files after download,
60719         so future rsync runs can take advantage of the copies.
60720
60721         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
60722
60723         Solve the unnecessary-.po-file-regeneration problem once and for all.
60724         * build-aux/bootstrap (download_po_files): New function, renamed from
60725         get_translations.  Now, downloads, but doesn't update LINGUAS.
60726         (update_po_files): New function.
60727
60728         bootstrap: Ignore more.
60729         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
60730         uniwidth to e.g., lib/.gitignore.
60731         (slurp): Handle the sys_stat_.h -> sys mapping, too.
60732
60733         * build-aux/bootstrap: New setting: vc_ignore.
60734         (insert_sorted_if_absent): Create $file if absent.
60735         Adapt to new, possibly empty, list: $vc_ignore.
60736
60737         bootstrap: generate more ignorable names
60738         * build-aux/bootstrap (slurp): When generating ignorable names,
60739         also map .sin to .sed, .gperf to .c, and .y to .c.
60740
60741 2007-09-03  Jim Meyering  <jim@meyering.net>
60742
60743         * build-aux/git-version-gen: New file, from coreutils.  For details, see
60744         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
60745
60746 2007-09-02  Bruno Haible  <bruno@clisp.org>
60747
60748         Fix mis-recognition of 'mcs' on QNX 6.
60749         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
60750         output contains the string "Mono".
60751         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
60752         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
60753
60754 2007-09-01  Bruno Haible  <bruno@clisp.org>
60755
60756         Fix collision between uniwidth/* and linebreak modules.
60757         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
60758         u32_width): Remove declarations.
60759         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
60760         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
60761         streq3, streq2, streq1, streq0): Remove functions.
60762         (STREQ): Remove macro.
60763         (is_cjk_encoding): Remove function.
60764         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
60765         (uc_width, u8_width, u16_width, u32_width): Remove functions.
60766         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
60767         * NEWS: Document the change.
60768
60769 2007-09-01  Bruno Haible  <bruno@clisp.org>
60770
60771         * lib/streq.h: Add double-inclusion guard.
60772
60773 2007-09-01  Karl Berry  <karl@gnu.org>
60774
60775         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
60776
60777 2007-08-28  Jim Meyering  <jim@meyering.net>
60778
60779         Rename mreadlink_with_size to areadlink_with_size.
60780         * NEWS: Document the change.
60781         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
60782         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
60783         * lib/mreadlink.h: Rename this to...
60784         * lib/areadlink.h: ...this.
60785         * modules/mreadlink-with-size: Rename this to...
60786         * modules/areadlink-with-size: ...this.
60787         * lib/canonicalize.c: Reflect the renaming.
60788         * modules/canonicalize: Likewise.
60789
60790 2007-08-26  Bruno Haible  <bruno@clisp.org>
60791
60792         * gnulib-tool (func_import): When deciding which files to remove,
60793         consider also dangling symbolic links.
60794         Reported by Eric Blake.
60795
60796 2007-08-26  Bruno Haible  <bruno@clisp.org>
60797
60798         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
60799
60800 2007-08-23  Simon Josefsson  <simon@josefsson.org>
60801
60802         * lib/readline.c: Don't include getline.h, the prototype is now
60803         found in stdio.h.
60804
60805 2007-08-23  Jim Meyering  <jim@meyering.net>
60806
60807         Getdelim touchup.
60808         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
60809         around the funlockfile call, since funlockfile never sets errno.
60810         Don't set errno upon failed realloc.
60811
60812 2007-08-22  Eric Blake  <ebb9@byu.net>
60813
60814         Getline touchups.
60815         * lib/getdelim.c (getdelim): Revert regression that required *n to
60816         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
60817         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
60818         getdelim, rather than whether implementation is missing.
60819         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
60820         * lib/stdio_.h (getline): Also declare if replacement is
60821         required.
60822         * doc/functions/getdelim.texi: New file.
60823         * doc/functions/getline.texi: Likewise.
60824         * doc/gnulib.texi (Function Substitutes): Add new files.
60825         Reported by Bruno Haible.
60826
60827 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
60828
60829         * users.txt: Add Guile.
60830
60831 2007-08-22  Eric Blake  <ebb9@byu.net>
60832
60833         * tests/test-getdelim.c (main): Use remove, not unlink.
60834         * tests/test-getline.c (main): Likewise.
60835
60836         Move getline and getdelim into stdio.h, per POSIX 200x.
60837         * modules/getline (Files): Remove getline.h.
60838         (Depends-on): Add stdio.
60839         (configure.ac): Add module indicator.
60840         * modules/getdelim (Files): Remove getdelim.h.
60841         (Depends-on): Add stdio.
60842         (configure.ac): Add module indicator.
60843         * modules/stdio (Makefile.am): Work with new indicators.
60844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
60845         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
60846         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60847         * lib/getdelim.h: Delete.
60848         * lib/getline.h: Delete.
60849         * lib/stdio_.h (getdelim, getline): Declare.
60850         * modules/getdelim-tests: New module.
60851         * modules/getline-tests: Likewise.
60852         * tests/test-getdelim.c: New file.
60853         * tests/test-getline.c: Likewise.
60854         * NEWS: Document the change.
60855         * lib/getline.c: Update choice of header.
60856         * lib/csharpcomp.c: Likewise.
60857         * lib/getpass.c: Likewise.
60858         * lib/javacomp.c: Likewise.
60859         * lib/javaversion.c: Likewise.
60860         * lib/yesno.c: Likewise.
60861         * lib/getdelim.c: Likewise.
60862         (getdelim): Set errno on failure, and avoid memory leak.
60863
60864 2007-08-19  Bruno Haible  <bruno@clisp.org>
60865
60866         * modules/closein (Depends-on): Add freadahead.
60867         * lib/closein.c: Include freadahead.h.
60868         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
60869         is zero.
60870
60871 2007-08-19  Bruno Haible  <bruno@clisp.org>
60872
60873         * modules/freadahead-tests: New file.
60874         * tests/test-freadahead.sh: New file.
60875         * tests/test-freadahead.c: New file.
60876
60877         * modules/freadahead: New file.
60878         * lib/freadahead.h: New file.
60879         * lib/freadahead.c: New file.
60880         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
60881         fbufmode, fpurge, freadable, fwritable.
60882
60883 2007-08-19  Eric Blake  <ebb9@byu.net>
60884
60885         Test yesno in combination with closein.
60886         * lib/yesno.c (yesno): Document use of stdin.
60887         * modules/yesno-tests (Files): New module.
60888         * tests/test-yesno.c (main): New file.
60889         * tests/test-yesno.sh: Likewise.
60890
60891 2007-08-19  Bruno Haible  <bruno@clisp.org>
60892
60893         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
60894         * lib/fseeko.c (rpl_fseeko): Likewise.
60895         * lib/fseterr.c (fseterr): Likewise.
60896
60897 2007-08-19  Bruno Haible  <bruno@clisp.org>
60898
60899         * tests/test-lseek.c (main): Disable a test for BeOS.
60900         * doc/functions/lseek.texi: Document the BeOS bug.
60901
60902 2007-08-19  Bruno Haible  <bruno@clisp.org>
60903             Eric Blake  <ebb9@byu.net>
60904
60905         * lib/lseek.c: Include <sys/stat.h>.
60906         (rpl_lseek): Add workaround code also for Unix platforms.
60907         Needed for BeOS.
60908         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
60909         * doc/functions/lseek.texi: Document BeOS definiency.
60910
60911 2007-08-18  Bruno Haible  <bruno@clisp.org>
60912
60913         * modules/fstrcmp-tests: New file.
60914         * tests/test-fstrcmp.c: New file.
60915
60916 2007-08-18  Bruno Haible  <bruno@clisp.org>
60917
60918         * modules/fstrcmp: New file, from GNU gettext with modifications.
60919         * lib/fstrcmp.h: New file, from GNU gettext.
60920         * lib/fstrcmp.c: New file, from GNU gettext.
60921         * MODULES.html.sh (String handling): Add fstrcmp.
60922
60923 2007-08-18  Bruno Haible  <bruno@clisp.org>
60924
60925         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
60926         'bool'.
60927         (diag, compareseq): Remove const from the ctxt argument.
60928         (USE_HEURISTIC): Undefine at the end.
60929
60930 2007-08-18  Jim Meyering  <jim@meyering.net>
60931
60932         New file: lib/idcache.h
60933         * NEWS: Mention the addition.
60934         * modules/idcache (Files): Add lib/idcache.h
60935         * lib/idcache.c: Include "idcache.h".
60936         Don't include <sys/types.h>.
60937         Add a FIXME comment.
60938         Move file-scoped "static" declarations to the top.
60939         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
60940
60941 2007-08-17  Bruno Haible  <bruno@clisp.org>
60942         and Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         * MODULES.html.sh: Add diffseq.
60945         * modules/diffseq: New file.
60946         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
60947         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
60948
60949 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60950
60951         Import changes from coreutils for bootstrap script.
60952
60953         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
60954
60955         * build-aux/bootstrap (slurp): Work even in environments where
60956         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
60957         current code does not slurp files whose names start with ".", and
60958         this looks like it might be a troublesome area.
60959
60960         2007-07-11  Jim Meyering  <jim@meyering.net>
60961
60962         If there's a GPL vN copyright comment, require that N == 3.
60963
60964         2007-07-08  Jim Meyering  <jim@meyering.net>
60965
60966         Run the coreutils-specific code only if tests/Makefile.am.in exists.
60967         * build-aux/bootstrap (mam_template): Move definition out of loop.
60968
60969         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
60970
60971         * build-aux/bootstrap (symlink_to_dir): Rename function from
60972         symlink_to_gnulib.  Add a directory parameter.  Update all
60973         callers.
60974         (cp_mark_as_generated): Also check for -- and link to -- files in
60975         gl/.
60976
60977         2007-07-08  Jim Meyering  <jim@meyering.net>
60978
60979         Adapt to deeper hierarchy in gnulib.
60980         * build-aux/bootstrap (symlink_to_dir): If the destination
60981         directory doesn't exist, create it. This is required at least for
60982         "lib/uniwidth/cjk.h".
60983
60984         2007-05-15  Jim Meyering  <jim@meyering.net>
60985
60986         * build-aux/bootstrap: Now that generated Makefile.am files
60987         are no longer under version control, they must be created at
60988         bootstrap time.
60989
60990 2007-08-14  Ben Pfaff  <blp@gnu.org>
60991
60992         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
60993
60994 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60995
60996         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
60997         given the changes below.
60998         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
60999         even on hosts that have padding bits beyond the supported 64.
61000
61001 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61002
61003         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
61004         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
61005         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
61006         depends on it.
61007         (xstrtol_error): Remove.
61008         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
61009         but with a different signature.
61010         (ATTRIBUTE_NORETURN, __attribute__): New macros.
61011         * lib/xstrtol-error.c: Include exitfail.h.
61012         (xstrtol_fatal): New function, with a different signature from the
61013         old xstrtol_error, so that the caller need not worry about passing
61014         in an exit status, or about storage management of the option argument.
61015         (xstrtol_error): Now a static function.  Redo signature to
61016         implement xstrtol_fatal.  Output the correct number of hyphens in
61017         front of the option so that the caller need not worry about
61018         storage management.
61019         (N_): New macro.
61020         (_): Remove; not used now.
61021         * modules/xstrtol: Depend on getopt.
61022         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
61023         of old STRTOL_FATAL_ERROR macro.
61024         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
61025         of test program.
61026         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
61027         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
61028
61029 2007-08-08  Eric Blake  <ebb9@byu.net>
61030
61031         * lib/xstrtol-error.c: Add missing include.
61032
61033         Move xstrtol messages into gnulib domain, when --pobase is used.
61034         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
61035         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
61036         * modules/xstrtol (Files): Distribute new file.
61037         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
61038         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
61039         * tests/test-xstrtol.c: ...into new file.
61040         * tests/test-xstrtoul.c: Also test xstrtoul.
61041         * tests/test-xstrtoimax.c: Also test xstrtoimax.
61042         * tests/test-xstrtoumax.c: Also test xstrtoumax.
61043         * tests/test-xstrtol.sh: Drive the tests.
61044         * tests/test-xstrtoimax.sh: Likewise.
61045         * tests/test-xstrtoumax.sh: Likewise.
61046         * modules/xstrtol-tests: New module.
61047         * modules/xstrtoimax-tests: Likewise.
61048         * modules/xstrtoumax-tests: Likewise.
61049
61050 2007-08-08  Jim Meyering  <jim@meyering.net>
61051
61052         New function: mfile_name_concat.
61053         * lib/filenamecat.c (mfile_name_concat): New function, just like
61054         file_name_concat, but return NULL upon failure rather than exiting
61055         with a diagnostic.
61056         * lib/filenamecat.h: Declare it.
61057
61058 2007-08-07  Bruno Haible  <bruno@clisp.org>
61059
61060         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
61061         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
61062         warning from gcc.
61063         Reported by Eric Blake.
61064
61065 2007-08-07  Simon Josefsson  <simon@josefsson.org>
61066
61067         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
61068         * modules/crypto/arcfour (License): Likewise.
61069         * modules/crypto/des-tests (License): Likewise.
61070         * modules/crypto/gc-arctwo-tests (License): Likewise.
61071         * modules/crypto/gc-des-tests (License): Likewise.
61072         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
61073         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
61074         * modules/crypto/gc-md2-tests (License): Likewise.
61075         * modules/crypto/gc-md4-tests (License): Likewise.
61076         * modules/crypto/gc-md5-tests (License): Likewise.
61077         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
61078         * modules/crypto/gc-rijndael-tests (License): Likewise.
61079         * modules/crypto/gc-sha1-tests (License): Likewise.
61080         * modules/crypto/gc-tests (License): Likewise.
61081         * modules/crypto/hmac-md5 (License): Likewise.
61082         * modules/crypto/hmac-sha1 (License): Likewise.
61083         * modules/crypto/md2-tests (License): Likewise.
61084         * modules/crypto/md4-tests (License): Likewise.
61085         * modules/crypto/md5 (License): Likewise.
61086         * modules/crypto/rijndael (License): Likewise.
61087         * modules/crypto/sha1 (License): Likewise.
61088         * modules/memxor (License): Likewise.
61089
61090 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61091         and Bruno Haible  <bruno@clisp.org>
61092
61093         * NEWS: Describe interface changes to human, xstrtol.
61094         * lib/human.h: Include <xstrtol.h>.
61095         (human_options): Return enum strtol_error, not int.  Remove
61096         bool arg; take int * instead.
61097         * lib/human.c: Don't include "gettext.h".
61098         (_): Remove; no longer used.
61099         Don't include <xstrtol.h>, since human.h does it.
61100         (human_options): Adjust to abovementioned interface changes.
61101         Do not report error to stderr; that's now the caller's
61102         responsibility.
61103         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
61104         interface change.
61105         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
61106         Str, Argument_type_string.  All uses changed.  Put " argument"
61107         in diagnostics to make them clearer.  Change wording of suffix
61108         message for clarity.
61109         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
61110         Argument_type_string.
61111         (STRTOL_FATAL_WARN): Remove; no longer used.
61112         * modules/human (Depends-on): Remove gettext-h.
61113
61114 2007-08-06  Simon Josefsson  <simon@josefsson.org>
61115
61116         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
61117
61118 2007-07-31  Bruno Haible  <bruno@clisp.org>
61119
61120         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
61121         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
61122         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
61123
61124 2007-07-31  Bruno Haible  <bruno@clisp.org>
61125
61126         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
61127         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
61128
61129 2007-07-30  Bruno Haible  <bruno@clisp.org>
61130
61131         * modules/base64 (License): Use the synonymous term "LGPLv2+".
61132         * modules/c-ctype (License): Likewise.
61133         * modules/c-strcase (License): Likewise.
61134         * modules/check-version (License): Likewise.
61135         * modules/iconv (License): Likewise.
61136         * modules/iconv_open (License): Likewise.
61137         * modules/read-file (License): Likewise.
61138         * modules/striconv (License): Likewise.
61139         * modules/strverscmp (License): Likewise.
61140         * modules/vasprintf (License): Likewise.
61141         * modules/crypto/des (License): Likewise.
61142         * modules/crypto/gc (License): Likewise.
61143         * modules/crypto/gc-arcfour (License): Likewise.
61144         * modules/crypto/gc-arctwo (License): Likewise.
61145         * modules/crypto/gc-des (License): Likewise.
61146         * modules/crypto/gc-hmac-md5 (License): Likewise.
61147         * modules/crypto/gc-hmac-sha1 (License): Likewise.
61148         * modules/crypto/gc-md2 (License): Likewise.
61149         * modules/crypto/gc-md4 (License): Likewise.
61150         * modules/crypto/gc-md5 (License): Likewise.
61151         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
61152         * modules/crypto/gc-random (License): Likewise.
61153         * modules/crypto/gc-rijndael (License): Likewise.
61154         * modules/crypto/gc-sha1 (License): Likewise.
61155         * modules/crypto/md2 (License): Likewise.
61156         * modules/crypto/md4 (License): Likewise.
61157
61158 2007-07-30  Jim Meyering  <jim@meyering.net>
61159
61160         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
61161         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
61162         it has valid stat data.  This bug would cause du not to count the
61163         sizes of inaccessible directories.
61164         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
61165         in <http://bugzilla.redhat.com/250077>.
61166
61167 2007-07-25  Peter O'Gorman  <peter@pogma.com>
61168             Bruno Haible  <bruno@clisp.org>
61169
61170         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
61171         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
61172         #include_next, gives a diagnostic about it, but reports no error in
61173         the exit code.
61174         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
61175
61176 2007-07-24  Ben Pfaff  <blp@gnu.org>
61177
61178         Improve name: "count-one-bits" is better than "popcount".
61179         * MODULES.html.sh: Update name.
61180         * lib/popcount.h: Renamed lib/count-one-bits.h.
61181         (popcount): Renamed count_one_bits.
61182         (popcountl): Renamed count_one_bits_l.
61183         (popcountll): Renamed count_one_bits_ll.
61184         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
61185         * modules/popcount: Renamed module/count-one-bits.
61186         * modules/popcount-tests: Renamed module/count-one-bits-tests.
61187         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
61188
61189 2007-07-23  Ben Pfaff  <blp@gnu.org>
61190
61191         * lib/popcount.h (popcount32): Reduce size of constants, to allow
61192         better code generation, and add U to large constants to avoid
61193         warnings, in non-GCC case.
61194         Suggested by Bruno Haible.
61195
61196 2007-07-23  Ben Pfaff  <blp@gnu.org>
61197
61198         * lib/popcount.h: Use verify_true instead of if...abort.
61199         * modules/popcount: Depend on verify module.
61200         Suggested by Jim Meyering.
61201
61202 2007-07-23  Bruno Haible  <bruno@clisp.org>
61203
61204         * gnulib-tool (func_import): Create a .cvsignore file also when the
61205         directory is not yet in CVS but the toplevel directory is. When
61206         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
61207         Reported by Karl Berry.
61208
61209 2007-07-22  Ben Pfaff  <blp@gnu.org>
61210
61211         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
61212         case.
61213         Suggested by Eric Blake.
61214
61215 2007-07-22  Ben Pfaff  <blp@gnu.org>
61216
61217         New module: popcount.
61218         * MODULES.html.sh: Add popcount.
61219         * modules/popcount: New file.
61220         * modules/popcount-tests: New file.
61221         * tests/test-popcount.c: New file.
61222         * lib/popcount.h: New file.
61223         * m4/popcount.m4: New file.
61224
61225 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61226
61227         * build-aux/announce-gen: Update to GPLv3.
61228
61229         * build-aux/config.guess: Update from config.
61230
61231 2007-07-21  Bruno Haible  <bruno@clisp.org>
61232
61233         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
61234         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
61235
61236 2007-07-20  Jim Meyering  <jim@meyering.net>
61237
61238         * check-module: Diagnose a self-dependency.
61239
61240 2007-07-19  Bruno Haible  <bruno@clisp.org>
61241
61242         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
61243         empty.
61244         Reported by Eric Blake.
61245
61246 2007-07-18  Bruno Haible  <bruno@clisp.org>
61247
61248         * gnulib-tool: New options --po-base, --po-domain.
61249         (func_usage): Document them.
61250         (pobase, po_domain): New variables.
61251         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
61252         DEFAULT_TEXT_DOMAIN.
61253         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
61254         (func_import): Consider pobase and po_domain. Create a po/ directory.
61255         (func_create_testdir): Set pobase and po_domain to empty.
61256         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
61257         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
61258
61259 2007-07-18  Bruno Haible  <bruno@clisp.org>
61260
61261         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61262         EXTRA_DIST augmentation for files in build-aux/.
61263
61264 2007-07-16  Bruno Haible  <bruno@clisp.org>
61265
61266         * modules/lseek (License): Use the synonymous term "LGPLv2+".
61267         * modules/getdelim (License): Likewise.
61268
61269 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61270
61271         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
61272         * modules/d-type (License): Likewise.
61273         * modules/extensions (License): Likewise.
61274         * modules/fnmatch (License): Likewise.
61275         * modules/fseeko (License): Likewise.
61276         * modules/getaddrinfo (License): Likewise.
61277         * modules/getline (License): Likewise.
61278         * modules/getlogin_r (License): Likewise.
61279         * modules/getpass (License): Likewise.
61280         * modules/gettimeofday (License): Likewise.
61281         * modules/glob (License): Likewise.
61282         * modules/inet_ntop (License): Likewise.
61283         * modules/malloc (License): Likewise.
61284         * modules/malloca (License): Likewise.
61285         * modules/memmem (License): Likewise.
61286         * modules/mempcpy (License): Likewise.
61287         * modules/memset (License): Likewise.
61288         * modules/minmax (License): Likewise.
61289         * modules/mktime (License): Likewise.
61290         * modules/netinet_in (License): Likewise.
61291         * modules/pathmax (License): Likewise.
61292         * modules/poll (License): Likewise.
61293         * modules/regex (License): Likewise.
61294         * modules/snprintf (License): Likewise.
61295         * modules/stdbool (License): Likewise.
61296         * modules/stdint (License): Likewise.
61297         * modules/stdio (License): Likewise.
61298         * modules/strcase (License): Likewise.
61299         * modules/strcasestr (License): Likewise.
61300         * modules/strdup (License): Likewise.
61301         * modules/string (License): Likewise.
61302         * modules/strndup (License): Likewise.
61303         * modules/strnlen (License): Likewise.
61304         * modules/strpbrk (License): Likewise.
61305         * modules/strptime (License): Likewise.
61306         * modules/strsep (License): Likewise.
61307         * modules/sys_select (License): Likewise.
61308         * modules/sys_socket (License): Likewise.
61309         * modules/sys_stat (License): Likewise.
61310         * modules/sys_time (License): Likewise.
61311         * modules/time (License): Likewise.
61312         * modules/time_r (License): Likewise.
61313         * modules/timegm (License): Likewise.
61314         * modules/unistd (License): Likewise.
61315         * modules/vsnprintf (License): Likewise.
61316         * modules/wctype (License): Likewise.
61317
61318 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61319
61320         * modules/argz (License): LGPLv2+.
61321
61322 2007-07-15  Karl Berry  <karl@gnu.org>
61323
61324         * doc/gnulib.texi: revise node structure per new fdl.texi.
61325
61326 2007-07-14  Bruno Haible  <bruno@clisp.org>
61327
61328         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
61329         the output file.
61330         * lib/uniname/uninames.h: Regenerated.
61331
61332 2007-07-14  Karl Berry  <karl@gnu.org>
61333
61334         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
61335         omitting sectioning and index commands.
61336
61337 2007-07-13  Bruno Haible  <bruno@clisp.org>
61338
61339         New gnulib-tool option --more-symlinks.
61340         * gnulib-tool (func_usage): Document --more-symlinks.
61341         (do_copyrights): New variable.
61342         Recognize option --more-symlinks.
61343         (func_import): Don't add a copyright notice transform to
61344         sed_transform_lib_file if do_copyrights is empty.
61345
61346 2007-07-13  Bruno Haible  <bruno@clisp.org>
61347
61348         * lib/vasnprintf.c (decimal_point_char): Define also if
61349         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
61350         && !NEED_PRINTF_DIRECTIVE_A.
61351         Reported by Clemens Koller <clemens.koller@anagramm.de> via
61352         Gary V. Vaughan <gary@gnu.org>.
61353
61354 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
61355
61356         * lib/inttypes_.h: Undo previous change, since it was fixed
61357         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
61358
61359 2007-07-13  Bruno Haible  <bruno@clisp.org>
61360
61361         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
61362         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
61363
61364 2007-07-13  Jim Meyering  <jim@meyering.net>
61365
61366         df: Don't fail for Tru64's "file-on-file mount".
61367         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
61368         so we fall through and use statfs instead.  Details here:
61369         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
61370         Reported by Albert Chin.
61371
61372 2007-07-13  Bruno Haible  <bruno@clisp.org>
61373
61374         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
61375         * modules/configmake (License): Likewise.
61376         * modules/gettext (License): Likewise.
61377         * modules/gettext-h (License): Likewise.
61378         * modules/include_next (License): Likewise.
61379         * modules/link-warning (License): Likewise.
61380         * modules/localcharset (License): Likewise.
61381         * modules/localename (License): Likewise.
61382         * modules/lock (License): Likewise.
61383         * modules/relocatable-lib-lgpl (License): Likewise.
61384         * modules/size_max (License): Likewise.
61385         * modules/vasnprintf (License): Likewise.
61386         * modules/wchar (License): Likewise.
61387         * modules/xsize (License): Likewise.
61388
61389 2007-07-13  Bruno Haible  <bruno@clisp.org>
61390
61391         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
61392         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
61393
61394 2007-07-12  Bruno Haible  <bruno@clisp.org>
61395
61396         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
61397         in the modules files.
61398
61399 2007-07-11  Karl Berry  <karl@gnu.org>
61400
61401         * MODULES.html.sh (func_module): use
61402          sed -e '\|^'"${includefile}"'$|d'
61403          instead of /.../d, to avoid errors on $includefile's containing /.
61404
61405 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61406
61407         * gnulib-tool (func_import): Avoid duplication of --avoid
61408         statements
61409         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
61410         names to `_' in variable names.
61411
61412 2007-07-10  Eric Blake  <ebb9@byu.net>
61413
61414         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
61415         * NEWS: Document this change.
61416
61417 2007-07-08  Bruno Haible  <bruno@clisp.org>
61418
61419         Update to Unicode 5.0.
61420         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
61421         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
61422         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
61423         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
61424         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
61425         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
61426         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
61427         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
61428         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
61429         U+10A3F, U+1D242..U+1D244.
61430         (nonspacing_table_ind): Update.
61431         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
61432         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
61433
61434 2007-07-08  Bruno Haible  <bruno@clisp.org>
61435
61436         Update to Unicode 5.0.
61437         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
61438         code transform. Extend the name index field of unicode_name_to_code and
61439         unicode_code_to_name from 16 to 24 bits.
61440         * lib/uniname/uniname.c (unicode_character_name,
61441         unicode_name_character): Add the range 0x12xxx to the code transform.
61442         * lib/uniname/uninames.h: Regenerated.
61443         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
61444
61445 2007-07-07  Bruno Haible  <bruno@clisp.org>
61446
61447         * modules/wcwidth-tests: New file.
61448         * tests/test-wcwidth.c: New file.
61449
61450         Work around MacOS X wcwidth() bug.
61451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
61452         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
61453         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
61454         original wcwidth in non-UTF-8 locales.
61455         * modules/wcwidth (Depends-on): Add localcharset, streq,
61456         uniwidth/width.
61457         * doc/functions/wcwidth.texi: Update.
61458
61459 2007-07-07  Bruno Haible  <bruno@clisp.org>
61460
61461         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
61462         (wcwidth): New declaration.
61463         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
61464         macros.
61465         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
61466         here. Prepare for creating <wchar.h> unconditionally.
61467         * modules/wchar (Depends-on): Add link-warning.
61468         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
61469         REPLACE_WCWIDTH, and GL_LINK_WARNING.
61470         * lib/wcwidth.h: Remove file.
61471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
61472         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
61473         * modules/wcwidth (Files): Remove lib/wcwidth.h.
61474         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
61475         (Include): Replace wcwidth.h with <wchar.h>.
61476         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
61477         * lib/mbchar.h: Don't include wcwidth.h.
61478         * lib/mbswidth.c: Likewise.
61479         * NEWS: Mention the change.
61480
61481 2007-07-07  Bruno Haible  <bruno@clisp.org>
61482
61483         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
61484         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
61485         definition with an external declaration.
61486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
61487         defined as a function. Remove AC_C_INLINE requirement.
61488         * modules/wcwidth (Files): Add lib/wcwidth.c.
61489         (Makefile.am): Remove redundant statement.
61490
61491 2007-07-07  Bruno Haible  <bruno@clisp.org>
61492
61493         * MODULES.html.sh (Unicode string functions): Add the new modules.
61494
61495         * tests/uniwidth/test-u32-strwidth.c: New file.
61496         * modules/uniwidth/u32-strwidth-tests: New file.
61497
61498         * lib/uniwidth/u32-strwidth.c: New file.
61499         * modules/uniwidth/u32-strwidth: New file.
61500
61501         * tests/uniwidth/test-u16-strwidth.c: New file.
61502         * modules/uniwidth/u16-strwidth-tests: New file.
61503
61504         * lib/uniwidth/u16-strwidth.c: New file.
61505         * modules/uniwidth/u16-strwidth: New file.
61506
61507         * tests/uniwidth/test-u8-strwidth.c: New file.
61508         * modules/uniwidth/u8-strwidth-tests: New file.
61509
61510         * lib/uniwidth/u8-strwidth.c: New file.
61511         * modules/uniwidth/u8-strwidth: New file.
61512
61513         * tests/uniwidth/test-u32-width.c: New file.
61514         * modules/uniwidth/u32-width-tests: New file.
61515
61516         * lib/uniwidth/u32-width.c: New file.
61517         * modules/uniwidth/u32-width: New file.
61518
61519         * tests/uniwidth/test-u16-width.c: New file.
61520         * modules/uniwidth/u16-width-tests: New file.
61521
61522         * lib/uniwidth/u16-width.c: New file.
61523         * modules/uniwidth/u16-width: New file.
61524
61525         * tests/uniwidth/test-u8-width.c: New file.
61526         * modules/uniwidth/u8-width-tests: New file.
61527
61528         * lib/uniwidth/u8-width.c: New file.
61529         * modules/uniwidth/u8-width: New file.
61530
61531         * tests/uniwidth/test-uc_width.c: New file.
61532         * modules/uniwidth/width-tests: New file.
61533
61534         * lib/uniwidth/width.c: New file, from GNU libiconv.
61535         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
61536         * modules/uniwidth/width: New file.
61537
61538         * lib/uniwidth.h: New file, from GNU libiconv.
61539         * modules/uniwidth/base: New file.
61540
61541 2007-07-07  Bruno Haible  <bruno@clisp.org>
61542
61543         * lib/uniname.h: New file, from GNU gettext.
61544         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
61545         * lib/uniname/uninames.h: New file, from GNU gettext.
61546         * lib/uniname/uniname.c: New file, from GNU gettext.
61547         * tests/uniname/test-uninames.sh: New file.
61548         * tests/uniname/test-uninames.c: New file, from GNU gettext.
61549         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
61550         * modules/uniname/base: New file.
61551         * modules/uniname/uniname: New file.
61552         * modules/uniname/uniname-tests: New file.
61553         * MODULES.html.sh (Unicode string functions): Add the new modules.
61554
61555 2007-07-06  Bruno Haible  <bruno@clisp.org>
61556
61557         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
61558
61559 2007-07-06  Bruno Haible  <bruno@clisp.org>
61560
61561         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
61562         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
61563         includes <cygwin/sys_time.h> which includes <sys/select.h> which
61564         include <sys/time.h>.
61565         Reported by Eric Blake.
61566
61567 2007-07-06  Eric Blake  <ebb9@byu.net>
61568
61569         Fix testing canonicalize on cygwin.
61570         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61571         Revert patch from 2007-06-19.
61572         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
61573         canonicalize module is also in use.
61574         * tests/test-canonicalize.c: New file.
61575         * tests/test-canonicalize.sh: Likewise.
61576         * modules/canonicalize-tests: Likewise.
61577
61578 2007-07-06  Jim Meyering  <jim@meyering.net>
61579
61580         * lib/getugroups.c (getugroups): Detect getgrent failure.
61581         Adjust comment to reflect reality: this function may return -1.
61582
61583 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
61584
61585         * build-aux/bootstrap (TP_URL,get_translations): Update to use
61586         the new TP address.
61587         (usage): Fix typo
61588         (gnulib_mk): New variable.
61589
61590 2007-07-05  Jim Meyering  <jim@meyering.net>
61591
61592         Don't let endgrent clobber errno, no matter how improbable.
61593         * lib/getugroups.c (getugroups): Save and restore errno around
61594         endgrent call.
61595
61596         Close the group DB even when failing with 2^31 or more members.
61597         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
61598
61599 2007-07-04  Jim Meyering  <jim@meyering.net>
61600
61601         * lib/getugroups.h: New file.
61602         * lib/getugroups.c: Include "getugroups.h".
61603         Remove uses of "register" keyword.
61604         Move local variable, "cp", down into scope where used.
61605         Give "username" parameter the "const" attribute.
61606         * modules/getugroups (Files): Add lib/getugroups.h
61607
61608 2007-07-04  Karl Berry  <karl@gnu.org>
61609
61610         * MODULES.html.sh (func_all_modules): Complete rename of
61611         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
61612
61613 2007-07-02  Bruno Haible  <bruno@clisp.org>
61614
61615         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
61616         mode, when inttypes.h comes from gnulib.
61617         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61618
61619 2007-07-02  Simon Josefsson  <simon@josefsson.org>
61620
61621         * NEWS: Mention lgpl module name change.
61622
61623         * modules/lgpl-2.1: Renamed from lgpl.
61624
61625         * NEWS: Mention gpl module name change.
61626
61627         * modules/gpl-3.0: New file, based on gpl-2.0.
61628
61629         * modules/gpl-2.0: Renamed from gpl.
61630
61631         * modules/gpl: Fix filename, doc/gpl.texi is now found at
61632         doc/gpl-2.0.texi.
61633
61634 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61635
61636         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
61637         #define __STDC_LIMIT_MACROS temporarily while including
61638         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
61639         Problem reported by Joel E. Denny in
61640         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
61641
61642 2007-07-01  Bruno Haible  <bruno@clisp.org>
61643
61644         * lib/unistdio.h: New file.
61645         * lib/unistdio/u-asnprintf.h: New file.
61646         * lib/unistdio/u-asprintf.h: New file.
61647         * lib/unistdio/u-printf-args.c: New file.
61648         * lib/unistdio/u-printf-args.h: New file.
61649         * lib/unistdio/u-printf-parse.h: New file.
61650         * lib/unistdio/u-snprintf.h: New file.
61651         * lib/unistdio/u-sprintf.h: New file.
61652         * lib/unistdio/u-vasprintf.h: New file.
61653         * lib/unistdio/u-vsnprintf.h: New file.
61654         * lib/unistdio/u-vsprintf.h: New file.
61655         * lib/unistdio/ulc-asnprintf.c: New file.
61656         * lib/unistdio/ulc-asprintf.c: New file.
61657         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
61658         * lib/unistdio/ulc-printf-parse.c: New file.
61659         * lib/unistdio/ulc-snprintf.c: New file.
61660         * lib/unistdio/ulc-sprintf.c: New file.
61661         * lib/unistdio/ulc-vasnprintf.c: New file.
61662         * lib/unistdio/ulc-vasprintf.c: New file.
61663         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
61664         * lib/unistdio/ulc-vsnprintf.c: New file.
61665         * lib/unistdio/ulc-vsprintf.c: New file.
61666         * lib/unistdio/u8-asnprintf.c: New file.
61667         * lib/unistdio/u8-asprintf.c: New file.
61668         * lib/unistdio/u8-printf-parse.c: New file.
61669         * lib/unistdio/u8-snprintf.c: New file.
61670         * lib/unistdio/u8-sprintf.c: New file.
61671         * lib/unistdio/u8-vasnprintf.c: New file.
61672         * lib/unistdio/u8-vasprintf.c: New file.
61673         * lib/unistdio/u8-vsnprintf.c: New file.
61674         * lib/unistdio/u8-vsprintf.c: New file.
61675         * lib/unistdio/u8-u8-asnprintf.c: New file.
61676         * lib/unistdio/u8-u8-asprintf.c: New file.
61677         * lib/unistdio/u8-u8-snprintf.c: New file.
61678         * lib/unistdio/u8-u8-sprintf.c: New file.
61679         * lib/unistdio/u8-u8-vasnprintf.c: New file.
61680         * lib/unistdio/u8-u8-vasprintf.c: New file.
61681         * lib/unistdio/u8-u8-vsnprintf.c: New file.
61682         * lib/unistdio/u8-u8-vsprintf.c: New file.
61683         * lib/unistdio/u16-asnprintf.c: New file.
61684         * lib/unistdio/u16-asprintf.c: New file.
61685         * lib/unistdio/u16-printf-parse.c: New file.
61686         * lib/unistdio/u16-snprintf.c: New file.
61687         * lib/unistdio/u16-sprintf.c: New file.
61688         * lib/unistdio/u16-vasnprintf.c: New file.
61689         * lib/unistdio/u16-vasprintf.c: New file.
61690         * lib/unistdio/u16-vsnprintf.c: New file.
61691         * lib/unistdio/u16-vsprintf.c: New file.
61692         * lib/unistdio/u16-u16-asnprintf.c: New file.
61693         * lib/unistdio/u16-u16-asprintf.c: New file.
61694         * lib/unistdio/u16-u16-snprintf.c: New file.
61695         * lib/unistdio/u16-u16-sprintf.c: New file.
61696         * lib/unistdio/u16-u16-vasnprintf.c: New file.
61697         * lib/unistdio/u16-u16-vasprintf.c: New file.
61698         * lib/unistdio/u16-u16-vsnprintf.c: New file.
61699         * lib/unistdio/u16-u16-vsprintf.c: New file.
61700         * lib/unistdio/u32-asnprintf.c: New file.
61701         * lib/unistdio/u32-asprintf.c: New file.
61702         * lib/unistdio/u32-printf-parse.c: New file.
61703         * lib/unistdio/u32-snprintf.c: New file.
61704         * lib/unistdio/u32-sprintf.c: New file.
61705         * lib/unistdio/u32-vasnprintf.c: New file.
61706         * lib/unistdio/u32-vasprintf.c: New file.
61707         * lib/unistdio/u32-vsnprintf.c: New file.
61708         * lib/unistdio/u32-vsprintf.c: New file.
61709         * lib/unistdio/u32-u32-asnprintf.c: New file.
61710         * lib/unistdio/u32-u32-asprintf.c: New file.
61711         * lib/unistdio/u32-u32-snprintf.c: New file.
61712         * lib/unistdio/u32-u32-sprintf.c: New file.
61713         * lib/unistdio/u32-u32-vasnprintf.c: New file.
61714         * lib/unistdio/u32-u32-vasprintf.c: New file.
61715         * lib/unistdio/u32-u32-vsnprintf.c: New file.
61716         * lib/unistdio/u32-u32-vsprintf.c: New file.
61717         * tests/unistdio/test-ulc-asnprintf1.c: New file.
61718         * tests/unistdio/test-ulc-asnprintf1.h: New file.
61719         * tests/unistdio/test-ulc-printf1.h: New file.
61720         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
61721         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
61722         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
61723         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
61724         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
61725         * tests/unistdio/test-ulc-vasprintf1.c: New file.
61726         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
61727         * tests/unistdio/test-ulc-vsprintf1.c: New file.
61728         * tests/unistdio/test-u8-asnprintf1.c: New file.
61729         * tests/unistdio/test-u8-asnprintf1.h: New file.
61730         * tests/unistdio/test-u8-printf1.h: New file.
61731         * tests/unistdio/test-u8-vasnprintf1.c: New file.
61732         * tests/unistdio/test-u8-vasnprintf2.c: New file.
61733         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
61734         * tests/unistdio/test-u8-vasnprintf3.c: New file.
61735         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
61736         * tests/unistdio/test-u8-vasprintf1.c: New file.
61737         * tests/unistdio/test-u8-vsnprintf1.c: New file.
61738         * tests/unistdio/test-u8-vsprintf1.c: New file.
61739         * tests/unistdio/test-u16-asnprintf1.c: New file.
61740         * tests/unistdio/test-u16-asnprintf1.h: New file.
61741         * tests/unistdio/test-u16-printf1.h: New file.
61742         * tests/unistdio/test-u16-vasnprintf1.c: New file.
61743         * tests/unistdio/test-u16-vasnprintf2.c: New file.
61744         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
61745         * tests/unistdio/test-u16-vasnprintf3.c: New file.
61746         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
61747         * tests/unistdio/test-u16-vasprintf1.c: New file.
61748         * tests/unistdio/test-u16-vsnprintf1.c: New file.
61749         * tests/unistdio/test-u16-vsprintf1.c: New file.
61750         * tests/unistdio/test-u32-asnprintf1.c: New file.
61751         * tests/unistdio/test-u32-asnprintf1.h: New file.
61752         * tests/unistdio/test-u32-printf1.h: New file.
61753         * tests/unistdio/test-u32-vasnprintf1.c: New file.
61754         * tests/unistdio/test-u32-vasnprintf2.c: New file.
61755         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
61756         * tests/unistdio/test-u32-vasnprintf3.c: New file.
61757         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
61758         * tests/unistdio/test-u32-vasprintf1.c: New file.
61759         * tests/unistdio/test-u32-vsnprintf1.c: New file.
61760         * tests/unistdio/test-u32-vsprintf1.c: New file.
61761         * modules/unistdio/base: New file.
61762         * modules/unistdio/u-printf-args: New file.
61763         * modules/unistdio/ulc-asnprintf: New file.
61764         * modules/unistdio/ulc-asprintf: New file.
61765         * modules/unistdio/ulc-fprintf: New file.
61766         * modules/unistdio/ulc-printf-parse: New file.
61767         * modules/unistdio/ulc-snprintf: New file.
61768         * modules/unistdio/ulc-sprintf: New file.
61769         * modules/unistdio/ulc-vasnprintf: New file.
61770         * modules/unistdio/ulc-vasprintf: New file.
61771         * modules/unistdio/ulc-vfprintf: New file.
61772         * modules/unistdio/ulc-vsnprintf: New file.
61773         * modules/unistdio/ulc-vsprintf: New file.
61774         * modules/unistdio/u8-asnprintf: New file.
61775         * modules/unistdio/u8-asprintf: New file.
61776         * modules/unistdio/u8-printf-parse: New file.
61777         * modules/unistdio/u8-snprintf: New file.
61778         * modules/unistdio/u8-sprintf: New file.
61779         * modules/unistdio/u8-vasnprintf: New file.
61780         * modules/unistdio/u8-vasprintf: New file.
61781         * modules/unistdio/u8-vsnprintf: New file.
61782         * modules/unistdio/u8-vsprintf: New file.
61783         * modules/unistdio/u8-u8-asnprintf: New file.
61784         * modules/unistdio/u8-u8-asprintf: New file.
61785         * modules/unistdio/u8-u8-snprintf: New file.
61786         * modules/unistdio/u8-u8-sprintf: New file.
61787         * modules/unistdio/u8-u8-vasnprintf: New file.
61788         * modules/unistdio/u8-u8-vasprintf: New file.
61789         * modules/unistdio/u8-u8-vsnprintf: New file.
61790         * modules/unistdio/u8-u8-vsprintf: New file.
61791         * modules/unistdio/u16-asnprintf: New file.
61792         * modules/unistdio/u16-asprintf: New file.
61793         * modules/unistdio/u16-printf-parse: New file.
61794         * modules/unistdio/u16-snprintf: New file.
61795         * modules/unistdio/u16-sprintf: New file.
61796         * modules/unistdio/u16-vasnprintf: New file.
61797         * modules/unistdio/u16-vasprintf: New file.
61798         * modules/unistdio/u16-vsnprintf: New file.
61799         * modules/unistdio/u16-vsprintf: New file.
61800         * modules/unistdio/u16-u16-asnprintf: New file.
61801         * modules/unistdio/u16-u16-asprintf: New file.
61802         * modules/unistdio/u16-u16-snprintf: New file.
61803         * modules/unistdio/u16-u16-sprintf: New file.
61804         * modules/unistdio/u16-u16-vasnprintf: New file.
61805         * modules/unistdio/u16-u16-vasprintf: New file.
61806         * modules/unistdio/u16-u16-vsnprintf: New file.
61807         * modules/unistdio/u16-u16-vsprintf: New file.
61808         * modules/unistdio/u32-asnprintf: New file.
61809         * modules/unistdio/u32-asprintf: New file.
61810         * modules/unistdio/u32-printf-parse: New file.
61811         * modules/unistdio/u32-snprintf: New file.
61812         * modules/unistdio/u32-sprintf: New file.
61813         * modules/unistdio/u32-vasnprintf: New file.
61814         * modules/unistdio/u32-vasprintf: New file.
61815         * modules/unistdio/u32-vsnprintf: New file.
61816         * modules/unistdio/u32-vsprintf: New file.
61817         * modules/unistdio/u32-u32-asnprintf: New file.
61818         * modules/unistdio/u32-u32-asprintf: New file.
61819         * modules/unistdio/u32-u32-snprintf: New file.
61820         * modules/unistdio/u32-u32-sprintf: New file.
61821         * modules/unistdio/u32-u32-vasnprintf: New file.
61822         * modules/unistdio/u32-u32-vasprintf: New file.
61823         * modules/unistdio/u32-u32-vsnprintf: New file.
61824         * modules/unistdio/u32-u32-vsprintf: New file.
61825         * modules/unistdio/ulc-asnprintf-tests: New file.
61826         * modules/unistdio/ulc-vasnprintf-tests: New file.
61827         * modules/unistdio/ulc-vasprintf-tests: New file.
61828         * modules/unistdio/ulc-vsnprintf-tests: New file.
61829         * modules/unistdio/ulc-vsprintf-tests: New file.
61830         * modules/unistdio/u8-asnprintf-tests: New file.
61831         * modules/unistdio/u8-vasnprintf-tests: New file.
61832         * modules/unistdio/u8-vasprintf-tests: New file.
61833         * modules/unistdio/u8-vsnprintf-tests: New file.
61834         * modules/unistdio/u8-vsprintf-tests: New file.
61835         * modules/unistdio/u16-asnprintf-tests: New file.
61836         * modules/unistdio/u16-vasnprintf-tests: New file.
61837         * modules/unistdio/u16-vasprintf-tests: New file.
61838         * modules/unistdio/u16-vsnprintf-tests: New file.
61839         * modules/unistdio/u16-vsprintf-tests: New file.
61840         * modules/unistdio/u32-asnprintf-tests: New file.
61841         * modules/unistdio/u32-vasnprintf-tests: New file.
61842         * modules/unistdio/u32-vasprintf-tests: New file.
61843         * modules/unistdio/u32-vsnprintf-tests: New file.
61844         * modules/unistdio/u32-vsprintf-tests: New file.
61845         * MODULES.html.sh (Unicode string functions): Add the new modules.
61846
61847 2007-07-01  Bruno Haible  <bruno@clisp.org>
61848
61849         * lib/sprintf.c (sprintf): Limit the available length estimation,
61850         to avoid address wraparound.
61851         * lib/vsprintf.c (vsprintf): Likewise.
61852         * modules/sprintf-posix (Dependencies): Add stdint.
61853         * modules/vsprintf-posix (Dependencies): Likewise.
61854
61855 2007-07-01  Bruno Haible  <bruno@clisp.org>
61856
61857         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
61858         Windows PATH as well. Conservative double-quoting. Comments.
61859
61860 2007-07-01  Bruno Haible  <bruno@clisp.org>
61861             Eric Blake  <ebb9@byu.net>
61862             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61863
61864         * gnulib-tool (self_abspathname): Fix algorithm to cope with
61865         empty components in $PATH, denoting '.'.
61866
61867 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61868
61869         * gnulib-tool: Fix indentation.
61870         (func_create_megatestdir): Likewise.
61871         Report by Bruno Haible.
61872
61873 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61874
61875         Sync from Automake.
61876         * build-aux/gnupload: Fix shell portability issues with for loops.
61877         Report by Karl Berry.
61878
61879 2007-06-29  Simon Josefsson  <simon@josefsson.org>
61880
61881         * build-aux/maint.mk (POURL): Use translationproject.org.
61882
61883 2007-06-27  Simon Josefsson  <simon@josefsson.org>
61884             Bruno Haible  <bruno@clisp.org>
61885
61886         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
61887         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
61888         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
61889         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
61890         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
61891
61892 2007-06-27  Bruno Haible  <bruno@clisp.org>
61893
61894         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
61895         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
61896
61897 2007-06-26  Karl Berry  <karl@gnu.org>
61898
61899         * MODULES.html.sh: remove xreadlink-with-size.
61900
61901 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61902
61903         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
61904         method that I hope also handles the double-include problem noted
61905         by Bruno Haible in
61906         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
61907
61908 2007-06-23  Bruno Haible  <bruno@clisp.org>
61909
61910         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61911         Don't let the 'mostlyclean' target fail if the last subdirectory could
61912         not be removed.
61913         Reported by Karl Berry.
61914
61915 2007-06-23  Bruno Haible  <bruno@clisp.org>
61916
61917         * gnulib-tool (echo): Add a speedier workaround for ksh.
61918         * tests/test-echo.sh: Likewise.
61919
61920 2007-06-23  Bruno Haible  <bruno@clisp.org>
61921
61922         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
61923         * tests/test-echo.sh: Likewise.
61924
61925 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61926
61927         * gnulib-tool (IFS): Initialize early, so we don't set it to
61928         empty later.
61929         (self_abspathname): Rewrite algorithm to set it, reindent.
61930         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
61931         (func_create_megatestdir): Merge some sed scripts.
61932
61933 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
61934
61935         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
61936         exposed by Sun Studio 11 cc on Solaris 8.
61937
61938 2007-06-22  Bruno Haible  <bruno@clisp.org>
61939
61940         * gnulib-tool (echo): Ensure the echo primitive does not interpret
61941         backslashes.
61942         * tests/test-echo.sh: New file.
61943
61944 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61945
61946         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
61947         simplify `sed_replace_build_aux' scripts, they are portable but
61948         echoing them with `echo' is not.
61949         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
61950
61951 2007-06-21  Karl Berry  <karl@gnu.org>
61952
61953         * config/srclist.txt: guess we can't handle the licenses via
61954         srclist at the moment.
61955
61956 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61957
61958         * MODULES.html.sh: Add include_next.
61959         * modules/include_next: New file.
61960
61961 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
61964         INCLUDE_NEXT.
61965         (gl_CHECK_NEXT_HEADERS): New macro.
61966         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
61967         the obsolescent gl_ABSOLUTE_HEADER.
61968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
61969         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
61970         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61971         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61972         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61973         * m4/math_h.m4 (gl_MATH_H): Likewise.
61974         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61975         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61976         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
61977         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61978         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
61979         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
61980         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
61981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
61984         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
61985         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
61986         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
61987         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61988         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61989         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61990         * m4/inttypes.m4 (gl_INTTYPES_H): Define
61991         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
61992         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
61993         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
61994         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
61995         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
61996         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
61997         * lib/float_.h: Likewise.
61998         * lib/inttypes_.h: Likewise.
61999         * lib/math_.h: Likewise.
62000         * lib/search_.h: Likewise.
62001         * lib/signal_.h: Likewise.
62002         * lib/stdint_.h: Likewise.
62003         * lib/stdio_.h: Likewise.
62004         * lib/stdlib_.h: Likewise.
62005         * lib/string_.h: Likewise.
62006         * lib/sys_stat_.h: Likewise.
62007         * lib/sys_time_.h: Likewise.
62008         * lib/time_.h: Likewise.
62009         * lib/unistd_.h: Likewise.
62010         * lib/wchar_.h: Likewise.
62011         * lib/wctype_.h: Likewise.
62012         * lib/dirent_.h: Likewise.
62013         * lib/iconv_.h: Likewise.
62014         * lib/locale_.h: Likewise.
62015         * lib/netinet_in_.h: Likewise.
62016         * lib/sys_select_.h: Likewise.
62017         * lib/sys_socket_.h: Likewise.
62018         * lib/sysexits_.h: Likewise.
62019         * modules/fcntl (Depends-on): Depend on include_next, not
62020         absolute_header.
62021         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
62022         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
62023         * modules/fchdir: Likewise.
62024         * modules/float: Likewise.
62025         * modules/iconv_open: Likewise.
62026         * modules/inttypes: Likewise.
62027         * modules/locale: Likewise.
62028         * modules/math: Likewise.
62029         * modules/netinet_in: Likewise.
62030         * modules/search: Likewise.
62031         * modules/signal: Likewise.
62032         * modules/stdint: Likewise.
62033         * modules/stdio: Likewise.
62034         * modules/stdlib: Likewise.
62035         * modules/string: Likewise.
62036         * modules/sys_select: Likewise.
62037         * modules/sys_socket: Likewise.
62038         * modules/sys_stat: Likewise.
62039         * modules/sys_time: Likewise.
62040         * modules/sysexits: Likewise.
62041         * modules/time: Likewise.
62042         * modules/unistd: Likewise.
62043         * modules/wchar: Likewise.
62044         * modules/wctype: Likewise.
62045         * modules/sys_stat: Change maintainer to "all".
62046         * modules/unistd: Likewise.
62047
62048 2007-06-20  Karl Berry  <karl@gnu.org>
62049
62050         * config/srclist.txt: track www changes in license files.
62051
62052 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
62053
62054         * build-aux/bootstrap: Remove stray dot.
62055         Make sure build_aux settings are honored when linking
62056         gnulib_extra_files.
62057
62058 2007-06-19  Eric Blake  <ebb9@byu.net>
62059
62060         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62061         Allow compilation on cygwin.
62062
62063 2007-06-19  Jim Meyering  <jim@meyering.net>
62064
62065         xreadlink-with-size: Remove module.  No longer used.
62066         Ex-callers now use xreadlink or mreadlink-with-size.
62067         * modules/xreadlink-with-size: Remove module.
62068         * lib/xreadlink-with-size.c: Remove file.
62069         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
62070         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
62071         just before the function definition *is* accurate.
62072
62073         Eliminate one way canonicalize_filename_mode could exit.
62074         * lib/canonicalize.c (canonicalize_filename_mode):
62075         Use mreadlink_with_size, not xreadlink_with_size.
62076
62077 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
62078
62079         Detect porting problems to FreeBSD/arm, which has time_t wider than
62080         long int.  Original problem reported for GNU diff by Xin Li in
62081         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
62082         * modules/getdate (Depends-on): Add intprops, verify.
62083         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
62084         is an integer type no wider than long int.
62085
62086 2007-06-18  Jim Meyering  <jim@meyering.net>
62087
62088         New module: mreadlink-with-size.
62089         * MODULES.html.sh: Add mreadlink-with-size.
62090         * modules/mreadlink-with-size: New module
62091         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
62092         not xreadlink-with-size.
62093         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
62094
62095 2007-06-16  Bruno Haible  <bruno@clisp.org>
62096
62097         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
62098         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
62099         Reported by Gary V. Vaughan <gary@gnu.org>.
62100
62101 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
62102
62103         Revamp lchown so that it lives in unistd.h where it belongs.
62104         * lib/lchown.h: Remove.
62105         * lib/dirchownmod.c: Don't include lib/lchown.h.
62106         * lib/fchownat.c: Likewise.
62107         * lib/openat.c: Likewise.
62108         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
62109         does not follow symlinks.
62110         (EOPNOTSUPP): Define if not defined.
62111         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
62112         is defined to 0.
62113         (lchown): New decl.
62114         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
62115         Do not check for lchown decl.
62116         Set REPLACE_LCHOWN.
62117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
62118         REPLACE_LCHOWN.
62119         * modules/chown: Make it clear it follows symlinks.
62120         * modules/lchown: Make it clear it doesn't follow symlinks.
62121         (Files): Remove lib/lchown.h
62122         (Depends-on): Add unistd.
62123         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
62124         (Include): Include <unistd.h>, not "lchown.h".
62125         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
62126         REPLACE_LCHOWN.
62127
62128 2007-06-15  Jim Meyering  <jim@meyering.net>
62129
62130         Change license (GPL to LGPL) of fsusage and dependents.
62131         * modules/fsusage (License): Change to LGPL.
62132         * modules/full-read (License): Likewise.
62133         * modules/full-write (License): Likewise.
62134         * modules/safe-read (License): Likewise.
62135         * modules/safe-write (License): Likewise.
62136
62137 2007-06-14  Ben Pfaff  <blp@gnu.org>
62138
62139         Missing part of allocsa -> malloca transition.
62140         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
62141         gl_MALLOCA.
62142
62143 2007-06-12  Bruno Haible  <bruno@clisp.org>
62144
62145         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
62146         to ia64, x86_64, i386.
62147         Reported by Eric Blake.
62148
62149 2007-06-12  Bruno Haible  <bruno@clisp.org>
62150
62151         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
62152         cross-compiling to x86_64.
62153
62154 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
62155
62156         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
62157         glitch reported by Ralf Wildenhues in
62158         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
62159
62160         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
62161         Vin Shelton.
62162
62163 2007-06-11  Bruno Haible  <bruno@clisp.org>
62164
62165         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
62166         replacement string.
62167         Reported by Eric Blake.
62168
62169 2007-06-10  Bruno Haible  <bruno@clisp.org>
62170
62171         Prepare vasnprintf code for use with Unicode strings.
62172         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
62173         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
62174         TYPE_U32_STRING.
62175         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
62176         a_u32_string variants.
62177         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62178         * lib/printf-args.c: Don't include config.h and the specification
62179         header if PRINTF_FETCHARGS is already defined.
62180         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62181         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
62182         TYPE_U16_STRING, TYPE_U32_STRING.
62183         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
62184         u16_directive, u16_directives, u32_directive, u32_directives): New
62185         types.
62186         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
62187         New declarations.
62188         * lib/printf-parse.c: Don't include config.h and the specification
62189         header if PRINTF_PARSE is already defined. Eliminate the set of
62190         parameters for WIDE_CHAR_VERSION; the user of this file must provide
62191         them now. Include c-ctype.h.
62192         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
62193         directive and CHAR_T_ONLY_ASCII.
62194         * lib/vasnprintf.c: Don't include config.h and the specification header
62195         if VASNPRINTF is already defined.
62196         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
62197         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
62198         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
62199         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
62200         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
62201         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
62202         code accordingly.
62203         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
62204         pad_ourselves also in this case, with the 'c' and 's' directives, and
62205         with a different notion of "width".
62206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
62207
62208 2007-06-10  Bruno Haible  <bruno@clisp.org>
62209
62210         * modules/unistr/u32-mbsnlen: New file.
62211         * lib/unistr/u32-mbsnlen.c: New file.
62212
62213         * modules/unistr/u16-mbsnlen: New file.
62214         * lib/unistr/u16-mbsnlen.c: New file.
62215
62216         * modules/unistr/u8-mbsnlen: New file.
62217         * lib/unistr/u8-mbsnlen.c: New file.
62218
62219         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
62220         declarations.
62221
62222 2007-06-10  Bruno Haible  <bruno@clisp.org>
62223
62224         * lib/string_.h (mbsnlen): New declaration.
62225         * lib/mbsnlen.c: New file.
62226         * m4/mbsnlen.m4: New file.
62227         * modules/mbsnlen: New file.
62228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
62229         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
62230         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
62231
62232 2007-06-10  Bruno Haible  <bruno@clisp.org>
62233
62234         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
62235
62236 2007-06-10  Bruno Haible  <bruno@clisp.org>
62237
62238         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
62239         * lib/mbuiter.h: Likewise.
62240
62241 2007-06-10  Bruno Haible  <bruno@clisp.org>
62242
62243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
62244         declaration.
62245
62246 2007-06-10  Karl Berry  <karl@gnu.org>
62247
62248         * config/srclist.txt: remove gettext entries, Bruno prefers
62249         to update individually.
62250
62251 2007-06-10  Bruno Haible  <bruno@clisp.org>
62252
62253         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
62254         'maxlen'. Ensure only length + width bytes are allocated, not
62255         length + 1 + width.
62256
62257 2007-06-09  Bruno Haible  <bruno@clisp.org>
62258
62259         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
62260         (CHAR_T): Remove macro.
62261         (VASNPRINTF): Update.
62262
62263 2007-06-09  Bruno Haible  <bruno@clisp.org>
62264
62265         * MODULES.html.sh (Unicode string functions): Add the new modules.
62266
62267         * modules/uniconv/u32-conv-to-enc: New file.
62268         * lib/uniconv/u32-conv-to-enc.c: New file.
62269         * modules/uniconv/u32-conv-to-enc-tests: New file.
62270         * tests/uniconv/test-u32-conv-to-enc.c: New file.
62271
62272         * modules/uniconv/u16-conv-to-enc: New file.
62273         * lib/uniconv/u16-conv-to-enc.c: New file.
62274         * lib/uniconv/u-conv-to-enc.h: New file.
62275         * modules/uniconv/u16-conv-to-enc-tests: New file.
62276         * tests/uniconv/test-u16-conv-to-enc.c: New file.
62277
62278         * modules/uniconv/u8-conv-to-enc: New file.
62279         * lib/uniconv/u8-conv-to-enc.c: New file.
62280         * modules/uniconv/u8-conv-to-enc-tests: New file.
62281         * tests/uniconv/test-u8-conv-to-enc.c: New file.
62282
62283         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
62284         u32_conv_to_encoding): New declarations.
62285
62286 2007-06-09  Bruno Haible  <bruno@clisp.org>
62287
62288         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
62289
62290 2007-06-09  Bruno Haible  <bruno@clisp.org>
62291
62292         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
62293         * modules/malloca: Renamed from modules/allocsa, updated.
62294         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
62295         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
62296         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
62297         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
62298         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
62299         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
62300         * modules/xmalloca: Renamed from modules/xallocsa, updated.
62301         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
62302         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
62303         * modules/c-strcasestr (Depends-on): Update.
62304         * lib/c-strcasestr.c: Update.
62305         * modules/c-strstr (Depends-on): Update.
62306         * lib/c-strstr.c: Update.
62307         * modules/canonicalize-lgpl (Depends-on): Update.
62308         * lib/canonicalize-lgpl.c: Update.
62309         * modules/clean-temp (Depends-on): Update.
62310         * lib/clean-temp.c: Update.
62311         * modules/csharpcomp (Depends-on): Update.
62312         * lib/csharpcomp.c: Update.
62313         * modules/csharpexec (Depends-on): Update.
62314         * lib/csharpexec.c: Update.
62315         * modules/javacomp (Depends-on): Update.
62316         * lib/javacomp.c: Update.
62317         * modules/javaexec (Depends-on): Update.
62318         * lib/javaexec.c: Update.
62319         * modules/mbscasestr (Depends-on): Update.
62320         * lib/mbscasestr.c: Update.
62321         * modules/mbsstr (Depends-on): Update.
62322         * lib/mbsstr.c: Update.
62323         * modules/setenv (Depends-on): Update.
62324         * lib/setenv.c: Update.
62325         * modules/strcasestr (Depends-on): Update.
62326         * lib/strcasestr.c: Update.
62327         * modules/striconveha (Depends-on): Update.
62328         * lib/striconveha.c: Update.
62329         * modules/relocatable-prog-wrapper (Files): Update.
62330         * lib/relocwrapper.c: Update.
62331         * build-aux/install-reloc: Update.
62332         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
62333
62334 2007-06-08  Bruno Haible  <bruno@clisp.org>
62335
62336         Port to uClibc.
62337         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
62338         * lib/fpurge.c (fpurge): Likewise.
62339         * lib/freading.c (freading): Likewise.
62340         * lib/fseeko.c (rpl_fseeko): Likewise.
62341         * lib/fseterr.c (fseterr): Likewise.
62342         * lib/fwriting.c (fwriting): Likewise.
62343         * tests/test-fflush.c (main): Avoid a failure on uClibc.
62344
62345 2007-06-08  Bruno Haible  <bruno@clisp.org>
62346
62347         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
62348         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
62349         * modules/gettext (Files): Add m4/intlmacosx.m4.
62350
62351 2007-06-07  Bruno Haible  <bruno@clisp.org>
62352
62353         * modules/localename-tests: New file.
62354         * tests/test-localename.c: New file.
62355
62356         New module 'localename'.
62357         * lib/localename.h: New file.
62358         * lib/localename.c: New file, from GNU gettext.
62359         * m4/localename.m4: New file.
62360         * modules/localename: New file.
62361
62362 2007-06-07  Bruno Haible  <bruno@clisp.org>
62363
62364         Work around the lack of <wchar.h> on some builds of uClibc.
62365         * doc/headers/wchar.texi: Update.
62366         * lib/wchar_.h: Include <wchar.h> only if it exists.
62367         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
62368         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
62369         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
62370         doesn't exist.
62371         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
62372         * modules/mbfile (Depends-on): Add wchar.
62373         * modules/mbiter (Depends-on): Likewise.
62374         * modules/mbuiter (Depends-on): Likewise.
62375         Reported by Simon Josefsson.
62376
62377 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62378
62379         Work around problem reported by Steven M. Schweda in
62380         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
62381         Tru64 5.1B with the Compaq compiler environment installed declares
62382         an 'isblank' function but does not define it in the C library.
62383         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
62384         * lib/regex_internal.h (isblank): Likewise.
62385         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
62386         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62387
62388 2007-06-05  Bruno Haible  <bruno@clisp.org>
62389
62390         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
62391         ia64.
62392         * modules/printf-safe: New file.
62393         * modules/fprintf-posix (Depends-on): Add printf-safe.
62394         * modules/printf-posix (Depends-on): Likewise.
62395         * modules/snprintf-posix (Depends-on): Likewise.
62396         * modules/sprintf-posix (Depends-on): Likewise.
62397         * modules/vasnprintf-posix (Depends-on): Likewise.
62398         * modules/vasprintf-posix (Depends-on): Likewise.
62399         * modules/vfprintf-posix (Depends-on): Likewise.
62400         * modules/vprintf-posix (Depends-on): Likewise.
62401         * modules/vsnprintf-posix (Depends-on): Likewise.
62402         * modules/vsprintf-posix (Depends-on): Likewise.
62403         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
62404         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
62405         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
62406         "no" on i386, x86_64, ia64.
62407         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
62408         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62409         on i386, x86_64, ia64.
62410         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
62411         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62412         on i386, x86_64, ia64.
62413         * tests/test-vasnprintf-posix.c: Include float.h.
62414         (LDBL80_WORDS): New macro.
62415         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62416         on i386, x86_64, ia64.
62417         * tests/test-vasprintf-posix.c: Include float.h.
62418         (LDBL80_WORDS): New macro.
62419         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
62420         on i386, x86_64, ia64.
62421         * tests/test-snprintf-posix.c: Include float.h.
62422         * tests/test-sprintf-posix.c: Likewise.
62423         * tests/test-vsnprintf-posix.c: Likewise.
62424         * tests/test-vsprintf-posix.c: Likewise.
62425
62426 2007-06-05  Bruno Haible  <bruno@clisp.org>
62427
62428         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
62429         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
62430         non-IEEE numbers on i386, x86_64, ia64.
62431         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
62432         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
62433         * tests/test-isnanl.h: Include float.h.
62434         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
62435
62436 2007-06-05  Bruno Haible  <bruno@clisp.org>
62437
62438         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
62439         also the %a / %A. Handle the %a / %A code before this extra handling.
62440
62441 2007-06-05  Bruno Haible  <bruno@clisp.org>
62442
62443         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
62444         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
62445
62446 2007-06-05  Bruno Haible  <bruno@clisp.org>
62447
62448         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
62449         typo in variable name.
62450
62451 2007-06-05  Eric Blake  <ebb9@byu.net>
62452
62453         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
62454         Reported by Simon Josefsson.
62455
62456 2007-06-04  Bruno Haible  <bruno@clisp.org>
62457
62458         Avoid test failures on some PowerPC platforms.
62459         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
62460         Define differently for PowerPC.
62461         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
62462         Reported by Gary V. Vaughan <gary@gnu.org>.
62463
62464 2007-06-02  Bruno Haible  <bruno@clisp.org>
62465
62466         Fix test-stdint failure on FreeBSD/ia64.
62467         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
62468         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
62469         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
62470         * doc/headers/stdint.texi: Update.
62471
62472 2007-06-01  Bruno Haible  <bruno@clisp.org>
62473
62474         * tests/test-binary-io.c (main): Pass a third argument to open().
62475         Reported by Gary V. Vaughan <gary@gnu.org>.
62476
62477 2007-06-01  Bruno Haible  <bruno@clisp.org>
62478
62479         * doc/functions/frexpl.texi: Update for mingw.
62480
62481 2007-06-01  Bruno Haible  <bruno@clisp.org>
62482
62483         * tests/test-lseek.c (main): Disable test of errno for invalid third
62484         argument.
62485         * doc/functions/lseek.texi: Update.
62486         Reported by Gary V. Vaughan <gary@gnu.org>.
62487
62488 2007-05-28  Bruno Haible  <bruno@clisp.org>
62489
62490         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
62491
62492 2007-05-31  Eric Blake  <ebb9@byu.net>
62493
62494         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
62495         cross compiling.
62496
62497 2007-05-30  Eric Blake  <ebb9@byu.net>
62498         and Bruno Haible  <bruno@clisp.org>
62499
62500         Work around mingw test failures exposed by m4-1.4.9b.
62501         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
62502         * tests/test-unistd.c: Disable uid_t and git_t tests for the
62503         moment.
62504
62505 2007-05-30  Bruno Haible  <bruno@clisp.org>
62506
62507         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
62508         assuming that they are closed. Needed on HP-UX 11.
62509
62510 2007-05-29  Bruno Haible  <bruno@clisp.org>
62511
62512         Fix a problem with #include_next.
62513         * lib/dirent_.h: Split the double-inclusion guard.
62514         * lib/fcntl_.h: Likewise.
62515         * lib/float_.h: Likewise.
62516         * lib/iconv_.h: Likewise.
62517         * lib/inttypes_.h: Likewise.
62518         * lib/locale_.h: Likewise.
62519         * lib/math_.h: Likewise.
62520         * lib/netinet_in_.h: Likewise.
62521         * lib/search_.h: Likewise.
62522         * lib/signal_.h: Likewise.
62523         * lib/stdint_.h: Likewise.
62524         * lib/stdio_.h: Likewise.
62525         * lib/stdlib_.h: Likewise.
62526         * lib/string_.h: Likewise.
62527         * lib/sys_select_.h: Likewise.
62528         * lib/sys_socket_.h: Likewise.
62529         * lib/sys_stat_.h: Likewise.
62530         * lib/sys_time_.h: Likewise.
62531         * lib/sysexits_.h: Likewise.
62532         * lib/time_.h: Likewise.
62533         * lib/unistd_.h: Likewise.
62534         * lib/wchar_.h: Likewise.
62535         * lib/wctype_.h: Likewise.
62536
62537 2007-05-29  Bruno Haible  <bruno@clisp.org>
62538
62539         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
62540         for the moment.
62541
62542 2007-05-29  Bruno Haible  <bruno@clisp.org>
62543
62544         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
62545         invocation.
62546         Reported by Eric Blake.
62547
62548 2007-05-29  Bruno Haible  <bruno@clisp.org>
62549
62550         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
62551         compiling case.
62552
62553 2007-05-29  Eric Blake  <ebb9@byu.net>
62554             Bruno Haible  <bruno@clisp.org>
62555
62556         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
62557         cross compiles.
62558
62559 2007-05-28  Eric Blake  <ebb9@byu.net>
62560
62561         * modules/closein-tests (test_closein_LDADD): Support test on
62562         cygwin with libtool.
62563
62564 2007-05-28  Bruno Haible  <bruno@clisp.org>
62565
62566         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
62567         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62568         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62569         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62570         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62571         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62572         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62573         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62574         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62575
62576 2007-05-28  Eric Blake  <ebb9@byu.net>
62577
62578         Unconditionally include <config.h> in unit tests.
62579         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
62580         * tests/test-allocsa.c, tests/test-arcfour.c,
62581         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
62582         tests/test-array_list.c, tests/test-array_oset.c,
62583         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
62584         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
62585         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
62586         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
62587         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
62588         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
62589         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
62590         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
62591         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
62592         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
62593         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
62594         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
62595         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
62596         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
62597         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
62598         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
62599         test-md5.c, test-memmem.c, test-printf-posix.c,
62600         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
62601         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
62602         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
62603         test-strcasestr.c, test-striconv.c, test-striconveh.c,
62604         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
62605         test-vasnprintf-posix2.c, test-vasnprintf.c,
62606         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
62607         test-vfprintf-posix.c, test-vprintf-posix.c,
62608         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
62609         test-xvasprintf.c: Likewise.
62610
62611 2007-05-28  Bruno Haible  <bruno@clisp.org>
62612
62613         * gnulib-tool (func_import): Remember the --with-tests command-line
62614         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
62615         Reported by Eric Blake.
62616
62617 2007-05-28  Bruno Haible  <bruno@clisp.org>
62618
62619         * modules/ftell-tests: New file.
62620         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
62621         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
62622
62623         * lib/ftell.c: New file.
62624         * modules/ftell: New file.
62625         * m4/ftell.m4: New file.
62626         * doc/functions/ftell.texi: Update.
62627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
62628         REPLACE_FTELL.
62629         * lib/stdio_.h (rpl_ftell): New declaration.
62630         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
62631         REPLACE_FTELL.
62632
62633 2007-05-28  Eric Blake  <ebb9@byu.net>
62634
62635         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
62636
62637 2007-05-28  Bruno Haible  <bruno@clisp.org>
62638
62639         * modules/fseek-tests: New file.
62640         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
62641         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
62642
62643         * lib/fseek.c: New file.
62644         * modules/fseek: New file.
62645         * m4/fseek.m4: New file.
62646         * doc/functions/fseek.texi: Update.
62647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
62648         REPLACE_FSEEK.
62649         * lib/stdio_.h (rpl_fseek): New declaration.
62650         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
62651         REPLACE_FSEEK.
62652
62653 2007-05-28  Bruno Haible  <bruno@clisp.org>
62654
62655         * lib/stdio_.h (fflush): More comments.
62656
62657 2007-05-28  Bruno Haible  <bruno@clisp.org>
62658
62659         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
62660         runtime test.
62661
62662 2007-05-28  Eric Blake  <ebb9@byu.net>
62663
62664         Improve lseek module.
62665         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
62666         * lib/unistd_.h (lseek): Scale back link warning message.
62667         * tests/test-lseek.c: Beef up test.
62668         * tests/test-lseek.sh: Exercise more facets of lseek.
62669         Reported by Bruno Haible.
62670
62671 2007-05-28  Bruno Haible  <bruno@clisp.org>
62672
62673         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
62674         to define.
62675
62676 2007-05-27  Bruno Haible  <bruno@clisp.org>
62677
62678         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
62679
62680 2007-05-27  Bruno Haible  <bruno@clisp.org>
62681
62682         * modules/openmp: New file.
62683         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
62684         Noah Misch.
62685
62686 2007-05-26  Bruno Haible  <bruno@clisp.org>
62687
62688         * modules/chdir-long (Depends-on): Add fchdir.
62689         * modules/chdir-safer (Depends-on): Likewise.
62690         * modules/fts (Depends-on): Likewise.
62691         * modules/fts-lgpl (Depends-on): Likewise.
62692         * modules/openat (Depends-on): Likewise.
62693         * modules/savewd (Depends-on): Likewise.
62694
62695 2007-05-24  Eric Blake  <ebb9@byu.net>
62696
62697         Fix lseek on mingw.
62698         * modules/lseek: New module.
62699         * m4/lseek.m4: New file.
62700         * lib/lseek.c: New file.
62701         * modules/lseek-tests: New file.
62702         * tests/test-lseek.c: New file.
62703         * tests/test-lseek.sh: New file.
62704         * MODULES.html.sh: Document lseek module.
62705         * modules/fflush (Depends-on): Add lseek, fseeko.
62706         * modules/fseeko (Depends-on): Likewise.
62707         * modules/ftello (Depends-on): Likewise.
62708         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
62709         broken.
62710         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
62711         broken.
62712         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
62713         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
62714         * lib/ftello.c (rpl_ftello): Likewise.
62715         * tests/test-fseeko.c (main): Test this.
62716         * tests/test-fseeko.sh: Likewise.
62717         * tests/test-ftello.c (main): Likewise.
62718         * tests/test-ftello.sh: Likewise.
62719         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
62720         implies replacing fseek.
62721         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
62722         HAVE_FTELLO.
62723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
62724         * modules/unistd (Makefile.am): Likewise.
62725         * lib/unistd_.h (lseek): Declare a replacement.
62726         * doc/functions/lseek.texi (lseek): Document this fix.
62727         * doc/functions/fseek.texi (fseek): Likewise.
62728         * doc/functions/ftell.texi (ftell): Likewise.
62729
62730 2007-05-24  Bruno Haible  <bruno@clisp.org>
62731
62732         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
62733         in the printed representation of a NaN.
62734         * tests/test-vasprintf-posix.c (test_function): Likewise.
62735         * tests/test-snprintf-posix.h (test_function): Likewise.
62736         * tests/test-sprintf-posix.h (test_function): Likewise.
62737         Reported by Eric Blake.
62738
62739 2007-05-23  Eric Blake  <ebb9@byu.net>
62740
62741         Fix fseeko/ftello on cygwin 1.5.24.
62742         * doc/functions/fseeko.texi (fseeko): Document the fix.
62743         * doc/functions/ftello.texi (ftello): Document the fix.
62744         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
62745         * doc/functions/stdout.text (stdout): New file.
62746         * doc/functions/stderr.text (stderr): New file.
62747         * doc/gnulib.texi (Function Substitutes): Use new files.
62748         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
62749         prior to 1.7.0.
62750         * tests/test-ftello.c (main): Likewise for ftello.
62751         * tests/test-fseeko.sh: New file.
62752         * tests/test-ftello.sh: New file.
62753         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
62754         with seekable stdin.
62755         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
62756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
62757         (gl_REPLACE_FSEEKO): New macro.
62758         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
62759         * modules/fseeko (Files): Distribute fseeko.c.
62760         * modules/ftello (Files): Distribute ftello.c.
62761         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
62762         mode.
62763         * lib/ftello.c (rpl_ftello): New file.
62764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
62765         fseeko, ftello.
62766         (gl_STDIN_LARGE_OFFSET): New macro.
62767         * modules/stdio (Makefile.am): Perform the replacement.
62768         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
62769
62770 2007-05-23  Bruno Haible  <bruno@clisp.org>
62771
62772         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
62773         GNULIB_POSIXCHECK is defined.
62774
62775 2007-05-21  Bruno Haible  <bruno@clisp.org>
62776
62777         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
62778         Check also the output for NaN arguments. When cross-compiling, guess
62779         no on IRIX.
62780         * lib/vasnprintf.c: Update comments.
62781         * tests/test-vasnprintf-posix.c (strisnan): New function.
62782         (test_function): Use it.
62783         * tests/test-vasprintf-posix.c (strisnan): New function.
62784         (test_function): Use it.
62785         * tests/test-snprintf-posix.h (strisnan): New function.
62786         (test_function): Use it.
62787         * tests/test-sprintf-posix.h (strisnan): New function.
62788         (test_function): Use it.
62789         Reported by Eric Blake.
62790
62791 2007-05-20  Bruno Haible  <bruno@clisp.org>
62792
62793         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
62794         numbers that fails on BeOS.
62795         * doc/functions/frexpl.texi: Update.
62796
62797 2007-05-20  Jim Meyering  <jim@meyering.net>
62798
62799         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
62800         forced upon us by glibc-2.6.
62801
62802 2007-05-20  Bruno Haible  <bruno@clisp.org>
62803
62804         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
62805         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
62806         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
62807         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
62808         NEED_PRINTF_INFINITE.
62809         (is_infinitel): New function.
62810         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
62811         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
62812         gl_PREREQ_VASNPRINTF_INFINITE.
62813         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
62814         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62815         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
62816         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
62817         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
62818         gl_PREREQ_VASNPRINTF_INFINITE.
62819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62826         * doc/functions/fprintf.texi: Update.
62827         * doc/functions/printf.texi: Update.
62828         * doc/functions/snprintf.texi: Update.
62829         * doc/functions/sprintf.texi: Update.
62830         * doc/functions/vfprintf.texi: Update.
62831         * doc/functions/vprintf.texi: Update.
62832         * doc/functions/vsnprintf.texi: Update.
62833         * doc/functions/vsprintf.texi: Update.
62834
62835 2007-05-20  Bruno Haible  <bruno@clisp.org>
62836
62837         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
62838         was not found in libc.
62839         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62840
62841 2007-05-20  Bruno Haible  <bruno@clisp.org>
62842
62843         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62844         printed as "-nan" instead of "nan".
62845         * tests/test-vasprintf-posix.c (test_function): Likewise.
62846         * tests/test-snprintf-posix.h (test_function): Likewise.
62847         * tests/test-sprintf-posix.h (test_function): Likewise.
62848         Needed for HP-UX 11.
62849
62850 2007-05-20  Jim Meyering  <jim@meyering.net>
62851
62852         Fix buggy test for the fchownat-deref bug.
62853         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
62854         symlink required for the run-test.  Without it, this test would
62855         always declare that fchownat doesn't work, and client code would
62856         unnecessarily use the replacement function with fixed libc.
62857         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
62858         Reported by Greg Schafer.
62859
62860 2007-05-19  Bruno Haible  <bruno@clisp.org>
62861
62862         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
62863         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
62864         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
62865         Needed for IRIX 6.5 and Solaris 2.5.1.
62866
62867 2007-05-19  Bruno Haible  <bruno@clisp.org>
62868
62869         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
62870         (test_function): Skip tests involving -0.0 on platforms where
62871         -0.0 = 0.0.
62872         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
62873         (test_function): Skip tests involving -0.0 on platforms where
62874         -0.0 = 0.0.
62875         * tests/test-snprintf-posix.h (have_minus_zero): New function.
62876         (test_function): Skip tests involving -0.0 on platforms where
62877         -0.0 = 0.0.
62878         * tests/test-sprintf-posix.h (have_minus_zero): New function.
62879         (test_function): Skip tests involving -0.0 on platforms where
62880         -0.0 = 0.0.
62881         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
62882         tests.
62883         * tests/test-printf-posix.h (test_function): Likewise.
62884         * tests/test-printf-posix.output: Remove all -0.0 related results.
62885         Needed for IRIX 6.5.
62886
62887 2007-05-19  Bruno Haible  <bruno@clisp.org>
62888
62889         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
62890         printed as "nan0x7fffffff" instead of "nan".
62891         * tests/test-vasprintf-posix.c (test_function): Likewise.
62892         * tests/test-snprintf-posix.h (test_function): Likewise.
62893         * tests/test-sprintf-posix.h (test_function): Likewise.
62894         * tests/test-fprintf-posix.h (NaN): Remove macro.
62895         (test_function): Remove all NaN related tests.
62896         * tests/test-printf-posix.h (NaN): Remove macro.
62897         (test_function): Remove all NaN related tests.
62898         * tests/test-printf-posix.output: Remove all NaN related results.
62899         Needed for IRIX 6.5.
62900
62901 2007-05-19  Bruno Haible  <bruno@clisp.org>
62902
62903         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
62904         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62905
62906 2007-05-19  Bruno Haible  <bruno@clisp.org>
62907
62908         * lib/float_.h: New file.
62909         * m4/float_h.m4: New file.
62910         * modules/float: New file.
62911         * modules/isnanl (Dependencies): Add float.
62912         * modules/isnanl-nolibm (Dependencies): Likewise.
62913         * modules/mathl (Dependencies): Likewise.
62914         * modules/printf-frexpl (Dependencies): Likewise.
62915         * modules/signbit (Dependencies): Likewise.
62916         * modules/vasnprintf (Dependencies): Likewise.
62917         * doc/headers/float.texi: Update.
62918
62919 2007-05-19  Jim Meyering  <jim@meyering.net>
62920
62921         * lib/utimens.c (gl_futimens): Rename from futimens,
62922         now that glibc-2.6 declares futimens.
62923         * lib/utimens.h: Likewise.
62924
62925 2007-05-19  Bruno Haible  <bruno@clisp.org>
62926
62927         Avoid test failures on mingw.
62928         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
62929         * tests/test-printf-posix.sh: Likewise.
62930         * tests/test-vfprintf-posix.sh: Likewise.
62931         * tests/test-vprintf-posix.sh: Likewise.
62932
62933 2007-05-19  Bruno Haible  <bruno@clisp.org>
62934
62935         Fix *printf result for NaN, Inf, -0.0 on mingw.
62936         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
62937         * lib/vasnprintf.c: Include math.h and isnan.h.
62938         (is_infinite_or_zero): New function.
62939         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
62940         values in the %f, %F, %e, %E, %g, %G directives.
62941         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
62942         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62943         gl_PRINTF_INFINITE and test its result. Invoke
62944         gl_PREREQ_VASNPRINTF_INFINITE.
62945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62946         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62947         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62949         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62951         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62952         * doc/functions/fprintf.texi: Update.
62953         * doc/functions/printf.texi: Update.
62954         * doc/functions/snprintf.texi: Update.
62955         * doc/functions/sprintf.texi: Update.
62956         * doc/functions/vfprintf.texi: Update.
62957         * doc/functions/vprintf.texi: Update.
62958         * doc/functions/vsnprintf.texi: Update.
62959         * doc/functions/vsprintf.texi: Update.
62960
62961 2007-05-19  Bruno Haible  <bruno@clisp.org>
62962
62963         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
62964         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
62965         Instead of multiplying with 10^k, set extra_zeroes to k.
62966         (scale10_round_long_double): Remove function.
62967
62968 2007-05-18  Bruno Haible  <bruno@clisp.org>
62969
62970         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
62971         introduced on 2007-05-06.
62972
62973 2007-05-18  Bruno Haible  <bruno@clisp.org>
62974
62975         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
62976         %g directives.
62977         * tests/test-vasprintf-posix.c (test_function): Likewise.
62978         * tests/test-snprintf-posix.h (test_function): Likewise.
62979         * tests/test-sprintf-posix.h (test_function): Likewise.
62980
62981 2007-05-18  Bruno Haible  <bruno@clisp.org>
62982
62983         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
62984         (strmatch): New function.
62985         (test_function): Test the %f directive on numbers of various exponents.
62986         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
62987         (strmatch): New function.
62988         (test_function): Test the %f directive on numbers of various exponents.
62989         * tests/test-snprintf-posix.h (strmatch): New function.
62990         (test_function): Test the %f directive on numbers of various exponents.
62991         * tests/test-sprintf-posix.h (strmatch): New function.
62992         (test_function): Test the %f directive on numbers of various exponents.
62993         * tests/test-snprintf-posix.c (SIZEOF): New macro.
62994         * tests/test-sprintf-posix.c (SIZEOF): New macro.
62995         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
62996         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
62997
62998 2007-05-18  Bruno Haible  <bruno@clisp.org>
62999
63000         Add support for 'long double' number output.
63001         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
63002         * lib/vasnprintf.c: Include math.h and float+.h.
63003         (mp_limb_t): New type.
63004         (GMP_LIMB_BITS): New macro.
63005         (mp_twolimb_t): New type.
63006         (GMP_TWOLIMB_BITS): New macro.
63007         (mpn_t): New type.
63008         (multiply, divide, convert_to_decimal, decode_long_double,
63009         scale10_round_long_double, scale10_round_decimal_long_double,
63010         floorlog10l): New functions.
63011         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
63012         for the %f, %F, %e, %E, %g, %G directives.
63013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
63014         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63015         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
63016         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
63017         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63018         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63019         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63020         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63021         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63022         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63023         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63024         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
63025         * modules/snprintf-posix (Depends-on): Likewise.
63026         * modules/sprintf-posix (Depends-on): Likewise.
63027         * modules/vasnprintf-posix (Depends-on): Likewise.
63028         * modules/vasprintf-posix (Depends-on): Likewise.
63029         * modules/vfprintf-posix (Depends-on): Likewise.
63030         * modules/vsnprintf-posix (Depends-on): Likewise.
63031         * modules/vsprintf-posix (Depends-on): Likewise.
63032         * modules/vasnprintf (Files): Add lib/float+.h.
63033         * doc/functions/fprintf.texi: Update.
63034         * doc/functions/printf.texi: Update.
63035         * doc/functions/snprintf.texi: Update.
63036         * doc/functions/sprintf.texi: Update.
63037         * doc/functions/vfprintf.texi: Update.
63038         * doc/functions/vprintf.texi: Update.
63039         * doc/functions/vsnprintf.texi: Update.
63040         * doc/functions/vsprintf.texi: Update.
63041
63042 2007-05-18  Bruno Haible  <bruno@clisp.org>
63043
63044         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
63045
63046 2007-05-18  Bruno Haible  <bruno@clisp.org>
63047
63048         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
63049         for printing 64-bit integers. Needed for mingw.
63050
63051 2007-05-18  Bruno Haible  <bruno@clisp.org>
63052
63053         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63054         gl_FUNC_FREXPL_WORKS.
63055         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
63056
63057 2007-05-18  Bruno Haible  <bruno@clisp.org>
63058
63059         * modules/frexpl-nolibm-tests: New file.
63060
63061         * modules/frexpl-nolibm: New file.
63062         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
63063
63064 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63065
63066         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
63067         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63068         GCC 4.2, which otherwise issues a lot of warnings.
63069         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
63070         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
63071         Likewise.
63072         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
63073         * modules/iconv_open (iconv.h): Likewise.
63074         * modules/locale (locale.h): Likewise.
63075         * modules/netinet_in (netinet/in.h): Likewise.
63076         * modules/sys_select (sys_select.h): Likewise.
63077         * modules/sys_socket (sys/socket.h): Likewise.
63078         * modules/sys_stat (sys/stat.h): Likewise.
63079         * modules/sysexits (sysexits.h): Likewise.
63080         * modules/unistd (unistd.h): Likewise.
63081
63082 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63083
63084         * modules/closein-tests (Makefile.am): Distribute
63085         `test-closein.sh'.
63086
63087 2007-05-17  Bruno Haible  <bruno@clisp.org>
63088
63089         * tests/test-printf-posix.output: Renamed from
63090         tests/test-fprintf-posix.out.
63091         * modules/fprintf-posix-tests: Update.
63092         * modules/printf-posix-tests: Update.
63093         * modules/vfprintf-posix-tests: Update.
63094         * modules/vprintf-posix-tests: Update.
63095         * tests/test-fprintf-posix.sh: Update.
63096         * tests/test-printf-posix.sh: Update.
63097         * tests/test-vfprintf-posix.sh: Update.
63098         * tests/test-vprintf-posix.sh: Update.
63099         Reported by Ralf Wildenhues.
63100
63101 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63102
63103         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
63104         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63105         GCC 4.2, which otherwise issues a lot of warnings.
63106         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
63107         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
63108         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
63109         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
63110         it should no longer be needed.
63111         * lib/string_.h: Likewise.
63112         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
63113         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
63114         * modules/inttypes (inttypes.h): Likewise.
63115         * modules/math (math.h): Likewise.
63116         * modules/search (search.h): Likewise.
63117         * modules/signal (signal.h): Likewise.
63118         * modules/stdint (stdint.h): Likewise.
63119         * modules/stdio (stdio.h): Likewise.
63120         * modules/stdlib (stdlib.h): Likewise.
63121         * modules/string (string.h): Likewise.
63122         * modules/sys_time (sys/time.h): Likewise.
63123         * modules/time (time.h): Likewise.
63124         * modules/wchar (wchar.h): Likewise.
63125         * modules/wctype (wtype.h): Likewise.
63126
63127 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63128
63129         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
63130
63131 2007-05-13  Bruno Haible  <bruno@clisp.org>
63132
63133         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
63134         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63135         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
63136         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63137         (gl_PREREQ_STRTOK_R): Don't require it here.
63138
63139 2007-05-13  Bruno Haible  <bruno@clisp.org>
63140
63141         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
63142         when used in C++ mode.
63143
63144 2007-05-12  Bruno Haible  <bruno@clisp.org>
63145
63146         * lib/linebuffer.h: Tweak doc.
63147         * lib/linebuffer.c: Likewise.
63148
63149 2007-05-12  James Youngman  <jay@gnu.org>
63150
63151         * lib/linebuffer.c (readlinebuffer_delim): New function,
63152         like readlinebuffer, but use a caller-specified delimiter.
63153         (readlinebuffer): Just call readlinebuffer_delim with '\n'
63154         as the delimiter.
63155         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
63156
63157 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63158
63159         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
63160         * modules/openat (Files): Remove openat-die.c.
63161         (Depends-on): Add openat-die.
63162         * modules/openat-die: New module.
63163
63164 2007-05-06  Bruno Haible  <bruno@clisp.org>
63165
63166         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
63167         Update with info about Cygwin.
63168         * doc/functions/fprintf.texi: Update.
63169         * doc/functions/printf.texi: Update.
63170         * doc/functions/snprintf.texi: Update.
63171         * doc/functions/sprintf.texi: Update.
63172         * doc/functions/vfprintf.texi: Update.
63173         * doc/functions/vprintf.texi: Update.
63174         * doc/functions/vsnprintf.texi: Update.
63175         * doc/functions/vsprintf.texi: Update.
63176         Reported by Eric Blake.
63177
63178 2007-05-06  Bruno Haible  <bruno@clisp.org>
63179
63180         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
63181         padding ourselves for the floating-point directives.
63182         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
63183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
63184         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63185         gl_PRINTF_FLAG_ZERO and test its result. Invoke
63186         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
63187         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63188         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63189         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63191         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63192         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63193         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63194         * tests/test-snprintf-posix.h (test_function): Also check the width
63195         and some flags in the %f directive.
63196         * tests/test-sprintf-posix.h (test_function): Likewise.
63197         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63198         * tests/test-vasprintf-posix.c (test_function): Likewise.
63199         * doc/functions/fprintf.texi: Update.
63200         * doc/functions/printf.texi: Update.
63201         * doc/functions/snprintf.texi: Update.
63202         * doc/functions/sprintf.texi: Update.
63203         * doc/functions/vfprintf.texi: Update.
63204         * doc/functions/vprintf.texi: Update.
63205         * doc/functions/vsnprintf.texi: Update.
63206         * doc/functions/vsprintf.texi: Update.
63207
63208 2007-05-06  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
63211         pass the ' flag character to sprintf or snprintf.
63212         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
63213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
63214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63215         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
63216         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
63217         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63218         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63219         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63220         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63221         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63222         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63223         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63224         * tests/test-snprintf-posix.h (test_function): Also check the grouping
63225         flag.
63226         * tests/test-sprintf-posix.h (test_function): Likewise.
63227         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63228         * tests/test-vasprintf-posix.c (test_function): Likewise.
63229         * doc/functions/fprintf.texi: Update.
63230         * doc/functions/printf.texi: Update.
63231         * doc/functions/snprintf.texi: Update.
63232         * doc/functions/sprintf.texi: Update.
63233         * doc/functions/vfprintf.texi: Update.
63234         * doc/functions/vprintf.texi: Update.
63235         * doc/functions/vsnprintf.texi: Update.
63236         * doc/functions/vsprintf.texi: Update.
63237
63238 2007-05-01  Bruno Haible  <bruno@clisp.org>
63239
63240         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
63241
63242 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
63245         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
63246
63247 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63248
63249         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
63250         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
63251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
63252
63253 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
63254
63255         * lib/argp-help.c (struct hol_entry): New member `ord'.
63256         (HOL_ENTRY_PTRCMP): Use ord for comparison
63257         (hol_sort): Initialize ord.
63258
63259 2007-05-01  Bruno Haible  <bruno@clisp.org>
63260
63261         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
63262         Reported by Eric Blake.
63263         * doc/gnulib.texi (Function Substitutes): Update.
63264
63265 2007-05-01  Bruno Haible  <bruno@clisp.org>
63266
63267         * doc/functions.texi: Remove file, now redundant through
63268         doc/functions/*.texi.
63269
63270 2007-05-01  Bruno Haible  <bruno@clisp.org>
63271
63272         * modules/argp (Depends-on): Add sleep.
63273
63274 2007-05-01  Bruno Haible  <bruno@clisp.org>
63275
63276         * modules/sleep-tests: New file.
63277         * tests/test-sleep.c: New file.
63278
63279         * modules/sleep: New file.
63280         * lib/sleep.c: New file.
63281         * m4/sleep.m4: New file.
63282         * lib/unistd_.h (sleep): New declaration.
63283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
63284         HAVE_SLEEP.
63285         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
63286         * doc/functions/sleep.texi: Document the sleep module.
63287
63288 2007-05-01  Bruno Haible  <bruno@clisp.org>
63289
63290         * lib/sigprocmask.h: Remove file.
63291         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
63292         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
63293         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
63294         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
63295         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
63296         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
63297         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
63298         HAVE_SIGSET_T as a shell variable.
63299         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
63300         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
63301         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
63302         (Depends-on): Add signal. Remove verify.
63303         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
63304         (Include): Mention <signal.h> instead of sigprocmask.h.
63305         * NEWS: Mention the change.
63306         * lib/fatal-signal.c: Don't include sigprocmask.h.
63307
63308 2007-05-01  Bruno Haible  <bruno@clisp.org>
63309
63310         * modules/signal: New file.
63311         * lib/signal_.h: New file.
63312         * m4/signal_h.m4: New file.
63313
63314 2007-05-01  Bruno Haible  <bruno@clisp.org>
63315
63316         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
63317         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
63318         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
63319         HAVE_WCTYPE_CTMP_BUG into wctype.h.
63320
63321 2007-05-01  Bruno Haible  <bruno@clisp.org>
63322
63323         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
63324         configure time.
63325         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
63326         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
63327         * modules/sys_stat (Makefile.am): Substitute their values into
63328         sys/stat.h.
63329
63330 2007-05-01  Bruno Haible  <bruno@clisp.org>
63331
63332         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
63333         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
63334         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
63335
63336 2007-05-01  Bruno Haible  <bruno@clisp.org>
63337
63338         * doc/header/assert.texi: Undo last change: don't mention the gnulib
63339         'assert' module here.
63340
63341 2007-05-01  Bruno Haible  <bruno@clisp.org>
63342
63343         * doc/functions/*.texi: New files.
63344         * doc/functions/google-ranking.txt: New file.
63345         * doc/gnulib.texi (Function Substitutes): New chapter.
63346         (ctime, inet_ntoa): Remove sections.
63347         * doc/ctime.texi: Remove file.
63348         * doc/inet_ntoa.texi: Remove file.
63349         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
63350         dependencies.
63351         (%.info): New rule, specifying a --reference-limit.
63352
63353 2007-05-01  Bruno Haible  <bruno@clisp.org>
63354
63355         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
63356
63357 2007-05-01  Bruno Haible  <bruno@clisp.org>
63358
63359         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
63360         the portability of 'mkdir' to mingw systems.
63361
63362 2007-05-01  Bruno Haible  <bruno@clisp.org>
63363
63364         * doc/headers/google-ranking.txt: New file.
63365
63366 2007-04-30  Eric Blake  <ebb9@byu.net>
63367
63368         Prefer fseeko to fseek.
63369         * modules/getpass (Depends-on): Add fseeko.
63370         * lib/getpass.c (getpass): Use fseeko, not fseek.
63371
63372 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
63373
63374         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
63375         assumes the sorting is stable, while most qsort implementations
63376         are not.  Use argument addresses to ensure they never compare as
63377         equal.
63378
63379         * tests/test-argp-2.sh (usage-indent test): Fix output
63380         (func_compare): Restore diff options
63381         * tests/test-argp.c: Restore #include "progname.h"
63382
63383 2007-04-29  Bruno Haible  <bruno@clisp.org>
63384
63385         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
63386         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63387         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
63388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63389         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
63390         (configure.ac): Define CHECK_SNPRINTF_POSIX.
63391         (TESTS, check_PROGRAMS): Add test-snprintf.
63392         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
63393         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
63394         (TESTS, check_PROGRAMS): Add test-vsnprintf.
63395         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
63396         assertions that fail on HP-UX, OSF/1, or IRIX.
63397         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
63398
63399 2007-04-29  Bruno Haible  <bruno@clisp.org>
63400
63401         * MODULES.html.sh (posix_functions): Remove 'contents'.
63402
63403 2007-04-29  Karl Berry  <karl@gnu.org>
63404
63405         * config/srclist.txt (gendocs_template_min): new entry.
63406
63407 2007-04-29  Bruno Haible  <bruno@clisp.org>
63408
63409         Work around fpurge bug on BSD systems.
63410         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
63411         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
63412         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
63413         fpurge to rpl_fpurge if the system already has this function.
63414         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
63415         the case where the system already has this function. Correct invariants
63416         on BSD systems.
63417         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
63418         BSD systems.
63419
63420 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
63421
63422         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
63423         proposed by Sven Verdoolaege.
63424
63425         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
63426         options.
63427         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
63428         (usage and help tests): Update
63429
63430 2007-04-29  Bruno Haible  <bruno@clisp.org>
63431
63432         * tests/test-fflush.c (main): Use a file of size 17, not 10.
63433         Print more information in case of failure. Disable a test on BeOS.
63434
63435 2007-04-29  Bruno Haible  <bruno@clisp.org>
63436
63437         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
63438         This helps debugging on systems on which no gdb is available.
63439
63440 2007-04-29  Bruno Haible  <bruno@clisp.org>
63441
63442         * lib/freading.h: Improve comments.
63443         * lib/fwriting.h: Likewise.
63444         * tests/test-freading.c (main): Don't check freading immediately after
63445         repositioning. Needed for glibc.
63446
63447 2007-04-29  Bruno Haible  <bruno@clisp.org>
63448
63449         * lib/freading.c (freading): Trivial simplification.
63450
63451 2007-04-28  Bruno Haible  <bruno@clisp.org>
63452
63453         * tests/test-fwriting.c (main): Also test the interaction between
63454         fflush and fwriting.
63455         * modules/fwriting-tests (Depends-on): Add fflush.
63456
63457         * tests/test-freading.c (main): Also test the interaction between
63458         fflush and freading.
63459         * modules/freading-tests (Depends-on): Add fflush.
63460
63461 2007-04-28  Bruno Haible  <bruno@clisp.org>
63462
63463         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
63464         fseeko and ftello.
63465         Suggested by Eric Blake.
63466
63467 2007-04-28  Jim Meyering  <jim@meyering.net>
63468
63469         Avoid false-negative in gl_STDINT_H's C99 conformance test.
63470         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
63471         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
63472
63473 2007-04-27  Eric Blake  <ebb9@byu.net>
63474
63475         * doc/headers/assert.texi (assert.h): Document assert module use.
63476
63477 2007-04-27  Bruno Haible  <bruno@clisp.org>
63478
63479         * doc/headers/*.texi: New files.
63480         * doc/gnulib.texi (Header File Substitutes): New chapter.
63481         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
63482         dependencies.
63483         (standards.info ,standards.html, standards.dvi): Update dependencies.
63484         (mostlyclean, clean): New targets.
63485
63486 2007-04-27  Bruno Haible  <bruno@clisp.org>
63487
63488         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
63489         * modules/sysexits (Files, Makefile.am): Update.
63490
63491         * lib/sys_socket_.h: Renamed from lib/socket_.h.
63492         * modules/sys_socket (Files, Makefile.am): Update.
63493
63494         * lib/sys_stat_.h: Renamed from lib/stat_.h.
63495         * modules/sys_stat (Files, Makefile.am): Update.
63496
63497 2007-04-27  Eric Blake  <ebb9@byu.net>
63498
63499         * lib/freading.h: Improve comments.
63500         * lib/fwriting.h: Likewise.
63501         * lib/fflush.c: Likewise.
63502
63503         Fix closein for mingw.
63504         * modules/closein-tests: Add tests for closein.
63505         * tests/test-closein.c: New file.
63506         * tests/test-closein.sh: Likewise.
63507         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
63508         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
63509
63510 2007-04-27  Bruno Haible  <bruno@clisp.org>
63511
63512         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
63513         version is < 6.
63514         * lib/math_.h [__DECC]: Likewise.
63515         * lib/stdio_.h [__DECC]: Likewise.
63516         * lib/stdlib_.h [__DECC]: Likewise.
63517         * lib/string_.h [__DECC]: Likewise.
63518         * lib/time_.h [__DECC]: Likewise.
63519         * lib/wchar_.h [__DECC]: Likewise.
63520         * lib/wctype_.h [__DECC]: Likewise.
63521
63522 2007-04-27  Bruno Haible  <bruno@clisp.org>
63523
63524         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
63525
63526 2007-04-27  Bruno Haible  <bruno@clisp.org>
63527
63528         * lib/fflush.c: Add comments.
63529         * modules/fpurge-tests (Depends-on): Add fflush.
63530         * modules/freadable-tests (Depends-on): Likewise.
63531         * modules/fwritable-tests (Depends-on): Likewise.
63532
63533 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
63534
63535         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
63536         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
63537         Report by Bruno Haible <bruno@clisp.org>.
63538
63539 2007-04-26  Eric Blake  <ebb9@byu.net>
63540
63541         Fix fflush on mingw.
63542         * modules/fflush (Depends-on): Add freading.
63543         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
63544         but unread data.
63545
63546 2007-04-26  Eric Blake  <ebb9@byu.net>
63547         and Bruno Haible  <bruno@clisp.org>
63548
63549         Implement freading and fwriting.
63550         * lib/freading.c: New file.
63551         * lib/freading.h: Likewise.
63552         * m4/freading.m4: Likewise.
63553         * modules/freading: Likewise.
63554         * modules/freading-tests: Likewise.
63555         * tests/test-freading.c: Likewise.
63556         * lib/fwriting.c: New file.
63557         * lib/fwriting.h: Likewise.
63558         * m4/fwriting.m4: Likewise.
63559         * modules/fwriting: Likewise.
63560         * modules/fwriting-tests: Likewise.
63561         * tests/test-fwriting.c: Likewise.
63562         * MODULES.html.sh (File stream based Input/Output): Mention them.
63563
63564 2007-04-26  Bruno Haible  <bruno@clisp.org>
63565
63566         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
63567         'long' when we assume it.
63568         Suggested by Eric Blake.
63569
63570 2007-04-26  Bruno Haible  <bruno@clisp.org>
63571
63572         Ensure fseeko, ftello are declared on glibc systems.
63573         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
63574         * modules/fseeko (configure.ac-early): Likewise.
63575         * modules/ftello (configure.ac-early): Likewise.
63576         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
63577         AC_FUNC_FSEEKO for this.
63578         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
63579         (gl_CHECK_FSEEKO): Remove macro.
63580
63581 2007-04-26  Bruno Haible  <bruno@clisp.org>
63582
63583         * tests/test-fflush.c (main): Also check the ftell result after
63584         fflush and fseek/fseeko.
63585         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
63586         file descriptor position cache in the stream.
63587         * lib/fseeko.c (rpl_fseeko): Likewise.
63588
63589 2007-04-26  Bruno Haible  <bruno@clisp.org>
63590
63591         * modules/fflush-tests (Depends-on): Add fseeko.
63592
63593 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
63594             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63595
63596         * lib/argz_.h: ensure error_t definition is obtained in same
63597         mechanism system argz.h would have.
63598         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
63599         argz facilities are known bad.  Err on the side of caution if
63600         cross-compiling.
63601
63602 2007-04-25  Eric Blake  <ebb9@byu.net>
63603
63604         * lib/fpurge.c (includes): Use stdlib.h for free.
63605         * tests/test-fflush.c (main): Also test fflush-fseeko.
63606
63607 2007-04-25  Bruno Haible  <bruno@clisp.org>
63608
63609         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
63610         * lib/fseeko.c: New file.
63611         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
63612         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
63613         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
63614         gl_FUNC_FSEEKO.
63615         (gl_FUNC_FSEEKO): Invoke it.
63616         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
63617         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
63618         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
63619
63620 2007-04-25  Bruno Haible  <bruno@clisp.org>
63621
63622         * modules/fflush (Depends-on): Add ftello.
63623
63624 2007-04-25  Bruno Haible  <bruno@clisp.org>
63625
63626         * modules/ftello-tests: New file.
63627         * tests/test-ftello.c: New file.
63628
63629         * modules/ftello: New file.
63630         * m4/ftello.m4: New file.
63631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
63632         HAVE_FTELLO.
63633         * lib/stdio_.h (ftello): New declaration.
63634         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
63635         HAVE_FTELLO.
63636
63637 2007-04-25  Bruno Haible  <bruno@clisp.org>
63638
63639         * modules/fseeko-tests: New file.
63640         * tests/test-fseeko.c: New file.
63641
63642         * modules/fseeko: New file.
63643         * m4/fseeko.m4: New file.
63644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
63645         HAVE_FSEEKO.
63646         * lib/stdio_.h (fseeko): New declaration.
63647         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
63648         HAVE_FSEEKO.
63649
63650 2007-04-25  Bruno Haible  <bruno@clisp.org>
63651
63652         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
63653
63654 2007-04-25  Bruno Haible  <bruno@clisp.org>
63655
63656         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
63657         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
63658         * tests/test-unistd.c: Likewise.
63659         * tests/test-fcntl.c: Likewise.
63660
63661 2007-04-23  Eric Blake  <ebb9@byu.net>
63662
63663         * lib/fflush.c: Fix missing include.
63664         Reported by Bruno Haible.
63665
63666 2007-04-23  Bruno Haible  <bruno@clisp.org>
63667
63668         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
63669         Reported by Eric Blake.
63670
63671 2007-04-23  Bruno Haible  <bruno@clisp.org>
63672
63673         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
63674
63675 2007-04-23  Bruno Haible  <bruno@clisp.org>
63676
63677         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
63678
63679 2007-04-23  Bruno Haible  <bruno@clisp.org>
63680
63681         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
63682         Needed on HP-UX 11.
63683
63684 2007-04-16  Eric Blake  <ebb9@byu.net>
63685
63686         Make fflush rely on fpurge.
63687         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
63688         open coding all variants.
63689         * modules/fflush (Depends-on): Add fpurge and unistd.
63690         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
63691         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
63692
63693         Fix --with-tests compilation on cygwin.
63694         * modules/argmatch-tests (Makefile.am): List gnulib library first
63695         in LDADD.
63696         * modules/argp-tests (Makefile.am): Likewise.
63697         * modules/array-list-tests (Makefile.am): Likewise.
63698         * modules/array-oset-tests (Makefile.am): Likewise.
63699         * modules/avltree-list-tests (Makefile.am): Likewise.
63700         * modules/avltree-oset-tests (Makefile.am): Likewise.
63701         * modules/avltreehash-list-tests (Makefile.am): Likewise.
63702         * modules/carray-list-tests (Makefile.am): Likewise.
63703         * modules/dirname-tests (Makefile.am): Likewise.
63704         * modules/frexp-tests (Makefile.am): Likewise.
63705         * modules/isnanl-tests (Makefile.am): Likewise.
63706         * modules/linked-list-tests (Makefile.am): Likewise.
63707         * modules/linkedhash-list-tests (Makefile.am): Likewise.
63708         * modules/lock-tests (Makefile.am): Likewise.
63709         * modules/rbtree-list-tests (Makefile.am): Likewise.
63710         * modules/rbtree-oset-tests (Makefile.am): Likewise.
63711         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
63712         * modules/tls-tests (Makefile.am): Likewise.
63713         * modules/tsearch-tests (Makefile.am): Likewise.
63714         * modules/xvasprintf-tests (Makefile.am): Likewise.
63715
63716         Fix fpurge for cygwin.
63717         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
63718         value.
63719         * modules/fpurge-tests (Depends-on): Clean up trash.
63720
63721 2007-04-16  Simon Josefsson  <simon@josefsson.org>
63722
63723         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
63724
63725         * m4/autobuild.m4: Re-indent.
63726
63727 2007-04-13  Bruno Haible  <bruno@clisp.org>
63728
63729         * modules/fpurge-tests: New file.
63730         * tests/test-fpurge.c: New file.
63731
63732         * modules/fpurge: New file.
63733         * lib/fpurge.h: New file.
63734         * lib/fpurge.c: New file.
63735         * m4/fpurge.m4: New file.
63736
63737 2007-04-13  Bruno Haible  <bruno@clisp.org>
63738
63739         * modules/fbufmode-tests: New file.
63740         * tests/test-fbufmode.c: New file.
63741
63742         * modules/fbufmode: New file.
63743         * lib/fbufmode.h: New file.
63744         * lib/fbufmode.c: New file.
63745         * m4/fbufmode.m4: New file.
63746
63747 2007-04-13  Bruno Haible  <bruno@clisp.org>
63748
63749         * modules/fwritable-tests: New file.
63750         * tests/test-fwritable.c: New file.
63751
63752         * modules/fwritable: New file.
63753         * lib/fwritable.h: New file.
63754         * lib/fwritable.c: New file.
63755         * m4/fwritable.m4: New file.
63756
63757 2007-04-13  Bruno Haible  <bruno@clisp.org>
63758
63759         * modules/freadable-tests: New file.
63760         * tests/test-freadable.c: New file.
63761
63762         * modules/freadable: New file.
63763         * lib/freadable.h: New file.
63764         * lib/freadable.c: New file.
63765         * m4/freadable.m4: New file.
63766
63767 2007-04-13  Bruno Haible  <bruno@clisp.org>
63768
63769         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
63770         MOSTLYCLEANFILES.
63771
63772 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63773
63774         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
63775         gzip bootstrap.conf to avoid dragging in i18n machinery.
63776         (gnulib_tool_option): Use it.
63777
63778 2007-04-13  Bruno Haible  <bruno@clisp.org>
63779
63780         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
63781         %F directives.
63782         * tests/test-vasprintf-posix.c (test_function): Likewise.
63783         * tests/test-snprintf-posix.h (test_function): Likewise.
63784         * tests/test-sprintf-posix.h (test_function): Likewise.
63785         * tests/test-fprintf-posix.h (test_function): Likewise.
63786         * tests/test-printf-posix.h (test_function): Likewise.
63787         * tests/test-fprintf-posix.out: Likewise.
63788
63789 2007-04-13  Bruno Haible  <bruno@clisp.org>
63790
63791         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
63792         * modules/tls-tests (configure.ac): Likewise.
63793         Reported by Arto C. Nirkko <anirkko@insel.ch>.
63794
63795 2007-04-13  Bruno Haible  <bruno@clisp.org>
63796
63797         * lib/tls.c (glthread_tls_get): Fix return type.
63798         Patch by Arto C. Nirkko <anirkko@insel.ch>.
63799
63800 2007-04-12  Eric Blake  <ebb9@byu.net>
63801
63802         * modules/gettime (Depends-on): Remove gettime.
63803         Reported by Dmitry V. Levin.
63804
63805 2007-04-12  Bruno Haible  <bruno@clisp.org>
63806
63807         * modules/fflush (Include): Mention <stdio.h>.
63808         * modules/strtoimax (Include): Mention <inttypes.h>.
63809         * modules/strtoumax (Include): Likewise.
63810
63811 2007-04-12  Eric Blake  <ebb9@byu.net>
63812
63813         * .cvsignore: New file.
63814         * .gitignore: Likewise.
63815
63816 2007-04-12  Bruno Haible  <bruno@clisp.org>
63817
63818         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
63819         not before, since $(LDADD) often contains libgnu.a.
63820         * modules/striconv-tests (test_striconv_LDADD): Likewise.
63821         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
63822         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
63823         Needed on Cygwin.
63824
63825 2007-04-12  Eric Blake  <ebb9@byu.net>
63826
63827         Work around glibc's failure to flush stdin on fclose.
63828         * lib/closein.c (close_stdin): Flush stdin before closing.
63829
63830         Work around glibc's failure to reset seekable stdin on exit.
63831         * modules/closein: New module.
63832         * lib/closein.c: New file.
63833         * lib/closein.h: Likewise.
63834         * m4/closein.m4: Likewise.
63835         * MODULES.html.sh (File stream based Input/Output): Document it.
63836
63837 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63838
63839         * gnulib-tool: Rename generated 'autobuild' script to
63840         'do-autobuild' in --create-megatestdir output.
63841
63842         * doc/gnulib.texi (Build robot for gnulib): Fix.
63843
63844 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63845
63846         * modules/sysexits (Depends-on): Add absolute-header.
63847
63848 2007-04-12  Eric Blake  <ebb9@byu.net>
63849
63850         No need to preserve errno on success.
63851         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
63852         Reported by Bruno Haible.
63853
63854 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63855
63856         * MODULES.html.sh (Support for maintaining and releasing
63857         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
63858
63859 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63860
63861         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
63862
63863 2007-04-12  Simon Josefsson  <simon@josefsson.org>
63864
63865         * modules/autobuild: New module.
63866
63867         * m4/autobuild.m4: New file.
63868
63869 2007-04-11  Bruno Haible  <bruno@clisp.org>
63870
63871         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
63872         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
63873         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
63874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
63875         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63876         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63877         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63878         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63879         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63880         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63881         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
63882         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63883         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63884         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
63885         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63886         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63887         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
63888         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63889         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
63891         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63892         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63893         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
63894         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63895         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
63897         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
63898         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
63899         Reported by Eric Blake.
63900
63901 2007-04-11  Bruno Haible  <bruno@clisp.org>
63902
63903         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
63904
63905 2007-04-10  Bruno Haible  <bruno@clisp.org>
63906
63907         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
63908         for NaN and Infinity. Needed on FreeBSD 6.1.
63909         * tests/test-vasnprintf-posix.c (test_function): Undo last change
63910         regarding results for "%010a" of Infinity and NaN.
63911         * tests/test-vasprintf-posix.c (test_function): Likewise.
63912         * tests/test-snprintf-posix.h (test_function): Likewise.
63913         * tests/test-sprintf-posix.h (test_function): Likewise.
63914         * tests/test-fprintf-posix.h (test_function): Likewise.
63915         * tests/test-printf-posix.h (test_function): Likewise.
63916         * tests/test-fprintf-posix.out: Likewise.
63917
63918 2007-04-10  Bruno Haible  <bruno@clisp.org>
63919
63920         * modules/locale-tests: New file.
63921         * tests/test-locale.c: New file.
63922
63923         * modules/locale: New file.
63924         * lib/locale_.h: New file.
63925         * m4/locale_h.m4: New file.
63926
63927 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
63928             Bruno Haible  <bruno@clisp.org>
63929
63930         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
63931         be determined, test for availability of the copysignf, copysign,
63932         copysignl functions.
63933         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
63934         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
63935         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
63936
63937 2007-04-09  Eric Blake  <ebb9@byu.net>
63938
63939         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
63940         * modules/stdio (Makefile.am): Support fflush.
63941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
63942         * modules/fflush: New file.
63943         * lib/fflush.c: Likewise.
63944         * m4/fflush.m4: Likewise.
63945         * modules/fflush-tests: New test.
63946         * tests/test-fflush.c: Likewise.
63947         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
63948
63949 2007-04-06  Bruno Haible  <bruno@clisp.org>
63950
63951         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
63952         (VASNPRINTF): Use signbit for faster determination whether to print a
63953         minus sign.
63954         * modules/vasnprintf (Files): Remove lib/float+.h.
63955         * modules/fprintf-posix (Depends-on): Add signbit.
63956         * modules/snprintf-posix (Depends-on): Likewise.
63957         * modules/sprintf-posix (Depends-on): Likewise.
63958         * modules/vasnprintf-posix (Depends-on): Likewise.
63959         * modules/vasprintf-posix (Depends-on): Likewise.
63960         * modules/vfprintf-posix (Depends-on): Likewise.
63961         * modules/vsnprintf-posix (Depends-on): Likewise.
63962         * modules/vsprintf-posix (Depends-on): Likewise.
63963
63964 2007-04-06  Bruno Haible  <bruno@clisp.org>
63965
63966         * tests/test-frexp.c (main): Test also the sign bit of zero results.
63967         * tests/test-frexpl.c (main): Likewise.
63968         * tests/test-ldexpl.c (main): Likewise.
63969         * modules/frexp-tests (Depends-on): Add signbit.
63970         * modules/frexpl-tests (Depdends-on): Likewise.
63971         * modules/ldexpl-tests (Depdends-on): Likewise.
63972
63973 2007-04-06  Bruno Haible  <bruno@clisp.org>
63974
63975         * modules/signbit-tests: New file.
63976         * tests/test-signbit.c: New file.
63977
63978         * modules/signbit: New file.
63979         * lib/signbitf.c: New file.
63980         * lib/signbitd.c: New file.
63981         * lib/signbitl.c: New file.
63982         * m4/signbit.m4: New file.
63983         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
63984         (signbit): New macro.
63985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
63986         REPLACE_SIGNBIT.
63987         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
63988         REPLACE_FREXPL into math.h.
63989
63990 2007-04-06  Bruno Haible  <bruno@clisp.org>
63991
63992         * modules/isnanf-nolibm-tests: New file.
63993         * tests/test-isnanf.c: New file.
63994
63995         * modules/isnanf-nolibm: New file.
63996         * lib/isnanf.h: New file.
63997         * lib/isnanf.c: New file.
63998         * lib/isnan.c: Consider the USE_FLOAT macro.
63999         * m4/isnanf.m4: New file.
64000
64001 2007-04-06  Bruno Haible  <bruno@clisp.org>
64002
64003         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
64004         (Link): New section.
64005
64006         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
64007
64008 2007-04-06  Bruno Haible  <bruno@clisp.org>
64009
64010         Assume the 'long double' type.
64011         * m4/longdouble.m4: Remove file.
64012         * config/srclist.txt: Don't mention longdouble.m4.
64013         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
64014         * lib/float+.h: Likewise.
64015         * lib/frexp.c: Likewise.
64016         * lib/printf-args.h: Likewise.
64017         * lib/printf-args.c: Likewise.
64018         * lib/printf-frexp.c: Likewise.
64019         * lib/printf-parse.c: Likewise.
64020         * lib/vasnprintf.c: Likewise.
64021         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
64022         * m4/intl.m4: Likewise.
64023         * m4/isnanl.m4: Likewise.
64024         * m4/printf.m4: Likewise.
64025         * m4/printf-frexpl.m4: Likewise.
64026         * m4/vasnprintf.m4: Likewise.
64027         * modules/allocsa (Files): Remove m4/longdouble.m4.
64028         * modules/gettext (Files): Likewise.
64029         * modules/relocatable-prog-wrapper (Files): Likewise.
64030         * modules/vasnprintf (Files): Likewise.
64031         * modules/isnanl (Files): Likewise.
64032         (Include): Simplify.
64033         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
64034         (Include): Simplify.
64035         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
64036         (Include): Simplify.
64037         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
64038         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64039         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
64040         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64041         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64042         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64043         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
64044         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64045         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64046         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64047         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
64048         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64049         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
64050         * tests/test-isnanl.c: Likewise.
64051         * tests/test-snprintf-posix.h: Likewise.
64052         * tests/test-sprintf-posix.h: Likewise.
64053         * tests/test-vasnprintf-posix.c: Likewise.
64054         * tests/test-vasnprintf-posix2.c: Likewise.
64055         * tests/test-vasprintf-posix.c: Likewise.
64056
64057 2007-04-06  Bruno Haible  <bruno@clisp.org>
64058
64059         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
64060         * lib/math_.h [__DECC]: Include the overridden include file through
64061         #include_next, outside the double-inclusion guard.
64062         * lib/stdio_.h [__DECC]: Likewise.
64063         * lib/stdlib_.h [__DECC]: Likewise.
64064         * lib/string_.h [__DECC]: Likewise.
64065         * lib/time_.h [__DECC]: Likewise.
64066         * lib/wchar_.h [__DECC]: Likewise.
64067         * lib/wctype_.h [__DECC]: Likewise.
64068         * lib/inttypes_.h [__DECC]: Likewise.
64069         Reported by Albert Chin <china@thewrittenword.com> in
64070         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
64071
64072 2007-04-04  Eric Blake  <ebb9@byu.net>
64073
64074         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
64075         1.5.x.
64076
64077 2007-04-04  Bruno Haible  <bruno@clisp.org>
64078
64079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
64080         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
64081
64082 2007-04-04  Bruno Haible  <bruno@clisp.org>
64083
64084         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
64085         results for "%010a" of Infinity and NaN.
64086         * tests/test-vasprintf-posix.c (test_function): Likewise.
64087         * tests/test-snprintf-posix.h (test_function): Likewise.
64088         * tests/test-sprintf-posix.h (test_function): Likewise.
64089         * tests/test-fprintf-posix.h (test_function): Remove these tests.
64090         * tests/test-printf-posix.h (test_function): Likewise.
64091         * tests/test-fprintf-posix.out: Update.
64092         Needed for FreeBSD 6.1.
64093
64094 2007-04-04  Bruno Haible  <bruno@clisp.org>
64095
64096         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
64097         directly used by the gnulib modules nor by gnulib-tool.
64098
64099 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64100
64101         * DEPENDENCIES: Give overall description of version dependency
64102         desirability.  Use more-typical names for apps.
64103         Add shell, coreutils, diffutils, grep, tar, gzip.
64104
64105 2007-04-04  Simon Josefsson  <simon@josefsson.org>
64106
64107         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
64108
64109 2007-04-04  Karl Berry  <karl@gnu.org>
64110
64111         * MODULES.html.sh (func_module): missing '.
64112
64113 2007-04-03  Bruno Haible  <bruno@clisp.org>
64114
64115         * modules/argmatch-tests (Makefile.am): New variable
64116         test_argmatch_LDADD.
64117         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
64118         * modules/array-list-tests (Makefile.am): New variable
64119         test_array_list_LDADD.
64120         * modules/array-oset-tests (Makefile.am): New variable
64121         test_array_oset_LDADD.
64122         * modules/avltree-list-tests (Makefile.am): New variable
64123         test_avltree_list_LDADD.
64124         * modules/avltree-oset-tests (Makefile.am): New variable
64125         test_avltree_oset_LDADD.
64126         * modules/avltreehash-list-tests (Makefile.am): New variable
64127         test_avltreehash_list_LDADD.
64128         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
64129         test_canonicalize_lgpl_LDADD.
64130         * modules/carray-list-tests (Makefile.am): New variable
64131         test_carray_list_LDADD.
64132         * modules/dirname-tests (Makefile.am): New variable
64133         test_dirname_LDADD.
64134         * modules/linked-list-tests (Makefile.am): New variable
64135         test_linked_list_LDADD.
64136         * modules/linkedhash-list-tests (Makefile.am): New variable
64137         test_linkedhash_list_LDADD.
64138         * modules/rbtree-list-tests (Makefile.am): New variable
64139         test_rbtree_list_LDADD.
64140         * modules/rbtree-oset-tests (Makefile.am): New variable
64141         test_rbtree_oset_LDADD.
64142         * modules/rbtreehash-list-tests (Makefile.am): New variable
64143         test_rbtreehash_list_LDADD.
64144         * modules/xvasprintf-tests (Makefile.am): New variable
64145         test_xvasprintf_LDADD.
64146         Reported by Eric Blake.
64147
64148 2007-04-03  Eric Blake  <ebb9@byu.net>
64149
64150         * DEPENDENCIES: Weaken m4 requirements.
64151
64152 2007-04-03  Bruno Haible  <bruno@clisp.org>
64153
64154         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
64155         * modules/isnanl-tests (configure.ac): Likewise.
64156
64157 2007-04-03  Ben Pfaff  <blp@gnu.org>
64158
64159         * modules/iconv_open: Add $(srcdir)/ to source directory
64160         references in Makefile fragments that call gperf, to fix VPATH
64161         builds.
64162
64163 2007-04-03  Bruno Haible  <bruno@clisp.org>
64164
64165         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
64166         * lib/ldexpl.c: Undo last change.
64167
64168 2007-04-03  Bruno Haible  <bruno@clisp.org>
64169
64170         * modules/printf-frexpl (Depends-on): Undo last change.
64171         (Files): Add m4/ldexpl.m4.
64172
64173 2007-04-03  Bruno Haible  <bruno@clisp.org>
64174
64175         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
64176         * modules/isnanl (Link): New section.
64177
64178         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
64179         * modules/frexp (Link): New section.
64180
64181         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
64182         * modules/frexpl (Link): New section.
64183
64184         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
64185         * modules/ldexpl (Link): New section.
64186
64187 2007-04-03  Bruno Haible  <bruno@clisp.org>
64188
64189         * modules/TEMPLATE-EXTENDED: New file.
64190         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
64191
64192 2007-04-03  Bruno Haible  <bruno@clisp.org>
64193
64194         * DEPENDENCIES: New file.
64195         Suggested by Simon Josefsson.
64196
64197 2007-04-03  Bruno Haible  <bruno@clisp.org>
64198
64199         * doc/gnulib.texi: Escape @.
64200
64201 2007-04-03  James Youngman  <jay@gnu.org>
64202         and Paul Eggert  <eggert@cs.ucla.edu>
64203
64204         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
64205         birthtime on all systems that have birthtime, not just those which
64206         use st_birthtimensec rather than st_birthtim.  Putting zero in
64207         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
64208         that the birth time is not available for files on an NFS mount.
64209
64210 2007-04-03  Simon Josefsson  <simon@josefsson.org>
64211
64212         * modules/memxor: Move back from crypto/, suggested by Bruno.
64213         * modules/crypto/hmac-sha1: Fix memxor dependency.
64214
64215         * modules/crypto/gc: Moved from ../.
64216
64217 2007-04-02  Eric Blake  <ebb9@byu.net>
64218
64219         * lib/ldexpl.c (includes): Avoid libm.
64220
64221         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
64222
64223 2007-04-02  Bruno Haible  <bruno@clisp.org>
64224
64225         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
64226         on IRIX.
64227
64228 2007-04-02  Bruno Haible  <bruno@clisp.org>
64229
64230         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
64231         x86 or x86_64 platforms running MacOS X.
64232         Reported by Ryan Schmidt <@ryandesign.com>.
64233
64234 2007-04-02  Bruno Haible  <bruno@clisp.org>
64235
64236         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
64237         i386.
64238
64239 2007-04-01  Simon Josefsson  <simon@josefsson.org>
64240
64241         * modules/crypto/arcfour: Moved from ../.
64242         * modules/crypto/arcfour-tests: Moved from ../.
64243         * modules/crypto/arctwo: Moved from ../.
64244         * modules/crypto/arctwo-tests: Moved from ../.
64245         * modules/crypto/des: Moved from ../.
64246         * modules/crypto/des-tests: Moved from ../.
64247         * modules/crypto/gc-arcfour: Moved from ../.
64248         * modules/crypto/gc-arcfour-tests: Moved from ../.
64249         * modules/crypto/gc-arctwo: Moved from ../.
64250         * modules/crypto/gc-arctwo-tests: Moved from ../.
64251         * modules/crypto/gc-des: Moved from ../.
64252         * modules/crypto/gc-des-tests: Moved from ../.
64253         * modules/crypto/gc-hmac-md5: Moved from ../.
64254         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
64255         * modules/crypto/gc-hmac-sha1: Moved from ../.
64256         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
64257         * modules/crypto/gc-md2: Moved from ../.
64258         * modules/crypto/gc-md2-tests: Moved from ../.
64259         * modules/crypto/gc-md4: Moved from ../.
64260         * modules/crypto/gc-md4-tests: Moved from ../.
64261         * modules/crypto/gc-md5: Moved from ../.
64262         * modules/crypto/gc-md5-tests: Moved from ../.
64263         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
64264         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
64265         * modules/crypto/gc-random: Moved from ../.
64266         * modules/crypto/gc-rijndael: Moved from ../.
64267         * modules/crypto/gc-rijndael-tests: Moved from ../.
64268         * modules/crypto/gc-sha1: Moved from ../.
64269         * modules/crypto/gc-sha1-tests: Moved from ../.
64270         * modules/crypto/gc-tests: Moved from ../.
64271         * modules/crypto/hmac-md5: Moved from ../.
64272         * modules/crypto/hmac-md5-tests: Moved from ../.
64273         * modules/crypto/hmac-sha1: Moved from ../.
64274         * modules/crypto/hmac-sha1-tests: Moved from ../.
64275         * modules/crypto/md2: Moved from ../.
64276         * modules/crypto/md2-tests: Moved from ../.
64277         * modules/crypto/md4: Moved from ../.
64278         * modules/crypto/md4-tests: Moved from ../.
64279         * modules/crypto/md5: Moved from ../.
64280         * modules/crypto/md5-tests: Moved from ../.
64281         * modules/crypto/memxor: Moved from ../.
64282         * modules/crypto/rijndael: Moved from ../.
64283         * modules/crypto/rijndael-tests: Moved from ../.
64284         * modules/crypto/sha1: Moved from ../.
64285
64286 2007-03-30  James Youngman  <jay@gnu.org>
64287
64288         * tests/test-stat-time.c (prepare_test): use chmod() rather than
64289         rename() to change the ctime of a file (because ctime is unaffected
64290         by rename on jfs2 on AIX 5.1).
64291         (main): Start by doing cleanup, in case a previous run failed leaving
64292         test files behind.
64293
64294 2007-03-31  Bruno Haible  <bruno@clisp.org>
64295
64296         Support old proprietary implementations of iconv.
64297         * modules/iconv_open: New file.
64298         * lib/iconv_.h: New file.
64299         * m4/iconv_h.m4: New file.
64300         * lib/iconv_open.c: New file.
64301         * lib/iconv_open-aix.gperf: New file.
64302         * lib/iconv_open-hpux.gperf: New file.
64303         * lib/iconv_open-irix.gperf: New file.
64304         * lib/iconv_open-osf.gperf: New file.
64305         * m4/iconv_open.m4: New file.
64306         * modules/linebreak (Depends-on): Add iconv_open.
64307         * modules/striconv (Depends-on): Likewise.
64308         * modules/striconveh (Depends-on): Likewise.
64309         * modules/unicodeio (Depends-on): Likewise.
64310         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
64311         (iconv_t)(-1).
64312         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
64313         conversion if cd is (iconv_t)(-1).
64314         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
64315         is not possible.
64316
64317 2007-03-31  Bruno Haible  <bruno@clisp.org>
64318
64319         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
64320         work on Solaris either. Protect also second use of "autodetect_jp".
64321
64322 2007-03-31  Bruno Haible  <bruno@clisp.org>
64323
64324         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
64325         the function is not present.
64326
64327 2007-03-31  Bruno Haible  <bruno@clisp.org>
64328
64329         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
64330         the function is not present.
64331
64332 2007-03-31  Bruno Haible  <bruno@clisp.org>
64333
64334         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
64335         a bug in HP-UX iconv_open().
64336
64337 2007-03-31  Bruno Haible  <bruno@clisp.org>
64338
64339         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
64340         (Mathematics <math.h>): New section, add fpieee.
64341         (Input/output <stdio.h>): Add fseterr.
64342         (Mathematics <math.h>): New section, add printf-frexp.
64343         (Container data structures): Add sublist.
64344         (Core language properties): Add fpucw, inline.
64345         (Functions for greatest-width integer types <inttypes.h>): Add
64346         imaxabs, imaxdiv, inttypes.
64347         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
64348         isnanl-nolibm, ldexp.
64349         (Mathematics <math.h>): New section, add printf-frexpl.
64350         (Support for systems lacking POSIX:2001): Add fprintf-posix,
64351         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
64352         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
64353         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
64354         (Unicode string functions): Add unistr/u*-mbtoucr.
64355         (Java): Add javacomp-script, javaexec-script.
64356         (C#): Add csharpcomp-script, csharpexec-script.
64357         (Support for building libraries and executables): Add havelib,
64358         relocatable-*.
64359         (Support for maintaining and releasing projects): Renamed from
64360         'Support for maintaining and release projects'. Add announce-gen.
64361
64362 2007-03-31  Bruno Haible  <bruno@clisp.org>
64363
64364         * README: Talk primarily about git.
64365         (git and CVS): Renamed from CVS.
64366         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
64367         gnulib is available through git.
64368         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
64369
64370 2007-03-30  Bruno Haible  <bruno@clisp.org>
64371
64372         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
64373         * lib/poll_.h: Likewise.
64374         * lib/stat_.h: Likewise.
64375         * lib/sys_time_.h: Likewise.
64376         * lib/sysexit_.h: Likewise.
64377         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
64378         * lib/stdbool_.h: Likewise.
64379         * lib/byteswap_.h: Add double-inclusion guard.
64380
64381 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
64382
64383         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
64384
64385 2007-03-30  Karl Berry  <karl@gnu.org>
64386
64387         * config/srclist-update: double space after USA in the license
64388         substitution, since that's how it's usually (?) written.
64389
64390 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
64391
64392         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
64393         reported by Bruno Haible.
64394
64395 2007-03-29  Bruno Haible  <bruno@clisp.org>
64396
64397         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
64398         a bug in AIX iconv().
64399
64400 2007-03-29  Bruno Haible  <bruno@clisp.org>
64401
64402         * modules/ldexpl-tests: New file.
64403         * tests/test-ldexpl.c: New file.
64404
64405 2007-03-29  Bruno Haible  <bruno@clisp.org>
64406
64407         * lib/ldexpl.c: Include fpucw.h.
64408         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
64409         multiplication.
64410         * modules/ldexpl (Depends-on): Add fpucw.
64411
64412 2007-03-29  Bruno Haible  <bruno@clisp.org>
64413
64414         * modules/ldexpl: New file.
64415         * m4/ldexpl.m4: New file.
64416         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
64417         set.
64418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
64419         REPLACE_LDEXPL.
64420         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
64421         REPLACE_LDEXPL.
64422         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64423         gl_FUNC_LDEXPL_WORKS.
64424         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
64425         * modules/mathl (Files): Remove lib/ldexpl.c.
64426         (Depends-on): Add ldexpl.
64427
64428 2007-03-29  Bruno Haible  <bruno@clisp.org>
64429
64430         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
64431
64432 2007-03-29  Bruno Haible  <bruno@clisp.org>
64433
64434         * tests/test-striconveh.c (main): Don't assume that a direct conversion
64435         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
64436         and possibly also HP-UX.
64437         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
64438         work on AIX, IRIX, HP-UX, OSF/1.
64439         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
64440         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
64441         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
64442         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
64443         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
64444         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
64445
64446 2007-03-29  Bruno Haible  <bruno@clisp.org>
64447
64448         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
64449
64450 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
64451
64452         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
64453         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
64454
64455 2007-03-29  Eric Blake  <ebb9@byu.net>
64456
64457         * lib/acl-internal.h: Remove redundant include.
64458         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
64459         Cygwin when a file is locked.
64460
64461 2007-03-29  Bruno Haible  <bruno@clisp.org>
64462
64463         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
64464         file.
64465         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
64466
64467 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
64468
64469         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
64470         try to remove a parent directory if the child couldn't be removed
64471         (except for the first rmdir, which could fail because the child
64472         doesn't exist).  Problem reported by Jeff Blaine in
64473         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
64474
64475 2007-03-28  Bruno Haible  <bruno@clisp.org>
64476
64477         * lib/striconveh.c (utf8conv_carefully): New function.
64478         (mem_cd_iconveh_internal): Invoke it.
64479
64480 2007-03-28  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
64483         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
64484         input.
64485         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
64486         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
64487         unistr/u8-uctomb.
64488
64489 2007-03-28  Bruno Haible  <bruno@clisp.org>
64490
64491         * modules/unistr/u8-mbtoucr: New file.
64492         * lib/unistr/u8-mbtoucr.c: New file.
64493         * modules/unistr/u16-mbtoucr: New file.
64494         * lib/unistr/u16-mbtoucr.c: New file.
64495         * modules/unistr/u16-mbtoucr: New file.
64496         * lib/unistr/u16-mbtoucr.c: New file.
64497         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
64498
64499 2007-03-27  Simon Josefsson  <simon@josefsson.org>
64500             Bruno Haible  <bruno@clisp.org>
64501
64502         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
64503         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
64504         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
64505
64506         * m4/stdio_h.m4: Add stubs for vasprintf too.
64507
64508         * modules/stdio: Support vasprintf in sed command.
64509
64510         * modules/vasprintf: Depend on stdio for prototypes.  Remove
64511         vasprintf.h.  Add stdio module indicator.
64512
64513         * lib/stdio_.h: Declare asprintf and vasprintf, based on
64514         vasprintf.h.
64515
64516         * lib/vasprintf.h: File removed.
64517
64518         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
64519         * lib/vasprintf.c: Ditto.
64520         * lib/xvasprintf.c: Ditto.
64521         * tests/test-vasprintf-posix.c: Ditto.
64522         * tests/test-vasprintf.c: Ditto.
64523
64524 2007-03-27  Bruno Haible  <bruno@clisp.org>
64525
64526         Make vasnprintf multithread-safe.
64527         * lib/vasnprintf.c (decimal_point_char): New function.
64528         (VASNPRINTF): Use it.
64529         Suggested by Simon Josefsson.
64530
64531 2007-03-27  Eric Blake  <ebb9@byu.net>
64532
64533         Support sub-second birthtime on cygwin.
64534         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
64535         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
64536         (get_stat_birthtime): Also work with st_birthtim.
64537
64538 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
64539
64540         * lib/stat-time.h (USE_BIRTHTIME): Remove.
64541         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
64542         (get_stat_birthtime_ns): Do not try to use "spare" fields.
64543         (get_stat_birthtime_ns): Simplify compile-time tests.
64544         (get_stat_birthtime): Change the API to look like
64545         get_stat_mtime etc., except return a negative tv_nsec on error.
64546         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
64547         Don't check for "spare" fields.
64548         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
64549         or for struct stat.st_birthtime, as these tests aren't used.
64550         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
64551
64552 2007-03-27  Bruno Haible  <bruno@clisp.org>
64553
64554         * lib/stat-time.h: Include <sys/stat.h>.
64555
64556 2007-03-27  James Youngman  <jay@gnu.org>
64557
64558         * lib/stat-time.h (get_stat_birthtime): New function for
64559           retrieving st_birthtime as provided by UFS2 (hence *BSD).
64560         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
64561           and its variants.
64562         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
64563         * modules/stat-time-test: New file.
64564         * tests/test-stat-time.c: New test, devised by Bruno Haible.
64565
64566 2007-03-26  Bruno Haible  <bruno@clisp.org>
64567
64568         Better support of signalling NaNs.
64569         * lib/atanl.c: Include isnanl.h.
64570         (atanl): Perform test for NaN at the beginning of the function and
64571         through a call to isnanl.
64572         * lib/cosl.c: Include isnanl.h.
64573         (cosl): Perform test for NaN at the beginning of the function and
64574         through a call to isnanl.
64575         * lib/ldexpl.c: Include isnanl.h.
64576         (ldexpl): Perform test for NaN through a call to isnanl.
64577         * lib/logl.c: Include isnanl.h.
64578         (logl): Perform test for NaN at the beginning of the function and
64579         through a call to isnanl.
64580         * lib/sinl.c: Include isnanl.h.
64581         (sinl): Perform test for NaN at the beginning of the function and
64582         through a call to isnanl.
64583         * lib/sqrtl.c: Include isnanl.h.
64584         (sqrtl): Perform test for NaN at the beginning of the function and
64585         through a call to isnanl.
64586         * lib/tanl.c: Include isnanl.h.
64587         (tanl): Perform test for NaN at the beginning of the function and
64588         through a call to isnanl.
64589         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
64590         * modules/mathl (Depends-on): Add isnanl.
64591
64592 2007-03-26  Eric Blake  <ebb9@byu.net>
64593
64594         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
64595         regression in logic sense of previous patch.
64596
64597 2007-03-26  Bruno Haible  <bruno@clisp.org>
64598
64599         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
64600         unportable shell command "if ! ...".
64601         Reported by Ralf Wildenhues.
64602
64603 2007-03-25  Bruno Haible  <bruno@clisp.org>
64604
64605         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
64606         <sysexits.h> file, and only add EX_CONFIG.
64607         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
64608         absolute file name and whether it is sufficient. Substitute also
64609         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
64610         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
64611         ABSOLUTE_SYSEXITS_H into sysexits.h.
64612
64613 2007-03-25  Bruno Haible  <bruno@clisp.org>
64614
64615         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
64616         hints is NULL.
64617
64618 2007-03-25  Bruno Haible  <bruno@clisp.org>
64619
64620         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
64621         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
64622
64623 2007-03-25  Bruno Haible  <bruno@clisp.org>
64624
64625         * lib/vasnprintf.c: Include langinfo.h.
64626         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
64627         multithread-safe.
64628         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
64629         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
64630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64634         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
64636         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64637         Reported by Simon Josefsson.
64638
64639 2007-03-25  Bruno Haible  <bruno@clisp.org>
64640
64641         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
64642         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
64643         * modules/vasnprintf (Depends-on): Add stdint.
64644
64645 2007-03-25  Bruno Haible  <bruno@clisp.org>
64646
64647         * modules/fpieee: New file.
64648         * m4/fpieee.m4: New file.
64649         * modules/isnan-nolibm (Depends-on): Add fpieee.
64650         * modules/isnanl-nolibm (Depends-on): Add fpieee.
64651         * modules/isnanl (Depends-on): Add fpieee.
64652
64653 2007-03-25  Bruno Haible  <bruno@clisp.org>
64654
64655         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
64656
64657 2007-03-25  Bruno Haible  <bruno@clisp.org>
64658
64659         Avoid test failures on IRIX 6.5.
64660         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
64661         (main): Use it.
64662         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
64663         macros.
64664         (main): Use them.
64665
64666 2007-03-25  Bruno Haible  <bruno@clisp.org>
64667
64668         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
64669         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
64670         exists but doesn't work.
64671         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
64672         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
64673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
64674         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
64675         math.h.
64676
64677 2007-03-25  Bruno Haible  <bruno@clisp.org>
64678
64679         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
64680         returns inf. Needed on IRIX 6.5.
64681
64682 2007-03-25  Bruno Haible  <bruno@clisp.org>
64683
64684         * tests/test-frexpl.c: Include isnanl-nolibm.h.
64685         (main): Use isnanl instead of x != x idiom.
64686         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
64687
64688         * tests/test-frexp.c: Include isnan.h.
64689         (main): Use isnan instead of x != x idiom.
64690         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
64691
64692 2007-03-25  Bruno Haible  <bruno@clisp.org>
64693
64694         * tests/test-frexp.c (NaN): New function/macro.
64695         (main): Use it instead of 0.0 / 0.0.
64696         * tests/test-isnan.c (NaN): New function/macro.
64697         (main): Use it instead of 0.0 / 0.0.
64698         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
64699         (test_function): Use it instead of 0.0 / 0.0.
64700         * tests/test-vasprintf-posix.c (NaN): New function/macro.
64701         (test_function): Use it instead of 0.0 / 0.0.
64702         * tests/test-snprintf-posix.h (NaN): New function/macro.
64703         (test_function): Use it instead of 0.0 / 0.0.
64704         * tests/test-sprintf-posix.h (NaN): New function/macro.
64705         (test_function): Use it instead of 0.0 / 0.0.
64706         * tests/test-fprintf-posix.h (NaN): New function/macro.
64707         (test_function): Use it instead of 0.0 / 0.0.
64708         * tests/test-printf-posix.h (NaN): New function/macro.
64709         (test_function): Use it instead of 0.0 / 0.0.
64710
64711         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
64712
64713 2007-03-25  Bruno Haible  <bruno@clisp.org>
64714
64715         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
64716
64717 2007-03-25  Bruno Haible  <bruno@clisp.org>
64718
64719         * lib/regexec.c (merge_state_with_log): Make static.
64720
64721 2007-03-25  Bruno Haible  <bruno@clisp.org>
64722
64723         * lib/trigl.c (kernel_rem_pio2): Make static.
64724
64725 2007-03-25  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/sincosl.c (sincosl_table): Make static.
64728
64729 2007-03-25  Bruno Haible  <bruno@clisp.org>
64730
64731         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
64732         if the compiler does not support C99.
64733
64734 2007-03-25  Bruno Haible  <bruno@clisp.org>
64735
64736         * modules/time (Makefile.am): Ensure all rule action lines start with a
64737         tab.
64738
64739 2007-03-24  Bruno Haible  <bruno@clisp.org>
64740
64741         * modules/tsearch-tests: New file.
64742         * tests/test-tsearch.sh: New file.
64743         * tests/test-tsearch.c: New file, mostly copied from glibc.
64744
64745         * modules/search-tests: New file.
64746         * tests/test-search.c: New file.
64747
64748         * modules/search: New file.
64749         * lib/search_.h: New file, incorporating lib/tsearch.h.
64750         * m4/search_h.m4: New file.
64751         * lib/tsearch.h: Remove file.
64752         * lib/tsearch.c: Include search.h instead of tsearch.h.
64753         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
64754         HAVE_TSEARCH.
64755         * modules/tsearch (Files): Remove lib/tsearch.h.
64756         (Depends-on): Add search.
64757         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
64758         (Include): Change tsearch.h into search.h.
64759
64760 2007-03-24  Bruno Haible  <bruno@clisp.org>
64761
64762         * modules/fpucw: New file.
64763         * lib/fpucw.h: New file.
64764         * lib/frexp.c: Include fpucw.h.
64765         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64766         (FUNC): Use them.
64767         * lib/printf-frexp.c: Include fpucw.h.
64768         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
64769         (FUNC): Use them.
64770         * lib/vasnprintf.c: Include fpucw.h.
64771         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
64772         'long double' calculations.
64773         * tests/test-frexpl.c: Include fpucw.h.
64774         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64775         * tests/test-printf-frexpl.c: Include fpucw.h.
64776         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
64777         * modules/frexpl (Depends-on): Add fpucw.
64778         * modules/printf-frexpl (Depends-on): Likewise.
64779         * modules/fprintf-posix (Depends-on): Likewise.
64780         * modules/snprintf-posix (Depends-on): Likewise.
64781         * modules/sprintf-posix (Depends-on): Likewise.
64782         * modules/vasnprintf-posix (Depends-on): Likewise.
64783         * modules/vasprintf-posix (Depends-on): Likewise.
64784         * modules/vfprintf-posix (Depends-on): Likewise.
64785         * modules/vsnprintf-posix (Depends-on): Likewise.
64786         * modules/vsprintf-posix (Depends-on): Likewise.
64787         * modules/frexpl-tests (Depends-on): Likewise.
64788         * modules/printf-frexpl-tests (Depends-on): Likewise.
64789
64790 2007-03-24  Bruno Haible  <bruno@clisp.org>
64791
64792         * lib/float+.h: New file.
64793         * lib/isnan.c: Include float+.h.
64794         (SIZE): New macro.
64795         (FUNC): Compare only SIZE bytes of the value.
64796         * lib/vasnprintf.c: Include float+.h.
64797         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
64798         SIZEOF_LDBL or SIZEOF_DBL bytes.
64799         * modules/isnan-nolibm (Files): Add lib/float+.h.
64800         * modules/isnanl-nolibm (Files): Add lib/float+.h.
64801         * modules/isnanl (Files): Add lib/float+.h.
64802         * modules/vasnprintf (Files): Add lib/float+.h.
64803
64804 2007-03-24  Bruno Haible  <bruno@clisp.org>
64805
64806         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
64807         include isnanl-nolibm.h.
64808
64809 2007-03-24  Bruno Haible  <bruno@clisp.org>
64810
64811         * tests/test-read-file.c (main): Don't produce spurious output for
64812         expected situations. Make the test fail if it encountered unexpected
64813         results.
64814
64815 2007-03-24  Bruno Haible  <bruno@clisp.org>
64816
64817         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
64818         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
64819
64820 2007-03-24  Bruno Haible  <bruno@clisp.org>
64821
64822         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
64823
64824 2007-03-24  Bruno Haible  <bruno@clisp.org>
64825
64826         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
64827         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
64828
64829         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
64830         * modules/utf8-ucs4: Turn into a symbolic link to module
64831         unistr/u8-mbtouc.
64832
64833         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
64834         utf8-ucs4-unsafe.
64835         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
64836         unistr/u8-mbtouc-unsafe.
64837
64838         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
64839         * modules/utf16-ucs4: Turn into a symbolic link to module
64840         unistr/u16-mbtouc.
64841
64842         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
64843         utf16-ucs4-unsafe.
64844         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
64845         unistr/u16-mbtouc-unsafe.
64846
64847         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
64848         * modules/ucs4-utf8: Turn into a symbolic link to module
64849         unistr/u8-ubtomb.
64850
64851         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
64852         * modules/ucs4-utf16: Turn into a symbolic link to module
64853         unistr/u16-ubtomb.
64854
64855 2007-03-24  Bruno Haible  <bruno@clisp.org>
64856
64857         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
64858         Enable the function only if HAVE_INLINE.
64859         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
64860         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64861         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
64862         Enable the function only if HAVE_INLINE.
64863         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
64864         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
64865         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
64866         Enable the function only if HAVE_INLINE.
64867         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
64868         Enable the function only if HAVE_INLINE.
64869         * modules/utf8-ucs4: Update.
64870         * modules/utf8-ucs4-unsafe: Update.
64871         * modules/utf16-ucs4: Update.
64872         * modules/utf16-ucs4-unsafe: Update.
64873         * modules/ucs4-utf8: Update.
64874         * modules/ucs4-utf16: Update.
64875
64876 2007-03-24  Bruno Haible  <bruno@clisp.org>
64877
64878         * lib/utf8-ucs4.h: Remove file.
64879         * lib/utf8-ucs4-unsafe.h: Remove file.
64880         * lib/utf16-ucs4.h: Remove file.
64881         * lib/utf16-ucs4-unsafe.h: Remove file.
64882         * lib/ucs4-utf8.h: Remove file.
64883         * lib/ucs4-utf16.h: Remove file.
64884         * lib/unistr.h: Include their previous contents.
64885         * m4/utf-ucs4.m4: Remove file.
64886         * m4/ucs4-utf.m4: Remove file.
64887         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
64888         (Depends-on): Add unistr/base.
64889         (configure.ac): Remove gl_UTF_UCS4.
64890         (Makefile.am): Update.
64891         (Include): Change to unistr.h.
64892         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
64893         (Depends-on): Add unistr/base.
64894         (configure.ac): Remove gl_UTF_UCS4.
64895         (Makefile.am): Update.
64896         (Include): Change to unistr.h.
64897         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
64898         (Depends-on): Add unistr/base.
64899         (configure.ac): Remove gl_UTF_UCS4.
64900         (Makefile.am): Update.
64901         (Include): Change to unistr.h.
64902         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
64903         (Depends-on): Add unistr/base.
64904         (configure.ac): Remove gl_UTF_UCS4.
64905         (Makefile.am): Update.
64906         (Include): Change to unistr.h.
64907         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
64908         (Depends-on): Add unistr/base.
64909         (configure.ac): Remove gl_UCS4_UTF.
64910         (Makefile.am): Update.
64911         (Include): Change to unistr.h.
64912         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
64913         (Depends-on): Add unistr/base.
64914         (configure.ac): Remove gl_UCS4_UTF.
64915         (Makefile.am): Update.
64916         (Include): Change to unistr.h.
64917         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
64918         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
64919         utf8-ucs4-unsafe.h.
64920         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
64921         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
64922         utf16-ucs4-unsafe.h.
64923         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
64924         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
64925         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
64926         * lib/unistr/u8-strchr.c: Likewise.
64927         * lib/unistr/u8-strrchr.c: Likewise.
64928         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
64929         * lib/unistr/u16-strchr.c: Likewise.
64930         * lib/unistr/u16-strrchr.c: Likewise.
64931         * lib/striconveh.c: Update.
64932         * lib/linebreak.c: Update.
64933
64934 2007-03-24  Bruno Haible  <bruno@clisp.org>
64935
64936         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
64937         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
64938
64939 2007-03-22  Bruno Haible  <bruno@clisp.org>
64940
64941         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
64942
64943 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
64944
64945         * MODULES.html.sh (File system functions): New module write-any-file.
64946         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
64947         * m4/write-any-file.m4: New files.
64948
64949 2007-03-23  Eric Blake  <ebb9@byu.net>
64950
64951         * gnulib-tool: Rearrange space-tab sequences, since some editors
64952         like to eat them.
64953
64954 2007-03-23  Eric Blake  <ebb9@byu.net>
64955
64956         * lib/version-etc.c (version_etc_va): Update license wording to
64957         be more concise.  Recommended by Richard Stallman.
64958
64959 2007-03-22  Bruno Haible  <bruno@clisp.org>
64960
64961         * lib/poll.c (MSG_PEEK): New fallback definition.
64962
64963 2007-03-22  Bruno Haible  <bruno@clisp.org>
64964
64965         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
64966         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
64967         (main): Update.
64968         Fixes a compilation error on BeOS.
64969
64970 2007-03-22  Bruno Haible  <bruno@clisp.org>
64971
64972         * modules/frexpl-tests: New file.
64973         * tests/test-frexpl.c: New file.
64974
64975         * modules/frexpl: New file.
64976         * m4/frexpl.m4: New file.
64977         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
64978         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
64979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
64980         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
64981         (Depends-on): Add frexpl. Remove isnanl-nolibm.
64982         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
64983
64984 2007-03-22  Bruno Haible  <bruno@clisp.org>
64985
64986         * lib/frexpl.c: Share code with lib/frexp.c.
64987         * modules/mathl (Files): Add lib/frexp.c.
64988         (Depends-on): Add isnanl-nolibm.
64989
64990 2007-03-22  Bruno Haible  <bruno@clisp.org>
64991
64992         * modules/printf-frexp (Files): Add m4/frexp.m4.
64993         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
64994         only if the found frexp function actually works.
64995
64996 2007-03-22  Bruno Haible  <bruno@clisp.org>
64997
64998         * lib/frexp.c: Remove older implementation that uses divisions.
64999
65000 2007-03-21  Bruno Haible  <bruno@clisp.org>
65001
65002         * modules/frexp-tests: New file.
65003         * tests/test-frexp.c: New file.
65004
65005         * modules/frexp: New file.
65006         * lib/frexp.c: New file.
65007         * m4/frexp.m4: New file.
65008         * lib/math_.h (frexp): New declaration.
65009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
65010         REPLACE_FREXP.
65011         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
65012
65013 2007-03-21  Bruno Haible  <bruno@clisp.org>
65014
65015         * modules/isnanl-tests: New file.
65016         * tests/test-isnanl.c: New file.
65017
65018         * modules/isnanl: New file.
65019         * lib/isnanl.h: New file.
65020         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
65021         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
65022         gl_FUNC_ISNANL_WORKS.
65023         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
65024         New macros.
65025
65026 2007-03-21  Bruno Haible  <bruno@clisp.org>
65027
65028         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
65029         lib/isnanl.h.
65030         (Include): Update.
65031         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
65032         * lib/vasnprintf.c: Update.
65033         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
65034         tests/test-isnanl.h, remove tests/test-isnanl.c.
65035         (Makefile.am): Update.
65036         * tests/test-isnanl-nolibm.c: New file.
65037         * tests/test-isnanl.h: New file.
65038         * tests/test-isnanl.c: Remove file.
65039
65040 2007-03-21  Jim Meyering  <jim@meyering.net>
65041
65042         When trying to open ".", treat ESTALE like EACCES.
65043         * lib/savewd.c (savewd_save): Resort to forking not just upon
65044         failure with EACCES, but also when errno is ESTALE.
65045
65046 2007-03-20  Bruno Haible  <bruno@clisp.org>
65047
65048         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
65049         Needed on AIX 5.1. Reported by Matthew Woehlke.
65050
65051 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65052
65053         Suggestions by Bruno Haible:
65054         * lib/acl-internal.h: Include "gettext.h" rather than rolling
65055         our own.
65056         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
65057         * modules/acl (Depends-on): Add gettext.
65058
65059 2007-03-19  Bruno Haible  <bruno@clisp.org>
65060
65061         * modules/iconvme: Remove file.
65062         * lib/iconvme.h: Remove file.
65063         * lib/iconvme.c: Remove file.
65064         * m4/iconvme.m4: Remove file.
65065
65066 2007-03-19  Bruno Haible  <bruno@clisp.org>
65067
65068         * doc/relocatable-maint.texi: Break long shell script line.
65069         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65070
65071 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65072
65073         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
65074         handle file_has_acl.
65075         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
65076         * lib/acl.c: Move header inclusions and related macro defns into
65077         lib/acl-internal.h.
65078         (S_ISLNK): Remove defn, since that's now done for us.
65079         (file_has_acl): Move to lib/file-has-acl.c.
65080         Call acl_trivial if available.  This is the crucial part of the fix.
65081         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
65082         shared within the library.  Rewrite a bit, partly to make it compatible
65083         with the GNU coding style.
65084         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
65085         Remove unnecessary double-quotes.
65086         Don't test for acl_to_text; the build will catch that.
65087         Replace acl_entries if it doesn't exist and it is needed.
65088         Check for -lsec and acl_trivial (as used on Solaris 10).
65089         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
65090         lib/file-has-acl.c.
65091         (Depends-on): Add sys_stat, for S_ISLNK.
65092
65093 2007-03-19  Ben Pfaff  <blp@gnu.org>
65094
65095         * doc/gnulib.texi: Fix typos.
65096         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65097
65098 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
65101         If size is zero here, buf must be zero.
65102
65103 2007-03-19  Simon Josefsson  <simon@josefsson.org>
65104
65105         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
65106         <bruno@clisp.org>.
65107
65108 2007-03-18  Bruno Haible  <bruno@clisp.org>
65109
65110         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
65111         Suggested by Eric Blake.
65112
65113 2007-03-18  Ben Pfaff  <blp@gnu.org>
65114
65115         * doc/relocatable.texi: Recommend using as prefix a directory
65116         that does not exist and will never be created.  Based on
65117         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
65118         and others.
65119
65120 2007-03-17  Bruno Haible  <bruno@clisp.org>
65121
65122         * lib/fchownat.c: Include lchown.h.
65123
65124 2007-03-17  Bruno Haible  <bruno@clisp.org>
65125
65126         Fix endless loop when the given allocated size was > INT_MAX.
65127         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
65128         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
65129         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
65130         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
65131         * lib/sprintf.c (sprintf): Likewise.
65132
65133 2007-03-17  Bruno Haible  <bruno@clisp.org>
65134
65135         * tests/test-argp-2.sh (func_compare): Output a context diff.
65136
65137 2007-03-17  Bruno Haible  <bruno@clisp.org>
65138
65139         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
65140         locale's decimal-point character.
65141
65142 2007-03-17  Bruno Haible  <bruno@clisp.org>
65143
65144         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
65145         before comparing it. Needed because on some platforms (e.g. x86) a
65146         'long double' occupies less bytes than sizeof (long double).
65147
65148 2007-03-17  Bruno Haible  <bruno@clisp.org>
65149
65150         * tests/test-crc.c (main): Make printf statements 64-bit clean.
65151         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
65152         * tests/test-getaddrinfo.c (simple): Likewise.
65153         * tests/test-read-file.c (main): Likewise.
65154
65155 2007-03-17  Bruno Haible  <bruno@clisp.org>
65156
65157         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
65158
65159 2007-03-17  Bruno Haible  <bruno@clisp.org>
65160
65161         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
65162         unused variable.
65163
65164 2007-03-17  Bruno Haible  <bruno@clisp.org>
65165
65166         * tests/test-c-strcasecmp.c: Include c-strcase.h.
65167         * tests/test-c-strncasecmp.c: Likewise.
65168
65169 2007-03-17  Bruno Haible  <bruno@clisp.org>
65170
65171         * modules/stdlib (Depends-on): Add unistd.
65172         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
65173         Needed for MacOS X 10.3.
65174
65175 2007-03-17  Bruno Haible  <bruno@clisp.org>
65176
65177         * lib/unistr/u-strdup.h: Include <stdlib.h>.
65178
65179 2007-03-17  Bruno Haible  <bruno@clisp.org>
65180
65181         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
65182
65183 2007-03-17  Bruno Haible  <bruno@clisp.org>
65184
65185         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
65186         to reflect files copied from gnulib (with or without modifications).
65187         Suggested by Jim Meyering.
65188
65189 2007-03-17  Eric Blake  <ebb9@byu.net>
65190
65191         * NEWS: Document stdlib change from 2007-02-18.
65192
65193 2007-03-17  Jim Meyering  <jim@meyering.net>
65194
65195         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
65196         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
65197         someone uses a name containing shell meta-characters.
65198         Reported by Alfred M. Szmidt.
65199
65200         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
65201
65202 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65203
65204         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
65205         and copy gettext configuration files only if configure.ac contains
65206         a use of AM_GNU_GETTEXT_VERSION.
65207
65208 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65209
65210         * build-aux/bootstrap (gnulib_name): New variable.
65211         (gnulib_tool_options): Use it.
65212
65213 2007-03-13  Simon Josefsson  <simon@josefsson.org>
65214
65215         * tests/test-des.c: Use new namespace.
65216
65217 2007-03-15  Bruno Haible  <bruno@clisp.org>
65218
65219         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
65220         Reported by James Youngman <jay@gnu.org>.
65221
65222 2007-03-15  Bruno Haible  <bruno@clisp.org>
65223
65224         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
65225         declared prototype. Needed with cc on OSF/1 5.1.
65226
65227 2007-03-15  Bruno Haible  <bruno@clisp.org>
65228
65229         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
65230         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
65231         (struct gl_list_implementation): Add dispose_fn argument to the
65232         'create_empty', 'create' methods.
65233         (struct gl_list_impl_base): Add field 'dispose_fn'.
65234         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
65235         argument.
65236         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
65237         dispose_fn argument.
65238         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
65239         dispose_fn on the dropped values.
65240         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
65241         dispose_fn argument.
65242         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
65243         dropped values.
65244         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
65245         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65246         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
65247         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65248         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
65249         argument.
65250         (gl_tree_list_free): Call dispose_fn on the dropped values.
65251         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
65252         the dropped values.
65253         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65254         Add dispose_fn argument.
65255         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
65256         Call dispose_fn on the dropped values.
65257         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
65258         Add dispose_fn argument.
65259         (gl_sublist_create): Initialize the 'dispose_fn' field.
65260         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
65261         * tests/test-array_list.c (main): Update.
65262         * tests/test-carray_list.c (main): Update.
65263         * tests/test-avltree_list.c (main): Update.
65264         * tests/test-rbtree_list.c (main): Update.
65265         * tests/test-avltreehash_list.c (main): Update.
65266         * tests/test-rbtreehash_list.c (main): Update.
65267         * tests/test-linked_list.c (main): Update.
65268         * tests/test-linkedhash_list.c (main): Update.
65269         * tests/test-array_oset.c (main): Update.
65270
65271 2007-03-15  Bruno Haible  <bruno@clisp.org>
65272
65273         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
65274         (gl_oset_create_empty): Add dispose_fn argument.
65275         (struct gl_oset_implementation): Add dispose_fn argument to
65276         'create_empty' method.
65277         (struct gl_oset_impl_base): Add dispose_fn field.
65278         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
65279         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
65280         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
65281         values.
65282         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
65283         (gl_tree_oset_free): Call dispose_fn on the dropped values.
65284         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65285         dropped value.
65286         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65287         dropped value.
65288         * tests/test-array_oset.c (main): Update.
65289         * tests/test-avltree_oset.c (main): Update.
65290         * tests/test-rbtree_oset.c (main): Update.
65291         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
65292
65293 2007-03-13  Bruno Haible  <bruno@clisp.org>
65294
65295         * tests/test-stdbool.c (i): Update after last patch.
65296
65297 2007-03-12  Bruno Haible  <bruno@clisp.org>
65298
65299         * lib/quotearg.c: Include <wctype.h> early, before the definition of
65300         the iswprint macro. Needed on Solaris 2.5.1.
65301
65302 2007-03-12  Bruno Haible  <bruno@clisp.org>
65303
65304         * tests/test-printf-frexp.c (main): Declare x as volatile.
65305
65306 2007-03-12  Simon Josefsson  <simon@josefsson.org>
65307
65308         * doc/gnulib.texi (Build robot for gnulib): New section.
65309
65310 2007-03-12  Jim Meyering  <jim@meyering.net>
65311
65312         * build-aux/bootstrap: New file.
65313         * build-aux/bootstrap.conf: New file, from coreutils.
65314
65315 2007-03-11  Bruno Haible  <bruno@clisp.org>
65316
65317         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
65318
65319 2007-03-12  Simon Josefsson  <simon@josefsson.org>
65320
65321         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
65322         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
65323         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
65324
65325 2007-03-11  Bruno Haible  <bruno@clisp.org>
65326
65327         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
65328         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
65329
65330 2007-03-11  Bruno Haible  <bruno@clisp.org>
65331
65332         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
65333         formula. Needed for SunPRO C 5.0.
65334
65335 2007-03-11  Bruno Haible  <bruno@clisp.org>
65336
65337         * modules/long-options (Depends-on): Add getopt.
65338
65339 2007-03-11  Bruno Haible  <bruno@clisp.org>
65340
65341         * modules/modechange (Depends-on): Add stdbool.
65342
65343 2007-03-11  Bruno Haible  <bruno@clisp.org>
65344
65345         * modules/i-ring (Depends-on): Add stdbool.
65346
65347 2007-03-11  Bruno Haible  <bruno@clisp.org>
65348
65349         * modules/gc-des (Depends-on): Add stdbool.
65350
65351 2007-03-11  Bruno Haible  <bruno@clisp.org>
65352
65353         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
65354
65355 2007-03-11  Bruno Haible  <bruno@clisp.org>
65356
65357         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
65358
65359 2007-03-11  Bruno Haible  <bruno@clisp.org>
65360
65361         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
65362
65363 2007-03-11  Bruno Haible  <bruno@clisp.org>
65364
65365         * lib/vasnprintf.c (sprintf): Undefine.
65366
65367 2007-03-11  Bruno Haible  <bruno@clisp.org>
65368
65369         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
65370         initializers in SunPRO C and Compaq C compilers.
65371
65372 2007-03-11  Bruno Haible  <bruno@clisp.org>
65373
65374         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
65375         decrementing code ANSI C compliant.
65376
65377 2007-03-11  Bruno Haible  <bruno@clisp.org>
65378
65379         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
65380         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
65381
65382 2007-03-11  Bruno Haible  <bruno@clisp.org>
65383
65384         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
65385         <stdbool.h> substitute doesn't pass.
65386
65387 2007-03-11  Bruno Haible  <bruno@clisp.org>
65388
65389         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
65390
65391 2007-03-11  Bruno Haible  <bruno@clisp.org>
65392
65393         * gnulib-tool (func_create_megatestdir): Create also an autobuild
65394         script, for submission to autobuild.josefsson.org.
65395
65396 2007-03-10  Bruno Haible  <bruno@clisp.org>
65397
65398         * modules/canonicalize-lgpl-tests: New file.
65399         * tests/test-canonicalize-lgpl.sh: New file.
65400         * tests/test-canonicalize-lgpl.c: New file.
65401
65402         * modules/c-strcase-tests: New file.
65403         * tests/test-c-strcase.sh: New file.
65404         * tests/test-c-strcasecmp.c: New file.
65405         * tests/test-c-strncasecmp.c: New file.
65406
65407         * modules/atexit-tests: New file.
65408         * tests/test-atexit.sh: New file.
65409         * tests/test-atexit.c: New file.
65410
65411 2007-03-10  Bruno Haible  <bruno@clisp.org>
65412
65413         * tests/test-binary-io.sh: Use temporary filenames that are not so
65414         likely to clash with those of other tests (in a parallel make).
65415         * tests/test-binary-io.c: Likewise.
65416
65417 2007-03-10  Bruno Haible  <bruno@clisp.org>
65418
65419         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
65420         fallback; use #error instead.
65421         Suggested by Simon Josefsson.
65422
65423 2007-03-10  Bruno Haible  <bruno@clisp.org>
65424
65425         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
65426         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
65427         first and the last.
65428
65429 2007-03-10  Bruno Haible  <bruno@clisp.org>
65430
65431         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
65432
65433 2007-03-10  Bruno Haible  <bruno@clisp.org>
65434
65435         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
65436         "make distcheck".
65437         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
65438         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
65439         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
65440
65441 2007-03-10  Bruno Haible  <bruno@clisp.org>
65442
65443         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
65444         variable.
65445         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
65446         variable.
65447
65448 2007-03-09  Eric Blake  <ebb9@byu.net>
65449         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
65450
65451         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
65452         types are not being provided by gnulib.
65453         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
65454         types are supported.
65455
65456 2007-03-10  Bruno Haible  <bruno@clisp.org>
65457
65458         * lib/stdio_.h (__attribute__): New macro.
65459         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
65460         vsprintf): Specify __attribute__ __format__ for GCC.
65461         Suggested by Eric Blake.
65462
65463 2007-03-09  Bruno Haible  <bruno@clisp.org>
65464
65465         * modules/printf-posix-tests: New file.
65466         * tests/test-printf-posix.sh: New file.
65467         * tests/test-printf-posix.c: New file.
65468
65469         * modules/printf-posix: New file.
65470         * lib/printf.c: New file.
65471         * m4/printf-posix-rpl.m4: New file.
65472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
65473         REPLACE_PRINTF.
65474         * lib/stdio_.h (printf): New declaration.
65475         (format, __format__, ____printf____, ____scanf____, ____strftime____,
65476         ____strfmon____): New macros.
65477         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
65478         REPLACE_PRINTF.
65479
65480 2007-03-09  Bruno Haible  <bruno@clisp.org>
65481
65482         * tests/test-vasnprintf-posix2.sh: New file.
65483         * tests/test-vasnprintf-posix2.c: New file.
65484         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
65485         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
65486         (Makefile.am): Activate test-vasnprintf-posix2.sh.
65487
65488         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
65489         a locale dependent decimal point, rather than always '.'.
65490
65491 2007-03-09  Eric Blake  <ebb9@byu.net>
65492
65493         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
65494         spite of platforms like Tandem/NSK that define it to -1.
65495
65496 2007-03-08  Bruno Haible  <bruno@clisp.org>
65497
65498         * modules/vprintf-posix-tests: New file.
65499         * tests/test-vprintf-posix.sh: New file.
65500         * tests/test-vprintf-posix.c: New file.
65501         * tests/test-printf-posix.h: New file.
65502
65503         * modules/vprintf-posix: New file.
65504         * lib/vprintf.c: New file.
65505         * m4/vprintf-posix.m4: New file.
65506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
65507         REPLACE_VPRINTF.
65508         * lib/stdio_.h (vprintf): New declaration.
65509         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
65510         REPLACE_VPRINTF.
65511
65512 2007-03-08  Bruno Haible  <bruno@clisp.org>
65513
65514         * modules/fprintf-posix-tests: New file.
65515         * tests/test-fprintf-posix.sh: New file.
65516         * tests/test-fprintf-posix.c: New file.
65517
65518         * modules/fprintf-posix: New file.
65519         * lib/fprintf.c: New file.
65520         * m4/fprintf-posix.m4: New file.
65521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
65522         REPLACE_FPRINTF.
65523         * lib/stdio_.h (fprintf): New declaration.
65524         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
65525         REPLACE_FPRINTF.
65526
65527 2007-03-08  Bruno Haible  <bruno@clisp.org>
65528
65529         * modules/vfprintf-posix-tests: New file.
65530         * tests/test-vfprintf-posix.sh: New file.
65531         * tests/test-vfprintf-posix.c: New file.
65532         * tests/test-fprintf-posix.h: New file.
65533         * tests/test-fprintf-posix.out: New file.
65534
65535         * modules/vfprintf-posix: New file.
65536         * lib/vfprintf.c: New file.
65537         * m4/vfprintf-posix.m4: New file.
65538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
65539         REPLACE_VFPRINTF.
65540         * lib/stdio_.h (vfprintf): New declaration.
65541         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
65542         REPLACE_VFPRINTF.
65543
65544 2007-03-08  Bruno Haible  <bruno@clisp.org>
65545
65546         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
65547
65548 2007-03-08  Bruno Haible  <bruno@clisp.org>
65549
65550         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
65551         instead of 'expr' invocations.
65552         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65553         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65554         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65555         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65556         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65557         Suggested by Paul Eggert.
65558
65559 2007-03-08  Bruno Haible  <bruno@clisp.org>
65560
65561         * modules/fseterr-tests: New file.
65562         * tests/test-fseterr.c: New file.
65563
65564         * modules/fseterr: New file.
65565         * lib/fseterr.h: New file.
65566         * lib/fseterr.c: New file.
65567
65568 2007-03-08  Bruno Haible  <bruno@clisp.org>
65569
65570         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
65571         * lib/getopt_.h: Likewise.
65572         * lib/mbswidth.h: Likewise.
65573         * lib/setenv.h: Likewise.
65574         * lib/vasnprintf.h: Likewise.
65575         * lib/vasprintf.h: Likewise.
65576         * lib/verror.h: Likewise.
65577         * lib/xsetenv.h: Likewise.
65578         * lib/xvasprintf.h: Likewise.
65579
65580 2007-03-08  Jim Meyering  <jim@meyering.net>
65581
65582         * users.txt: Add parted.
65583
65584         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
65585
65586 2007-03-07  Bruno Haible  <bruno@clisp.org>
65587
65588         * m4/printf.m4: Make the shell script snippets copy&pastable.
65589
65590 2007-03-02  Bruno Haible  <bruno@clisp.org>
65591
65592         * lib/netinet_in_.h: New file.
65593         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
65594         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
65595         * modules/netinet_in (Files): Add lib/netinet_in_.h.
65596         (Depends-on): Add absolute-header.
65597         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
65598         into netinet/in.h.
65599
65600 2007-03-03  Bruno Haible  <bruno@clisp.org>
65601
65602         * lib/sys_select_.h: New file.
65603         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
65604         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
65605         * modules/sys_select (Files): Add lib/sys_select_.h.
65606         (Depends-on): Add absolute-header.
65607         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
65608         into sys/select.h.
65609
65610 2007-03-02  Bruno Haible  <bruno@clisp.org>
65611
65612         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
65613         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
65614         values.
65615         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
65616         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
65617         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
65618         * modules/sys_socket (Depends-on): Add absolute-header.
65619         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
65620         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
65621         (Include): Remove requirement of inclusion of <sys/types.h>.
65622
65623 2007-03-02  Bruno Haible  <bruno@clisp.org>
65624
65625         * lib/byteswap_.h (bswap_32): Fix formula.
65626
65627 2007-03-06  Bruno Haible  <bruno@clisp.org>
65628
65629         * modules/sprintf-posix-tests: New file.
65630         * tests/test-sprintf-posix.c: New file.
65631
65632         * modules/sprintf-posix: New file.
65633         * lib/sprintf.c: New file.
65634         * m4/sprintf-posix.m4: New file.
65635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
65636         REPLACE_SPRINTF.
65637         * lib/stdio_.h (sprintf): New declaration.
65638         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
65639         REPLACE_SPRINTF.
65640
65641 2007-03-06  Bruno Haible  <bruno@clisp.org>
65642
65643         * modules/vsprintf-posix-tests: New file.
65644         * tests/test-vsprintf-posix.c: New file.
65645         * tests/test-sprintf-posix.h: New file.
65646
65647         * modules/vsprintf-posix: New file.
65648         * lib/vsprintf.c: New file.
65649         * m4/vsprintf-posix.m4: New file.
65650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
65651         REPLACE_VSPRINTF.
65652         * lib/stdio_.h (vsprintf): New declaration.
65653         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
65654         REPLACE_VSPRINTF.
65655
65656 2007-03-06  Bruno Haible  <bruno@clisp.org>
65657
65658         * modules/vsnprintf (Depend-on): Remove minmax.
65659
65660 2007-03-06  Bruno Haible  <bruno@clisp.org>
65661
65662         * modules/snprintf-posix-tests: New file.
65663         * tests/test-snprintf-posix.c: New file.
65664
65665         * modules/snprintf-posix: New file.
65666         * m4/snprintf-posix.m4: New file.
65667         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
65668         gl_FUNC_SNPRINTF.
65669         (gl_FUNC_SNPRINTF): Invoke it.
65670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
65671         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
65672         is set.
65673         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
65674
65675 2007-03-06  Bruno Haible  <bruno@clisp.org>
65676
65677         * modules/vsnprintf-posix-tests: New file.
65678         * tests/test-vsnprintf-posix.c: New file.
65679         * tests/test-snprintf-posix.h: New file.
65680
65681         * modules/vsnprintf-posix: New file.
65682         * m4/vsnprintf-posix.m4: New file.
65683         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
65684         gl_FUNC_VSNPRINTF.
65685         (gl_FUNC_VSNPRINTF): Invoke it.
65686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
65687         * lib/stdio_.h (vsnprintf): Define as a replacement if
65688         REPLACE_VSNPRINTF is set.
65689         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
65690
65691 2007-03-06  Bruno Haible  <bruno@clisp.org>
65692
65693         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
65694         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
65695
65696 2007-03-06  Bruno Haible  <bruno@clisp.org>
65697
65698         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
65699         (asinl): Declare also if HAVE_DECL_ASINL is set.
65700         (atanl): Declare also if HAVE_DECL_ATANL is set.
65701         (ceill): Declare also if HAVE_DECL_CEILL is set.
65702         (cosl): Declare also if HAVE_DECL_COSL is set.
65703         (expl): Declare also if HAVE_DECL_EXPL is set.
65704         (floorl): Declare also if HAVE_DECL_FLOORL is set.
65705         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
65706         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
65707         (logl): Declare also if HAVE_DECL_LOGL is set.
65708         (sinl): Declare also if HAVE_DECL_SINL is set.
65709         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
65710         (tanl): Declare also if HAVE_DECL_TANL is set.
65711         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
65712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
65713         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
65714         declaration of frexpl, ldexpl.
65715         * modules/printf-frexpl (Depends-on): Add math.
65716         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
65717
65718 2007-03-05  Bruno Haible  <bruno@clisp.org>
65719
65720         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
65721         frexpl and ldexpl are declared.
65722         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
65723
65724 2007-03-05  Bruno Haible  <bruno@clisp.org>
65725
65726         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
65727         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
65728
65729 2007-03-05  Bruno Haible  <bruno@clisp.org>
65730
65731         * lib/stdio_.h: Include <stddef.h>.
65732
65733 2007-03-05  Bruno Haible  <bruno@clisp.org>
65734
65735         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
65736
65737 2007-03-05  Bruno Haible  <bruno@clisp.org>
65738
65739         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
65740         NetBSD 4, from Ralf Wildenhues.
65741
65742 2007-03-04  Bruno Haible  <bruno@clisp.org>
65743
65744         * lib/vasprintf.h: Update #if logic for the case when the functions
65745         exist but are overridden.
65746
65747 2007-03-04  Bruno Haible  <bruno@clisp.org>
65748
65749         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
65750         implementations: glibc-2.4 and MacOS X 10.3.
65751         * tests/test-vasnprintf-posix.c (test_function): Test also the case
65752         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
65753         * tests/test-vasprintf-posix.c (test_function): Likewise.
65754
65755 2007-03-04  Bruno Haible  <bruno@clisp.org>
65756
65757         * modules/vasprintf-posix-tests: New file.
65758         * tests/test-vasprintf-posix.c: New file.
65759
65760         * modules/vasprintf-posix: New file.
65761         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
65762         defined.
65763         * m4/vasprintf-posix.m4: New file.
65764         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
65765         gl_FUNC_VASPRINTF.
65766         (gl_FUNC_VASPRINTF): Invoke it.
65767         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
65768         here.
65769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
65770
65771 2007-03-04  Bruno Haible  <bruno@clisp.org>
65772
65773         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
65774         REPLACE_GETTIMEOFDAY.
65775         * modules/sys_time (Makefile.am): Likewise.
65776         * m4/sys_time_h.m4: Likewise.
65777         * m4/gettimeofday.m4: Likewise.
65778
65779 2007-03-04  Bruno Haible  <bruno@clisp.org>
65780
65781         * modules/vasnprintf-posix-tests: New file.
65782         * tests/test-vasnprintf-posix.c: New file.
65783
65784         * modules/vasnprintf-posix: New file.
65785         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
65786         printf-frexpl.h.
65787         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
65788         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
65789         REPLACE_VASNPRINTF is defined.
65790         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
65791         gl_FUNC_VASNPRINTF.
65792         (gl_FUNC_VASNPRINTF): Invoke it.
65793         * m4/vasnprintf-posix.m4: New file.
65794         * m4/printf.m4: New file.
65795
65796 2007-03-04  Bruno Haible  <bruno@clisp.org>
65797
65798         Compile progreloc.c only if --enable-relocatable is specified.
65799         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
65800         if --enable-relocatable was specified.
65801         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
65802         lib_SOURCES.
65803
65804 2007-03-04  Jim Meyering  <jim@meyering.net>
65805
65806         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
65807         Use it consistently, rather than enumerating errno constants.
65808
65809 2007-03-04  Bruno Haible  <bruno@clisp.org>
65810
65811         * modules/xvasprintf-tests: New file.
65812         * tests/test-xvasprintf.c: New file.
65813
65814         * modules/vasprintf-tests: New file.
65815         * tests/test-vasprintf.c: New file.
65816
65817         * modules/vasnprintf-tests: New file.
65818         * tests/test-vasnprintf.c: New file.
65819
65820         * modules/vsnprintf-tests: New file.
65821         * tests/test-vsnprintf.c: New file.
65822
65823         * modules/snprintf-tests: New file.
65824         * tests/test-snprintf.c: New file.
65825
65826 2007-03-04  Bruno Haible  <bruno@clisp.org>
65827
65828         Compile relocatable.c only if --enable-relocatable is specified.
65829         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
65830         gl_RELOCATABLE_LIBRARY.
65831         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
65832         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
65833         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
65834         gl_RELOCATABLE_LIBRARY.
65835         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
65836         (Makefile.am): Remove lib_SOURCES.
65837         * modules/relocatable-lib-lgpl (configure.ac): Invoke
65838         gl_RELOCATABLE_LIBRARY.
65839         (Makefile.am): Remove lib_SOURCES.
65840         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
65841         always.
65842         * modules/relocatable-prog-wrapper (configure.ac): Invoke
65843         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
65844
65845 2007-03-04  Bruno Haible  <bruno@clisp.org>
65846
65847         * modules/argmatch-tests: New file.
65848         * tests/test-argmatch.c: New file.
65849
65850         * tests/test-allocsa.c (main): Halve the number of loop runs.
65851
65852         * modules/alloca-opt-tests: New file.
65853         * tests/test-alloca-opt.c: New file.
65854
65855 2007-03-04  Jim Meyering  <jim@meyering.net>
65856
65857         Work around difference between Linux ACLs and Solaris 10 ZFS.
65858         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
65859         for EINVAL.
65860
65861 2007-03-03  Bruno Haible  <bruno@clisp.org>
65862
65863         * modules/relocatable-prog (Depends-on): Add back progreloc's
65864         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
65865
65866 2007-03-03  Bruno Haible  <bruno@clisp.org>
65867
65868         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
65869         * modules/relocatable-lib: New file.
65870
65871 2007-03-03  Bruno Haible  <bruno@clisp.org>
65872
65873         * modules/relocatable-prog: Renamed from modules/relocatable.
65874         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
65875
65876 2007-03-03  Bruno Haible  <bruno@clisp.org>
65877
65878         * modules/relocatable-script (Files): Add doc/relocatable.texi,
65879         m4/relocatable-lib.m4.
65880         (Depends-on): Remove 'relocatable'.
65881         (configure.ac): Add gl_RELOCATABLE_NOP.
65882
65883 2007-03-03  Bruno Haible  <bruno@clisp.org>
65884
65885         * modules/relocatable-prog-wrapper: New file.
65886         * modules/relocatable (Depends-on): Add it. Remove all other
65887         dependencies except progname.
65888         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
65889
65890         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
65891         (gl_FUNC_STRERROR): Nop.
65892         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
65893
65894         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
65895         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
65896
65897         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
65898         (gl_FUNC_READLINK): Update.
65899
65900         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
65901
65902 2007-03-03  Bruno Haible  <bruno@clisp.org>
65903
65904         * lib/xreadlink.c: Include <unistd.h> unconditionally.
65905         * modules/xreadlink (Depends-on): Add unistd.
65906         * modules/xreadlink-with-size (Depends-on): Likewise.
65907
65908 2007-03-03  Bruno Haible  <bruno@clisp.org>
65909
65910         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
65911         extracted from gt_FUNC_SETENV.
65912         (gt_FUNC_SETENV): Remove macro.
65913         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
65914         remove gt_FUNC_SETENV.
65915
65916 2007-03-03  Bruno Haible  <bruno@clisp.org>
65917
65918         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
65919         ENABLE_RELOCATABLE here.
65920         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
65921
65922 2007-03-03  Bruno Haible  <bruno@clisp.org>
65923
65924         * modules/rbtreehash-list-tests (Depends-on): Add progname.
65925         * tests/test-rbtreehash_list.c: Include progname.h.
65926         (main): Call set_program_name.
65927
65928         * modules/rbtree-oset-tests (Depends-on): Add progname.
65929         * tests/test-rbtree_oset.c: Include progname.h.
65930         (main): Call set_program_name.
65931
65932         * modules/rbtree-list-tests (Depends-on): Add progname.
65933         * tests/test-rbtree_list.c: Include progname.h.
65934         (main): Call set_program_name.
65935
65936         * modules/linked-list-tests (Depends-on): Add progname.
65937         * tests/test-linked_list.c: Include progname.h.
65938         (main): Call set_program_name.
65939
65940 2007-03-03  Bruno Haible  <bruno@clisp.org>
65941
65942         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
65943         All uses of __restrict changed to _Restrict_.
65944         * lib/glob_.h (__restrict): Remove macro.
65945
65946 2007-03-02  Bruno Haible  <bruno@clisp.org>
65947
65948         * modules/gettext (configure.ac): Require gettext infrastructure
65949         from version 0.16.1.
65950
65951 2007-03-02  Bruno Haible  <bruno@clisp.org>
65952
65953         * modules/linkedhash-list-tests (Depends-on): Add progname.
65954         * tests/test-linkedhash_list.c: Include progname.h.
65955         (main): Call set_program_name.
65956
65957         * modules/carray-list-tests (Depends-on): Add progname.
65958         * tests/test-carray_list.c: Include progname.h.
65959         (main): Call set_program_name.
65960
65961         * modules/avltreehash-list-tests (Depends-on): Add progname.
65962         * tests/test-avltreehash_list.c: Include progname.h.
65963         (main): Call set_program_name.
65964
65965         * modules/avltree-oset-tests (Depends-on): Add progname.
65966         * tests/test-avltree_oset.c: Include progname.h.
65967         (main): Call set_program_name.
65968
65969         * modules/avltree-list-tests (Depends-on): Add progname.
65970         * tests/test-avltree_list.c: Include progname.h.
65971         (main): Call set_program_name.
65972
65973         * modules/array-oset-tests (Depends-on): Add progname.
65974         * tests/test-array_oset.c: Include progname.h.
65975         (main): Call set_program_name.
65976
65977         * modules/array-list-tests (Depends-on): Add progname.
65978         * tests/test-array_list.c: Include progname.h.
65979         (main): Call set_program_name.
65980
65981         * modules/argp-tests (Depends-on): Add progname.
65982         * tests/test-argp.c: Include argp.h first. Include progname.h.
65983         (main): Call set_program_name.
65984
65985 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
65986
65987         * doc/gnulib-tool.texi (Initial import): Reword description of
65988         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
65989         limited effect even if defined after the first system include.
65990
65991 2007-03-01  Bruno Haible  <bruno@clisp.org>
65992
65993         * build-aux/config.libpath: Update to libtool-1.5.22.
65994         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65995
65996 2007-03-01  Bruno Haible  <bruno@clisp.org>
65997
65998         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
65999         foo_CFLAGS.
66000         Reported by Ralf Wildenhues.
66001
66002 2007-03-01  Bruno Haible  <bruno@clisp.org>
66003
66004         * build-aux/install-reloc: Remove object files left over by some
66005         compilers.
66006         Reported by Ralf Wildenhues.
66007
66008 2007-03-01  Bruno Haible  <bruno@clisp.org>
66009
66010         * build-aux/install-reloc: Break long lines.
66011
66012 2007-03-01  Bruno Haible  <bruno@clisp.org>
66013
66014         * doc/relocatable.texi: Document that it may not work on OpenBSD.
66015         Reported by Ralf Wildenhues.
66016
66017 2007-03-01  Bruno Haible  <bruno@clisp.org>
66018
66019         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
66020         include ordering constraints.
66021
66022 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66023
66024         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
66025         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
66026         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
66027         as another example.
66028         * lib/time_.h: Fix misspelling.
66029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66030         Require gl_HEADER_TIME_H_DEFAULTS.
66031         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
66032         * m4/time_r.m4 (gl_TIME_R): Likewise.
66033         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
66034
66035 2007-03-01  Bruno Haible  <bruno@clisp.org>
66036
66037         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
66038         * m4/utimens.m4 (gl_UTIMENS): Likewise.
66039
66040 2007-03-01  Jim Meyering  <jim@meyering.net>
66041
66042         * modules/xreadlink (Maintainer): Add my name.
66043         * modules/xreadlink-with-size (Depends-on): Alphabetize.
66044
66045 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
66046             Bruno Haible  <bruno@clisp.org>
66047
66048         * build-aux/install-reloc: Compile also c-ctype.c.
66049         * build-aux/relocatable.sh.in: New file.
66050         * doc/relocatable.texi: New file.
66051         * doc/relocatable-maint.texi: New file.
66052         * doc/gnulib.texi: Include relocatable-maint.texi.
66053         * lib/progreloc.c: Include unistd.h unconditionally.
66054         * lib/relocwrapper.c: Include unistd.h unconditionally.
66055         Include c-ctype.h.
66056         (add_dotbin): Use c_tolower.
66057         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
66058         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
66059         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
66060         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
66061         to m4/relocatable-lib.m4.
66062         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
66063         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
66064         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
66065         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
66066         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
66067         * modules/relocatable: New file.
66068         * modules/relocatable-lib: New file.
66069         * modules/relocatable-script: New file.
66070
66071 2007-02-28  Bruno Haible  <bruno@clisp.org>
66072
66073         Import --enable-relocatable infrastructure.
66074         * build-aux/config.libpath: New file, from GNU gettext.
66075         * build-aux/install-reloc: New file, from GNU gettext.
66076         * build-aux/reloc-ldflags: New file, from GNU gettext.
66077         * lib/relocatable.h: New file, from GNU gettext.
66078         * lib/relocatable.c: New file, from GNU gettext.
66079         * lib/relocwrapper.c: New file, from GNU gettext.
66080         * m4/relocatable.m4: New file, from GNU gettext.
66081
66082 2007-02-28  Bruno Haible  <bruno@clisp.org>
66083
66084         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
66085
66086         * modules/xreadlink: New file, from GNU gettext with modifications.
66087         * lib/xreadlink.c: New file, from GNU gettext.
66088         * lib/xreadlink.h: Add comments.
66089         (xreadlink): New declaration.
66090
66091         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
66092         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
66093         lib/xreadlink-with-size.c.
66094         (configure.ac): Remove gl_XREADLINK invocation.
66095         (Makefile.am): Augment lib_SOURCES.
66096         * m4/xreadlink.m4: Remove file.
66097         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
66098         (xreadlink_with_size): Renamed from xreadink.
66099         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
66100         * modules/canonicalize (Depends-on): Replace xreadlink with
66101         xreadlink-with-size.
66102         * lib/canonicalize.c (canonicalize_filename_mode): Update.
66103
66104 2007-02-25  Jim Meyering  <jim@meyering.net>
66105
66106         * build-aux/announce-gen: When complaining about excess arguments,
66107         list them.
66108
66109 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66110
66111         * README: Document signed integer overflow situation more
66112         accurately.
66113
66114 2007-02-25  Bruno Haible  <bruno@clisp.org>
66115
66116         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
66117         'a' or 'A' conversion.
66118
66119 2007-02-25  Bruno Haible  <bruno@clisp.org>
66120
66121         * modules/filename: Renamed from modules/pathname.
66122         (Files): Replace lib/pathname.h with lib/filename.h. Replace
66123         lib/concatpath.c with lib/concat-filename.c.
66124         (Makefile.am): Update.
66125         (Include): Replace pathname.h with filename.h.
66126         * lib/filename.h: Renamed from lib/pathname.h.
66127         (concatenated_filename): Renamed from concatenated_pathname.
66128         * lib/concat-filename.c: Renamed from lib/concatpath.c.
66129         (concatenated_filename): Renamed from concatenated_pathname.
66130         * lib/findprog.c: Include filename.h instead of pathname.h.
66131         (find_in_path): Update.
66132         * lib/javacomp.c: Include filename.h instead of pathname.h.
66133         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
66134         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
66135         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
66136         is_oldgcj_14_13_usable, is_javac_usable): Update.
66137         * lib/javaexec.c: Include filename.h instead of pathname.h.
66138         (execute_java_class): Update.
66139         * modules/findprog: Update.
66140         * modules/javacomp: Update.
66141         * modules/javaexec: Update.
66142         * MODULES.html.sh (File system functions): Add 'filename', remove
66143         'pathname'.
66144
66145 2007-02-25  Bruno Haible  <bruno@clisp.org>
66146
66147         * modules/printf-frexpl-tests: New file.
66148         * tests/test-printf-frexpl.c: New file.
66149
66150         * modules/printf-frexpl: New file.
66151         * lib/printf-frexpl.h: New file.
66152         * lib/printf-frexpl.c: New file.
66153         * m4/printf-frexpl.m4: New file.
66154
66155 2007-02-25  Bruno Haible  <bruno@clisp.org>
66156
66157         * modules/printf-frexp-tests: New file.
66158         * tests/test-printf-frexp.c: New file.
66159
66160         * modules/printf-frexp: New file.
66161         * lib/printf-frexp.h: New file.
66162         * lib/printf-frexp.c: New file.
66163         * m4/printf-frexp.m4: New file.
66164
66165 2007-02-25  Bruno Haible  <bruno@clisp.org>
66166
66167         Assume automake >= 1.10 for the tests.
66168         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
66169         * modules/arctwo-tests: Likewise.
66170         * modules/argp-tests: Likewise.
66171         * modules/avltree-list-tests: Likewise.
66172         * modules/avltree-oset-tests: Likewise.
66173         * modules/avltreehash-list-tests: Likewise.
66174         * modules/carray-list-tests: Likewise.
66175         * modules/crc-tests: Likewise.
66176         * modules/des-tests: Likewise.
66177         * modules/gc-arcfour-tests: Likewise.
66178         * modules/gc-arctwo-tests: Likewise.
66179         * modules/gc-des-tests: Likewise.
66180         * modules/gc-hmac-md5-tests: Likewise.
66181         * modules/gc-hmac-sha1-tests: Likewise.
66182         * modules/gc-md2-tests: Likewise.
66183         * modules/gc-md4-tests: Likewise.
66184         * modules/gc-md5-tests: Likewise.
66185         * modules/gc-pbkdf2-sha1-tests: Likewise.
66186         * modules/gc-rijndael-tests: Likewise.
66187         * modules/gc-sha1-tests: Likewise.
66188         * modules/gc-tests: Likewise.
66189         * modules/getaddrinfo-tests: Likewise.
66190         * modules/hmac-md5-tests: Likewise.
66191         * modules/hmac-sha1-tests: Likewise.
66192         * modules/linked-list-tests: Likewise.
66193         * modules/linkedhash-list-tests: Likewise.
66194         * modules/lock-tests: Likewise.
66195         * modules/md2-tests: Likewise.
66196         * modules/md4-tests: Likewise.
66197         * modules/md5-tests: Likewise.
66198         * modules/rbtree-list-tests: Likewise.
66199         * modules/rbtree-oset-tests: Likewise.
66200         * modules/rbtreehash-list-tests: Likewise.
66201         * modules/read-file-tests: Likewise.
66202         * modules/rijndael-tests: Likewise.
66203         * modules/stdint-tests: Likewise.
66204         * modules/tls-tests: Likewise.
66205
66206 2007-02-24  Bruno Haible  <bruno@clisp.org>
66207
66208         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
66209         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
66210         function; instead check whether isnan with a double argument links.
66211         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
66212         function; instead check whether isnan with a 'long double' argument
66213         links.
66214         Reported by Eric Blake <ebb9@byu.net>.
66215
66216 2007-02-24  Bruno Haible  <bruno@clisp.org>
66217
66218         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
66219         defined.
66220         * lib/isnanl.c: Remove all code. Just include isnan.c.
66221         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
66222
66223 2007-02-25  Jim Meyering  <jim@meyering.net>
66224
66225         Avoid conflicting types for 'unsetenv' on FreeBSD.
66226         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
66227         conflicting with FreeBSD's (5.0 and 6.1) function declaration
66228         in stdlib.h.
66229
66230 2007-02-24  Bruno Haible  <bruno@clisp.org>
66231
66232         * modules/isnanl-nolibm-tests: New file.
66233         * tests/test-isnanl.c: New file.
66234
66235         * modules/isnanl-nolibm: New file.
66236         * lib/isnanl.h: New file.
66237         * lib/isnanl.c: New file.
66238         * m4/isnanl.m4: New file.
66239
66240 2007-02-24  Bruno Haible  <bruno@clisp.org>
66241
66242         * modules/isnan-nolibm-tests: New file.
66243         * tests/test-isnan.c: New file.
66244
66245         * modules/isnan-nolibm: New file.
66246         * lib/isnan.h: New file.
66247         * lib/isnan.c: New file.
66248         * m4/isnan.m4: New file.
66249
66250 2007-02-24  Bruno Haible  <bruno@clisp.org>
66251
66252         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
66253         assume that an exponent fits in 20 bits.
66254
66255 2007-02-24  Jim Meyering  <jim@meyering.net>
66256
66257         * m4/regex.m4: Update the description of the configure-time option,
66258         --without-included-regex, to state accurately what the defaults are,
66259         and perhaps to give people an idea why using this option is risky.
66260
66261 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66262
66263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
66264         loops on small arguments.  This attempts to avoid the problem
66265         Bruno Haible reported for AIX 4.3.2 in
66266         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
66267
66268 2007-02-23  Bruno Haible  <bruno@clisp.org>
66269
66270         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
66271         Needed for help2man.
66272
66273 2007-02-23  Karl Berry  <karl@gnu.org>
66274
66275         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
66276         exists, foo.h should be cvs-ignored, not committed.
66277
66278 2007-02-23  Eric Blake  <ebb9@byu.net>
66279
66280         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
66281         * lib/stat-time.h (includes): Likewise.
66282         * lib/utimecmp.c (includes): Likewise.
66283         * lib/utimens.h (includes): Likewise.
66284         * lib/getdate.y (includes): Also include "timespec.h" for use
66285         internal to the module.
66286         * modules/utimens (Depends-on): Revert yesterday's patch.
66287         * modules/nanosleep (Depends-on): Add missing dependency.
66288
66289 2007-02-22  Bruno Haible  <bruno@clisp.org>
66290
66291         * lib/glob.c: Don't include getlogin_r.h.
66292
66293 2007-02-22  Jim Meyering  <jim@meyering.net>
66294
66295         * modules/utimens (Depends-on): Add timespec, required for
66296         utimens.h's inclusion of timespec.h.
66297
66298 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
66299
66300         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
66301         long unreadable paths in GNU/Linux.  Problem reported by Andreas
66302         Schwab in
66303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
66304         I'll try to think of a better way to fix the Solaris problem.
66305
66306         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
66307         like glibc; on Solaris 10, it fails with errno == EINVAL.
66308         POSIX says the behavior is unspecified if the first argument is NULL,
66309         so play it safe and never pass NULL to the system getcwd.
66310
66311 2007-02-21  Jim Meyering  <jim@meyering.net>
66312
66313         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
66314         of gettimeofday.  It would conflict with the one now always
66315         provided via sys_time_.h.  Reported by Matthew Woehlke, as
66316         an IRIX 6.5 build failure.
66317
66318 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         Minor fixups to port to Solaris 10 with Sun C 5.8.
66321         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
66322         * modules/getcwd (Depends-on): Add dirfd.
66323         * lib/putenv.c (putenv): #undef it.
66324         (rpl_putenv): New decl.
66325         (malloc, free): Include <stdlib.h> rather than prototyping separately.
66326
66327 2007-02-20  Bruno Haible  <bruno@clisp.org>
66328
66329         * modules/stdio-tests: New file.
66330         * tests/test-stdio.c: New file.
66331
66332         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
66333         (Depends-on): Add stdio.
66334         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66335         (Include): Use <stdio.h> instead of vsnprintf.h.
66336         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
66337         HAVE_DECL_VSNPRINTF.
66338         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
66339
66340         * modules/snprintf (Files): Remove lib/snprintf.h.
66341         (Depends-on): Add stdio.
66342         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66343         (Include): Use <stdio.h> instead of snprintf.h.
66344         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
66345         HAVE_DECL_SNPRINTF.
66346         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
66347         * lib/getaddrinfo.c: Likewise.
66348
66349         * modules/stdio: New file.
66350         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
66351         * lib/snprintf.h: Remove file.
66352         * lib/vsnprintf.h: Remove file.
66353         * lib/.cppi-disable: Remove snprintf.h.
66354         * m4/stdio_h.m4: New file.
66355         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
66356
66357 2007-02-20  Jim Meyering  <jim@meyering.net>
66358
66359         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
66360         used by e.g., mingw.  From Bruno Haible.
66361
66362 2007-02-19  Bruno Haible  <bruno@clisp.org>
66363
66364         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
66365         warnings.
66366         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66367
66368 2007-02-19  Bruno Haible  <bruno@clisp.org>
66369
66370         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
66371         from mingw users.
66372
66373 2007-02-19  Bruno Haible  <bruno@clisp.org>
66374
66375         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
66376         warnings.
66377         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
66378
66379 2007-02-19  Jim Meyering  <jim@meyering.net>
66380
66381         Don't use FD after a successful "fdopendir (fd)".
66382         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
66383         Reset it by calling dirfd on the just-obtained DIR*.
66384
66385         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
66386         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
66387
66388 2007-02-18  Bruno Haible  <bruno@clisp.org>
66389
66390         * lib/readlink.c: Include <unistd.h>.
66391         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
66392         HAVE_READLINK.
66393         * modules/readlink (Depends-on): Add unistd.
66394         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66395         (Include): Add <unistd.h>.
66396
66397         * lib/getlogin_r.h: Remove file.
66398         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
66399         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
66400         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
66401         HAVE_DECL_GETLOGIN_R.
66402         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
66403         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66404         (Include): Use <unistd.h> instead of getlogin_r.h.
66405
66406         * lib/getcwd.h: Remove file.
66407         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
66408         * lib/xgetcwd.c: Likewise.
66409         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
66410         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
66411         * modules/getcwd (Files): Remove lib/getcwd.h.
66412         (Depends-on): Add unistd.
66413         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66414         (Include): Use <unistd.h> instad of getcwd.h.
66415
66416         * lib/ftruncate.c: Include <unistd.h> first.
66417         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
66418         Set HAVE_FTRUNCATE.
66419         * modules/ftruncate (Depends-on): Add unistd.
66420         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66421
66422         * lib/fchdir.c: Include <unistd.h> first.
66423         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
66424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
66425         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
66426         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66427         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
66428
66429         * lib/dup2.c: Include <unistd.h> first.
66430         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
66431         HAVE_DUP2.
66432         * modules/dup2 (Depends-on): Add unistd.
66433         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66434
66435         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
66436         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
66437         REPLACE_CHOWN. Don't define chown as a macro here.
66438         * modules/chown (Depends-on): Add unistd.
66439         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66440
66441         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
66442         Add definition for GL_LINK_WARNING.
66443         (chown, dup2): New declarations.
66444         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
66445         link warning.
66446         (ftruncate): New declaration.
66447         (getcwd): New declaration, taken from old getcwd.h.
66448         (getlogin_r): New declaration, taken from old getlogin_r.h.
66449         (readlink): New declaration.
66450         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
66451         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
66452         (gl_PREREQ_UNISTD): Remove macro.
66453         (gl_UNISTD_MODULE_INDICATOR): New macro.
66454         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
66455         many new variables. Don't set UNISTD_H.
66456         * modules/unistd (Description): Change.
66457         (Depends-on): Add link-warning.
66458         (configure.ac): Update.
66459         (Makefile.am): Create unistd.h always. Substitute many new variables
66460         into it.
66461
66462 2007-02-18  Bruno Haible  <bruno@clisp.org>
66463
66464         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
66465         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
66466         HAVE_GETSUBOPT.
66467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
66468         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
66469         * lib/getsubopt.h: Remove file.
66470         * modules/getsubopt (Files): Remove lib/getsubopt.h.
66471         (Depends-on): Add stdlib.
66472         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66473         (Includes): Use <stdlib.h> instead of getsubopt.h.
66474         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
66475         Set HAVE_GETSUBOPT.
66476         * lib/getsubopt.c: Don't include getsubopt.h.
66477
66478 2007-02-18  Bruno Haible  <bruno@clisp.org>
66479
66480         * modules/fchdir (Depends-on): Add dup2.
66481
66482 2007-02-18  Bruno Haible  <bruno@clisp.org>
66483
66484         * lib/stdlib_.h: Handle glibc's special invocation convention
66485         specially.
66486
66487 2007-02-18  Bruno Haible  <bruno@clisp.org>
66488
66489         * modules/stdlib-tests: New file.
66490         * tests/test-stdlib.c: New file.
66491
66492         * modules/mkstemp (Files): Remove lib/mkstemp.h.
66493         (Depends-on): Add stdlib.
66494         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66495         (Includes): Use <stdlib.h> instead of mkstemp.h.
66496         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
66497         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
66498         * lib/mkstemp.c: Don't include mkstemp.h.
66499         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
66500         * lib/stdlib--.h: Don't include mkstemp.h.
66501
66502         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
66503         (Depends-on): Add stdlib.
66504         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66505         (Includes): Use <stdlib.h> instead of mkdtemp.h.
66506         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
66507         HAVE_MKDTEMP.
66508         * lib/mkdtemp.c: Don't include mkdtemp.h.
66509         * lib/clean-temp.c: Don't include mkdtemp.h.
66510
66511         * modules/exit (Files): Remove lib/exit.h.
66512         (Depends-on): Add stdlib.
66513         (Makefile.am): Remove lib_SOURCES.
66514         (Include): Use <stdlib.h> instead of exit.h.
66515         * lib/argmatch.c: Don't include exit.h.
66516         * lib/execute.c: Likewise.
66517         * lib/pagealign_alloc.c: Likewise.
66518         * lib/pipe.c: Likewise.
66519         * lib/wait-process.c: Likewise.
66520         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
66521         * lib/exitfail.c: Likewise.
66522         * lib/savewd.c: Likewise.
66523         * lib/xsetenv.c: Likewise.
66524
66525         * modules/stdlib: New file.
66526         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
66527         and extra comments about mkstemp().
66528         * lib/exit.h: Remove file.
66529         * lib/mkdtemp.h: Remove file.
66530         * lib/mkstemp.h: Remove file.
66531         * m4/stdlib_h.m4: New file.
66532         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
66533
66534 2007-02-18  Bruno Haible  <bruno@clisp.org>
66535
66536         * modules/math-tests: New file.
66537         * tests/test-math.c: New file.
66538
66539         * modules/math: New file.
66540         * modules/mathl (Files): Remove lib/mathl.h.
66541         (Depends-on): Add math.
66542         (Makefile.am): Don't mention mathl.h.
66543         (Include): Use <math.h> instead of mathl.h.
66544         * lib/math_.h: New file.
66545         * lib/mathl.h: Remove file.
66546         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
66547         mathl.h.
66548         * lib/asinl.c: Likewise.
66549         * lib/atanl.c: Likewise.
66550         * lib/ceill.c: Likewise.
66551         * lib/cosl.c: Likewise.
66552         * lib/expl.c: Likewise.
66553         * lib/floorl.c: Likewise.
66554         * lib/frexpl.c: Likewise.
66555         * lib/ldexpl.c: Likewise.
66556         * lib/logl.c: Likewise.
66557         * lib/sincosl.c: Likewise.
66558         * lib/sinl.c: Likewise.
66559         * lib/sqrtl.c: Likewise.
66560         * lib/tanl.c: Likewise.
66561         * lib/trigl.c: Likewise.
66562         * m4/math_h.m4: New file.
66563         * MODULES.html.sh (Mathematics): Add math.
66564
66565 2007-02-17  Bruno Haible  <bruno@clisp.org>
66566
66567         * modules/wctype-tests: New file.
66568         * tests/test-wctype.c: New file.
66569
66570         * modules/wchar-tests: New file.
66571         * tests/test-wchar.c: New file.
66572
66573         * modules/unistd-tests: New file.
66574         * tests/test-unistd.c: New file.
66575
66576         * modules/time-tests: New file.
66577         * tests/test-time.c: New file.
66578
66579         * modules/sysexits-tests: New file.
66580         * tests/test-sysexits.c: New file.
66581
66582         * modules/sys_time-tests: New file.
66583         * tests/test-sys_time.c: New file.
66584
66585         * modules/sys_stat-tests: New file.
66586         * tests/test-sys_stat.c: New file.
66587
66588         * modules/sys_socket-tests: New file.
66589         * tests/test-sys_socket.c: New file.
66590
66591         * modules/sys_select-tests: New file.
66592         * tests/test-sys_select.c: New file.
66593
66594         * modules/string-tests: New file.
66595         * tests/test-string.c: New file.
66596
66597         * modules/stdbool-tests: New file.
66598         * tests/test-stdbool.c: New file.
66599
66600         * modules/netinet_in-tests: New file.
66601         * tests/test-netinet_in.c: New file.
66602
66603         * modules/inttypes-tests: New file.
66604         * tests/test-inttypes.c: New file.
66605
66606         * modules/fcntl-tests: New file.
66607         * tests/test-fcntl.c: New file.
66608
66609         * modules/byteswap-tests: New file.
66610         * tests/test-byteswap.c: New file.
66611
66612         * modules/arpa_inet-tests: New file.
66613         * tests/test-arpa_inet.c: New file.
66614
66615 2007-02-17  Bruno Haible  <bruno@clisp.org>
66616
66617         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
66618         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
66619         if the corresponding module is not enabled. Emit link warnings if
66620         the function is used nevertheless.
66621         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
66622         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
66623         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
66624         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
66625         * modules/inttypes (Depends-on): Add link-warning.
66626         (Makefile.am): Copy the contents of build-aux/link-warning.h into
66627         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
66628         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
66629         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
66630         * modules/imaxdiv (configure.ac): Likewise.
66631         * modules/strtoimax (configure.ac): Likewise.
66632         * modules/strtoumax (configure.ac): Likewise.
66633
66634 2007-02-17  Bruno Haible  <bruno@clisp.org>
66635
66636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
66637         gl_STRING_MODULE_INDICATOR_DEFAULTS.
66638         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
66639         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
66640
66641 2007-02-17  Bruno Haible  <bruno@clisp.org>
66642
66643         * modules/link-warning: New file.
66644         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
66645         * lib/string_.h (GL_LINK_WARNING): Remove definition.
66646         * modules/string (Depends-on): Add link-warning.
66647         (Makefile.am): Copy the contents of build-aux/link-warning.h into
66648         string.h.
66649         * MODULES.html.sh (Support for building libraries and executables): Add
66650         link-warning.
66651
66652 2007-02-17  Bruno Haible  <bruno@clisp.org>
66653
66654         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
66655         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
66656         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
66657         long lines.
66658
66659 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
66660             Bruno Haible  <bruno@clisp.org>
66661
66662         * modules/tmpfile: New file.
66663         * lib/tmpfile.c: New file.
66664         * m4/tmpfile.m4: New file.
66665         * MODULES.html.sh (func_all_modules): New section "Input/output".
66666
66667 2007-02-15  Bruno Haible  <bruno@clisp.org>
66668
66669         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
66670         (supports_delete_on_close): New function.
66671         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
66672
66673 2007-02-14  Bruno Haible  <bruno@clisp.org>
66674
66675         * modules/mbspcasecmp-tests: New file.
66676         * tests/test-mbspcasecmp.sh: New file.
66677         * tests/test-mbspcasecmp.c: New file.
66678
66679         New module mbspcasecmp.
66680         * modules/mbspcasecmp: New file.
66681         * lib/mbspcasecmp.c: New file.
66682         * lib/string_.h (strncasecmp): Change warning message.
66683         (mbspcasecmp): New declaration.
66684         * m4/mbspcasecmp.m4: New file.
66685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66686         GNULIB_MBSPCASECMP.
66687         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
66688         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
66689
66690 2007-02-14  Bruno Haible  <bruno@clisp.org>
66691
66692         * modules/mbsncasecmp-tests: New file.
66693         * tests/test-mbsncasecmp.sh: New file.
66694         * tests/test-mbsncasecmp.c: New file.
66695
66696         New module mbsncasecmp.
66697         * modules/mbsncasecmp: New file.
66698         * lib/mbsncasecmp.c: New file.
66699         * lib/string_.h (mbsncasecmp): New declaration.
66700         * m4/mbsncasecmp.m4: New file.
66701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66702         GNULIB_MBSNCASECMP.
66703         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
66704         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
66705
66706 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66707
66708         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
66709         Verify that it doesn't overlap with our flags.
66710         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
66711         do not have the desired effect in multibyte locales; instead, use
66712         mbscasecmp.
66713         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
66714         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
66715         we don't require GNU fnmatch ourselves (if our users require it, they
66716         should do so explicitly).
66717
66718         Fix regex code so it doesn't rely on strcasecmp.
66719         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
66720         Otherwise, include gnulib's langinfo.h.
66721         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
66722         undesirable behavior in non-C locales.  Instead, rely on localecharset.
66723         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
66724         * modules/regex (FILES): Remove m4/codeset.m4.
66725         (Depends-on): Add localcharset.  Remove strcase.
66726
66727 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66728
66729         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
66730         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
66731
66732 2007-02-13  Bruno Haible  <bruno@clisp.org>
66733
66734         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
66735         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66736
66737 2007-02-12  Bruno Haible  <bruno@clisp.org>
66738
66739         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66740         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
66741         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
66742         time warning rather than a link error.
66743
66744 2007-02-12  Bruno Haible  <bruno@clisp.org>
66745
66746         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
66747         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66748         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66749
66750 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66751
66752         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
66753         args, not 2.
66754
66755 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
66756
66757         New module 'time', so that apps can include <time.h> as per
66758         POSIX and GNU instead of separate include files like time_r.h
66759         and timegm.h.  This implementation tries out a simpler approach
66760         for replacing decls in standard include files (as compared to
66761         the string module), somewhat as an experiment.
66762
66763         * config/srclist.txt: Comment out mktime.c for now.
66764         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
66765         since it doesn't apply any more.  Use generic wording instead.
66766         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
66767         'time'.
66768         * lib/time_.h, m4/time_h.m4, modules/time: New files.
66769         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
66770         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
66771         Don't include <sys/types.h>; no longer needed since we assume C89.
66772         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
66773         * lib/strftime.c: Likewise.
66774         * lib/time_r.c: Likewise.
66775         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
66776         * lib/nanosleep.c: Include <time.h> first, to check interface.
66777         * lib/strptime.c: Likewise.
66778         * lib/time_r.c: Likewise.
66779         * lib/timegm.c: Likewise.
66780         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
66781         needed.
66782         * lib/timegm.c: Don't include timegm.h; no longer needed.
66783         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
66784         time.h now handles any problems in that area.
66785         (struct timespec, nanosleep): Remove; time.h now arranges for these.
66786         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
66787         that time.h defines struct timespec.
66788         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
66789         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
66790         handles that.
66791         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
66792         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
66793         needed.  Set REPLACE_LOCALTIME.
66794         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
66795         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
66796         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
66797         nanosleep; time_h.m4 now does that.  Don't require
66798         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
66799         module handles this now.
66800         * modules/getdate (Depends-on): Remove timespec.  Add time.
66801         * modules/nanosleep (Depends-on): Likewise.
66802         * modules/stat-time (Depends-on): Likewise.
66803         * modules/nanosleep (Include): Include time.h, not timespec.h.
66804         * modules/strptime (Files): Remove lib/strptime.h.
66805         (Depends-on): Add extensions, time.
66806         (Include): Include time.h, not strptime.h.
66807         * modules/time_r (Files): Remove lib/time_r.h.
66808         (Depends-on): Add time.
66809         (Include): Include time.h, not time_r.h.
66810         * modules/timegm: Likewise.
66811         * modules/timespec (Description): Now does timespec-related decls
66812         of our own, instead of struct timespec itself.
66813         (Depends-on): Add time; remove extensions.
66814         (Maintainer): Add self.
66815         * modules/utimecmp (Depends-on): Add time; remove timespec.
66816         * modules/utimens (Depends-on): Likewise.
66817         * modules/xnanosleep (Depends-on): Likewise.
66818
66819 2007-02-11  Bruno Haible  <bruno@clisp.org>
66820
66821         * lib/c-strstr.c: Include allocsa.h.
66822         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66823         * lib/c-strcasestr.c: Include allocsa.h.
66824         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66825         * lib/strcasestr.c: Include allocsa.h.
66826         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
66827         * lib/mbsstr.c: Include allocsa.h.
66828         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66829         allocsa/freesa instead of malloc/free.
66830         * lib/mbscasestr.c: Include allocsa.h.
66831         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
66832         allocsa/freesa instead of malloc/free.
66833         * modules/c-strstr (Depends-on): Add allocsa.
66834         * modules/c-strcasestr (Depends-on): Likewise.
66835         * modules/strcasestr (Depends-on): Likewise.
66836         * modules/mbsstr (Depends-on): Likewise.
66837         * modules/mbscasestr (Depends-on): Likewise.
66838
66839 2007-02-11  Bruno Haible  <bruno@clisp.org>
66840
66841         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
66842
66843         * modules/mbsspn-tests: New file.
66844         * tests/test-mbsspn.sh: New file.
66845         * tests/test-mbsspn.c: New file.
66846
66847 2007-02-11  Bruno Haible  <bruno@clisp.org>
66848
66849         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
66850
66851         * modules/mbspbrk-tests: New file.
66852         * tests/test-mbspbrk.sh: New file.
66853         * tests/test-mbspbrk.c: New file.
66854
66855 2007-02-11  Bruno Haible  <bruno@clisp.org>
66856
66857         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
66858         unneeded cast.
66859
66860         * modules/mbscspn-tests: New file.
66861         * tests/test-mbscspn.sh: New file.
66862         * tests/test-mbscspn.c: New file.
66863
66864 2007-02-11  Bruno Haible  <bruno@clisp.org>
66865
66866         * modules/mbscasecmp-tests: New file.
66867         * tests/test-mbscasecmp.sh: New file.
66868         * tests/test-mbscasecmp.c: New file.
66869
66870 2007-02-11  Bruno Haible  <bruno@clisp.org>
66871
66872         Ensure O(n) worst-case complexity of mbscasestr.
66873         * lib/mbscasestr.c: Include stdbool.h.
66874         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66875         functions.
66876         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
66877         the bookkeeping indicates that it's worth it.
66878         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
66879
66880         * modules/mbscasestr-tests: New file.
66881         * tests/test-mbscasestr1.c: New file.
66882         * tests/test-mbscasestr2.sh: New file.
66883         * tests/test-mbscasestr2.c: New file.
66884         * tests/test-mbscasestr3.sh: New file.
66885         * tests/test-mbscasestr3.c: New file.
66886         * tests/test-mbscasestr4.sh: New file.
66887         * tests/test-mbscasestr4.c: New file.
66888         * m4/locale-tr.m4: New file.
66889
66890 2007-02-11  Bruno Haible  <bruno@clisp.org>
66891
66892         Ensure O(n) worst-case complexity of mbsstr.
66893         * lib/mbsstr.c: Include stdbool.h.
66894         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
66895         functions.
66896         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
66897         bookkeeping indicates that it's worth it.
66898         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
66899
66900         * modules/mbsstr-tests: New file.
66901         * tests/test-mbsstr1.c: New file.
66902         * tests/test-mbsstr2.sh: New file.
66903         * tests/test-mbsstr2.c: New file.
66904         * tests/test-mbsstr3.sh: New file.
66905         * tests/test-mbsstr3.c: New file.
66906         * m4/locale-fr.m4: New file.
66907
66908 2007-02-11  Bruno Haible  <bruno@clisp.org>
66909
66910         * lib/mbsrchr.c (mbsrchr): Fix bug.
66911
66912         * modules/mbsrchr-tests: New file.
66913         * tests/test-mbsrchr.sh: New file.
66914         * tests/test-mbsrchr.c: New file.
66915
66916 2007-02-11  Bruno Haible  <bruno@clisp.org>
66917
66918         * lib/mbschr.c (mbschr): Fix bug.
66919
66920         * modules/mbschr-tests: New file.
66921         * tests/test-mbschr.sh: New file.
66922         * tests/test-mbschr.c: New file.
66923         * m4/locale-zh.m4: New file.
66924
66925 2007-02-11  Bruno Haible  <bruno@clisp.org>
66926
66927         Support for copying multibyte string iterators.
66928         * lib/mbiter.h: Include <string.h>.
66929         (mbiter_multi_copy): New function.
66930         (mbi_copy): New macro.
66931         * lib/mbuiter.h: Include <string.h>.
66932         (mbuiter_multi_copy): New function.
66933         (mbui_copy): New macro.
66934
66935 2007-02-11  Bruno Haible  <bruno@clisp.org>
66936
66937         New module mbslen.
66938         * modules/mbslen: New file.
66939         * lib/mbslen.c: New file.
66940         * lib/string_.h (mbslen): New declaration.
66941         * m4/mbslen.m4: New file.
66942         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66943         GNULIB_MBSLEN.
66944         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
66945         * MODULES.html.sh (Internationalization functions): Add mbslen.
66946
66947 2007-02-11  Bruno Haible  <bruno@clisp.org>
66948
66949         Ensure O(n) worst-case complexity of strcasestr substitute.
66950         * lib/strcasestr.c: Include stdbool.h.
66951         (knuth_morris_pratt): New function.
66952         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66953         bookkeeping indicates that it's worth it.
66954         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
66955
66956         * modules/strcasestr-tests: New file.
66957         * tests/test-strcasestr.c: New file.
66958
66959 2007-02-11  Bruno Haible  <bruno@clisp.org>
66960
66961         Ensure O(n) worst-case complexity of c_strcasestr.
66962         * lib/c-strcasestr.c: Include stdbool.h, string.h.
66963         (knuth_morris_pratt): New function.
66964         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
66965         the bookkeeping indicates that it's worth it.
66966         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
66967
66968         * modules/c-strcasestr-tests: New file.
66969         * tests/test-c-strcasestr.c: New file.
66970
66971 2007-02-11  Bruno Haible  <bruno@clisp.org>
66972
66973         Ensure O(n) worst-case complexity of c_strstr.
66974         * lib/c-strstr.c: Include stdbool.h, string.h.
66975         (knuth_morris_pratt): New function.
66976         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
66977         bookkeeping indicates that it's worth it.
66978         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
66979
66980         * lib/c-strstr.c: Complete rewrite for maintainability.
66981
66982         * modules/c-strstr-tests: New file.
66983         * tests/test-c-strstr.c: New file.
66984
66985 2007-02-11  Bruno Haible  <bruno@clisp.org>
66986
66987         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
66988         5.2.1 and earlier, whereby \055 was treated just like the range
66989         delimiter '-'.
66990         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66991
66992 2007-02-08  Bruno Haible  <bruno@clisp.org>
66993
66994         * modules/regex (Depends-on): Add stdbool.
66995         Reported by Dalibor Topic <robilad@kaffe.org>.
66996
66997 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66998
66999         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
67000         Prefer returning from main to exiting from it.
67001         Remove unnecessary parens after sizeof.
67002
67003 2007-02-05  Bruno Haible  <bruno@clisp.org>
67004
67005         New module mbssep.
67006         * modules/mbssep: New file.
67007         * lib/mbssep.c: New file.
67008         * lib/string_.h (strsep): Add a conditional link warning.
67009         (mbssep): New declaration.
67010         * m4/mbssep.m4: New file.
67011         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67012         GNULIB_MBSSEP.
67013         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
67014         * MODULES.html.sh (Internationalization functions): Add mbssep.
67015
67016 2007-02-05  Bruno Haible  <bruno@clisp.org>
67017
67018         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
67019         Optimize search in case of 1 delimiter.
67020
67021 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67022
67023         * lib/acl.h: Include sys/types.h before sys/acl.h.
67024
67025 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67026
67027         Merge upstream fix for glibc bugzilla #3957:
67028
67029         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
67030
67031         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
67032         bit for RE_HAT_LISTS_NOT_NEWLINE.
67033         (build_charclass_op): Remove bogus comment.
67034
67035 2007-02-05  Simon Josefsson  <simon@josefsson.org>
67036
67037         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
67038
67039 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67040
67041         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
67042         * lib/memmem.c [!defined _LIBC]: Include config.h.
67043
67044 2007-02-04  Bruno Haible  <bruno@clisp.org>
67045
67046         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
67047         warning message.
67048
67049 2007-02-04  Bruno Haible  <bruno@clisp.org>
67050
67051         New module mbstok_r.
67052         * modules/mbstok_r: New file.
67053         * lib/mbstok_r.c: New file.
67054         * lib/string_.h (strtok_r): Change argument names to match the
67055         comments. Add a conditional link warning.
67056         (mbstok_r): New declaration.
67057         * m4/mbstok_r.m4: New file.
67058         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67059         GNULIB_MBSTOK_R.
67060         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
67061         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
67062
67063 2007-02-04  Bruno Haible  <bruno@clisp.org>
67064
67065         New module mbsspn.
67066         * modules/mbsspn: New file.
67067         * lib/mbsspn.c: New file.
67068         * lib/string_.h (strspn): Add a conditional link warning.
67069         (mbsspn): New declaration.
67070         * m4/mbsspn.m4: New file.
67071         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67072         GNULIB_MBSSPN.
67073         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
67074         * MODULES.html.sh (Internationalization functions): Add mbsspn.
67075
67076 2007-02-04  Bruno Haible  <bruno@clisp.org>
67077
67078         New module mbspbrk.
67079         * modules/mbspbrk: New file.
67080         * lib/mbspbrk.c: New file.
67081         * lib/string_.h (strpbrk): Add a conditional link warning.
67082         (mbspbrk): New declaration.
67083         * m4/mbspbrk.m4: New file.
67084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67085         GNULIB_MBSPBRK.
67086         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
67087         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
67088
67089 2007-02-04  Bruno Haible  <bruno@clisp.org>
67090
67091         New module mbscspn.
67092         * modules/mbscspn: New file.
67093         * lib/mbscspn.c: New file.
67094         * lib/string_.h (strcspn): Add a conditional link warning.
67095         (mbscspn): New declaration.
67096         * m4/mbscspn.m4: New file.
67097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67098         GNULIB_MBSCSPN.
67099         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
67100         * MODULES.html.sh (Internationalization functions): Add mbscspn.
67101
67102 2007-02-04  Bruno Haible  <bruno@clisp.org>
67103
67104         New module mbscasestr, reduced goal of strcasestr.
67105         * modules/mbscasestr: New file.
67106         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
67107         (mbscasestr): Renamed from strcasestr.
67108         * lib/strcasestr.c: Don't include mbuiter.h.
67109         (strcasestr): Remove support for multibyte locales.
67110         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
67111         Change the conditional link warning.
67112         (mbscasestr): New declaration.
67113         * m4/mbscasestr.m4: New file.
67114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
67115         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
67116         REPLACE_STRCASESTR.
67117         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
67118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67119         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67120         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
67121         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
67122         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67123         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
67124         (Depends-on): Remove mbuiter.
67125         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
67126
67127 2007-02-04  Bruno Haible  <bruno@clisp.org>
67128
67129         Simplify handling of strncasecmp.
67130         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
67131         the conditional link warning.
67132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67133         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
67134         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
67135         * modules/strcase (configure.ac): Don't invoke
67136         gl_STRING_MODULE_INDICATOR.
67137         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
67138
67139 2007-02-04  Bruno Haible  <bruno@clisp.org>
67140
67141         New module mbscasecmp, reduced goal of strcasecmp.
67142         * modules/mbscasecmp: New file.
67143         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
67144         (mbscasecmp): Renamed from strcasecmp.
67145         * lib/strcasecmp.c: Don't include mbuiter.h.
67146         (strcasecmp): Remove support for multibyte locales.
67147         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
67148         Change the conditional link warning.
67149         (mbscasecmp): New declaration.
67150         * m4/mbscasecmp.m4: New file.
67151         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
67152         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
67153         REPLACE_STRCASECMP.
67154         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
67155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67156         GNULIB_MBSCASECMP.
67157         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
67158         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
67159         * modules/strcase (Files): Remove m4/mbrtowc.m4.
67160         (Depends-on): Remove mbuiter.
67161         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
67162
67163 2007-02-04  Bruno Haible  <bruno@clisp.org>
67164
67165         New module mbsstr. Remove module strstr.
67166         * modules/mbsstr: New file.
67167         * modules/strstr: Remove file.
67168         * lib/mbsstr.c: Renamed from lib/strstr.c.
67169         (mbsstr): Renamed from strstr.
67170         * lib/string_.h (strstr): Remove declaration. Change the conditional
67171         link warning.
67172         (mbsstr): New declaration.
67173         * m4/mbsstr.m4: New file.
67174         * m4/strstr.m4: Remove file.
67175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
67176         REPLACE_STRSTR.
67177         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
67178         Don't initialize GNULIB_STRSTR.
67179         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
67180         substitute GNULIB_STRSTR and REPLACE_STRSTR.
67181         * MODULES.html.sh (Internationalization functions): Add mbsstr.
67182         (Support for systems lacking ANSI C 89): Remove strstr.
67183
67184 2007-02-04  Bruno Haible  <bruno@clisp.org>
67185
67186         New module mbsrchr.
67187         * modules/mbsrchr: New file.
67188         * lib/mbsrchr.c: New file.
67189         * lib/string_.h (strrchr): Add a conditional link warning.
67190         (mbsrchr): New declaration.
67191         * m4/mbsrchr.m4: New file.
67192         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67193         GNULIB_MBSRCHR.
67194         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
67195         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
67196
67197 2007-02-04  Bruno Haible  <bruno@clisp.org>
67198
67199         New module mbschr.
67200         * modules/mbschr: New file.
67201         * lib/mbschr.c: New file.
67202         * lib/string_.h (strchr): Add a conditional link warning.
67203         (mbschr): New declaration.
67204         * m4/mbschr.m4: New file.
67205         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67206         GNULIB_MBSCHR.
67207         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
67208         * MODULES.html.sh (Internationalization functions): Add mbschr.
67209
67210 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67211
67212         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
67213
67214         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
67215
67216 2007-02-04  Bruno Haible  <bruno@clisp.org>
67217
67218         New module description section 'configure.ac-early'.
67219         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
67220         (func_get_autoconf_early_snippet): New function.
67221         (func_import, func_create_testdir): Use it. Remove special cases for
67222         modules 'extensions' and 'lock'.
67223         * modules/extensions (configure.ac-early): Require
67224         gl_USE_SYSTEM_EXTENSIONS.
67225         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
67226
67227 2007-02-04  Bruno Haible  <bruno@clisp.org>
67228
67229         Make use of gcj-4.3's -fsource and -ftarget option.
67230         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
67231         and if so try the options -fsource and -ftarget.
67232         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
67233         source_version, ftarget_option, target_version arguments.
67234         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
67235         (is_envjavac_oldgcj_14_14_usable): Renamed from
67236         is_envjavac_gcj_14_14_usable.
67237         (is_envjavac_oldgcj_14_13_usable): Renamed from
67238         is_envjavac_gcj_14_13_usable.
67239         (is_gcj_present): Update.
67240         (is_gcj_43, is_gcj43_usable): New functions.
67241         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
67242         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
67243         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
67244         try the options -fsource and -ftarget.
67245
67246 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67247
67248         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
67249         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
67250         larger value.
67251
67252 2007-02-03  Jim Meyering  <jim@meyering.net>
67253
67254         Give tools a better chance to allocate space for very large buffers.
67255         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
67256
67257         Make pwd and readlink work also when run with an unreadable parent dir
67258         on systems with openat support.
67259         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
67260         provided getcwd function, even when we have openat support.
67261         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
67262
67263 2007-02-02  Bruno Haible  <bruno@clisp.org>
67264
67265         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67266         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
67267         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
67268         portability problems if one of these functions is only used on specific
67269         platforms.
67270         Reported by Paul Eggert.
67271
67272 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
67273
67274         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
67275         is causing more trouble than it's curing.
67276         * lib/regex_internal.h (__mempcpy): Remove.
67277         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
67278         (and make the code a tad smaller to boot).
67279         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
67280
67281 2007-02-02  Jim Meyering  <jim@meyering.net>
67282
67283         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
67284         section, not in the Makefile.am: one.
67285
67286 2007-02-02  Eric Blake  <ebb9@byu.net>
67287
67288         * lib/strchrnul.c: Always include config.h first.
67289
67290         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
67291         gnulib strstr is not necessary here.
67292
67293 2007-02-02  Simon Josefsson  <simon@josefsson.org>
67294
67295         * m4/socklen.m4: Fix typo.
67296
67297 2007-02-02  Eric Blake  <ebb9@byu.net>
67298
67299         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
67300         * modules/netinet_in (Makefile.am): Likewise.
67301
67302 2007-02-01  Bruno Haible  <bruno@clisp.org>
67303
67304         * lib/string_.h (GL_LINK_WARNING): New macro.
67305         (strcasecmp, strstr, strcasestr): If provided by the system,
67306         conditionally define as a macro that leads to a warning instead of to
67307         an error.
67308         (strncasecmp): Conditionally define as a macro that leads to a warning.
67309
67310 2007-02-01  Karl Berry  <karl@gnu.org>
67311
67312         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
67313
67314 2007-02-01  Bruno Haible  <bruno@clisp.org>
67315
67316         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
67317         renamings.
67318
67319 2007-02-01  Eric Blake  <ebb9@byu.net>
67320
67321         * modules/regex (Depends-on): Revert dependence on mempcpy.
67322         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
67323         module's definition of mempcpy.
67324         Reported by Paul Eggert.
67325
67326 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67327
67328         * lib/string_.h: If the gnulib module XYZ is not present, undefine
67329         the symbol XYZ before redefining it.  This fixes a problem with
67330         programs that don't use XYZ, when compiled on systems that define
67331         XYZ to something else.
67332
67333 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
67334
67335         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
67336         occurs when "mkdir -m foo" creates a setgid directory that is (1)
67337         writeable to group or other and (2) is intended to have a special
67338         mode bit that is set or cleared.  In such a case, the directory
67339         should be neither group- nor other-writeable until the special
67340         mode bits are right.
67341
67342 2007-01-31  Eric Blake  <ebb9@byu.net>
67343
67344         * modules/mountlist (Depends-on): Add strstr.
67345
67346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
67347         bug.
67348         * modules/string (Makefile.am): Remove redundant replacement.
67349         * modules/regex (Depends-on): Add mempcpy.
67350
67351 2007-01-31  Bruno Haible  <bruno@clisp.org>
67352
67353         New module description field 'Link'.
67354         * gnulib-tool (func_usage): Document --extract-link-directive.
67355         (sed_extract_prog): Recognize 'Link' directive.
67356         (func_get_link_directive): New function.
67357         (func_import): Show summary of link directives.
67358         Handle --extract-link-directive option.
67359         * modules/acl (Link): New section.
67360         * modules/clock-time (Link): New section.
67361         * modules/euidaccess (Link): New section.
67362         * modules/gettext (Link): New section.
67363         * modules/iconv (Link): New section.
67364         * modules/lock (Link): New section.
67365         * modules/nanosleep (Link): New section.
67366         * modules/readline (Link): New section.
67367
67368 2007-01-27  Bruno Haible  <bruno@clisp.org>
67369
67370         Enforce the use of gnulib modules for unportable <string.h> functions.
67371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
67372         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
67373         (gl_HEADER_STRING_H_BODY): Require it.
67374         * lib/string_.h: If the gnulib module XYZ is not present, redefine
67375         the symbol XYZ to one that gives a link error.
67376         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
67377         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
67378         * modules/mempcpy (configure.ac): Likewise.
67379         * modules/memrchr (configure.ac): Likewise.
67380         * modules/stpcpy (configure.ac): Likewise.
67381         * modules/stpncpy (configure.ac): Likewise.
67382         * modules/strcase (configure.ac): Likewise.
67383         * modules/strcasestr (configure.ac): Likewise.
67384         * modules/strchrnul (configure.ac): Likewise.
67385         * modules/strdup (configure.ac): Likewise.
67386         * modules/strndup (configure.ac): Likewise.
67387         * modules/strnlen (configure.ac): Likewise.
67388         * modules/strpbrk (configure.ac): Likewise.
67389         * modules/strsep (configure.ac): Likewise.
67390         * modules/strstr (configure.ac): Likewise.
67391         * modules/strtok_r (configure.ac): Likewise.
67392
67393 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
67394
67395         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
67396
67397 2007-01-30  Jim Meyering  <jim@meyering.net>
67398
67399         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
67400
67401 2007-01-29  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
67404         * lib/execute.c: Likewise.
67405         * lib/pipe.c: Likewise.
67406         * lib/printf-args.h: Likewise.
67407         * lib/printf-args.c: Likewise.
67408         * lib/printf-parse.c: Likewise.
67409         * lib/vasnprintf.c: Likewise.
67410
67411 2007-01-29  Eric Blake  <ebb9@byu.net>
67412
67413         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
67414         declaration.
67415
67416 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
67417
67418         * lib/strptime.h (strptime): Use 'restrict' for args where
67419         POSIX requires this.
67420         * lib/strptime.c (strptime): Likewise.
67421         Change license notice from LGPL to GPL, since gnulib-tool will
67422         change this as needed.
67423         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
67424         defined.
67425         Include "strptime.h" first, to check interface.
67426         Do not #undef _LIBC and _NL_CURRENT.
67427         Do not include <stdlib.h>; no longer needed.
67428         Include "time_r.h" and declare ptime_locale_status
67429         only if _LIBC is not defined.
67430         (__P): Remove unused macro.
67431         (match_string): Bring back glibc version, but use it only if _LIBC
67432         is defined.
67433         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
67434         Remove unnecessary assertion and abort() call.
67435         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
67436         * m4/strptime.m4: Fix serial number comment.
67437         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
67438         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
67439         (Depends-on): Add time_r.
67440
67441 2007-01-29  Bruno Haible  <bruno@clisp.org>
67442
67443         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67444         strptime.
67445         * modules/strptime (Depends-on): Add stdbool.
67446         * lib/strptime.h: Include <time.h> always. Add comments.
67447
67448 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67449
67450         * modules/strptime: New file.
67451         * lib/strptime.h: New file.
67452         * lib/strptime.c: New file.
67453         * m4/strptime.m4: New file.
67454
67455 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67456
67457         * MODULES.html.sh: New module mpsort.
67458         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
67459
67460         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
67461         a circularity problem with HP-UX ia64 reported by Bob Proulx in
67462         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
67463         All uses changed.
67464         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
67465         All uses changed.
67466         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
67467         to _Restrict_.
67468         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
67469         the parameter matches the prototype.
67470
67471 2007-01-28  Jim Meyering  <jim@meyering.net>
67472
67473         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
67474         sys/time.h here, reverting that part of the previous patch:
67475         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
67476
67477 2007-01-28  Bruno Haible  <bruno@clisp.org>
67478
67479         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
67480         value of $(SYS_TIME_H).
67481         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
67482         remove it conditionally, too. [added by Jim Meyering]
67483         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
67484         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67485         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
67486         GETTIMEOFDAY_REPLACEMENT to 1.
67487
67488 2007-01-28  Bruno Haible  <bruno@clisp.org>
67489
67490         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
67491         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
67492         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
67493         Set UNISTD_H instead of UNISTD_H2.
67494         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
67495
67496 2007-01-28  Bruno Haible  <bruno@clisp.org>
67497
67498         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
67499         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
67500
67501 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67502
67503         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
67504         (func_create_testdir): Ensure C locale for `grep' and `tr'
67505         character ranges.
67506         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
67507         ACLOCAL_AMFLAGS parsing state machine.
67508
67509 2007-01-27  Bruno Haible  <bruno@clisp.org>
67510
67511         * modules/unistr/base: Update.
67512
67513 2007-01-27  Bruno Haible  <bruno@clisp.org>
67514
67515         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
67516         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
67517         * modules/unistr/u32-mbtouc-unsafe: Renamed from
67518         modules/unistr/u32-mbtouc.
67519         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
67520         * lib/unistr.h: Update.
67521         * lib/linebreak.c: Update.
67522         * modules/unistr/u32-mbtouc: Renamed from
67523         modules/unistr/u32-mbtouc-safe.
67524         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
67525         * lib/unistr.h: Update.
67526         * lib/unistr/u32-to-u8.c: Update.
67527         * lib/unistr/u32-to-u16.c: Update.
67528
67529 2007-01-27  Bruno Haible  <bruno@clisp.org>
67530
67531         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
67532         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
67533         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
67534         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
67535         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
67536         * modules/unistr/u16-mbtouc-unsafe: Renamed from
67537         modules/unistr/u16-mbtouc.
67538         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
67539         * lib/unistr.h: Update.
67540         * lib/linebreak.c: Update.
67541         * modules/linebreak: Update.
67542         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
67543         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
67544         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
67545         * modules/unistr/u16-mbtouc: Renamed from
67546         modules/unistr/u16-mbtouc-safe.
67547         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
67548         * lib/unistr.h: Update.
67549         * lib/unistr/u16-to-u8.c: Update.
67550         * modules/unistr/u16-to-u8: Update.
67551         * lib/unistr/u16-to-u32.c: Update.
67552         * modules/unistr/u16-to-u32: Update.
67553
67554 2007-01-27  Bruno Haible  <bruno@clisp.org>
67555
67556         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
67557         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
67558         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
67559         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
67560         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
67561         * modules/unistr/u8-mbtouc-unsafe: Renamed from
67562         modules/unistr/u8-mbtouc.
67563         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
67564         * lib/unistr.h: Update.
67565         * lib/striconveh.c: Update.
67566         * modules/striconveh: Update.
67567         * lib/linebreak.c: Update.
67568         * modules/linebreak: Update.
67569         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
67570         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
67571         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
67572         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
67573         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
67574         * lib/unistr.h: Update.
67575         * lib/striconveh.c: Update.
67576         * modules/striconveh: Update.
67577         * lib/unistr/u8-to-u16.c: Update.
67578         * modules/unistr/u8-to-u16: Update.
67579         * lib/unistr/u8-to-u32.c: Update.
67580         * modules/unistr/u8-to-u32: Update.
67581
67582 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67583
67584         Sync from Libtool.
67585         * lib/argz.c: Do not include strings.h nor memory.h, include
67586         string.h unconditionally.  Patch by Simon Josefsson.
67587
67588 2007-01-27  Bruno Haible  <bruno@clisp.org>
67589
67590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
67591         from gl_HEADER_STRING_H_BODY.
67592         (gl_HEADER_STRING_H_BODY): Require it.
67593         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
67594         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67595         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67596         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67597         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67598         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
67599         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
67600         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67601         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
67602         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67603         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67604         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
67605         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67606         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
67607         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67608
67609 2007-01-27  Bruno Haible  <bruno@clisp.org>
67610
67611         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
67612         check_PROGRAMS into noinst_PROGRAMS.
67613         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
67614         check_PROGRAMS in this case.
67615         (func_import): Set for_test to false.
67616         (func_create_testdir): Set for_test to true.
67617
67618 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67619             Bruno Haible  <bruno@clisp.org>
67620
67621         * modules/strcasestr (Files): Remove lib/strcasestr.h.
67622         (Depends-on): Add string.
67623         (Includes): Use <string.h> instead of strcasestr.h.
67624         * modules/string (Makefile.am): Also substitute the value of
67625         REPLACE_STRCASESTR.
67626         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
67627         assume strcasestr is declared in <string.h> not <strings.h>. Also
67628         set REPLACE_STRCASESTR.
67629         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
67630         REPLACE_STRCASESTR.
67631         * lib/strcasestr.h: Remove file.
67632         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
67633         * lib/string_.h (strcasestr): New declaration.
67634
67635 2007-01-27  Bruno Haible  <bruno@clisp.org>
67636
67637         * lib/string_.h: Use 'extern'.
67638
67639 2007-01-27  Jim Meyering  <jim@meyering.net>
67640
67641         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
67642         of set-but-not-used local, "q".
67643
67644         * lib/mempcpy.c: Include <config.h> before <string.h>.
67645         This fixes a compilation error on HP-UX, due to the system's
67646         "restrict"-using mempcpy prototype.
67647
67648 2007-01-26  Bruno Haible  <bruno@clisp.org>
67649
67650         Small optimization.
67651         * lib/javacomp.c: Include c-strstr.h.
67652          (is_envjavac_gcj): Use c_strstr instead of strstr.
67653         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
67654
67655 2007-01-26  Bruno Haible  <bruno@clisp.org>
67656
67657         * MODULES.html.sh (Unicode string functions): Add the new modules.
67658
67659         * modules/uniconv/u32-strconv-to-locale: New file.
67660         * lib/uniconv/u32-strconv-to-locale.c: New file.
67661
67662         * modules/uniconv/u16-strconv-to-locale: New file.
67663         * lib/uniconv/u16-strconv-to-locale.c: New file.
67664
67665         * modules/uniconv/u8-strconv-to-locale: New file.
67666         * lib/uniconv/u8-strconv-to-locale.c: New file.
67667
67668         * modules/uniconv/u32-strconv-from-locale: New file.
67669         * lib/uniconv/u32-strconv-from-locale.c: New file.
67670
67671         * modules/uniconv/u16-strconv-from-locale: New file.
67672         * lib/uniconv/u16-strconv-from-locale.c: New file.
67673
67674         * modules/uniconv/u8-strconv-from-locale: New file.
67675         * lib/uniconv/u8-strconv-from-locale.c: New file.
67676
67677         * modules/uniconv/u32-strconv-to-enc: New file.
67678         * lib/uniconv/u32-strconv-to-enc.c: New file.
67679         * modules/uniconv/u32-strconv-to-enc-tests: New file.
67680         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
67681
67682         * modules/uniconv/u16-strconv-to-enc: New file.
67683         * lib/uniconv/u16-strconv-to-enc.c: New file.
67684         * lib/uniconv/u-strconv-to-enc.h: New file.
67685         * modules/uniconv/u16-strconv-to-enc-tests: New file.
67686         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
67687
67688         * modules/uniconv/u8-strconv-to-enc: New file.
67689         * lib/uniconv/u8-strconv-to-enc.c: New file.
67690         * modules/uniconv/u8-strconv-to-enc-tests: New file.
67691         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
67692
67693         * modules/uniconv/u32-strconv-from-enc: New file.
67694         * lib/uniconv/u32-strconv-from-enc.c: New file.
67695         * modules/uniconv/u32-strconv-from-enc-tests: New file.
67696         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
67697
67698         * modules/uniconv/u16-strconv-from-enc: New file.
67699         * lib/uniconv/u16-strconv-from-enc.c: New file.
67700         * modules/uniconv/u16-strconv-from-enc-tests: New file.
67701         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
67702
67703         * modules/uniconv/u8-strconv-from-enc: New file.
67704         * lib/uniconv/u8-strconv-from-enc.c: New file.
67705         * lib/uniconv/u-strconv-from-enc.h: New file.
67706         * modules/uniconv/u8-strconv-from-enc-tests: New file.
67707         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
67708
67709         * modules/uniconv/u32-conv-from-enc: New file.
67710         * lib/uniconv/u32-conv-from-enc.c: New file.
67711         * modules/uniconv/u32-conv-from-enc-tests: New file.
67712         * tests/uniconv/test-u32-conv-from-enc.c: New file.
67713
67714         * modules/uniconv/u16-conv-from-enc: New file.
67715         * lib/uniconv/u16-conv-from-enc.c: New file.
67716         * lib/uniconv/u-conv-from-enc.h: New file.
67717         * modules/uniconv/u16-conv-from-enc-tests: New file.
67718         * tests/uniconv/test-u16-conv-from-enc.c: New file.
67719
67720         * modules/uniconv/u8-conv-from-enc: New file.
67721         * lib/uniconv/u8-conv-from-enc.c: New file.
67722         * modules/uniconv/u8-conv-from-enc-tests: New file.
67723         * tests/uniconv/test-u8-conv-from-enc.c: New file.
67724
67725         * modules/uniconv/base: New file.
67726         * lib/uniconv.h: New file.
67727
67728 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         * doc/gnulib-tool.texi (Initial import): Update to match current
67731         behavior with strdup module.
67732         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
67733         * lib/memmem.h: Remove; all uses removed.  This is now done
67734         by <string.h>.
67735         * lib/mempcpy.h: Likewise.
67736         * lib/memrchr.h: Likewise.
67737         * lib/stpcpy.h: Likewise.
67738         * lib/stpncpy.h: Likewise.
67739         * lib/strcase.h: Likewise.
67740         * lib/strchrnul.h: Likewise.
67741         * lib/strdup.h: Likewise.
67742         * lib/strndup.h: Likewise.
67743         * lib/strnlen.h: Likewise.
67744         * lib/strpbrk.h: Likewise.
67745         * lib/strsep.h: Likewise.
67746         * lib/strstr.h: Likewise.
67747         * lib/strtok_r.h: Likewise.
67748         * lib/string_.h: New file.
67749         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
67750         Rely on <string.h> instead.
67751         * lib/canon-host.c: Likewise.
67752         * lib/chdir-long.c: Likewise.
67753         * lib/concatpath.c: Likewise.
67754         * lib/exclude.c: Likewise.
67755         * lib/fchdir.c: Likewise.
67756         * lib/getaddrinfo.c: Likewise.
67757         * lib/getcwd.c: Likewise.
67758         * lib/getsubopt.c: Likewise.
67759         * lib/glob.c: Likewise.
67760         * lib/hard-locale.c: Likewise.
67761         * lib/iconvme.c: Likewise.
67762         * lib/javacomp.c: Likewise.
67763         * lib/mempcpy.c: Likewise.
67764         * lib/memrchr.c: Likewise.
67765         * lib/regex_internal.h: Likewise.
67766         * lib/stpncpy.c: Likewise.
67767         * lib/strcasecmp.c: Likewise.
67768         * lib/strchrnul.c: Likewise.
67769         * lib/strdup.c: Likewise.
67770         * lib/striconv.c: Likewise.
67771         * lib/striconveh.c: Likewise.
67772         * lib/striconveha.c: Likewise.
67773         * lib/strncasecmp.c: Likewise.
67774         * lib/strndup.c: Likewise.
67775         * lib/strnlen.c: Likewise.
67776         * lib/strsep.c: Likewise.
67777         * lib/strstr.c: Likewise.
67778         * lib/strtok_r.c: Likewise.
67779         * lib/userspec.c: Likewise.
67780         * lib/w32spawn.h: Likewise.
67781         * lib/xstrndup.c: Likewise.
67782         * lib/mountlist.c (strstr): Remove decl.
67783         * m4/string_h.m4: New file.
67784         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
67785         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
67786         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
67787         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
67788         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
67789         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
67790         Set REPLACE_STRCASECMP if necessary.
67791         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
67792         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
67793         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
67794         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
67795         HAVE_DECL_STRDUP if necessary.
67796         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
67797         since gl_FUNC_STRNDUP does that now.
67798         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
67799         Check for decl here...
67800         (gl_PREREQ_STRNLEN): ... not here.
67801         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
67802         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
67803         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
67804         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
67805         necessary.
67806         * modules/string: New file.
67807         * modules/memmem (Files): Remove special-purpose include file.
67808         (Depends-on): Add string.
67809         (Include): Include <string.h>, not the removed file.
67810         * modules/mempcpy: Likewise.
67811         * modules/memrchr: Likewise.
67812         * modules/stpcpy: Likewise.
67813         * modules/stpncpy: Likewise.
67814         * modules/strcase: Likewise.
67815         * modules/strchrnul: Likewise.
67816         * modules/strdup: Likewise.
67817         * modules/strndup: Likewise.
67818         * modules/strnlen: Likewise.
67819         * modules/strpbrk: Likewise.
67820         * modules/strsep: Likewise.
67821         * modules/strstr: Likewise.
67822         * modules/strtok_r: Likewise.
67823         * tests/test-dirname.c: Don't include "strdup.h", since
67824         <string.h> now suffices.
67825         * tests/test-memmem.c: Don't include "memmem.h", since
67826         <string.h> now suffices.
67827
67828 2007-01-25  Bruno Haible  <bruno@clisp.org>
67829
67830         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
67831         *resultp is 0.
67832
67833         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
67834         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
67835         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
67836         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
67837
67838         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
67839         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
67840         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
67841         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
67842         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
67843         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
67844
67845 2007-01-24  Bruno Haible  <bruno@clisp.org>
67846
67847         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
67848         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
67849         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
67850         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
67851         gl_FUNC_FTS_CORE.
67852         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
67853         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
67854         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67855         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
67856         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
67857         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
67858         gl_FUNC_FCHOWNAT.
67859         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
67860         gl_FUNC_STRFTIME.
67861         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
67862         Reported by Ralf Wildenhues.
67863
67864 2007-01-24  Bruno Haible  <bruno@clisp.org>
67865
67866         Drop AC_REQUIRE calls that are redundant with the module dependencies.
67867         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
67868         gl_GETADDRINFO.
67869         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
67870         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
67871         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
67872
67873 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
67874
67875         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
67876         Don't use 'exit'; just return from 'main'.
67877         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
67878
67879         * lib/fnmatch_.h: Readjust white space and comments to match
67880         glibc, to avoid spurious diffs.
67881
67882 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
67885         2004-12-01 change by Jakub Jelinek, since this code won't compile
67886         if !LIBC.  Problem reported by Bob Proulx.
67887
67888 2007-01-23  Bruno Haible  <bruno@clisp.org>
67889
67890         * lib/striconveh.c: Include c-strcaseeq.h.
67891         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
67892         * modules/striconveh (Depends-on): Add c-strcaseeq.
67893
67894 2007-01-23  Bruno Haible  <bruno@clisp.org>
67895
67896         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
67897
67898         * modules/c-strcaseeq: New file.
67899         * lib/c-strcaseeq.h: New file.
67900
67901         * modules/streq: New file.
67902         * lib/streq.h: New file.
67903
67904 2007-01-23  Bruno Haible  <bruno@clisp.org>
67905
67906         * modules/striconveha-tests: New file.
67907         * tests/test-striconveha.c: New file.
67908
67909         * lib/striconveha.h: Include <stdbool.h>.
67910         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
67911         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
67912         (mem_iconveha_notranslit): Renamed from mem_iconveha.
67913         (mem_iconveha): New function.
67914         (str_iconveha_notranslit): Renamed from str_iconveha.
67915         (str_iconveha): New function.
67916         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
67917         c-strcase.
67918
67919 2007-01-23  Bruno Haible  <bruno@clisp.org>
67920
67921         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
67922         encodings without forgiving before trying any encoding with handler.
67923         (str_iconveha): Try all encodings without forgiving before trying any
67924         encoding with handler.
67925
67926 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         Import the following changes from libc.
67929
67930         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
67931
67932         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
67933
67934         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67935
67936         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
67937         normal_bracket label.
67938
67939         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
67940
67941         [BZ #361]
67942         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
67943         to normal_bracket after fetching the next character.
67944
67945 2007-01-22  Bruno Haible  <bruno@clisp.org>
67946
67947         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
67948         argument.
67949         * lib/striconveh.c (iconv_carefully_1): New function.
67950         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
67951         argument.
67952         (str_cd_iconveh): Update.
67953         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
67954         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
67955         * tests/test-striconveh.c (MAGIC): New macro.
67956         (new_offsets): New function.
67957         (main): Test call with and without offsets.
67958
67959 2007-01-22  Bruno Haible  <bruno@clisp.org>
67960
67961         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
67962         * modules/sys_select (Makefile.am): Likewise.
67963         * modules/sys_socket (Makefile.am): Likewise.
67964         * modules/sys_time (Makefile.am): Likewise.
67965
67966 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67967
67968         * modules/gettimeofday (License): Change from GPL to LGPL, since
67969         gettimeofday is a library function.
67970
67971 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67972
67973         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
67974
67975 2007-01-21  Bruno Haible  <bruno@clisp.org>
67976
67977         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
67978
67979 2007-01-21  Bruno Haible  <bruno@clisp.org>
67980
67981         * modules/striconveha: New file.
67982         * lib/striconveha.h: New file.
67983         * lib/striconveha.c: New file.
67984         * MODULES.html.sh (Internationalization functions): Add striconveha.
67985         * lib/striconv.c (str_iconv): Optimize the case of an empty input
67986         string.
67987         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
67988
67989 2007-01-21  Bruno Haible  <bruno@clisp.org>
67990
67991         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
67992         * lib/striconveh.c (str_iconveh): Likewise.
67993
67994 2007-01-21  Bruno Haible  <bruno@clisp.org>
67995
67996         * lib/striconveh.h (mem_iconveh): New declaration.
67997         * lib/striconveh.c (mem_iconveh): New function.
67998         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
67999
68000 2007-01-21  Bruno Haible  <bruno@clisp.org>
68001
68002         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
68003
68004         * lib/striconveh.h (mem_cd_iconveh): Change specification.
68005         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
68006         original result buffer.
68007         (str_cd_iconveh): Update.
68008         * tests/test-striconveh.c (main): Update.
68009
68010         * lib/striconv.h (mem_cd_iconv): Change specification.
68011         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
68012         result buffer.
68013         (str_cd_iconv): Update.
68014         * tests/test-striconv.c (main): Update.
68015
68016 2007-01-21  Bruno Haible  <bruno@clisp.org>
68017
68018         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
68019
68020 2007-01-20  Jim Meyering  <jim@meyering.net>
68021
68022         * lib/userspec.c (parse_with_separator): If a user or group string
68023         starts with "+", skip the corresponding name-to-ID look-up, since
68024         such a look-up must fail: user and group names may not include "+".
68025
68026 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68027
68028         * lib/poll.c: Include sys/time.h and time.h unconditionally,
68029         since we now assume the sys_time module.
68030         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
68031         check for sys/time.h; no longer needed.
68032         * modules/poll (Depends-on): Depend on sys_time.
68033
68034 2007-01-18  Bruno Haible  <bruno@clisp.org>
68035
68036         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
68037         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68038
68039         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
68040         gettimeofday.
68041
68042         * tests/test-gettimeofday.c: Include <time.h>.
68043         (dummy): Remove variable.
68044
68045         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
68046         gl_HEADER_SYS_TIME_H.
68047         (gl_HEADER_SYS_TIME_H): New macro.
68048
68049         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
68050         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68051         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
68052         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
68053         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68054         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
68055         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
68056         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68057         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
68058         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
68059         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68060
68061         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
68062         last change; it caused a compilation error when cross-compiling to
68063         Cygwin.
68064
68065 2007-01-18  Jim Meyering  <jim@meyering.net>
68066
68067         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
68068         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
68069         than the race-prone "test -d sys || mkdir sys".
68070         (configure.ac): Use AC_PROG_MKDIR_P.
68071         * modules/sys_select: Likewise.
68072         * modules/sys_socket: Likewise.
68073         * modules/sys_time: Likewise.
68074
68075 2007-01-18  Eric Blake  <ebb9@byu.net>
68076
68077         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
68078         replace gettimeofday.
68079         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
68080         name, to avoid infinite recursion.
68081
68082 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
68083
68084         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
68085         module sys_time.
68086         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
68087         assume timespec.h defines struct timeval.
68088         * lib/settime.c: Likewise.
68089         * lib/utimens.c: Likewise.
68090         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
68091         since we now assume the gettimeofday module.
68092         * lib/tempname.c (__gen_tempname): Likewise.
68093         * lib/gettimeofday.h: Remove.
68094         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
68095         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
68096         Include <time.h>, for 'time()'.
68097         (localtime_buffer_addr): Also use this workaround if
68098         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
68099         to simplify the uses.  All uses changed.
68100         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
68101         that #undef is inside {}, and 'const' follows type name consistently.
68102         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
68103         (gettimeofday): Do not use the maximum possible value for
68104         tv->tv_usec, since that might break usages other than ls.c.
68105         Instead, we'll leave ls.c alone.  This undoes today's patch
68106         by Bruno.  Add a compile-time warning for 1s-clock resolution;
68107         we've never observed the problem but might as well keep the
68108         canary.
68109         * lib/nanosleep.c: Include timespec.h first, for interface check.
68110         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
68111         now assume the sys_time module.
68112         * lib/tempname.c: Likewise.
68113         * lib/timespec.h: Likewise.
68114         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
68115         needed.
68116         * lib/strftime.c: Likewise.
68117         * lib/timespec.h: Likewise.
68118         * lib/posixtm.c: Include posixtm.h first, for interface check.
68119         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
68120         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
68121         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
68122         * lib/sys_time_.h: New file.
68123         * lib/timespec.h (struct timespec): Use long int, not long.
68124         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68125         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
68126         Remove obsolescent call to AC_HEADER_TIME.
68127         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
68128         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68129         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68130         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
68131         Likewise.
68132         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
68133         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
68134         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
68135         into the sys_time module.  Check for gettimeofday just once.
68136         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
68137         for gettimeofday signature to just check the signature.  Merely
68138         compile it, since linking doesn't test signature.  Improve test for
68139         whether gettimeofday.o is actually needed.
68140         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
68141         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
68142         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
68143         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68144         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
68145         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
68146         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
68147         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
68148         than worrying about sys/time.h.
68149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68150         Don't bother worrying about TIME_WITH_SYS_TIME.
68151         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
68152         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
68153         * m4/sys_time_h.m4: New file.
68154         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
68155         Don't include sys/time.h.  Return from main rather than exiting.
68156         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
68157         all uses changed.
68158         * modules/gethrxtime (Depends-on): Add sys_time.
68159         * modules/gettime (Depends-on): Likewise.
68160         * modules/gettimeofday (Depends-on): Likewise.
68161         * modules/nanosleep (Depends-on): Likewise.
68162         * modules/settime (Depends-on): Likewise.
68163         * modules/tempname (Depends-on): Likewise.
68164         * modules/utimens (Depends-on): Likewise.
68165         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
68166         (Include): Change back to <sys/time.h>.
68167         (Maintainer): Add self.
68168         * modules/sys_time: New file.
68169         * modules/tempname (Depends-on): Add gettimeofday.
68170         * tests/test-gettimeofday.c: Include <sys/time.h>
68171         rather than gettimeofday.h.
68172
68173 2007-01-17  Bruno Haible  <bruno@clisp.org>
68174
68175         * gnulib-tool (func_get_license): Revert last patch. Instead, let
68176         the license default to GPL.
68177         (func_create_testdir): Don't complain if a module is LGPL and its
68178         tests module depends on GPLed modules.
68179
68180 2007-01-17  Bruno Haible  <bruno@clisp.org>
68181
68182         * lib/gettimeofday.c (gettimeofday): Add code for the case
68183         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
68184         maximum possible value for tv->tv_usec, rather than the minimum one.
68185
68186 2005-10-08  Martin Lambers  <marlam@marlam.de>
68187 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68188 2007-01-16  Bruno Haible  <bruno@clisp.org>
68189
68190         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
68191         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
68192         gl_FUNC_GETTIMEOFDAY.
68193         (Include): Add gettimeofday.h.
68194         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
68195         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
68196         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
68197         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
68198         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
68199         * lib/gettimeofday.h: New file.
68200         * lib/gettimeofday.c: Include <sys/timeb.h>.
68201         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
68202         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68203         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
68204         fall back on time().
68205
68206         * tests/test-gettimeofday.c: New file.
68207         * modules/gettimeofday-tests: New file.
68208
68209 2007-01-16  Eric Blake  <ebb9@byu.net>
68210
68211         * modules/fnmatch (Depends-on): Depend on wchar.
68212         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
68213         * m4/fnmatch.m4: Likewise.
68214         * modules/mbchar (Makefile.am): Assume <wchar.h>.
68215         * m4/mbchar.m4: Likewise.
68216         * modules/mbswidth (Depends-on): Depend on wchar.
68217         * lib/mbswidth.c: Assume <wchar.h>.
68218         * m4/mbswidth.m4: Likewise.
68219         * modules/quotearg (Depends-on): Depend on wchar.
68220         * lib/quotearg.c: Assume <wchar.h>.
68221         * m4/quotearg.m4: Likewise.
68222         * modules/regex (Depends-on): Depend on wchar.
68223         * lib/regex_internal.h: Assume <wchar.h>.
68224         * m4/regex.m4: Likewise.
68225         * modules/stdint (Depends-on): Depend on wchar.
68226         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
68227         * m4/stdint.m4: Likewise.
68228         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
68229         * modules/strftime (Depends-on): Depend on wchar.
68230         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
68231         * modules/strtol (Depends-on): Depend on wchar.
68232         * lib/strtol.c: Assume <wchar.h>.
68233         * modules/wcwidth (Depends-on): Depend on wchar.
68234         * lib/wcwidth.h: Assume <wchar.h>.
68235         * m4/wcwidth.m4: Likewise.
68236
68237 2007-01-16  Bruno Haible  <bruno@clisp.org>
68238
68239         * modules/csharpexec-script: New, created from...
68240         * modules/csharpexec: ... this.
68241
68242 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
68243
68244         * modules/javaexec-script: New, created from...
68245         * modules/javaexec: ... this.
68246
68247 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68248
68249         * modules/poll (Dependencies): Add sys_select.
68250
68251 2007-01-15  Jim Meyering  <jim@meyering.net>
68252
68253         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
68254         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
68255         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
68256         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
68257
68258 2007-01-15  Bruno Haible  <bruno@clisp.org>
68259
68260         * modules/striconveh: New file.
68261         * lib/striconveh.h: New file.
68262         * lib/striconveh.c: New file.
68263         * MODULES.html.sh (Internationalization functions): Add striconveh.
68264
68265         * modules/striconveh-tests: New file.
68266         * tests/test-striconveh.c: New file.
68267
68268 2007-01-15  Bruno Haible  <bruno@clisp.org>
68269
68270         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
68271         not from GNU libiconv or GNU libc.
68272
68273 2007-01-15  Bruno Haible  <bruno@clisp.org>
68274
68275         * doc/gnulib-intro.texi (Copyright): Explain the different license
68276         terms for module descriptions, autoconf macros, tests, documentation.
68277
68278 2007-01-14  Bruno Haible  <bruno@clisp.org>
68279
68280         * modules/striconv-tests: New file.
68281         * tests/test-striconv.c: New file.
68282
68283 2007-01-14  Bruno Haible  <bruno@clisp.org>
68284
68285         * modules/iconv-tests: New file.
68286         * tests/test-iconv.c: New file.
68287
68288 2007-01-14  Bruno Haible  <bruno@clisp.org>
68289
68290         * gnulib-tool (func_get_license): For test modules, use the license of
68291         the main module.
68292
68293 2007-01-14  Bruno Haible  <bruno@clisp.org>
68294
68295         * modules/iconv (Include): Clarify that <iconv.h> can only be included
68296         if iconv is found to exist.
68297
68298 2007-01-14  Bruno Haible  <bruno@clisp.org>
68299
68300         * modules/c-ctype-tests: New file.
68301         * tests/test-c-ctype.c: New file.
68302
68303 2007-01-14  Bruno Haible  <bruno@clisp.org>
68304
68305         * modules/binary-io-tests: New file.
68306         * tests/test-binary-io.sh: New file.
68307         * tests/test-binary-io.c: New file.
68308
68309 2007-01-14  Bruno Haible  <bruno@clisp.org>
68310
68311         * modules/array-oset-tests: New file.
68312         * tests/test-array_oset.c: New file.
68313
68314 2007-01-14  Bruno Haible  <bruno@clisp.org>
68315
68316         * modules/array-list-tests: New file.
68317         * tests/test-array_list.c: New file.
68318
68319 2007-01-14  Bruno Haible  <bruno@clisp.org>
68320
68321         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
68322         and make.
68323         Reported by Simon Josefsson in
68324         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
68325
68326 2007-01-14  Bruno Haible  <bruno@clisp.org>
68327
68328         * modules/allocsa-tests: New file.
68329         * tests/test-allocsa.c: New file.
68330
68331 2007-01-14  Bruno Haible  <bruno@clisp.org>
68332
68333         * modules/fchdir (Depends-on): Add absolute-header.
68334         * modules/unistd (Depends-on): Likewise.
68335
68336 2006-12-30  Bruno Haible  <bruno@clisp.org>
68337
68338         * modules/fchdir: New file.
68339         * modules/unistd (Files): Add lib/unistd_.h.
68340         (Makefile.am): Generate unistd.h from unistd_.h.
68341         * lib/fchdir.c: New file.
68342         * lib/dirent_.h: New file.
68343         * lib/unistd_.h: New file.
68344         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
68345         * m4/fchdir.m4: New file.
68346         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
68347         (gl_HEADER_UNISTD): Invoke it.
68348         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
68349         function.
68350         * lib/backupfile.c (opendir, closedir): Undefine.
68351         * lib/chown.c (open, close): Undefine.
68352         * lib/clean-temp.c (open, close): Undefine.
68353         * lib/copy-file.c (open, close): Undefine.
68354         * lib/execute.c (open, close): Undefine.
68355         * lib/fsusage.c (open, close): Undefine.
68356         * lib/gc-gnulib.c (open, close): Undefine.
68357         * lib/getcwd.c (opendir, closedir): Undefine.
68358         * lib/glob.c (opendir, closedir): Undefine.
68359         * lib/javacomp.c (open, close): Undefine.
68360         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
68361         * lib/openat-proc.c (open, close): Undefine.
68362         * lib/pagealign_alloc.c (open, close): Undefine.
68363         * lib/pipe.c (open, close): Undefine.
68364         * lib/progreloc.c (open, close): Undefine.
68365         * lib/savedir.c (opendir, closedir): Undefine.
68366         * lib/utime.c (open, close): Undefine.
68367         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
68368
68369 2007-01-10  Bruno Haible  <bruno@clisp.org>
68370
68371         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
68372
68373 2007-01-12  Eric Blake  <ebb9@byu.net>
68374
68375         Provide a robust <wchar.h>.  Further simplifications are now
68376         possible in other modules, but not included here.
68377         * modules/wchar: New module.
68378         * m4/wchar.m4: New file.
68379         * lib/wchar_.h: Likewise.
68380         * modules/mbchar (Depends-on): Depend on wchar, as the first use
68381         of the new module.
68382         * MODULES.html.sh (Extended multibyte and wide character utilities):
68383         New section.
68384
68385 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
68386
68387         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
68388         to a reasonable default for memory allocation.
68389         (xreadlink): Don't allocate a huge buffer, to work around a buggy
68390         file system that reports garbage st_size values for symlinks.
68391         Problem reported by Liyang Hu.
68392
68393 2007-01-11  Simon Josefsson  <simon@josefsson.org>
68394
68395         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
68396         Emacs .#* auto-save files).
68397
68398 2007-01-11  Bruno Haible  <bruno@clisp.org>
68399
68400         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
68401         directory.
68402
68403 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68404
68405         Use @...@ consistently in lib/wctype_.h.
68406         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
68407         on it being set to 1 or 0.
68408         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
68409         go back to AC_SUBSTing it.
68410         * modules/wctype (Makefile.am): Undo previous change.
68411
68412 2007-01-10  Eric Blake  <ebb9@byu.net>
68413
68414         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
68415         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
68416         * modules/wctype (Makefile.am): Likewise.
68417         Reported by Chris McGuire.
68418
68419 2007-01-10  Jim Meyering  <jim@meyering.net>
68420
68421         fts.c: a small readability/maintainability improvement
68422         * lib/fts.c (fts_read): Make this code slightly more readable and
68423         maintainable by hoisting the "sp->fts_cur = p" assignments to
68424         immediately follow the statements that set P.  Derived from
68425         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
68426
68427 2007-01-10  Eric Blake  <ebb9@byu.net>
68428
68429         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
68430         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
68431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68432         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
68433         Reported by Chris McGuire.
68434
68435 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68436
68437         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
68438         in sed script.
68439
68440 2007-01-09  Bruno Haible  <bruno@clisp.org>
68441
68442         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
68443         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
68444         variables.
68445         (func_module): Use them.
68446
68447 2007-01-09  Bruno Haible  <bruno@clisp.org>
68448
68449         * modules/unistr/base: New file.
68450         * lib/unistr.h: New file.
68451
68452         * modules/unistr/u8-to-u16: New file.
68453         * lib/unistr/u8-to-u16.c: New file.
68454
68455         * modules/unistr/u8-to-u32: New file.
68456         * lib/unistr/u8-to-u32.c: New file.
68457
68458         * modules/unistr/u16-to-u8: New file.
68459         * lib/unistr/u16-to-u8.c: New file.
68460
68461         * modules/unistr/u16-to-u32: New file.
68462         * lib/unistr/u16-to-u32.c: New file.
68463
68464         * modules/unistr/u32-to-u8: New file.
68465         * lib/unistr/u32-to-u8.c: New file.
68466
68467         * modules/unistr/u32-to-u16: New file.
68468         * lib/unistr/u32-to-u16.c: New file.
68469
68470         * modules/unistr/u8-check: New file.
68471         * modules/unistr/u16-check: New file.
68472         * modules/unistr/u32-check: New file.
68473         * lib/unistr/u8-check.c: New file.
68474         * lib/unistr/u16-check.c: New file.
68475         * lib/unistr/u32-check.c: New file.
68476
68477         * modules/unistr/u8-chr: New file.
68478         * modules/unistr/u16-chr: New file.
68479         * modules/unistr/u32-chr: New file.
68480         * lib/unistr/u8-chr.c: New file.
68481         * lib/unistr/u16-chr.c: New file.
68482         * lib/unistr/u32-chr.c: New file.
68483
68484         * modules/unistr/u8-cmp: New file.
68485         * modules/unistr/u16-cmp: New file.
68486         * modules/unistr/u32-cmp: New file.
68487         * lib/unistr/u8-cmp.c: New file.
68488         * lib/unistr/u16-cmp.c: New file.
68489         * lib/unistr/u32-cmp.c: New file.
68490
68491         * modules/unistr/u8-cpy: New file.
68492         * modules/unistr/u16-cpy: New file.
68493         * modules/unistr/u32-cpy: New file.
68494         * lib/unistr/u8-cpy.c: New file.
68495         * lib/unistr/u16-cpy.c: New file.
68496         * lib/unistr/u32-cpy.c: New file.
68497         * lib/unistr/u-cpy.h: New file.
68498
68499         * modules/unistr/u8-cpy-alloc: New file.
68500         * modules/unistr/u16-cpy-alloc: New file.
68501         * modules/unistr/u32-cpy-alloc: New file.
68502         * lib/unistr/u8-cpy-alloc.c: New file.
68503         * lib/unistr/u16-cpy-alloc.c: New file.
68504         * lib/unistr/u32-cpy-alloc.c: New file.
68505         * lib/unistr/u-cpy-alloc.h: New file.
68506
68507         * modules/unistr/u8-endswith: New file.
68508         * modules/unistr/u16-endswith: New file.
68509         * modules/unistr/u32-endswith: New file.
68510         * lib/unistr/u8-endswith.c: New file.
68511         * lib/unistr/u16-endswith.c: New file.
68512         * lib/unistr/u32-endswith.c: New file.
68513         * lib/unistr/u-endswith.h: New file.
68514
68515         * modules/unistr/u8-mblen: New file.
68516         * modules/unistr/u16-mblen: New file.
68517         * modules/unistr/u32-mblen: New file.
68518         * lib/unistr/u8-mblen.c: New file.
68519         * lib/unistr/u16-mblen.c: New file.
68520         * lib/unistr/u32-mblen.c: New file.
68521
68522         * modules/unistr/u8-mbtouc: New file.
68523         * modules/unistr/u16-mbtouc: New file.
68524         * modules/unistr/u32-mbtouc: New file.
68525         * lib/unistr/u8-mbtouc.c: New file.
68526         * lib/unistr/u16-mbtouc.c: New file.
68527         * lib/unistr/u32-mbtouc.c: New file.
68528
68529         * modules/unistr/u8-mbtouc-safe: New file.
68530         * modules/unistr/u16-mbtouc-safe: New file.
68531         * modules/unistr/u32-mbtouc-safe: New file.
68532         * lib/unistr/u8-mbtouc-safe.c: New file.
68533         * lib/unistr/u16-mbtouc-safe.c: New file.
68534         * lib/unistr/u32-mbtouc-safe.c: New file.
68535
68536         * modules/unistr/u8-move: New file.
68537         * modules/unistr/u16-move: New file.
68538         * modules/unistr/u32-move: New file.
68539         * lib/unistr/u8-move.c: New file.
68540         * lib/unistr/u16-move.c: New file.
68541         * lib/unistr/u32-move.c: New file.
68542         * lib/unistr/u-move.h: New file.
68543
68544         * modules/unistr/u8-next: New file.
68545         * modules/unistr/u16-next: New file.
68546         * modules/unistr/u32-next: New file.
68547         * lib/unistr/u8-next.c: New file.
68548         * lib/unistr/u16-next.c: New file.
68549         * lib/unistr/u32-next.c: New file.
68550
68551         * modules/unistr/u8-prev: New file.
68552         * modules/unistr/u16-prev: New file.
68553         * modules/unistr/u32-prev: New file.
68554         * lib/unistr/u8-prev.c: New file.
68555         * lib/unistr/u16-prev.c: New file.
68556         * lib/unistr/u32-prev.c: New file.
68557
68558         * modules/unistr/u8-set: New file.
68559         * modules/unistr/u16-set: New file.
68560         * modules/unistr/u32-set: New file.
68561         * lib/unistr/u8-set.c: New file.
68562         * lib/unistr/u16-set.c: New file.
68563         * lib/unistr/u32-set.c: New file.
68564         * lib/unistr/u-set.h: New file.
68565
68566         * modules/unistr/u8-startswith: New file.
68567         * modules/unistr/u16-startswith: New file.
68568         * modules/unistr/u32-startswith: New file.
68569         * lib/unistr/u8-startswith.c: New file.
68570         * lib/unistr/u16-startswith.c: New file.
68571         * lib/unistr/u32-startswith.c: New file.
68572         * lib/unistr/u-startswith.h: New file.
68573
68574         * modules/unistr/u8-stpcpy: New file.
68575         * modules/unistr/u16-stpcpy: New file.
68576         * modules/unistr/u32-stpcpy: New file.
68577         * lib/unistr/u8-stpcpy.c: New file.
68578         * lib/unistr/u16-stpcpy.c: New file.
68579         * lib/unistr/u32-stpcpy.c: New file.
68580         * lib/unistr/u-stpcpy.h: New file.
68581
68582         * modules/unistr/u8-stpncpy: New file.
68583         * modules/unistr/u16-stpncpy: New file.
68584         * modules/unistr/u32-stpncpy: New file.
68585         * lib/unistr/u8-stpncpy.c: New file.
68586         * lib/unistr/u16-stpncpy.c: New file.
68587         * lib/unistr/u32-stpncpy.c: New file.
68588         * lib/unistr/u-stpncpy.h: New file.
68589
68590         * modules/unistr/u8-strcat: New file.
68591         * modules/unistr/u16-strcat: New file.
68592         * modules/unistr/u32-strcat: New file.
68593         * lib/unistr/u8-strcat.c: New file.
68594         * lib/unistr/u16-strcat.c: New file.
68595         * lib/unistr/u32-strcat.c: New file.
68596         * lib/unistr/u-strcat.h: New file.
68597
68598         * modules/unistr/u8-strchr: New file.
68599         * modules/unistr/u16-strchr: New file.
68600         * modules/unistr/u32-strchr: New file.
68601         * lib/unistr/u8-strchr.c: New file.
68602         * lib/unistr/u16-strchr.c: New file.
68603         * lib/unistr/u32-strchr.c: New file.
68604
68605         * modules/unistr/u8-strcmp: New file.
68606         * modules/unistr/u16-strcmp: New file.
68607         * modules/unistr/u32-strcmp: New file.
68608         * lib/unistr/u8-strcmp.c: New file.
68609         * lib/unistr/u16-strcmp.c: New file.
68610         * lib/unistr/u32-strcmp.c: New file.
68611
68612         * modules/unistr/u8-strcpy: New file.
68613         * modules/unistr/u16-strcpy: New file.
68614         * modules/unistr/u32-strcpy: New file.
68615         * lib/unistr/u8-strcpy.c: New file.
68616         * lib/unistr/u16-strcpy.c: New file.
68617         * lib/unistr/u32-strcpy.c: New file.
68618         * lib/unistr/u-strcpy.h: New file.
68619
68620         * modules/unistr/u8-strcspn: New file.
68621         * modules/unistr/u16-strcspn: New file.
68622         * modules/unistr/u32-strcspn: New file.
68623         * lib/unistr/u8-strcspn.c: New file.
68624         * lib/unistr/u16-strcspn.c: New file.
68625         * lib/unistr/u32-strcspn.c: New file.
68626         * lib/unistr/u-strcspn.h: New file.
68627
68628         * modules/unistr/u8-strdup: New file.
68629         * modules/unistr/u16-strdup: New file.
68630         * modules/unistr/u32-strdup: New file.
68631         * lib/unistr/u8-strdup.c: New file.
68632         * lib/unistr/u16-strdup.c: New file.
68633         * lib/unistr/u32-strdup.c: New file.
68634         * lib/unistr/u-strdup.h: New file.
68635
68636         * modules/unistr/u8-strlen: New file.
68637         * modules/unistr/u16-strlen: New file.
68638         * modules/unistr/u32-strlen: New file.
68639         * lib/unistr/u8-strlen.c: New file.
68640         * lib/unistr/u16-strlen.c: New file.
68641         * lib/unistr/u32-strlen.c: New file.
68642         * lib/unistr/u-strlen.h: New file.
68643
68644         * modules/unistr/u8-strmblen: New file.
68645         * modules/unistr/u16-strmblen: New file.
68646         * modules/unistr/u32-strmblen: New file.
68647         * lib/unistr/u8-strmblen.c: New file.
68648         * lib/unistr/u16-strmblen.c: New file.
68649         * lib/unistr/u32-strmblen.c: New file.
68650
68651         * modules/unistr/u8-strmbtouc: New file.
68652         * modules/unistr/u16-strmbtouc: New file.
68653         * modules/unistr/u32-strmbtouc: New file.
68654         * lib/unistr/u8-strmbtouc.c: New file.
68655         * lib/unistr/u16-strmbtouc.c: New file.
68656         * lib/unistr/u32-strmbtouc.c: New file.
68657
68658         * modules/unistr/u8-strncat: New file.
68659         * modules/unistr/u16-strncat: New file.
68660         * modules/unistr/u32-strncat: New file.
68661         * lib/unistr/u8-strncat.c: New file.
68662         * lib/unistr/u16-strncat.c: New file.
68663         * lib/unistr/u32-strncat.c: New file.
68664         * lib/unistr/u-strncat.h: New file.
68665
68666         * modules/unistr/u8-strncmp: New file.
68667         * modules/unistr/u16-strncmp: New file.
68668         * modules/unistr/u32-strncmp: New file.
68669         * lib/unistr/u8-strncmp.c: New file.
68670         * lib/unistr/u16-strncmp.c: New file.
68671         * lib/unistr/u32-strncmp.c: New file.
68672
68673         * modules/unistr/u8-strncpy: New file.
68674         * modules/unistr/u16-strncpy: New file.
68675         * modules/unistr/u32-strncpy: New file.
68676         * lib/unistr/u8-strncpy.c: New file.
68677         * lib/unistr/u16-strncpy.c: New file.
68678         * lib/unistr/u32-strncpy.c: New file.
68679         * lib/unistr/u-strncpy.h: New file.
68680
68681         * modules/unistr/u8-strnlen: New file.
68682         * modules/unistr/u16-strnlen: New file.
68683         * modules/unistr/u32-strnlen: New file.
68684         * lib/unistr/u8-strnlen.c: New file.
68685         * lib/unistr/u16-strnlen.c: New file.
68686         * lib/unistr/u32-strnlen.c: New file.
68687         * lib/unistr/u-strnlen.h: New file.
68688
68689         * modules/unistr/u8-strpbrk: New file.
68690         * modules/unistr/u16-strpbrk: New file.
68691         * modules/unistr/u32-strpbrk: New file.
68692         * lib/unistr/u8-strpbrk.c: New file.
68693         * lib/unistr/u16-strpbrk.c: New file.
68694         * lib/unistr/u32-strpbrk.c: New file.
68695         * lib/unistr/u-strpbrk.h: New file.
68696
68697         * modules/unistr/u8-strrchr: New file.
68698         * modules/unistr/u16-strrchr: New file.
68699         * modules/unistr/u32-strrchr: New file.
68700         * lib/unistr/u8-strrchr.c: New file.
68701         * lib/unistr/u16-strrchr.c: New file.
68702         * lib/unistr/u32-strrchr.c: New file.
68703
68704         * modules/unistr/u8-strspn: New file.
68705         * modules/unistr/u16-strspn: New file.
68706         * modules/unistr/u32-strspn: New file.
68707         * lib/unistr/u8-strspn.c: New file.
68708         * lib/unistr/u16-strspn.c: New file.
68709         * lib/unistr/u32-strspn.c: New file.
68710         * lib/unistr/u-strspn.h: New file.
68711
68712         * modules/unistr/u8-strstr: New file.
68713         * modules/unistr/u16-strstr: New file.
68714         * modules/unistr/u32-strstr: New file.
68715         * lib/unistr/u8-strstr.c: New file.
68716         * lib/unistr/u16-strstr.c: New file.
68717         * lib/unistr/u32-strstr.c: New file.
68718         * lib/unistr/u-strstr.h: New file.
68719
68720         * modules/unistr/u8-strtok: New file.
68721         * modules/unistr/u16-strtok: New file.
68722         * modules/unistr/u32-strtok: New file.
68723         * lib/unistr/u8-strtok.c: New file.
68724         * lib/unistr/u16-strtok.c: New file.
68725         * lib/unistr/u32-strtok.c: New file.
68726         * lib/unistr/u-strtok.h: New file.
68727
68728         * modules/unistr/u8-uctomb: New file.
68729         * modules/unistr/u16-uctomb: New file.
68730         * modules/unistr/u32-uctomb: New file.
68731         * lib/unistr/u8-uctomb.c: New file.
68732         * lib/unistr/u16-uctomb.c: New file.
68733         * lib/unistr/u32-uctomb.c: New file.
68734
68735         * MODULES.html.sh (Unicode string functions): Add the new modules.
68736
68737 2007-01-08  Bruno Haible  <bruno@clisp.org>
68738
68739         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
68740         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
68741         subdirectories.
68742
68743 2007-01-08  Karl Berry  <karl@gnu.org>
68744
68745         * doc/error.texi: mention that main() fns must set program_name
68746         when progname is used.
68747
68748 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
68751         WCTYPE_H is empty, for the benefit of builds from non-distclean
68752         directories.  Problem reported by Eric Blake in
68753         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
68754
68755 2007-01-08  Bruno Haible  <bruno@clisp.org>
68756
68757         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
68758         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
68759         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
68760         PROVIDE_CANONICALIZE_FILENAME_MODE.
68761         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
68762
68763 2007-01-08  Bruno Haible  <bruno@clisp.org>
68764
68765         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
68766         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
68767         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
68768         * lib/fts.c: Likewise.
68769         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
68770
68771 2006-12-25  Bruno Haible  <bruno@clisp.org>
68772
68773         * modules/utf8-ucs4-safe: New file.
68774         * lib/utf8-ucs4-safe.h: New file.
68775         * lib/unistr/utf8-ucs4-safe.c: New file.
68776
68777         * modules/utf16-ucs4-safe: New file.
68778         * lib/utf16-ucs4-safe.h: New file.
68779         * lib/unistr/utf16-ucs4-safe.c: New file.
68780
68781         * MODULES.html.sh (Unicode string functions): Add the new modules.
68782
68783 2007-01-08  Bruno Haible  <bruno@clisp.org>
68784
68785         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
68786         (Depends-on): Add unitypes.
68787         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68788         (u8_mbtouc_aux): Move out to separate file.
68789         (u8_mbtouc): Use ucs4_t, uint8_t types.
68790         * lib/unistr/utf8-ucs4.c: New file.
68791
68792         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
68793         (Depends-on): Add unitypes.
68794         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
68795         (u16_mbtouc_aux): Move out to separate file.
68796         (u16_mbtouc): Use ucs4_t, uint16_t types.
68797         * lib/unistr/utf16-ucs4.c: New file.
68798
68799         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
68800         (Depends-on): Add unitypes.
68801         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
68802         (u8_uctomb_aux): Move out to separate file.
68803         (u8_uctomb): Use ucs4_t, uint8_t types.
68804         * lib/unistr/ucs4-utf8.c: New file.
68805
68806         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
68807         (Depends-on): Add unitypes.
68808         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
68809         (u16_uctomb_aux): Move out to separate file.
68810         (u16_uctomb): Use ucs4_t, uint16_t types.
68811         * lib/unistr/ucs4-utf16.c: New file.
68812
68813 2006-12-25  Bruno Haible  <bruno@clisp.org>
68814
68815         * modules/unitypes: New file.
68816         * lib/unitypes.h: New file.
68817         * MODULES.html.sh (func_all_modules): New section "Unicode string
68818         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
68819         this section. Add unitypes.
68820
68821 2007-01-08  Bruno Haible  <bruno@clisp.org>
68822
68823         Avoid variable names that conflict with those from libtool.
68824         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
68825         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
68826         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
68827         library_names_spec to acl_library_names_spec, hardcode_* to
68828         acl_hardcode_*.
68829         Reported by Ralf Wildenhues.
68830
68831 2007-01-08  Bruno Haible  <bruno@clisp.org>
68832
68833         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
68834         definition.
68835         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
68836         definition.
68837         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
68838         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
68839         definition.
68840         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
68841         definition.
68842         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
68843         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
68844         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
68845         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
68846         definition.
68847         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
68848         definition.
68849         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
68850         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
68851         GC_USE_<algorithm>.
68852         * lib/gc-libgcrypt.c: Likewise.
68853         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
68854         * modules/gc-arctwo (configure.ac): Likewise.
68855         * modules/gc-des (configure.ac): Likewise.
68856         * modules/gc-hmac-md5 (configure.ac): Likewise.
68857         * modules/gc-hmac-sha1 (configure.ac): Likewise.
68858         * modules/gc-md2 (configure.ac): Likewise.
68859         * modules/gc-md4 (configure.ac): Likewise.
68860         * modules/gc-md5 (configure.ac): Likewise.
68861         * modules/gc-random (configure.ac): Likewise.
68862         * modules/gc-rijndael (configure.ac): Likewise.
68863         * modules/gc-sha1 (configure.ac): Likewise.
68864
68865 2007-01-08  Bruno Haible  <bruno@clisp.org>
68866
68867         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
68868         macro definition.
68869         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
68870         definition.
68871         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
68872         definition.
68873         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
68874         * modules/fcntl-safer (configure.ac): Likewise.
68875         * modules/fopen-safer (configure.ac): Likewise.
68876         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
68877         GNULIB_FWRITEERROR macro definition.
68878
68879 2007-01-08  Bruno Haible  <bruno@clisp.org>
68880
68881         * m4/gnulib-common.m4: New file.
68882         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
68883         (func_get_filelist): Add m4/gnulib-common.m4.
68884
68885 2007-01-08  Bruno Haible  <bruno@clisp.org>
68886
68887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
68888         command.
68889
68890 2007-01-08  Jim Meyering  <jim@meyering.net>
68891
68892         Use a more robust test for a "can't happen" condition.
68893         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
68894         narrowed the st_size value.  Presuming the "can't happen" condition
68895         is true, that narrowing could conceivably convert an invalid st_size
68896         value into a valid one.  Instead, use a change based on Matthew
68897         Woehlke's original patch.
68898
68899         Slight readability improvement: use an assert-like macro
68900         in place of literal "abort ()" uses.
68901         * lib/fts.c (fts_assert): Define.
68902         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
68903         Use this macro instead of a bare 'abort'.
68904
68905 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
68906
68907         Don't worry about using IRIX 5.3's wctype.h broken definitions;
68908         simply work around them.
68909         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
68910         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
68911         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
68912         declaring.
68913         Don't bother to define as macros, since the standard doesn't require it.
68914         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
68915         longer worry about IRIX 5.3.
68916         (HAVE_WCTYPE_CTMP_BUG): Remove.
68917
68918 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68919
68920         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
68921         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
68922         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68923         Problems reported by Georg Schwarz for IRIX 5.3.
68924
68925         * gnulib-tool (autoconf_minversion): Take the maximum version number
68926         found, not the minimum.  Problem reported by James Youngman.
68927
68928 2007-01-03  Karl Berry  <karl@gnu.org>
68929
68930         * doc/error.texi: new file, explaining interaction with progname.
68931         * doc/gnulib.texi: include it.  Update copyright.
68932
68933 2007-01-03  Simon Josefsson  <simon@josefsson.org>
68934
68935         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
68936         AC_CANONICAL_HOST, to improve autobuild outputs.
68937
68938 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
68939             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68940
68941         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
68942         sockets, server sockets, and other file descriptors.  Count errors
68943         to compute the return value.  Reorder the code a bit to be easier
68944         to follow.  Don't set event bits that were not requested (except
68945         POLLERR and POLLHUP).
68946
68947 2007-01-01  Bruno Haible  <bruno@clisp.org>
68948
68949         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
68950
68951 2007-01-03  Jim Meyering  <jim@meyering.net>
68952
68953         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
68954
68955 2007-01-02  Bruno Haible  <bruno@clisp.org>
68956
68957         * modules/settime (Include): Require timespec.h.
68958         * modules/nanosleep (Include): Likewise.
68959
68960 2007-01-01  Bruno Haible  <bruno@clisp.org>
68961
68962         * gnulib-tool (func_emit_copyright_notice): Bump year.
68963         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
68964
68965 2007-01-01  Bruno Haible  <bruno@clisp.org>
68966
68967         Improve support for OpenBSD.
68968         * build-aux/config.rpath (libname_spec): Export.
68969         (library_names_spec): New variable. Export.
68970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
68971         library_names_spec from the config.rpath output. Locate shared library
68972         through the name pattern in library_names_spec.
68973
68974 2007-01-01  Eric Blake  <ebb9@byu.net>
68975
68976         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
68977
68978 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
68979
68980         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
68981         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
68982         assume the C locale, and avoid an "eval" that could cause trouble.
68983         Problem with SORT reported by Bob Proulx.
68984
68985         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
68986         Define.  Trivial patch from Henning Nielsen Lund, originally
68987         sent to bug-grep@gnu.org today.
68988
68989 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
68990
68991         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
68992         struct stat.  Problem reported by Henning Nielsen Lund.
68993         * lib/acl.c: Include acl.h first, to check interface.  Don't
68994         bother to include sys/types.h and sys/stat.h again.
68995
68996 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         Import the following change from libc; problem reported by
68999         Sven Verdoolaege.
69000
69001         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
69002
69003         [BZ #1373]
69004         * lib/argp.h: Remove __NTH for __argp_usage inline function.
69005
69006 2006-12-28  Jim Meyering  <jim@meyering.net>
69007
69008         * build-aux/announce-gen: Do not assume that the package
69009         builds any of tar.gz, tar.bz2, and .xdelta files.
69010         Suggestion from Simon Josefsson.
69011
69012 2006-12-28  Simon Josefsson  <simon@josefsson.org>
69013
69014         * modules/announce-gen: New file.
69015
69016 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
69017
69018         * lib/mbchar.h: Just include <wctype.h>; the wctype module
69019         handles its gotchas now.
69020         * lib/mbswidth.c: Likewise.
69021         * lib/wcwidth.h: Likewise.
69022         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
69023         and iswcntrl; the wctype module does this stuff now.
69024         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69026         * modules/mbchar (Depends-on): Add wctype.
69027         * modules/mbswidth (Depends-on): Likewise.
69028         * modules/wcwidth (Depends-on): Likewise.
69029
69030 2006-12-27  Eric Blake  <ebb9@byu.net>
69031
69032         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
69033         module uses more than what <wctype.h> is required to provide.
69034
69035 2006-12-26  Eric Blake  <ebb9@byu.net>
69036
69037         * gnulib-tool (sed_extract_prog): Avoid space-tab.
69038
69039 2006-12-26  Eric Blake  <ebb9@byu.net>
69040
69041         * modules/absolute-header: New module.
69042         * modules/fcntl (Depends-on): Depend on it.
69043         * modules/inttypes (Depends-on): Likewise.
69044         * modules/stdint (Depends-on): Likewise.
69045         * modules/sys_stat (Depends-on): Likewise.
69046         * modules/wctype (Depends-on): Likewise.
69047         * MODULES.html.sh (Support for building libraries and
69048         executables): Document it.
69049
69050 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
69051
69052         * gnulib-tool (SED): Remove, undoing previous change.
69053         The problem was that it broke coreutils on Solaris, because
69054         "sed --posix" leaked into a makefile.
69055         (sed): New alias, if 'alias' and GNU sed.
69056
69057 2006-12-24  Jim Meyering  <jim@meyering.net>
69058
69059         Work around an fchownat bug in glibc-2.4:
69060         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
69061         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
69062         in spite of the -P option.
69063         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
69064         New macros.
69065         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
69066         * modules/openat (Files): Add lib/fchownat.c.
69067         * lib/openat.c (fchownat): Don't define here.  Move to...
69068         * lib/fchownat.c: ...this new file.
69069
69070 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69071
69072         Fix bug reported by Bruno Haible in
69073         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
69074         where quotearg.c didn't compile on Mac OS X 10.2 because it
69075         lacks <wchar.h> and wint_t.
69076         * lib/wctype_.h (__wctype_wint_t): New type.
69077         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
69078         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
69079         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
69080         Arg is now of type __wctype_wint_t, not wint_t.
69081         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
69082         substitute HAVE_WINT_T.
69083         * modules/wctype (Files): Add m4/wint_t.m4.
69084         (wctype.h): Substitute HAVE_WINT_T.
69085
69086 2006-12-23  Bruno Haible  <bruno@clisp.org>
69087
69088         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
69089
69090 2006-12-23  Bruno Haible  <bruno@clisp.org>
69091
69092         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
69093         S_ISLNK.
69094         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
69095         mingw.
69096
69097 2006-12-22  Bruno Haible  <bruno@clisp.org>
69098
69099         * lib/copy-file.c: Include acl.h.
69100         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
69101         Close the file descriptors only after being done with copy_acl.
69102         * modules/copy-file (Depends-on): Add acl.
69103
69104 2006-12-22  Bruno Haible  <bruno@clisp.org>
69105
69106         * gnulib-tool (SED): New variable.
69107         Use $SED instead of sed everywhere.
69108
69109 2006-12-22  Bruno Haible  <bruno@clisp.org>
69110
69111         * modules/no-c++: New file.
69112         * m4/no-c++.m4: New file.
69113         * MODULES.html.sh (Support for building libraries and executables):
69114         Add no-c++.
69115
69116 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
69117
69118         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69119         Include <limits.h>, and use its INT_MAX to rewrite the
69120         j loop so that it does not overflow 'int'.  Problem reported by
69121         Ralf Wildenhues in
69122         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
69123         Play it safe by shifting left by 1 rather than multiplying by 2,
69124         as GCC is less likely to optimize this away when the value
69125         is signed (when it assumes overflow leads to undefined behavior).
69126         Also, don't assume time_t uses two's complement.
69127
69128 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
69129
69130         * MODULES.html.sh: New module wctype.
69131         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
69132         * lib/fnmatch.c: Don't bother to include <wchar.h> before
69133         <wctype.h>, since the new wctype module should fix this.
69134         * lib/quotearg.c: Include <wctype.h> unconditionally, since
69135         the wctype module should arrange for it.
69136         * lib/regex_internal.h: Likewise.
69137         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
69138         since the wctype module should handle this now.
69139         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
69140         * modules/fnmatch (Depends-on): Add wctype.
69141         * modules/quotearg (Depends-on): Likewise.
69142         * modules/regex (Depends-on): Likewise.
69143
69144 2006-12-19  Bruno Haible  <bruno@clisp.org>
69145
69146         * lib/strdup.h [C++]: Wrap definitions in extern "C".
69147         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
69148
69149 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69150
69151         * modules/savewd (Depends-on): Fix dependency on fcntl.
69152
69153 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
69156         conforms to C99, rather than relying on the user's environment
69157         setting of STDINT_H.
69158
69159 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69160         and Eric Blake  <ebb9@byu.net>
69161
69162         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
69163         This is more consistent with the other defines here.
69164         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
69165         Port to z/OS.  Problem reported by Paul Gilmartin.
69166         Change local vars to use gl_ prefix rather than ac_.
69167         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
69168         with other defines.
69169         * modules/double-slash-root: New module.
69170         * modules/dirname (Files): Remove m4/double-slash-root.m4.
69171         (Depends-on): Add double-slash-root.
69172         * MODULES.html.sh (File system functions): Mention new module.
69173
69174 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
69175
69176         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
69177         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
69178         This is for the benefit of gzip, which doesn't do i18n.
69179
69180 2006-12-12  Jim Meyering  <jim@meyering.net>
69181
69182         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
69183         Reported by Andreas Schwab <schwab@suse.de>.
69184
69185 2006-12-12  Bruno Haible  <bruno@clisp.org>
69186
69187         Merge these changes.
69188         2006-09-05  Bruno Haible  <bruno@clisp.org>
69189         * lib/iconvme.c (iconv_string): No need to save and restore errno when
69190         iconv_alloc succeeded.
69191         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
69192         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
69193         test for " && dest " at the end - dest is always != NULL there. Call
69194         iconv with 4xNULL arguments initially, to reset the state. Call iconv
69195         with 2xNULL arguments, also to flush the state storage. Handle the
69196         IRIX iconv behaviour. Realloc the final result, to throw away unused
69197         memory.
69198
69199 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
69202         and fchmodat unconditionally, since glibc 2.4 has them.
69203         Problem reported by Arkadiusz Miskiewicz.
69204
69205 2006-12-10  Bruno Haible  <bruno@clisp.org>
69206
69207         * gnulib-tool (func_import): Show the include files only for those
69208         modules that are copied and specified.
69209         Reported by Karl Berry.
69210
69211 2006-12-08  Jim Meyering  <jim@meyering.net>
69212
69213         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
69214         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
69215
69216         * build-aux/announce-gen: Add two new options, both optional:
69217         --bootstrap-tools=TOOL_LIST
69218               a comma-separated list of tools, e.g.,
69219               autoconf,automake,bison,gnulib
69220         --gnulib-snapshot-date=DATE
69221               if gnulib is in the bootstrap tool list,
69222               then report this as the snapshot date.
69223               If not specified, use the current date/time.
69224               If you specify a date here, be sure it's UTC.
69225
69226 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69227
69228         * tests/test-argp-2.sh: Fix test to match actual output.
69229         (func_compare): Fix sed script to be portable.
69230
69231 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
69232
69233         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
69234         workaround for this case.  It is not autoconfigured now; offhand
69235         it's hard to see how to autoconfigure it.
69236
69237 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
69238
69239         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
69240         a directory that is about to be chowned.  Such a directory's
69241         initial file permissions should permit the owner only and this
69242         should not be changed until after the chown, since the group and
69243         other bits would be incorrect if they granted permission before
69244         the chown.
69245
69246         Fix porting problem for iswctype reported by Georg Schwarz in:
69247         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
69248         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
69249         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
69250         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
69251         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69252
69253 2006-12-03  Jim Meyering  <jim@meyering.net>
69254
69255         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
69256         p->fts_statp may not yet be defined.
69257         (fts_read): Instead, set it in the caller, once p->fts_statp is
69258         sure to be defined, and corresponds to a top-level directory.
69259         This bug made du -x fail.  Here's the coreutils test case:
69260         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
69261         Reported by Mike Frysinger.
69262
69263 2006-12-01  Jim Meyering  <jim@meyering.net>
69264
69265         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
69266         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
69267         Reported by Simon Josefsson.
69268
69269 2006-11-30  Jim Meyering  <jim@meyering.net>
69270
69271         * m4/warning.m4: Use the all-permissive copyright notice
69272         recommended by RMS (rather than LGPL).
69273         * m4/vararrays.m4: Likewise.
69274         * m4/flexmember.m4: Likewise.
69275
69276 2006-11-29  Bruno Haible  <bruno@clisp.org>
69277
69278         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69279         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
69280         using +=.
69281         Reported by Simon Josefsson <simon@josefsson.org>.
69282
69283 2006-11-28  James Youngman <jay@gnu.org>
69284
69285         * README: Advise users that they might find the bug-gnulib@gnu.org
69286         and autotools-announce@gnu.org mailing lists useful.
69287
69288 2006-11-28  Bruno Haible  <bruno@clisp.org>
69289
69290         * m4/ptrdiff_max.m4: Remove file.
69291
69292 2006-11-21  Bruno Haible  <bruno@clisp.org>
69293
69294         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
69295         _AC_COMPUTE_INT.
69296         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69297         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
69298         _AC_COMPUTE_INT.
69299         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69300         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
69301         _AC_COMPUTE_INT.
69302         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69303
69304 2006-11-28  Jim Meyering  <jim@meyering.net>
69305
69306         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
69307         warning from "gcc -Wshadow" about shadowing the builtin.
69308
69309 2006-11-27  Bruno Haible  <bruno@clisp.org>
69310
69311         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
69312         _AC_COMPUTE_INT.
69313         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69314
69315 2006-11-27  Bruno Haible  <bruno@clisp.org>
69316             Paul Eggert  <eggert@cs.ucla.edu>
69317
69318         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
69319
69320 2006-11-26  Bruno Haible  <bruno@clisp.org>
69321
69322         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69323         noinst_LTLIBRARIES.
69324
69325 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69326             Bruno Haible  <bruno@clisp.org>
69327
69328         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
69329         if compiling with "gcc -ansi".
69330
69331 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69332
69333         Fix some incompatibilities with gcc -ansi -pedantic.
69334         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
69335         if compiling pedantically with GCC, unless it's C99 or later.
69336         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
69337         it mishandles gcc -ansi -pedantic as well.
69338         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
69339         if gcc -pedantic.
69340         * lib/regexec.c (check_node_accept_bytes): Don't use auto
69341         initializers for struct if -pedantic, unless it's C99 or later.
69342
69343 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
69344
69345         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
69346         Don't close an fd more than once. Identical atimes indicate
69347         success, not failure.
69348
69349 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
69350
69351         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
69352
69353 2006-11-23  Jim Meyering  <jim@meyering.net>
69354
69355         * build-aux/announce-gen: New file.  From coreutils.
69356
69357 2006-11-22  Jim Meyering  <jim@meyering.net>
69358
69359         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
69360         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
69361         (fts_read): Use a temporary to narrow the overused st_size member
69362         before using it in a switch statement.  Reported by Matthew Woehlke.
69363
69364         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
69365         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
69366
69367 2006-11-20  Bruno Haible  <bruno@clisp.org>
69368
69369         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
69370         changequote instead of pairs of brackets.
69371         Reported by Andreas Schwab <schwab@suse.de>.
69372
69373 2006-11-21  Jim Meyering  <jim@meyering.net>
69374
69375         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
69376         so as to remain compatible with older compilers.
69377         Patch from Michael Deutschmann.
69378
69379 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * MODULES.html.sh (File system functions): Add openat.
69382
69383         * lib/openat.h (rpl_fstatat): New macro, if
69384         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
69385         (fstatat): Define to rpl_fstatat under the same conditions,
69386         unless COMPILING_FSTATAT.
69387         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
69388         seems to have the bug.
69389         * lib/fstatat.c: New file.
69390         * modules/openat (Files): Add it.
69391
69392 2006-11-20  Bruno Haible  <bruno@clisp.org>
69393
69394         * Makefile: New file.
69395
69396 2006-11-20  Jim Meyering  <jim@meyering.net>
69397
69398         The beginnings of syntax-related checks for gnulib.
69399         * lib/Makefile: New file.
69400         * lib/t-idcache: New script.  Ensure that the two halves of
69401         idcache.c stay in sync.
69402
69403         * lib/idcache.c: Adjust comments in user- and group- portions to
69404         be more accurate, and to be consistent with one another.
69405
69406 2006-11-20  Jim Meyering  <jim@meyering.net>
69407
69408         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
69409         continue using the flexible array member (thus, this module performs
69410         half as many malloc calls), with the addition that...
69411         (getgroup, getuser): Consistently record a non-match via an empty
69412         "name" string, and map an empty string match to a NULL return value.
69413         * modules/idcache (Depends-on): Re-add flexmember.
69414
69415         * lib/idcache.c (getuser): Remove all uses of the register keyword.
69416         (getuidbyname, getgroup, getgidbyname): Likewise.
69417
69418         Use cleaner syntax: NULL rather than 0.
69419         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
69420
69421 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69422
69423         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
69424         It mishandled the case where the group was missing.
69425         Problem reported by Greg Schafer.
69426         * modules/idcache: Likewise.
69427
69428 2006-11-18  Jim Meyering  <jim@meyering.net>
69429
69430         * check-module (%exempt_header): Add exception for some
69431         conditionally-included headers.
69432
69433         * modules/i-ring (Depends-on): Add verify.
69434         (License): Change to LGPL.
69435
69436 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
69439         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
69440         and inttostr.h.  Use snprintf rather than uinttostr, so that
69441         LGPLed code doesn't depend on GPLed.
69442
69443 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69444
69445         * modules/inline (License): Change from GPL to LGPL.
69446
69447 2006-11-17  Jim Meyering  <jim@meyering.net>
69448
69449         * modules/d-type (License): Switch to LGPL.
69450
69451 2006-11-15  Bruno Haible  <bruno@clisp.org>
69452
69453         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
69454
69455 2006-11-15  Eric Blake  <ebb9@byu.net>
69456
69457         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
69458         the module dependency.
69459
69460 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69461             Bruno Haible  <bruno@clisp.org>
69462
69463         * gnulib-tool (func_create_testdir): Add license consistency check.
69464
69465 2006-11-15  Eric Blake  <ebb9@byu.net>
69466
69467         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
69468         random "(cached)" in configure output.
69469
69470 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69471
69472         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
69473         test for conforming inttypes.h is both announced and cached.
69474
69475         * MODULES.html.sh (seen_modules, seen_files): New variables.
69476         (func_module): Rewrite to use a few less gnulib-tool and sed
69477         invocations.  Avoid a couple of quadratic algorithms for ...
69478         (missed_modules, missed_files): ... these, with ...
69479         (func_append, func_tmpdir): ... these new functions, from
69480         gnulib-tool.  Analogously, install traps for cleanup.
69481
69482         * tests/test-gc.c (main): Remove unused variables.
69483         * tests/test-read-file.c: Include stdlib.h, for 'free'.
69484
69485 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
69486
69487         * modules/inttostr (License): Change to LGPL.
69488
69489 2006-11-14  Eric Blake  <ebb9@byu.net>
69490
69491         * modules/tempname (License): Change to LGPL.
69492
69493 2006-11-14  Eric Blake  <ebb9@byu.net>
69494
69495         * doc/functions.texi (Function Portability): *printf functions on
69496         Cygwin now understand all POSIX size specifiers.
69497
69498 2006-11-14  Bruno Haible  <bruno@clisp.org>
69499
69500         * modules/c-ctype (License): Change to LGPL.
69501
69502 2006-11-12  Bruno Haible  <bruno@clisp.org>
69503
69504         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
69505         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
69506         for GNOME libraries, for which the include files are installed in
69507         subdirectories of $prefix/include.
69508
69509 2006-11-12  Bruno Haible  <bruno@clisp.org>
69510
69511         * m4/lib-link.m4: Require at least autoconf-2.54.
69512         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
69513         name to underscores for the --with option.
69514
69515 2006-11-13  Bruno Haible  <bruno@clisp.org>
69516
69517         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
69518         the tests directory.
69519         Reported by Ralf Wildenhues.
69520
69521 2006-11-13  Bruno Haible  <bruno@clisp.org>
69522
69523         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
69524         (func_emit_initmacro_end): Undo the override here.
69525         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
69526         Works around the famous automake error in coreutils.
69527
69528 2006-11-13  Eric Blake  <ebb9@byu.net>
69529
69530         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
69531         element, not its node.
69532
69533 2006-11-12  Bruno Haible  <bruno@clisp.org>
69534
69535         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
69536         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
69537
69538 2006-11-12  Bruno Haible  <bruno@clisp.org>
69539
69540         * gnulib-tool: New option --local-symlink.
69541         (func_usage): Document it.
69542         (lsymbolic): New variable.
69543         (func_import, func_create_testdir): If --symlink was not specified,
69544         test whether --local-symlink was specified and the file comes from
69545         the local_gnulib_dir.
69546
69547 2006-11-12  Bruno Haible  <bruno@clisp.org>
69548
69549         * gnulib-tool (func_ln): New function.
69550         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
69551
69552 2006-11-12  Bruno Haible  <bruno@clisp.org>
69553
69554         Finish support for source files in subdirectories.
69555         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
69556         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
69557         AUTOMAKE_OPTIONS.
69558         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
69559
69560 2006-11-12  Bruno Haible  <bruno@clisp.org>
69561
69562         * gnulib-tool (func_get_automake_snippet): Synthesize also an
69563         EXTRA_lib_SOURCES augmentation.
69564         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
69565
69566 2006-11-12  Jim Meyering  <jim@meyering.net>
69567
69568         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
69569         file descriptors.  This also averts a failure on systems with
69570         native openat support when a traversed directory lacks "x" access.
69571         * lib/fts_.h: Include "i-ring.h"
69572         (struct FTS) [fts_fd_ring]: New member.
69573         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
69574         (FCHDIR): Add parentheses.
69575         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
69576         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
69577         When descending, rather than simply closing the previous
69578         fts_cwd_fd value, push that file descriptor onto the ring.
69579         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
69580         (fts_open): Initialize the new fd_ring member.
69581         (fts_close): Clear the ring.
69582         (fts_safe_changedir): When possible, use our new fd_ring to skip
69583         the diropen and fstat and dev/ino comparison that would normally
69584         accompany a virtual `chdir ("..")'.
69585
69586         * modules/fts (Depends-on): Add i-ring.
69587         * modules/i-ring: New module.
69588         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
69589         * m4/i-ring.m4: New file.
69590
69591 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69592
69593         * gnulib-tool (func_create_testdir): Fix replacement of
69594         `build-aux' in configure.ac.  Run autotools in gltests
69595         subdirectory.
69596         (func_create_testdir, func_create_megatestdir, test): There is
69597         no need for '--force' in most autotool invocations in a new
69598         tree.  Actually fail the whole test if any of the tools, or the
69599         configure or make stages fail.
69600
69601         Sync from Automake.
69602         * build-aux/gnupload: Revert last change.  Add pointer to upload
69603         instructions of the GNU Maintenance Instructions.
69604         Suggestion by Karl Berry.
69605
69606 2006-11-10  Jim Meyering  <jim@meyering.net>
69607
69608         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
69609
69610 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
69613         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
69614         (bind_textdomain_codeset) [! ENABLE_NLS]:
69615         Evaluate all the arguments.  That way, callers get compatible behavior
69616         if the arguments have side effects.  Also, it avoids some GCC
69617         diagnostics in some cases; Joel E. Denny reported problems when Bison
69618         was configured with --enable-gcc-warnigs.
69619
69620 2006-11-10  Jim Meyering  <jim@meyering.net>
69621
69622         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
69623         relevant options in CFLAGS (like -O, -fno-inline) are taken into
69624         account.
69625
69626 2006-11-10  Jim Meyering  <jim@meyering.net>
69627
69628         * modules/inline: New file/module.
69629         * modules/xalloc (Files): Remove m4/inline.m4.
69630         (Depends-on): Add inline, instead.
69631         * modules/oset: Likewise.
69632         * modules/list: Likewise.
69633
69634 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69635
69636         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
69637         Problem reported by Matthew Woehlke.
69638
69639 2006-11-09  Bruno Haible  <bruno@clisp.org>
69640
69641         * lib/tempname.c (gen_tempname): Remove variant that invokes
69642         __gen_tempname.
69643         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
69644         __gen_tempname.
69645
69646 2006-11-08  Bruno Haible  <bruno@clisp.org>
69647
69648         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
69649         to 'yes' instead of 'cross-compiling'.
69650
69651 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
69652
69653         * lib/quotearg.h (quotearg_free): New decl.
69654         * lib/quotearg.c (quotearg_free): New function.
69655         (slot0, nslots, slotvec0, slotvec):
69656         Now file-scope so that quotearg_free can get at them.
69657
69658 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69659
69660         Sync from Automake.
69661         * build-aux/gnupload: Add missing 'gnu' to example URL.
69662         Report by Karl Berry.
69663
69664 2006-11-08  Bruno Haible  <bruno@clisp.org>
69665
69666         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
69667         Suggested by Paul Eggert.
69668
69669 2006-11-08  Jim Meyering  <jim@meyering.net>
69670
69671         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
69672         It's already included if !_LIBC.
69673         (fts_safe_changedir): Add a comment.
69674
69675 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
69678         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
69679         Matthew Woehlke.
69680
69681         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
69682         definitions up, to avoid colliding with change below.
69683         (static_inline) [HAVE_INLINE]: New macro.
69684         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
69685         Provide extern decls when !HAVE_INLINE.  Do not define unless
69686         static_inline is defined, either by us or by xmalloc.c.  Use
69687         static_inline rather than static inline.
69688         (XCALLOC): Optimize sizeof(T) = 1 case.
69689         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
69690
69691 2006-11-07  Bruno Haible  <bruno@clisp.org>
69692
69693         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
69694         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
69695         AC_C_INLINE.
69696         * modules/xalloc (Files): Add m4/inline.m4.
69697
69698 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69699
69700         * README: Fix typo.
69701         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
69702         (Miscellanous Notes): ...from this.
69703
69704 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
69705
69706         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
69707         Mention that offsetof should be used instead of sizeof.
69708         From Bruno Haible.
69709
69710 2006-11-07  Bruno Haible  <bruno@clisp.org>
69711
69712         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
69713
69714 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69715
69716         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69717         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
69718         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69719         (gl_tree_add_before, gl_tree_add_after):
69720         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
69721         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
69722         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69723         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
69724         (gl_linked_add_after, gl_linked_add_at): Likewise.
69725         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
69726         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
69727         (gl_tree_add_before, gl_tree_add_after): Likewise.
69728         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
69729         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
69730         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
69731
69732 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69733
69734         * lib/gl_oset.h: Use C comment style, not C++ comment style.
69735
69736 2006-11-06  Bruno Haible  <bruno@clisp.org>
69737
69738         * m4/inline.m4: New file.
69739         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
69740         * modules/list (Files): Add m4/inline.m4.
69741         * modules/oset (Files): Likewise.
69742
69743 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
69744
69745         * lib/idcache.c: Include <stddef.h>, for offsetof.
69746         (struct userid.name): Change from char * to a flexible array member.
69747         All uses changed.
69748         * modules/idcache (Depends-on): Add flexmember.
69749
69750         * MODULES.html.sh (Core language properties): New module flexmember.
69751         * modules/flexmember, m4/flexmember.m4: New files.
69752
69753         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
69754         inline functions that are identical with the old xnmalloc_inline,
69755         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
69756         that we can avoid some unnecessary integer multiplications and
69757         divisions in the common case where the element size is known at
69758         compile time.
69759         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
69760         needed.
69761         (xnboundedmalloc): Remove.
69762         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
69763         arguments, for consistency with rest of this header.
69764         (xcharalloc): Rewrite using XNMALLOC.
69765         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
69766         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
69767         versions have been moved to lib/xalloc.h and renamed to be the
69768         non-*_inline versions.
69769         (xmalloc, xrealloc): Implement without reference to the xnmalloc
69770         and xnrealloc functions, since those functions are now inline and
69771         now call us.
69772         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
69773         renaming described above.
69774         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
69775         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
69776         captures the dependency in AC_C_INLINE.
69777
69778         New module canonicalize-lgpl, proposed by Charles Wilson in
69779         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
69780         with a few small changes afterwards.
69781         * MODULES.html.sh (File system functions): New module
69782         canonicalize-lgpl.
69783         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
69784         and canonicalize_file_name.
69785         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
69786         * modules/canonicalize-lgpl: New files.
69787
69788 2006-11-05  Bruno Haible  <bruno@clisp.org>
69789
69790         * gnulib-tool (func_import, func_create_testdir): Create directories
69791         also for files in subdirectories of lib/.
69792
69793 2006-11-05  Bruno Haible  <bruno@clisp.org>
69794
69795         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
69796         ANSI C compliant.
69797
69798 2006-11-03  Bruno Haible  <bruno@clisp.org>
69799
69800         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
69801         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
69802         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
69803         (xnboundedmalloc): New inline function.
69804         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
69805         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
69806         xmalloc.
69807         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
69808         xmalloc.
69809         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
69810         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
69811         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
69812         xmalloc.
69813         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69814         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
69815         xmalloc.
69816         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
69817         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69818         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
69819         xmalloc.
69820         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
69821         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
69822         gl_tree_add_after): Use XMALLOC instead of xmalloc.
69823         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
69824         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
69825         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
69826         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
69827
69828 2006-11-03  Bruno Haible  <bruno@clisp.org>
69829
69830         * lib/c-ctype.h [C++]: Define functions without name mangling.
69831         * lib/fwriteerror.h [C++]: Likewise.
69832         * lib/gcd.h [C++]: Likewise.
69833         * lib/linebreak.h [C++]: Likewise.
69834
69835 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69836
69837         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
69838         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
69839         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
69840         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69841         Check for functions and headers just once.
69842         Check for declaration of canonicalize_file_name.
69843         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
69844
69845 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69846
69847         * gnulib-tool (func_import): Fix typo in actioncmd.
69848
69849 2006-11-02  Bruno Haible  <bruno@clisp.org>
69850
69851         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
69852         newline sequence in the Makefile.am snippet as a space, like "make"
69853         does.
69854         Reported by Roger Persson <perrog@gmail.com>.
69855
69856 2006-11-01  Bruno Haible  <bruno@clisp.org>
69857
69858         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
69859         already declared in <string.h>.
69860         * lib/strcase.h (strncasecmp): Don't declare it if yes.
69861
69862 2006-11-01  Bruno Haible  <bruno@clisp.org>
69863
69864         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
69865         * lib/strcase.h: Include <string.h>.
69866         (strcasecmp): Define to rpl_strcasecmp here.
69867
69868 2006-11-01  Bruno Haible  <bruno@clisp.org>
69869
69870         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
69871
69872 2006-11-01  Eric Blake  <ebb9@byu.net>
69873
69874         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
69875
69876         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
69877
69878 2006-10-29  Bruno Haible  <bruno@clisp.org>
69879
69880         Make it compile in C++ mode.
69881         * lib/full-write.c (full_rw): Add a cast.
69882
69883 2006-11-01  Bruno Haible  <bruno@clisp.org>
69884
69885         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
69886         be POSIX compliant.
69887         Reported by Roger Persson <perrog@gmail.com>.
69888
69889 2006-11-01  Eric Blake  <ebb9@byu.net>
69890
69891         * lib/getopt_.h: Fix comments.
69892
69893 2006-10-31  Eric Blake  <ebb9@byu.net>
69894
69895         * modules/tmpdir (Depends-on): Add sys_stat.
69896         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
69897         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
69898         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
69899         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
69900         tempname.
69901
69902 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         Avoid some C++ diagnostics reported by Bruno Haible.
69905         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
69906         xmalloc.
69907         (quotearg_alloc): Use xcharalloc rather than xmalloc.
69908         (struct slotvec): Move to top level.
69909         (quotearg_n_options): Rewrite to avoid xmalloc.
69910         * lib/xalloc.h (xcharalloc): New function.
69911         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
69912         [defined __cplusplus]: Add function template that provides result
69913         type propagation.  This part of the change is from Bruno Haible.
69914
69915 2006-10-29  Bruno Haible  <bruno@clisp.org>
69916
69917         Make it compile in C++ mode.
69918         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
69919         * lib/strnlen1.c (strnlen1): Cast memchr result.
69920         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
69921         * lib/clean-temp.c (string_equals, string_hash): Add casts.
69922         (create_temp_dir): Rename local variable 'template'.
69923         (compile_csharp_using_sscli): Add cast.
69924         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
69925         * lib/findprog.c (find_in_path): Likewise.
69926         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
69927         * lib/wait-process.c (register_slave_subprocess): Likewise.
69928
69929 2006-10-22  Bruno Haible  <bruno@clisp.org>
69930
69931         * modules/tsearch: New file.
69932         * lib/tsearch.h: New file.
69933         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
69934         * m4/tsearch.m4: New file.
69935         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
69936
69937 2006-10-29  Eric Blake  <ebb9@byu.net>
69938
69939         * lib/arcfour.c: Assume config.h.
69940         * lib/arctwo.c: Likewise.
69941         * lib/base64.c: Likewise.
69942         * lib/check-version.c: Likewise.
69943         * lib/crc.c: Likewise.
69944         * lib/des.c: Likewise.
69945         * lib/gc-gnulib.c: Likewise.
69946         * lib/gc-libgcrypt.c: Likewise.
69947         * lib/gc-pbkdf2-sha1.c: Likewise.
69948         * lib/getaddrinfo.c: Likewise.
69949         * lib/getdelim.c: Likewise.
69950         * lib/getline.c: Likewise.
69951         * lib/hmac-md5.c: Likewise.
69952         * lib/hmac-sha1.c: Likewise.
69953         * lib/iconvme.c: Likewise.
69954         * lib/md2.c: Likewise.
69955         * lib/md4.c: Likewise.
69956         * lib/memxor.c: Likewise.
69957         * lib/read-file.c: Likewise.
69958         * lib/readline.c: Likewise.
69959         * lib/rijndael-alg-fst.c: Likewise.
69960         * lib/rijndael-api-fst.c: Likewise.
69961         * lib/xgetdomainname.c: Likewise.
69962
69963 2006-10-28  Eric Blake  <ebb9@byu.net>
69964
69965         * lib/xstrndup.c: Assume config.h.
69966
69967 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69968
69969         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
69970         stat-macros.h is now for our own macros, whereas stat_h is for
69971         macros in the <sys/stat.h> name space.
69972         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
69973         (STAT_MACROS_H): Remove.
69974         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
69975         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
69976         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
69977         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
69978         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
69979         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
69980         Move these macros to ...
69981         * lib/stat_.h: here.  Don't include stat-macros.h.
69982         * lib/canonicalize.c: Don't include stat-macros.h.
69983         * lib/chown.c: Likewise.
69984         * lib/euidaccess.c: Likewise.
69985         * lib/file-type.c: Likewise.
69986         * lib/filemode.c: Likewise.
69987         * lib/glob.c: Likewise.
69988         * lib/isapipe.c: Likewise.
69989         * lib/lchown.c: Likewise.
69990         * lib/lstat.c: Likewise.
69991         * lib/mkdir-p.c: Likewise.
69992         * lib/rmdir.c: Likewise.
69993         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
69994         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
69995         unless mkdir isn't declared, to speed up 'configure'.
69996         Always create sys/stat.h, since it's unlikely any real sys/stat.h
69997         would define all the S_* symbols.
69998         * modules/canonicalize (Depends-on):
69999         Depend on sys_stat, not stat-macros.
70000         * modules/chown: Likewise.
70001         * modules/euidaccess: Likewise.
70002         * modules/filemode: Likewise.
70003         * modules/file-type: Likewise.
70004         * modules/glob: Likewise.
70005         * modules/isapipe: Likewise.
70006         * modules/lchown: Likewise.
70007         * modules/lstat: Likewise.
70008         * modules/mkancesdirs: Likewise.
70009         * modules/rmdir: Likewise.
70010         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
70011         * modules/modechange: Likewise.
70012         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
70013         (configure.ac): Remove gl_STAT_MACROS.
70014         * modules/sys_stat (Depends-on): Remove stat-macros.
70015
70016 2006-10-27  Bruno Haible  <bruno@clisp.org>
70017
70018         * m4/signed.m4: Remove file.
70019         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
70020         invocation.
70021         * modules/vasnprintf (Files): Remove m4/signed.m4.
70022
70023 2006-10-27  Bruno Haible  <bruno@clisp.org>
70024
70025         Update to GNU gettext 0.16.
70026         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
70027         m4/inttypes-h.m4, m4/signed.m4.
70028         * m4/gettext.m4: Update to GNU gettext 0.16.
70029         * m4/intl.m4: New file, from GNU gettext.
70030         * m4/intldir.m4: New file, from GNU gettext.
70031         * config/srclist.txt: Update
70032
70033 2006-10-27  Eric Blake  <ebb9@byu.net>
70034
70035         * MODULES.html.sh: Document tempname.
70036         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
70037         dependencies.
70038         (Files): Move lib/tempname.c...
70039         * modules/tempname: ...to this new module.
70040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
70041         (gl_PREREQ_TEMPNAME): Move...
70042         * m4/tempname.m4: ...to this new file.
70043         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
70044         * modules/sys_stat (Depends-on): Add stat-macros.
70045         * lib/stat_.h (includes): Pick up stat macros.
70046         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
70047         if stat macros are broken.
70048         * lib/tempname.c (includes): No need to include "stat-macros.h".
70049         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
70050         (direxists, __path_search) [!_LIBC]: Don't compile these in
70051         gnulib; the tmpdir module covers that.
70052         * lib/tempname.h: New file.
70053
70054 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
70055
70056         * COPYING: Explain how gnulib-tool converts licence headers.
70057         Almost all wording by Eric Blake.
70058
70059 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
70060
70061         * lib/mbchar.h (is_basic_table): Make read-only.
70062         * lib/mbchar.c (is_basic_table): Likewise.
70063         Reported by John Darrington.
70064
70065 2006-10-25  Bruno Haible  <bruno@clisp.org>
70066
70067         * lib/progname.h (set_program_name): Undefine before defining.
70068
70069 2006-10-25  Bruno Haible  <bruno@clisp.org>
70070
70071         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
70072         false for non-gcc C++ compilers.
70073         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70074
70075 2006-10-24  Bruno Haible  <bruno@clisp.org>
70076
70077         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
70078         iconv implementations like Irix iconv.
70079
70080 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70081
70082         * modules/vararrays: New file.
70083         * m4/vararrays.m4: New file, taken from diffutils.
70084         * MODULES.html.sh: New module vararrays.
70085
70086 2006-10-24  Karl Berry  <karl@gnu.org>
70087
70088         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
70089         Don't call GNU Unix.
70090
70091 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70092
70093         * users.txt: Add Libtool.
70094
70095         Sync from Libtool:
70096
70097         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
70100         to gnulib's policy of including config.h unconditionally.
70101
70102 2006-10-24  Bruno Haible  <bruno@clisp.org>
70103
70104         * modules/wcwidth (Files): Add m4/wint_t.m4.
70105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
70106         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
70107
70108 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70109
70110         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
70111         to pacify GCC with some -W flags enabled.  Problem reported by
70112         Bruno Haible.
70113
70114 2006-10-24  Jim Meyering  <jim@meyering.net>
70115
70116         * MODULES.html.sh: Remove uinttostr.  It's not a module.
70117         Reported by Karl Berry.
70118
70119 2006-10-23  Bruno Haible  <bruno@clisp.org>
70120
70121         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
70122
70123 2006-10-24  Bruno Haible  <bruno@clisp.org>
70124
70125         * lib/gl_list.h: Use C comment style, not C++ comment style.
70126
70127 2006-10-23  Eric Blake  <ebb9@byu.net>
70128
70129         * lib/getaddrinfo.c (includes): Add missing include.
70130
70131 2006-10-23  Bruno Haible  <bruno@clisp.org>
70132             Paul Eggert  <eggert@cs.ucla.edu>
70133
70134         Ability to rename obstack_free.
70135         * lib/obstack.h (__obstack_free): New macro. Declare instead of
70136         obstack_free.
70137         (obstack_free): Invoke the __obstack_free macro.
70138         * lib/obstack.c (obstack_free): Use __obstack_free macro.
70139
70140 2006-10-23  Bruno Haible  <bruno@clisp.org>
70141             Paul Eggert  <eggert@cs.ucla.edu>
70142
70143         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
70144         __argc, __argv from the declaration. (They are defined as macros on
70145         mingw.)
70146
70147 2006-10-22  Bruno Haible  <bruno@clisp.org>
70148
70149         * doc/gnulib-intro.texi: New file.
70150         * doc/gnulib.texi: Include it.
70151
70152 2006-10-21  Bruno Haible  <bruno@clisp.org>
70153
70154         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
70155         "Introduction", "Miscellanous Notes", "Particular Modules".
70156
70157 2006-10-21  Bruno Haible  <bruno@clisp.org>
70158
70159         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70160         Change mostlyclean-local rule to avoid sh syntax error from bash
70161         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
70162
70163 2006-10-23  Jim Meyering  <jim@meyering.net>
70164
70165         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
70166         in place of snprintf.
70167
70168         * modules/inttostr (Files): Add lib/uinttostr.c.
70169         * lib/uinttostr.c (inttostr): New file/function.
70170         * lib/inttostr.h (uinttostr): Declare.
70171         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
70172         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70173         Add uinttostr.
70174         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
70175
70176 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70177
70178         * lib/canonicalize.c (ELOOP): Define if not already defined.
70179         Problem reported by Bruno Haible in
70180         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
70181
70182 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
70185         Problem reported by Perry Smith and Ville Laurikari.
70186
70187         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
70188         uses.
70189
70190 2006-10-19  Bruno Haible  <bruno@clisp.org>
70191
70192         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
70193         for mingw.
70194
70195 2006-10-19  Bruno Haible  <bruno@clisp.org>
70196
70197         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
70198         Needed for mingw.
70199
70200 2006-10-19  Bruno Haible  <bruno@clisp.org>
70201
70202         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
70203
70204 2006-10-19  Bruno Haible  <bruno@clisp.org>
70205
70206         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
70207         it.
70208
70209 2006-10-19  Bruno Haible  <bruno@clisp.org>
70210
70211         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
70212         invocation.
70213
70214 2006-10-19  Bruno Haible  <bruno@clisp.org>
70215
70216         * gnulib-tool (func_create_testdir): Don't include ftruncate and
70217         mountlist by default.
70218
70219 2006-10-16  Bruno Haible  <bruno@clisp.org>
70220
70221         * lib/c-strstr.c: Include c-strstr.h.
70222
70223 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70224
70225         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
70226         in a slash.
70227
70228 2006-10-18  Bruno Haible  <bruno@clisp.org>
70229
70230         * lib/lock.h [C++]: Wrap definitions in extern "C".
70231
70232 2006-10-18  Bruno Haible  <bruno@clisp.org>
70233
70234         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
70235         gl_LIBOBJS list.
70236
70237 2006-10-18  Bruno Haible  <bruno@clisp.org>
70238
70239         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
70240
70241 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         * lib/xstrtol.h: Include gettext.h.
70244         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
70245         Problem reported by Eric Blake.
70246         * modules/xstrtol (Depends-on): Add gettext-h.
70247
70248 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
70249
70250         * lib/strftime.c (advance): New macro.
70251         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
70252         incomplete type, so you can't add 0 to it.  Problem and patch
70253         reported by Eelco Dolstra for dietlibc.
70254
70255 2006-10-18  Jim Meyering  <jim@meyering.net>
70256
70257         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
70258         type for a local, and rename it: s/up/user_proc/.
70259
70260 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
70261
70262         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
70263         READ_UTMP_USER_PROCESS.
70264         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
70265
70266 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70267
70268         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
70269         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
70270
70271 2006-10-17  Eric Blake  <ebb9@byu.net>
70272
70273         * lib/sigprocmask.c (sigprocmask): Fix typo.
70274
70275         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
70276
70277         * modules/clean-temp (Makefile.am): Don't add to make output...
70278         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
70279         config.h.
70280
70281 2006-10-17  Bruno Haible  <bruno@clisp.org>
70282
70283         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
70284         differently if DEFAULT_TEXT_DOMAIN is set.
70285
70286 2006-10-16  Bruno Haible  <bruno@clisp.org>
70287
70288         * lib/clean-temp.c: Include fwriteerror.h.
70289
70290 2006-10-16  Bruno Haible  <bruno@clisp.org>
70291
70292         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
70293
70294 2006-10-16  Bruno Haible  <bruno@clisp.org>
70295
70296         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
70297         * lib/sigprocmask.h: Include <sys/types.h>.
70298         (sigset_t): Use the system's definition if present.
70299
70300 2006-10-17  Eric Blake  <ebb9@byu.net>
70301
70302         * lib/xvasprintf.c (includes): Assume config.h.
70303         * lib/xasprintf.c (includes): Likewise.
70304
70305 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
70308         at least as wide as intmax_t.
70309
70310 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
70311
70312         (Imported from Automake.)
70313         * build-aux/gnupload: Update to version 1.1 of directive file.
70314
70315 2006-10-16  Eric Blake  <ebb9@byu.net>
70316
70317         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
70318         match Automake 1.10a.
70319
70320 2006-10-14  Bruno Haible  <bruno@clisp.org>
70321
70322         * modules/sigprocmask: New file.
70323         * lib/sigprocmask.h: New file.
70324         * lib/sigprocmask.c: New file.
70325         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
70326         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
70327         request sigprocmask.o.
70328         (gl_PREREQ_SIGPROCMASK): New macro.
70329         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
70330         (Depends-on): Add sigprocmask.
70331         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
70332         gt_SIGNALBLOCKING. Test for 'raise' only once.
70333         * lib/fatal-signal.c: Include sigprocmask.h.
70334         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
70335         unblock_fatal_signals): Define always.
70336         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70337         sigprocmask.
70338
70339 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70340
70341         Sync from Automake.
70342         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
70343         which incorrectly sets the mode of an existing destination
70344         directory.  In some cases the unpatched install-sh could do the
70345         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
70346         system.  We hope this is rare in practice, but it's clearly worth
70347         fixing.  Problem reported by Alex Unleashed in
70348         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
70349         Also, don't bother to check for -m bugs unless we're using -m;
70350         suggested by Stepan Kasal.
70351
70352 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70353
70354         Sync from Automake.
70355         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
70356         `-c' flag, so they appear at the same position as in %FASTDEP%
70357         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
70358         which ignores unknown options only after the first non-option.
70359         Bug report against M4 by Nelson H. F. Beebe.
70360
70361 2006-10-13  Jim Meyering  <jim@meyering.net>
70362
70363         Fix a bug in yesterday's change.
70364         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
70365         p->fts_statp->st_dev would be used uninitialized.
70366         Ensures that we always call fts_stat on the very first entry.
70367         Miklos Szeredi reported that find -xdev stopped working.
70368
70369 2006-10-12  Bruno Haible  <bruno@clisp.org>
70370
70371         * gnulib-tool (func_get_automake_snippet): Append an automatically
70372         computed EXTRA_DIST augmentation.
70373         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
70374         * modules/alloca-opt (Makefile.am): Likewise.
70375         * modules/allocsa (Makefile.am): Likewise.
70376         * modules/arcfour (Makefile.am): Likewise.
70377         * modules/arctwo (Makefile.am): Likewise.
70378         * modules/argmatch (Makefile.am): Likewise.
70379         * modules/argz (Makefile.am): Likewise.
70380         * modules/atexit (Makefile.am): Likewise.
70381         * modules/backupfile (Makefile.am): Likewise.
70382         * modules/byteswap (Makefile.am): Likewise.
70383         * modules/c-strtod (Makefile.am): Likewise.
70384         * modules/c-strtold (Makefile.am): Likewise.
70385         * modules/calloc (Makefile.am): Likewise.
70386         * modules/canon-host (Makefile.am): Likewise.
70387         * modules/canonicalize (Makefile.am): Likewise.
70388         * modules/chdir-long (Makefile.am): Likewise.
70389         * modules/chdir-safer (Makefile.am): Likewise.
70390         * modules/check-version (Makefile.am): Likewise.
70391         * modules/chown (Makefile.am): Likewise.
70392         * modules/cloexec (Makefile.am): Likewise.
70393         * modules/close-stream (Makefile.am): Likewise.
70394         * modules/closeout (Makefile.am): Likewise.
70395         * modules/crc (Makefile.am): Likewise.
70396         * modules/csharpexec (Makefile.am): Likewise.
70397         * modules/cycle-check (Makefile.am): Likewise.
70398         * modules/des (Makefile.am): Likewise.
70399         * modules/dev-ino (Makefile.am): Likewise.
70400         * modules/dirfd (Makefile.am): Likewise.
70401         * modules/dirname (Makefile.am): Likewise.
70402         * modules/dup2 (Makefile.am): Likewise.
70403         * modules/eealloc (Makefile.am): Likewise.
70404         * modules/error (Makefile.am): Likewise.
70405         * modules/euidaccess (Makefile.am): Likewise.
70406         * modules/exclude (Makefile.am): Likewise.
70407         * modules/exitfail (Makefile.am): Likewise.
70408         * modules/fcntl-safer (Makefile.am): Likewise.
70409         * modules/fcntl (Makefile.am): Likewise.
70410         * modules/file-type (Makefile.am): Likewise.
70411         * modules/fileblocks (Makefile.am): Likewise.
70412         * modules/filemode (Makefile.am): Likewise.
70413         * modules/filenamecat (Makefile.am): Likewise.
70414         * modules/fnmatch (Makefile.am): Likewise.
70415         * modules/fopen-safer (Makefile.am): Likewise.
70416         * modules/fpending (Makefile.am): Likewise.
70417         * modules/fprintftime (Makefile.am): Likewise.
70418         * modules/free (Makefile.am): Likewise.
70419         * modules/fsusage (Makefile.am): Likewise.
70420         * modules/ftruncate (Makefile.am): Likewise.
70421         * modules/fts (Makefile.am): Likewise.
70422         * modules/gc-arcfour (Makefile.am): Likewise.
70423         * modules/gc-des (Makefile.am): Likewise.
70424         * modules/gc-hmac-md5 (Makefile.am): Likewise.
70425         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
70426         * modules/gc-md4 (Makefile.am): Likewise.
70427         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
70428         * modules/gc-sha1 (Makefile.am): Likewise.
70429         * modules/gc (Makefile.am): Likewise.
70430         * modules/getaddrinfo (Makefile.am): Likewise.
70431         * modules/getcwd (Makefile.am): Likewise.
70432         * modules/getdelim (Makefile.am): Likewise.
70433         * modules/getdomainname (Makefile.am): Likewise.
70434         * modules/getgroups (Makefile.am): Likewise.
70435         * modules/gethostname (Makefile.am): Likewise.
70436         * modules/gethrxtime (Makefile.am): Likewise.
70437         * modules/getline (Makefile.am): Likewise.
70438         * modules/getloadavg (Makefile.am): Likewise.
70439         * modules/getlogin_r (Makefile.am): Likewise.
70440         * modules/getndelim2 (Makefile.am): Likewise.
70441         * modules/getopt (Makefile.am): Likewise.
70442         * modules/getpagesize (Makefile.am): Likewise.
70443         * modules/getpass-gnu (Makefile.am): Likewise.
70444         * modules/getpass (Makefile.am): Likewise.
70445         * modules/getsubopt (Makefile.am): Likewise.
70446         * modules/gettime (Makefile.am): Likewise.
70447         * modules/gettimeofday (Makefile.am): Likewise.
70448         * modules/getugroups (Makefile.am): Likewise.
70449         * modules/getusershell (Makefile.am): Likewise.
70450         * modules/glob (Makefile.am): Likewise.
70451         * modules/group-member (Makefile.am): Likewise.
70452         * modules/hard-locale (Makefile.am): Likewise.
70453         * modules/hash (Makefile.am): Likewise.
70454         * modules/hmac-md5 (Makefile.am): Likewise.
70455         * modules/hmac-sha1 (Makefile.am): Likewise.
70456         * modules/human (Makefile.am): Likewise.
70457         * modules/idcache (Makefile.am): Likewise.
70458         * modules/imaxabs (Makefile.am): Likewise.
70459         * modules/imaxdiv (Makefile.am): Likewise.
70460         * modules/inet_ntop (Makefile.am): Likewise.
70461         * modules/inet_pton (Makefile.am): Likewise.
70462         * modules/intprops (Makefile.am): Likewise.
70463         * modules/inttostr (Makefile.am): Likewise.
70464         * modules/inttypes (Makefile.am): Likewise.
70465         * modules/isapipe (Makefile.am): Likewise.
70466         * modules/javaversion (Makefile.am): Likewise.
70467         * modules/lchmod (Makefile.am): Likewise.
70468         * modules/lchown (Makefile.am): Likewise.
70469         * modules/localcharset (Makefile.am): Likewise.
70470         * modules/long-options (Makefile.am): Likewise.
70471         * modules/lstat (Makefile.am): Likewise.
70472         * modules/malloc (Makefile.am): Likewise.
70473         * modules/mathl (Makefile.am): Likewise.
70474         * modules/mbchar (Makefile.am): Likewise.
70475         * modules/md2 (Makefile.am): Likewise.
70476         * modules/md4 (Makefile.am): Likewise.
70477         * modules/md5 (Makefile.am): Likewise.
70478         * modules/memcasecmp (Makefile.am): Likewise.
70479         * modules/memchr (Makefile.am): Likewise.
70480         * modules/memcmp (Makefile.am): Likewise.
70481         * modules/memcoll (Makefile.am): Likewise.
70482         * modules/memcpy (Makefile.am): Likewise.
70483         * modules/memmem (Makefile.am): Likewise.
70484         * modules/memmove (Makefile.am): Likewise.
70485         * modules/mempcpy (Makefile.am): Likewise.
70486         * modules/memrchr (Makefile.am): Likewise.
70487         * modules/memset (Makefile.am): Likewise.
70488         * modules/memxor (Makefile.am): Likewise.
70489         * modules/mkancesdirs (Makefile.am): Likewise.
70490         * modules/mkdir-p (Makefile.am): Likewise.
70491         * modules/mkdir (Makefile.am): Likewise.
70492         * modules/mkdtemp (Makefile.am): Likewise.
70493         * modules/mkstemp (Makefile.am): Likewise.
70494         * modules/mktime (Makefile.am): Likewise.
70495         * modules/modechange (Makefile.am): Likewise.
70496         * modules/mountlist (Makefile.am): Likewise.
70497         * modules/nanosleep (Makefile.am): Likewise.
70498         * modules/obstack (Makefile.am): Likewise.
70499         * modules/openat (Makefile.am): Likewise.
70500         * modules/pagealign_alloc (Makefile.am): Likewise.
70501         * modules/pathmax (Makefile.am): Likewise.
70502         * modules/physmem (Makefile.am): Likewise.
70503         * modules/poll (Makefile.am): Likewise.
70504         * modules/posixtm (Makefile.am): Likewise.
70505         * modules/posixver (Makefile.am): Likewise.
70506         * modules/putenv (Makefile.am): Likewise.
70507         * modules/quote (Makefile.am): Likewise.
70508         * modules/quotearg (Makefile.am): Likewise.
70509         * modules/raise (Makefile.am): Likewise.
70510         * modules/read-file (Makefile.am): Likewise.
70511         * modules/readline (Makefile.am): Likewise.
70512         * modules/readlink (Makefile.am): Likewise.
70513         * modules/readtokens (Makefile.am): Likewise.
70514         * modules/readutmp (Makefile.am): Likewise.
70515         * modules/realloc (Makefile.am): Likewise.
70516         * modules/regex (Makefile.am): Likewise.
70517         * modules/rename-dest-slash (Makefile.am): Likewise.
70518         * modules/rename (Makefile.am): Likewise.
70519         * modules/rijndael (Makefile.am): Likewise.
70520         * modules/rmdir (Makefile.am): Likewise.
70521         * modules/rpmatch (Makefile.am): Likewise.
70522         * modules/safe-read (Makefile.am): Likewise.
70523         * modules/safe-write (Makefile.am): Likewise.
70524         * modules/same-inode (Makefile.am): Likewise.
70525         * modules/same (Makefile.am): Likewise.
70526         * modules/save-cwd (Makefile.am): Likewise.
70527         * modules/savedir (Makefile.am): Likewise.
70528         * modules/setenv (Makefile.am): Likewise.
70529         * modules/settime (Makefile.am): Likewise.
70530         * modules/sha1 (Makefile.am): Likewise.
70531         * modules/sig2str (Makefile.am): Likewise.
70532         * modules/snprintf (Makefile.am): Likewise.
70533         * modules/stat-macros (Makefile.am): Likewise.
70534         * modules/stat-time (Makefile.am): Likewise.
70535         * modules/stdbool (Makefile.am): Likewise.
70536         * modules/stdint (Makefile.am): Likewise.
70537         * modules/stdlib-safer (Makefile.am): Likewise.
70538         * modules/stpcpy (Makefile.am): Likewise.
70539         * modules/stpncpy (Makefile.am): Likewise.
70540         * modules/strcase (Makefile.am): Likewise.
70541         * modules/strcasestr (Makefile.am): Likewise.
70542         * modules/strchrnul (Makefile.am): Likewise.
70543         * modules/strcspn (Makefile.am): Likewise.
70544         * modules/strdup (Makefile.am): Likewise.
70545         * modules/strerror (Makefile.am): Likewise.
70546         * modules/strftime (Makefile.am): Likewise.
70547         * modules/strndup (Makefile.am): Likewise.
70548         * modules/strnlen (Makefile.am): Likewise.
70549         * modules/strpbrk (Makefile.am): Likewise.
70550         * modules/strsep (Makefile.am): Likewise.
70551         * modules/strstr (Makefile.am): Likewise.
70552         * modules/strtod (Makefile.am): Likewise.
70553         * modules/strtoimax (Makefile.am): Likewise.
70554         * modules/strtok_r (Makefile.am): Likewise.
70555         * modules/strtol (Makefile.am): Likewise.
70556         * modules/strtoll (Makefile.am): Likewise.
70557         * modules/strtoul (Makefile.am): Likewise.
70558         * modules/strtoull (Makefile.am): Likewise.
70559         * modules/strtoumax (Makefile.am): Likewise.
70560         * modules/strverscmp (Makefile.am): Likewise.
70561         * modules/sys_socket (Makefile.am): Likewise.
70562         * modules/sys_stat (Makefile.am): Likewise.
70563         * modules/sysexits (Makefile.am): Likewise.
70564         * modules/time_r (Makefile.am): Likewise.
70565         * modules/timegm (Makefile.am): Likewise.
70566         * modules/timespec (Makefile.am): Likewise.
70567         * modules/tmpfile-safer (Makefile.am): Likewise.
70568         * modules/trim (Makefile.am): Likewise.
70569         * modules/unistd-safer (Makefile.am): Likewise.
70570         * modules/unlinkdir (Makefile.am): Likewise.
70571         * modules/unlocked-io (Makefile.am): Likewise.
70572         * modules/userspec (Makefile.am): Likewise.
70573         * modules/utime (Makefile.am): Likewise.
70574         * modules/utimecmp (Makefile.am): Likewise.
70575         * modules/utimens (Makefile.am): Likewise.
70576         * modules/vasnprintf (Makefile.am): Likewise.
70577         * modules/vasprintf (Makefile.am): Likewise.
70578         * modules/vsnprintf (Makefile.am): Likewise.
70579         * modules/xalloc (Makefile.am): Likewise.
70580         * modules/xgetcwd (Makefile.am): Likewise.
70581         * modules/xnanosleep (Makefile.am): Likewise.
70582         * modules/xreadlink (Makefile.am): Likewise.
70583         * modules/xstrtod (Makefile.am): Likewise.
70584         * modules/xstrtol (Makefile.am): Likewise.
70585         * modules/xstrtold (Makefile.am): Likewise.
70586         * modules/yesno (Makefile.am): Likewise.
70587         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
70588
70589 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70590
70591         * modules/error (Makefile.am): Distribute files through
70592         EXTRA_DIST, not lib_SOURCES.
70593
70594 2006-10-12  Eric Blake  <ebb9@byu.net>
70595
70596         * modules/error (Makefile.am): Distribute files in /lib.
70597         * modules/obstack (Makefile.am): Likewise.
70598
70599 2006-10-12  Bruno Haible  <bruno@clisp.org>
70600
70601         * modules/acl (Makefile.am): Distribute all files in lib/ through
70602         EXTRA_DIST.
70603         * modules/arcfour (Makefile.am): Likewise.
70604         * modules/arctwo (Makefile.am): Likewise.
70605         * modules/argmatch (Makefile.am): Likewise.
70606         * modules/argz (Makefile.am): Likewise.
70607         * modules/atexit (Makefile.am): Likewise.
70608         * modules/backupfile (Makefile.am): Likewise.
70609         * modules/c-strtod (Makefile.am): Likewise.
70610         * modules/c-strtold (Makefile.am): Likewise.
70611         * modules/calloc (Makefile.am): Likewise.
70612         * modules/canon-host (Makefile.am): Likewise.
70613         * modules/canonicalize (Makefile.am): Likewise.
70614         * modules/chdir-long (Makefile.am): Likewise.
70615         * modules/chdir-safer (Makefile.am): Likewise.
70616         * modules/check-version (Makefile.am): Likewise.
70617         * modules/chown (Makefile.am): Likewise.
70618         * modules/cloexec (Makefile.am): Likewise.
70619         * modules/close-stream (Makefile.am): Likewise.
70620         * modules/closeout (Makefile.am): Likewise.
70621         * modules/crc (Makefile.am): Likewise.
70622         * modules/cycle-check (Makefile.am): Likewise.
70623         * modules/des (Makefile.am): Likewise.
70624         * modules/dirfd (Makefile.am): Likewise.
70625         * modules/dirname (Makefile.am): Likewise.
70626         * modules/dup2 (Makefile.am): Likewise.
70627         * modules/euidaccess (Makefile.am): Likewise.
70628         * modules/exclude (Makefile.am): Likewise.
70629         * modules/exitfail (Makefile.am): Likewise.
70630         * modules/fcntl-safer (Makefile.am): Likewise.
70631         * modules/file-type (Makefile.am): Likewise.
70632         * modules/fileblocks (Makefile.am): Likewise.
70633         * modules/filemode (Makefile.am): Likewise.
70634         * modules/filenamecat (Makefile.am): Likewise.
70635         * modules/fnmatch (Makefile.am): Likewise.
70636         * modules/fopen-safer (Makefile.am): Likewise.
70637         * modules/fpending (Makefile.am): Likewise.
70638         * modules/fprintftime (Makefile.am): Likewise.
70639         * modules/free (Makefile.am): Likewise.
70640         * modules/fsusage (Makefile.am): Likewise.
70641         * modules/ftruncate (Makefile.am): Likewise.
70642         * modules/fts (Makefile.am): Likewise.
70643         * modules/gc (Makefile.am): Likewise.
70644         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
70645         * modules/getaddrinfo (Makefile.am): Likewise.
70646         * modules/getcwd (Makefile.am): Likewise.
70647         * modules/getdelim (Makefile.am): Likewise.
70648         * modules/getdomainname (Makefile.am): Likewise.
70649         * modules/getgroups (Makefile.am): Likewise.
70650         * modules/gethostname (Makefile.am): Likewise.
70651         * modules/gethrxtime (Makefile.am): Likewise.
70652         * modules/getline (Makefile.am): Likewise.
70653         * modules/getloadavg (Makefile.am): Likewise.
70654         * modules/getlogin_r (Makefile.am): Likewise.
70655         * modules/getopt (Makefile.am): Likewise.
70656         * modules/getpass (Makefile.am): Likewise.
70657         * modules/getpass-gnu (Makefile.am): Likewise.
70658         * modules/getsubopt (Makefile.am): Likewise.
70659         * modules/gettime (Makefile.am): Likewise.
70660         * modules/gettimeofday (Makefile.am): Likewise.
70661         * modules/getugroups (Makefile.am): Likewise.
70662         * modules/getusershell (Makefile.am): Likewise.
70663         * modules/glob (Makefile.am): Likewise.
70664         * modules/group-member (Makefile.am): Likewise.
70665         * modules/hard-locale (Makefile.am): Likewise.
70666         * modules/hash (Makefile.am): Likewise.
70667         * modules/hmac-md5 (Makefile.am): Likewise.
70668         * modules/hmac-sha1 (Makefile.am): Likewise.
70669         * modules/human (Makefile.am): Likewise.
70670         * modules/idcache (Makefile.am): Likewise.
70671         * modules/imaxabs (Makefile.am): Likewise.
70672         * modules/imaxdiv (Makefile.am): Likewise.
70673         * modules/inet_ntop (Makefile.am): Likewise.
70674         * modules/inet_pton (Makefile.am): Likewise.
70675         * modules/inttostr (Makefile.am): Likewise.
70676         * modules/isapipe (Makefile.am): Likewise.
70677         * modules/lchown (Makefile.am): Likewise.
70678         * modules/long-options (Makefile.am): Likewise.
70679         * modules/lstat (Makefile.am): Likewise.
70680         * modules/malloc (Makefile.am): Likewise.
70681         * modules/mathl (Makefile.am): Likewise.
70682         * modules/mbchar (Makefile.am): Likewise.
70683         * modules/md2 (Makefile.am): Likewise.
70684         * modules/md4 (Makefile.am): Likewise.
70685         * modules/md5 (Makefile.am): Likewise.
70686         * modules/memcasecmp (Makefile.am): Likewise.
70687         * modules/memchr (Makefile.am): Likewise.
70688         * modules/memcmp (Makefile.am): Likewise.
70689         * modules/memcoll (Makefile.am): Likewise.
70690         * modules/memcpy (Makefile.am): Likewise.
70691         * modules/memmem (Makefile.am): Likewise.
70692         * modules/memmove (Makefile.am): Likewise.
70693         * modules/mempcpy (Makefile.am): Likewise.
70694         * modules/memrchr (Makefile.am): Likewise.
70695         * modules/memset (Makefile.am): Likewise.
70696         * modules/memxor (Makefile.am): Likewise.
70697         * modules/mkancesdirs (Makefile.am): Likewise.
70698         * modules/mkdir (Makefile.am): Likewise.
70699         * modules/mkdir-p (Makefile.am): Likewise.
70700         * modules/mkdtemp (Makefile.am): Likewise.
70701         * modules/mkstemp (Makefile.am): Likewise.
70702         * modules/mktime (Makefile.am): Likewise.
70703         * modules/modechange (Makefile.am): Likewise.
70704         * modules/mountlist (Makefile.am): Likewise.
70705         * modules/nanosleep (Makefile.am): Likewise.
70706         * modules/openat (Makefile.am): Likewise.
70707         * modules/pagealign_alloc (Makefile.am): Likewise.
70708         * modules/physmem (Makefile.am): Likewise.
70709         * modules/poll (Makefile.am): Likewise.
70710         * modules/posixtm (Makefile.am): Likewise.
70711         * modules/posixver (Makefile.am): Likewise.
70712         * modules/putenv (Makefile.am): Likewise.
70713         * modules/quote (Makefile.am): Likewise.
70714         * modules/quotearg (Makefile.am): Likewise.
70715         * modules/raise (Makefile.am): Likewise.
70716         * modules/read-file (Makefile.am): Likewise.
70717         * modules/readline (Makefile.am): Likewise.
70718         * modules/readlink (Makefile.am): Likewise.
70719         * modules/readtokens (Makefile.am): Likewise.
70720         * modules/readutmp (Makefile.am): Likewise.
70721         * modules/realloc (Makefile.am): Likewise.
70722         * modules/regex (Makefile.am): Likewise.
70723         * modules/rename (Makefile.am): Likewise.
70724         * modules/rename-dest-slash (Makefile.am): Likewise.
70725         * modules/rijndael (Makefile.am): Likewise.
70726         * modules/rmdir (Makefile.am): Likewise.
70727         * modules/rpmatch (Makefile.am): Likewise.
70728         * modules/safe-read (Makefile.am): Likewise.
70729         * modules/safe-write (Makefile.am): Likewise.
70730         * modules/same (Makefile.am): Likewise.
70731         * modules/save-cwd (Makefile.am): Likewise.
70732         * modules/savedir (Makefile.am): Likewise.
70733         * modules/setenv (Makefile.am): Likewise.
70734         * modules/settime (Makefile.am): Likewise.
70735         * modules/sha1 (Makefile.am): Likewise.
70736         * modules/sig2str (Makefile.am): Likewise.
70737         * modules/snprintf (Makefile.am): Likewise.
70738         * modules/stdlib-safer (Makefile.am): Likewise.
70739         * modules/stpcpy (Makefile.am): Likewise.
70740         * modules/stpncpy (Makefile.am): Likewise.
70741         * modules/strcase (Makefile.am): Likewise.
70742         * modules/strcasestr (Makefile.am): Likewise.
70743         * modules/strchrnul (Makefile.am): Likewise.
70744         * modules/strcspn (Makefile.am): Likewise.
70745         * modules/strdup (Makefile.am): Likewise.
70746         * modules/strerror (Makefile.am): Likewise.
70747         * modules/strftime (Makefile.am): Likewise.
70748         * modules/strndup (Makefile.am): Likewise.
70749         * modules/strnlen (Makefile.am): Likewise.
70750         * modules/strpbrk (Makefile.am): Likewise.
70751         * modules/strsep (Makefile.am): Likewise.
70752         * modules/strstr (Makefile.am): Likewise.
70753         * modules/strtod (Makefile.am): Likewise.
70754         * modules/strtoimax (Makefile.am): Likewise.
70755         * modules/strtok_r (Makefile.am): Likewise.
70756         * modules/strtol (Makefile.am): Likewise.
70757         * modules/strtoll (Makefile.am): Likewise.
70758         * modules/strtoul (Makefile.am): Likewise.
70759         * modules/strtoull (Makefile.am): Likewise.
70760         * modules/strtoumax (Makefile.am): Likewise.
70761         * modules/strverscmp (Makefile.am): Likewise.
70762         * modules/time_r (Makefile.am): Likewise.
70763         * modules/timegm (Makefile.am): Likewise.
70764         * modules/tmpfile-safer (Makefile.am): Likewise.
70765         * modules/unistd-safer (Makefile.am): Likewise.
70766         * modules/unlinkdir (Makefile.am): Likewise.
70767         * modules/userspec (Makefile.am): Likewise.
70768         * modules/utime (Makefile.am): Likewise.
70769         * modules/utimecmp (Makefile.am): Likewise.
70770         * modules/utimens (Makefile.am): Likewise.
70771         * modules/vasnprintf (Makefile.am): Likewise.
70772         * modules/vasprintf (Makefile.am): Likewise.
70773         * modules/vsnprintf (Makefile.am): Likewise.
70774         * modules/xalloc (Makefile.am): Likewise.
70775         * modules/xgetcwd (Makefile.am): Likewise.
70776         * modules/xnanosleep (Makefile.am): Likewise.
70777         * modules/xreadlink (Makefile.am): Likewise.
70778         * modules/xstrtod (Makefile.am): Likewise.
70779         * modules/xstrtol (Makefile.am): Likewise.
70780         * modules/xstrtold (Makefile.am): Likewise.
70781         * modules/yesno (Makefile.am): Likewise.
70782
70783 2006-10-12  Jim Meyering  <jim@meyering.net>
70784
70785         * m4/getloadavg.m4: Revert the change below.
70786
70787         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
70788         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
70789         fail with a symlink, which is what coreutils' ./bootstrap now
70790         creates by default.
70791
70792 2006-10-12  Bruno Haible  <bruno@clisp.org>
70793
70794         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
70795         mingw.
70796         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
70797         MSVC and mingw explicitly.
70798
70799 2006-10-11  Simon Josefsson  <jas@extundo.com>
70800             Bruno Haible  <bruno@clisp.org>
70801
70802         Add support for multiple gnulib-tool invocations in the scope of a
70803         single configure.ac file.
70804         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
70805         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
70806         with the same contents as the _LIBADD variable.
70807         (func_emit_initmacro_start, func_emit_initmacro_end,
70808         func_emit_initmacro_done): New functions.
70809         (func_import, func_create_testdir): Invoke them. Allow the identifiers
70810         gl_LIBOBJS and gl_LTLIBOBJS.
70811
70812 2006-10-11  Bruno Haible  <bruno@clisp.org>
70813
70814         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
70815         (func_create_testdir): Don't create po/Makefile.am, don't invoke
70816         autoreconf. Instead, invoke autopoint explicitly but move back the
70817         *.m4 files from gnulib.
70818
70819 2006-10-11  Bruno Haible  <bruno@clisp.org>
70820
70821         * gnulib-tool (func_usage): Make module names after --create-testdir
70822         optional.
70823         (func_create_testdir): If no module was specified, use nearly all
70824         modules.
70825
70826 2006-10-12  Jim Meyering  <jim@meyering.net>
70827
70828         Big performance improvement for fts-based tools that use FTS_NOSTAT.
70829         Avoid spurious inode-mismatch problems on non-POSIX file systems.
70830         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
70831         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
70832         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
70833         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
70834         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
70835         (fts_set_stat_required): New function.
70836         (fts_open): Defer the calls to fts_stat, if possible or requested.
70837         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
70838         into fts_stat itself.
70839         (fts_read): Perform any required (deferred) fts_stat call.
70840         (fts_build): Likewise, for the directory we're about to open and read.
70841         In the readdir loop, carefully decide whether each entry will require
70842         an eventual call to fts_stat, using dirent.d_type info if available.
70843         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
70844         a command line argument into this function.  Update all callers.
70845         Map a return value of FTS_DOT to FTS_D for a command line argument.
70846         * modules/fts (Depends-on): Add d-type.  Alphabetize.
70847         Thanks to Miklos Szeredi for his tenacity and for the initial
70848         bug report about "find" failing on a FUSE-based file system.
70849
70850         * lib/fts.c (fts_open): Use consistent indentation.
70851
70852 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
70853
70854         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
70855         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
70856         reported by Jim Meyering.  All uses of cache variables renamed
70857         to match Autoconf's.
70858         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
70859         the other one.
70860
70861         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
70862         Fix misspelling in diagnostic.
70863
70864 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70865
70866         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
70867         defined.  Problem reported by Matthew Woehlke.
70868
70869         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
70870         Add support for Tandem NonStop R series.
70871         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
70872         Use new macro.
70873
70874         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
70875         (has_trailing_slash): Omit size arg; all callers changed.
70876         Omit 'inline', since it doesn't help performance and we'd
70877         need to configure it.
70878         Don't count //, ///, etc. as having a trailing slash.
70879         As a side effect, this removes a C99ism reported by Matthew Woehlke.
70880         (rpl_rename_dest_slash): On failure, use rename's errno rather
70881         than (in some cases) an incorrect or junk errno.
70882         Simplify code by removing need to compute length; this does
70883         cause it to make two passes instead of one over the file name,
70884         but it's worth it.
70885
70886         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
70887         change, since Autoconf's version may no longer be appropriate now
70888         that we are using CVS Autoconf's version.  Add support for Tandem.
70889
70890 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
70891             Bruno Haible  <bruno@clisp.org>
70892
70893         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
70894         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
70895         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
70896         gl_AC_TYPE_LONG_LONG.
70897
70898         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
70899         instead of HAVE_LONG_LONG.
70900         * lib/printf-args.c (printf_fetchargs): Likewise.
70901         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
70902         * lib/vasnprintf.c (VASNPRINTF): Likewise.
70903         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
70904         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
70905         gl_AC_TYPE_LONG_LONG.
70906
70907 2006-10-11  Bruno Haible  <bruno@clisp.org>
70908
70909         * m4/longlong.m4: Add comments.
70910         * m4/ulonglong.m4: Likewise.
70911
70912 2006-10-10  Bruno Haible  <bruno@clisp.org>
70913
70914         Make it possible to #define stpcpy, strdup to aliases.
70915         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
70916         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
70917
70918 2006-10-10  Bruno Haible  <bruno@clisp.org>
70919
70920         Make it possible to #define gcd to an alias.
70921         * lib/gcd.c: Include config.h.
70922
70923 2006-10-10  Bruno Haible  <bruno@clisp.org>
70924
70925         Make it possible to #define c_isascii to an alias.
70926         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
70927         defined. Undefine the macros before defining them, to avoid gcc
70928         warnings.
70929         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
70930         define NO_C_CTYPE_MACROS early.
70931
70932 2006-10-10  Bruno Haible  <bruno@clisp.org>
70933
70934         Make it possible to #define set_program_name to an alias.
70935         * lib/progname.c: Don't undefine set_program_name; instead, undefine
70936         ENABLE_RELOCATABLE early.
70937
70938 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         Port to Tandem NSK OSS, which has 64-bit signed int but at most
70941         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
70942         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
70943         More generally, don't assume that 64-bit signed int is available
70944         if unsigned int is, and vice versa.
70945         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
70946         unsigned symbols, not on their signed counterparts.
70947         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
70948         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
70949         (UINT64_C, UINTMAX_C):
70950         Likewise.
70951         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
70952         unsigned counterparts.
70953         (Have_long_long, Unsigned): New macros.
70954         (Int): Renamed from INT.
70955         (strtoimax): Use the new macros.
70956         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
70957         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
70958         * modules/inttypes (inttypes.h): Substitute
70959         HAVE_UNSIGNED_LONG_LONG_INT.
70960         * modules/stdint (stdint.h): Likewise.
70961         (Files): Add m4/ulonglong.m4.
70962
70963 2006-10-10  Bruno Haible  <bruno@clisp.org>
70964
70965         Fix a gcc -Wshadow warning.
70966         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
70967         to 'bucket'.
70968         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
70969         gl_linked_indexof_from_to): Likewise.
70970         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
70971         Likewise.
70972         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
70973         Likewise.
70974         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
70975         Reported by Eric Blake.
70976
70977 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
70978
70979         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
70980         for NetBSD.  Problem reported by Bruno Haible.
70981
70982 2006-10-09  Jim Meyering  <jim@meyering.net>
70983
70984         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
70985         Patch from Bruno Haible.
70986
70987 2006-10-09  Jim Meyering  <jim@meyering.net>
70988
70989         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
70990         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
70991         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
70992
70993 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         Don't include <config.h> twice; this doesn't work in some cases,
70996         e.g., when config.h has "#define intmax_t long long int" and
70997         we include <config.h>, <inttypes.h>, <config.h> in that order.
70998         Problem reported by Matthew Woehlke in:
70999         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
71000         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
71001         * lib/fts-cycle.c: Don't include config.h.
71002         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
71003         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
71004         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
71005         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
71006         inttypes.h.
71007         * lib/xstrtoumax.c: Likewise.
71008         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
71009         __strtol and the like, so that this module is more like its siblings.
71010         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
71011         Remove; no longer needed now that we assume gnulib inttypes.h.
71012
71013 2006-10-08  Bruno Haible  <bruno@clisp.org>
71014
71015         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
71016         option.
71017
71018 2006-10-07  Jim Meyering  <jim@meyering.net>
71019
71020         * modules/inttypes (inttypes.h): Revert what seems to have been
71021         an inadvertent part of today's change: use "|", not "/" in the
71022         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
71023
71024 2006-10-07  Bruno Haible  <bruno@clisp.org>
71025
71026         * modules/sublist: New file.
71027
71028 2006-10-07  Bruno Haible  <bruno@clisp.org>
71029
71030         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
71031         * modules/argz (argz.h): Likewise.
71032         * modules/arpa_inet (arpa/inet.h): Likewise.
71033         * modules/byteswap (byteswap.h): Likewise.
71034         * modules/configmake (configmake.h): Likewise.
71035         * modules/fcntl (fcntl.h): Likewise.
71036         * modules/fnmatch (fnmatch.h): Likewise.
71037         * modules/getopt (getopt.h): Likewise.
71038         * modules/glob (glob.h): Likewise.
71039         * modules/inttypes (inttypes.h): Likewise.
71040         * modules/netinet_in (netinet/in.h): Likewise.
71041         * modules/poll (poll.h): Likewise.
71042         * modules/stdbool (stdbool.h): Likewise.
71043         * modules/stdint (stdint.h): Likewise.
71044         * modules/sys_select (sys/select.h): Likewise.
71045         * modules/sys_socket (sys/socket.h): Likewise.
71046         * modules/sys_stat (sys/stat.h): Likewise.
71047         * modules/sysexits (sysexits.h): Likewise.
71048         * modules/unistd (unistd.h): Likewise.
71049         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71050         Add a "DO NOT EDIT" comment to the generated file.
71051         (func_import): Likewise for gnulib-comp.m4.
71052
71053 2006-10-07  Bruno Haible  <bruno@clisp.org>
71054
71055         * lib/gl_sublist.h: New file.
71056         * lib/gl_sublist.c: New file.
71057
71058 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
71061         name (relative to the original working directory) and the file
71062         name component (relative to the temporary working directory).  All
71063         callers changed.
71064         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
71065         * lib/mkdir-p.c (make_dir_parents): Likewise.
71066         * lib/mkdir-p.h (make_dir_parents): Likewise.
71067
71068 2006-10-06  Eric Blake  <ebb9@byu.net>
71069
71070         Define several macros for use by the clean-temp module.
71071         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
71072         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
71073         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
71074
71075         * lib/clean-temp.h (close_stream_temp): New declaration.
71076         * lib/clean-temp.c (includes): Pull in headers according to what
71077         other modules are in use.
71078         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
71079
71080 2006-10-06  Bruno Haible  <bruno@clisp.org>
71081
71082         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
71083         instead of fopen, fwriteerror.
71084
71085 2006-10-06  Bruno Haible  <bruno@clisp.org>
71086
71087         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
71088         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
71089         int.
71090         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
71091         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
71092         Return an error indicator.
71093         Suggested by Eric Blake.
71094
71095 2006-10-06  Bruno Haible  <bruno@clisp.org>
71096
71097         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
71098         Reported by Eric Blake.
71099
71100 2006-10-06  Bruno Haible  <bruno@clisp.org>
71101
71102         * modules/closeout (Description): Mention stderr too.
71103
71104 2006-10-06  Bruno Haible  <bruno@clisp.org>
71105         and Paul Eggert  <eggert@cs.ucla.edu>
71106
71107         * lib/closeout.c (close_stdout): Also close stderr.
71108         * lib/closeout.h: Update comment.
71109
71110 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71111
71112         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
71113         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
71114         * lib/dirchownmod.c: Include lchown.h.
71115         * lib/lchown.c: Don't include files that lchown.h now includes.
71116         Don't declare chown, since lchown.h now does that.
71117         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
71118         (lchown): Define to rpl_chown if lchown is declared but
71119         does not exist.  Declare using a prototype if lchown is not
71120         declared.  Add a copyright notice.
71121         * lib/mkstemp.h: Include <unistd.h>.
71122         * lib/openat.c: Include lchown.h.
71123
71124         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
71125         we now test for that separately.
71126         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
71127         rather than O_NOFOLLOW, when testing whether it's possible to
71128         avoid a race condition reliably.
71129         * lib/savewd.c (savewd_chdir): Likewise.
71130
71131         Remove macros that are no longer needed now that stdint.h is
71132         reliable.
71133         * lib/fsusage.c (UINTMAX_MAX): Remove.
71134         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
71135         * lib/utimecmp.c (SIZE_MAX): Remove.
71136
71137         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
71138
71139         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
71140         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
71141         O_NOATIME works.
71142
71143 2006-10-05  Bruno Haible  <bruno@clisp.org>
71144
71145         * lib/gl_list.h (gl_sortedlist_search_from_to,
71146         gl_sortedlist_indexof_from_to): New declarations.
71147         (gl_list_implementation): New fields sortedlist_search_from_to,
71148         sortedlist_indexof_from_to.
71149         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
71150         inline functions.
71151         * lib/gl_list.c (gl_sortedlist_search_from_to,
71152         gl_sortedlist_indexof_from_to): New functions.
71153         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
71154         function.
71155         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
71156         (gl_array_sortedlist_search_from_to): New function.
71157         (gl_array_list_implementation): Update.
71158         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
71159         function.
71160         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
71161         (gl_carray_sortedlist_search_from_to): New function.
71162         (gl_carray_list_implementation): Update.
71163         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
71164         gl_linked_sortedlist_indexof_from_to): New functions.
71165         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71166         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71167         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
71168         gl_tree_sortedlist_indexof_from_to): New functions.
71169         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71170         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71171         Update.
71172         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71173         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
71174         Update.
71175
71176 2006-10-05  Bruno Haible  <bruno@clisp.org>
71177
71178         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
71179         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
71180         (struct gl_list_implementation): Add fields search_from_to,
71181         indexof_from_to. Remove fields search, indexof.
71182         (gl_list_search): Use the search_from_to method.
71183         (gl_list_search_from, gl_list_search_from_to): New functions.
71184         (gl_list_indexof): Use the indexof_from_to method.
71185         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71186         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
71187         (gl_list_search_from, gl_list_search_from_to): New functions.
71188         (gl_list_indexof): Use the indexof_from_to method.
71189         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71190         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
71191         gl_array_indexof. Add start_index, end_index arguments.
71192         (gl_array_search_from_to): Renamed from gl_array_search. Add
71193         start_index, end_index arguments.
71194         (gl_array_remove, gl_array_list_implementation): Update.
71195         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
71196         gl_carray_indexof. Add start_index, end_index arguments.
71197         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
71198         start_index, end_index arguments.
71199         (gl_carray_remove, gl_carray_list_implementation): Update.
71200         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
71201         gl_linked_search. Add start_index, end_index arguments.
71202         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
71203         start_index, end_index arguments.
71204         (gl_linked_remove): Update.
71205         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71206         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71207         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
71208         field to 'size_t'.
71209         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
71210         gl_tree_search. Add start_index, end_index arguments.
71211         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71212         start_index, end_index arguments.
71213         (gl_tree_remove): Update.
71214         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71215         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71216         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
71217         function.
71218         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
71219         gl_tree_search. Add start_index, end_index arguments.
71220         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71221         start_index, end_index arguments.
71222         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71223         Update.
71224         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
71225
71226 2006-10-05  Bruno Haible  <bruno@clisp.org>
71227
71228         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
71229
71230         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
71231         fwriteerror_temp): New declarations.
71232         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
71233         (descriptors): New variable.
71234         (cleanup): First, close the descriptors.
71235         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
71236         fclose_temp, fwriteerror_temp): New functions.
71237
71238 2006-10-04  Jim Meyering  <jim@meyering.net>
71239
71240         * lib/fts.c (fts_open): Tiny comment change.
71241
71242 2006-10-04  Bruno Haible  <bruno@clisp.org>
71243
71244         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
71245         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
71246         gl_LOCK_BODY.
71247         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
71248         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
71249         gl_LOCK_EARLY_BODY.
71250         (gl_LOCK): Require gl_LOCK_BODY.
71251
71252 2006-10-04  Bruno Haible  <bruno@clisp.org>
71253
71254         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
71255         (gl_oset_search_atleast): New declaration.
71256         (struct gl_oset_implementation): Add field 'search_atleast'.
71257         (gl_oset_search_atleast): New inline function.
71258         * lib/gl_oset.c (gl_oset_search_atleast): New function.
71259         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
71260         (gl_array_oset_implementation): Update.
71261         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
71262         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
71263         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
71264
71265 2006-10-04  Bruno Haible  <bruno@clisp.org>
71266
71267         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
71268
71269 2006-10-03  Bruno Haible  <bruno@clisp.org>
71270
71271         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
71272         from gl_avltreehash_list_implementation.
71273
71274 2006-10-03  Bruno Haible  <bruno@clisp.org>
71275
71276         * lib/gl_oset.c (gl_oset_add): Fix return type.
71277
71278 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
71279
71280         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
71281
71282 2006-10-02  Eric Blake  <ebb9@byu.net>
71283
71284         * modules/strnlen (Depends-on): Add extensions.
71285
71286 2006-10-02  Eric Blake  <ebb9@byu.net>
71287
71288         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
71289         definition in 2.60+.
71290
71291 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
71292
71293         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
71294         checks.
71295
71296 2006-10-02  Bruno Haible  <bruno@clisp.org>
71297
71298         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
71299         to the AUTOMAKE_OPTIONS.
71300         Reported by Jim Meyering.
71301
71302 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71303
71304         Work around bug in Solaris 10 /proc file system:
71305         /proc/self/fd/NNN/.. isn't the parent directory of
71306         the directory whose file descriptor is NNN.  This needs to
71307         be worked around at run time, not compile time, since a
71308         program might be built on Solaris 8, where things work, and
71309         run on Solaris 10.
71310         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
71311         to use the following interface instead:
71312         (OPENAT_BUFFER_SIZE): New macro.
71313         (openat_proc_name): New function.
71314         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
71315         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
71316         Likewise.
71317         * lib/openat-proc.c: New file.
71318         * modules/openat (Files): Add lib/openat-proc.c.
71319         (Depends-on): Add same-inode, stdbool.
71320         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
71321
71322 2006-09-29  Bruno Haible  <bruno@clisp.org>
71323
71324         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
71325         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
71326         argument. Set stdout_closed before testing for ferror, not after.
71327         (fwriteerror, fwriteerror_no_ebadf): New functions.
71328
71329 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71330
71331         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
71332
71333 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
71334
71335         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
71336         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
71337
71338 2006-09-28  Jim Meyering  <jim@meyering.net>
71339
71340         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
71341         Include <unistd.h>.
71342
71343 2006-09-28  Bruno Haible  <bruno@clisp.org>
71344
71345         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
71346         * modules/linkedhash-list (Depends-on): Likewise.
71347         * modules/rbtreehash-list (Depends-on): Likewise.
71348
71349 2006-09-28  Bruno Haible  <bruno@clisp.org>
71350
71351         * lib/strndup.h: Simplify the redefinition of strndup.
71352         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
71353         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
71354
71355 2006-09-28  Bruno Haible  <bruno@clisp.org>
71356
71357         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
71358         * lib/gl_linkedhash_list.c: Likewise.
71359         * lib/gl_rbtreehash_list.c: Likewise.
71360
71361 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71362
71363         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
71364         getaddrinfo.
71365
71366         * lib/__fpending.h: Don't include <stdio_ext.h> unless
71367         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
71368         it causes <stdio_ext.h> to cause a compile-time error.
71369         Problem reported by Nelson H. F. Beebe.
71370         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
71371         of HAVE_DECL___PENDING.
71372
71373         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
71374         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
71375         declaration.
71376
71377 2006-09-27  Jim Meyering  <jim@meyering.net>
71378
71379         This file could end up with a definition for a function
71380         named __strndup, rather than rpl_strndup on a system with
71381         incomplete weak_alias support.
71382         * lib/strndup.c (strndup): Rename from __strndup.
71383         Remove #defines that used to map __strndup to strndup.
71384         Don't use K&R prototypes.
71385         Remove LIBC-related code, since this file is not sync'd with glibc.
71386         * lib/strndup.h: Revamp, accordingly.
71387         * m4/strndup.m4: Modernize.
71388
71389 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71390
71391         * modules/savewd (Depends-on): Add 'raise'.
71392         * lib/savewd.c: Include <signal.h>, for 'raise'.
71393
71394 2006-09-26  Jim Meyering  <jim@meyering.net>
71395
71396         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
71397         when we detect Darwin 8.7.0's acl_get_file bug.
71398         Rearrange to perform the new (below) run-test while $LIBS
71399         contains any acl-related library.  Set USE_ACL at the end.
71400         (gl_ACL_GET_FILE): New function.
71401
71402 2006-09-26  Eric Blake  <ebb9@byu.net>
71403
71404         * lib/verror.c: Include <config.h> unconditionally.
71405
71406 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         * modules/clock-time (Maintainer): Add self.
71409         * modules/getlogin_r (Depends-on): Add extensions.
71410
71411 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71412
71413         * modules/clock-time: New module.
71414         * modules/nanosleep (Depends-on): Add clock-time.
71415         * modules/gethrxtime (Depends-on): Likewise.
71416         * modules/gettime (Depends-on): Likewise.
71417         * modules/settime (Depends-on): Likewise.
71418
71419         * modules/fts-lgpl: Depend on openat.
71420         * modules/mkancesdirs: Depend on savewd.
71421         * modules/mkdir-p: Likewise.
71422
71423 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71424
71425         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
71426
71427         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
71428         `gl_have_arbitrary_file_name_length_limit' to
71429         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
71430         actually works between configure runs.
71431
71432 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71433             Bruno Haible  <bruno@clisp.org>
71434
71435         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
71436
71437 2006-09-25  Jim Meyering  <jim@meyering.net>
71438
71439         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
71440         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
71441
71442 2006-09-25  Eric Blake  <ebb9@byu.net>
71443
71444         * gnulib-tool (func_import, func_create_testdir): Fix typos in
71445         exec's in 2006-09-18 patch when shuffling fds.
71446
71447 2006-09-25  Bruno Haible  <bruno@clisp.org>
71448
71449         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
71450         Reported by Jim Meyering.
71451
71452 2006-09-24  Jim Meyering  <jim@meyering.net>
71453
71454         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
71455         compare a pointer against a literal "0".  That caused failures with
71456         at least HP-UX's hpcc.
71457
71458 2006-09-22  Simon Josefsson  <jas@extundo.com>
71459
71460         * modules/gc-sha1:
71461         * modules/gc-md4:
71462         * modules/gc-hmac-sha1:
71463         * modules/gc-hmac-md5:
71464         * modules/gc-des:
71465         * modules/gc-arcfour: Distribute more files.
71466
71467 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71468
71469         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
71470         (gl_linked_iterator_from_to): Initialize struct completely.
71471         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
71472         (gl_tree_iterator_from_to): Likewise
71473         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
71474         * lib/gl_array_list.c [lint] (gl_array_iterator)
71475         (gl_array_iterator_from_to): Likewise.
71476         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
71477         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
71478         (gl_carray_iterator_from_to): Likewise.
71479
71480         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
71481         * lib/md4.c (md4_process_block): Remove unused variable.
71482         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
71483         parentheses for clarity.
71484
71485 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71486
71487         * modules/bison-i18n (Depends-on): Add gettext.
71488
71489 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71490
71491         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
71492         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
71493         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
71494         also add missing comma that caused broken test.
71495         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
71496         stdlib.h, for `abort'.
71497         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
71498         variables.
71499         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
71500         include unistd.h if present, for `rmdir'.
71501         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
71502         variables.
71503         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
71504         in the process include standard headers for prototypes.
71505         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
71506         gets declared on GNU/Linux.
71507         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
71508         unistd.h, for `rmdir'.
71509         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
71510
71511         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
71512         always true.
71513         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
71514
71515         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
71516
71517 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71518
71519         * gnulib-tool (func_version): Create output all at once.  This
71520         may help avoid triggering unnecessary SIGPIPEs, and at any
71521         rate it doesn't hurt.
71522
71523 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71524             Bruno Haible  <bruno@clisp.org>
71525
71526         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
71527         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71528         * m4/signed.m4 (bh_C_SIGNED): Likewise.
71529
71530         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
71531         (gl_FUNC_VASPRINTF): Invoke it.
71532
71533 2006-09-22  Bruno Haible  <bruno@clisp.org>
71534
71535         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
71536         getloadavg.c as first argument.
71537
71538 2006-09-22  Bruno Haible  <bruno@clisp.org>
71539
71540         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
71541         at the beginning of the gl_INIT macro.
71542         * modules/getloadavg (configure.ac): Pass $gl_source_base to
71543         gl_GETLOADAVG.
71544
71545 2006-09-22  Bruno Haible  <bruno@clisp.org>
71546
71547         * gnulib-tool (func_create_megatestdir): Don't include the config-h
71548         module.
71549         Suggested by Ralf Wildenhues.
71550
71551 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71552
71553         Import this patch from libc:
71554
71555         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
71556
71557         * lib/regex_internal.c (re_string_reconstruct): Handle
71558         offset < pstr->valid_raw_len && pstr->offsets_needed case.
71559         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
71560         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
71561         re_string_context_at.
71562
71563         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
71564         now requires it.
71565         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
71566         gl_REGEX now does it for us.
71567         (gl_REGEX): Add test taken from
71568         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
71569
71570         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
71571         Check that large offsets work.  Modernize Autoconf usages.
71572         Prefer "yes" to mean a good thing rather than a bad.
71573         Don't put "#define mkstemp" in config.h, as this might interfere
71574         with standard system headers that "#define mkstemp mkstemp64".
71575
71576         * modules/mkstemp (Depends-on): Add extensions, so that
71577         mkstemp is visible on some platforms.
71578         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
71579         (Include): Change to "mkstemp.h" from <stdlib.h>.
71580         (Files): Add mkstemp.h.
71581
71582         * lib/mkstemp.h: New file, since some standard headers
71583         #define mkstemp.
71584         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
71585         Include "mkstemp.h".
71586         Make the _LIBC code resemble glibc original more,
71587         e.g., use K&R style.
71588         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
71589         (mkstemp): Remove, since mkstemp.h does this for us.
71590         * lib/stdlib--.h: Include mkstemp.h.
71591
71592         Import this patch from libc:
71593
71594         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
71595
71596         * lib/tempname.c (__gen_tempname): Change attempts_min
71597         into a macro.  Use preprocessor to decide how to initialize
71598         attempts [Coverity CID 67].
71599
71600 2006-09-20  Bruno Haible  <bruno@clisp.org>
71601
71602         * lib/mkdtemp.c: Import from libc.
71603         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
71604                 * sysdeps/posix/tempname.c (__gen_tempname): Change
71605                 attempts_min into a macro.  Use preprocessor to decide how to
71606                 initialize attempts [Coverity CID 67].
71607         2001-11-27  Paul Eggert  <eggert@twinsun.com>
71608                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
71609                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
71610
71611 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71612
71613         * gnulib-tool (func_exit): New function, to allow to pass the
71614         exit status portably through the trap.  Use everywhere.
71615         (--help, --version): Signal a write error.
71616         (trap): catch SIGPIPE, for write errors.
71617         Exit at the end of the trap, with the correct exit status.
71618
71619 2006-09-19  Karl Berry  <karl@gnu.org>
71620
71621         * doc/gnulib.texi: note about the license texinfo files.
71622
71623 2006-09-19  Eric Blake  <ebb9@byu.net>
71624
71625         * gnulib-tool: Avoid space-tab.
71626
71627 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
71628
71629         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
71630         that prevented coreutils 6.1 from building.  Problem reported
71631         by Petter Reinholdtsen.
71632
71633 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
71634
71635         * gnulib-tool (avoidlist): Fix typo that broke options like
71636         --avoid=lock that are used by coreutils bootstrap.
71637
71638 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
71639
71640         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
71641         more systematically.
71642
71643 2006-09-18  Jim Meyering  <jim@meyering.net>
71644
71645         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
71646
71647 2006-09-18  Bruno Haible  <bruno@clisp.org>
71648
71649         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
71650
71651 2006-09-18  Bruno Haible  <bruno@clisp.org>
71652
71653         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
71654         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
71655         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
71656         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
71657         * m4/gettext.m4: Require autoconf >= 2.52.
71658         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
71659         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
71660         of gl_cv_header_inttypes_h.
71661
71662 2006-09-18  Bruno Haible  <bruno@clisp.org>
71663
71664         * lib/javaversion.c: Include configmake.h.
71665
71666 2006-09-18  Bruno Haible  <bruno@clisp.org>
71667
71668         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
71669         avoid that the while loops be executed in a subshell.
71670
71671 2006-09-18  Bruno Haible  <bruno@clisp.org>
71672
71673         * MODULES.html.sh (func_module): Break long lines.
71674         Suggested by Bruce Korb <bkorb@gnu.org>.
71675
71676 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71677
71678         Speed up by a factor of 1.12.
71679         * gnulib-tool (nl): New variable.
71680         (func_import): Rewrite include directive extraction to only read each
71681         directive once.
71682
71683 2006-09-17  Bruno Haible  <bruno@clisp.org>
71684
71685         * modules/javaversion (Makefile.am): Remove DEFS setting.
71686         (Depends-on): Add configmake, for PKGDATADIR definition.
71687
71688 2006-09-17  Bruno Haible  <bruno@clisp.org>
71689
71690         * gnulib-tool (func_create_testdir): Rewrite all files at once.
71691
71692 2006-09-17  Bruno Haible  <bruno@clisp.org>
71693
71694         * gnulib-tool (func_append): New function, stolen from libtool.m4.
71695         (func_modules_transitive_closure, func_modules_add_dummy,
71696         func_modules_to_filelist, func_import, func_create_testdir,
71697         func_create_megatestdir, ...): Use it wherever possible.
71698         Suggested by Ralf Wildenhues.
71699
71700 2006-09-16  Karl Berry  <karl@gnu.org>
71701
71702         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
71703         to avoid sectioning errors.
71704         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
71705         [ifinfo]: blank line after @center-ed titles.
71706         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
71707         Spell FSF address consistently with others.
71708         (These changes approved by rms.)
71709
71710 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71711
71712         Speed up by a factor of 1.61.
71713         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
71714         already checked module names again.
71715
71716 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71717
71718         Speed up by a factor of 1.13.
71719         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
71720         for new_files, and the input to func_add_or_update.
71721
71722 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71723
71724         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
71725         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
71726
71727 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71728
71729         * modules/mkancesdirs (Depends-on): Add fcntl.
71730         * modules/savewd: New file.
71731         * MODULES.html.sh (File system functions): Add savewd.
71732
71733         * modules/configmake (Makefile.am): Add support for the
71734         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
71735
71736 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71737
71738         * m4/savewd.m4: New file.
71739
71740 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71741
71742         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
71743         (dirchownmod): New arg FD.  All callers changed.
71744         Use FD rather than opening the directory ourself, as opening is
71745         now the caller's responsibility.
71746         * lib/dirchownmod.h: Likewise.
71747         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
71748         hosts that require <sys/types.h> before <sys/stat.h>.  Include
71749         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
71750         (test_dir): Remove.
71751         (mkancesdirs): Return length of prefix of FILE that has already
71752         been made, or -2 if there is a child doing the work.  Redo
71753         algorithm so that it is O(N) rather than O(N**2).  Optimize away
71754         ".", and treat ".." specially since it might stray back into
71755         already-created areas.  Use a subprocess if necessary.  New arg
71756         WD; all users changed.  MAKE_DIR function should now return 1
71757         if it creates a directory that is not readable.  Return -2 if
71758         a child process is spun off.
71759         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
71760         Adjust signature to match code.
71761         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
71762         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
71763         all users changed.
71764         * lib/savewd.c, lib/savewd.h: New files.
71765
71766 2006-09-15  Jim Meyering  <jim@meyering.net>
71767
71768         * modules/rename-dest-slash: New module.
71769         * MODULES.html.sh (posix_compat): Add it here.
71770
71771         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
71772
71773 2006-09-15  Jim Meyering  <jim@meyering.net>
71774
71775         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
71776         file.
71777
71778         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
71779
71780 2006-09-15  Jim Meyering  <jim@meyering.net>
71781
71782         * lib/rename-dest-slash.c (has_trailing_slash): Use
71783         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
71784         (rpl_rename_dest_slash): Perform the cheaper trailing slash
71785         test before testing whether SRC is a directory.
71786         Suggestions from Bruno Haible.
71787
71788         Avoid a warning about an unused variable.
71789         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
71790         into the #ifdef block where it's used.
71791
71792         * lib/rename-dest-slash.c: New file.
71793
71794 2006-09-14  Bruno Haible  <bruno@clisp.org>
71795
71796         * lib/allocsa.c: Include <config.h> unconditionally.
71797         * lib/asnprintf.c: Likewise.
71798         * lib/asprintf.c: Likewise.
71799         * lib/c-strcasecmp.c: Likewise.
71800         * lib/c-strcasestr.c: Likewise.
71801         * lib/c-strncasecmp.c: Likewise.
71802         * lib/c-strstr.c: Likewise.
71803         * lib/classpath.c: Likewise.
71804         * lib/clean-temp.c: Likewise.
71805         * lib/concatpath.c: Likewise.
71806         * lib/copy-file.c: Likewise.
71807         * lib/csharpcomp.c: Likewise.
71808         * lib/csharpexec.c: Likewise.
71809         * lib/execute.c: Likewise.
71810         * lib/fatal-signal.c: Likewise.
71811         * lib/findprog.c: Likewise.
71812         * lib/fwriteerror.c: Likewise.
71813         * lib/gl_array_list.c: Likewise.
71814         * lib/gl_array_oset.c: Likewise.
71815         * lib/gl_avltree_list.c: Likewise.
71816         * lib/gl_avltree_oset.c: Likewise.
71817         * lib/gl_avltreehash_list.c: Likewise.
71818         * lib/gl_carray_list.c: Likewise.
71819         * lib/gl_linked_list.c: Likewise.
71820         * lib/gl_linkedhash_list.c: Likewise.
71821         * lib/gl_list.c: Likewise.
71822         * lib/gl_oset.c: Likewise.
71823         * lib/gl_rbtree_list.c: Likewise.
71824         * lib/gl_rbtree_oset.c: Likewise.
71825         * lib/gl_rbtreehash_list.c: Likewise.
71826         * lib/imaxabs.c: Likewise.
71827         * lib/imaxdiv.c: Likewise.
71828         * lib/javacomp.c: Likewise.
71829         * lib/javaexec.c: Likewise.
71830         * lib/javaversion.c: Likewise.
71831         * lib/linebreak.c: Likewise.
71832         * lib/localcharset.c: Likewise.
71833         * lib/lock.c: Likewise.
71834         * lib/mbchar.c: Likewise.
71835         * lib/mbswidth.c: Likewise.
71836         * lib/mkdtemp.c: Likewise.
71837         * lib/pipe.c: Likewise.
71838         * lib/printf-args.c: Likewise.
71839         * lib/printf-parse.c: Likewise.
71840         * lib/progname.c: Likewise.
71841         * lib/progreloc.c: Likewise.
71842         * lib/readlink.c: Likewise.
71843         * lib/sh-quote.c: Likewise.
71844         * lib/stpcpy.c: Likewise.
71845         * lib/stpncpy.c: Likewise.
71846         * lib/strcasecmp.c: Likewise.
71847         * lib/strcasestr.c: Likewise.
71848         * lib/strcspn.c: Likewise.
71849         * lib/striconv.c: Likewise.
71850         * lib/strncasecmp.c: Likewise.
71851         * lib/strnlen1.c: Likewise.
71852         * lib/strstr.c: Likewise.
71853         * lib/strtok_r.c: Likewise.
71854         * lib/tls.c: Likewise.
71855         * lib/tmpdir.c: Likewise.
71856         * lib/unicodeio.c: Likewise.
71857         * lib/unsetenv.c: Likewise.
71858         * lib/vasnprintf.c: Likewise.
71859         * lib/vasprintf.c: Likewise.
71860         * lib/wait-process.c: Likewise.
71861         * lib/xallocsa.c: Likewise.
71862         * lib/xsetenv.c: Likewise.
71863         * lib/xstriconv.c: Likewise.
71864
71865 2006-09-13  Simon Josefsson  <jas@extundo.com>
71866
71867         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
71868         that internally, suggested by Ralf Wildenhues
71869         <Ralf.Wildenhues@gmx.de>.
71870
71871 2006-09-13  Simon Josefsson  <jas@extundo.com>
71872
71873         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
71874         @LIBOBJS@.
71875         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71876
71877 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * lib/_fpending.c: Include <config.h> unconditionally, since we no
71880         longer worry about uses that don't define HAVE_CONFIG_H.
71881         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
71882         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
71883         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
71884         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
71885         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
71886         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
71887         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
71888         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
71889         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
71890         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
71891         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
71892         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
71893         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
71894         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
71895         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
71896         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
71897         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
71898         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
71899         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
71900         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
71901         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
71902         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
71903         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
71904         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
71905         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
71906         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
71907         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
71908         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
71909         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
71910         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
71911         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
71912         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
71913         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
71914         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
71915         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
71916         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
71917         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
71918         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
71919         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
71920         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
71921         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
71922         Likewise.
71923
71924 2006-09-13  Eric Blake  <ebb9@byu.net>
71925
71926         * lib/getopt.c: Fix typo in last commit.
71927
71928 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
71929
71930         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
71931         dgettext.
71932
71933 2006-09-12  Jim Meyering  <jim@meyering.net>
71934
71935         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
71936         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
71937         Reported by Nelson H. F. Beebe.
71938
71939 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71940
71941         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
71942         program_invocation_name and program_invocation_short_name are
71943         initialized.
71944         * lib/argp-namefrob.h: Move declarations of program_invocation_name
71945         and program_invocation_short_name to argp.h, so they are visible
71946         to user programs.
71947         * lib/argp.h: Likewise
71948
71949 2006-09-10  Bruno Haible  <bruno@clisp.org>
71950
71951         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71952         m4/inttypes_h.m4, m4/uintmax_t.m4.
71953
71954 2006-09-10  Bruno Haible  <bruno@clisp.org>
71955
71956         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
71957         gl_AC_TYPE_UINTMAX_T.
71958
71959 2006-09-10  Bruno Haible  <bruno@clisp.org>
71960
71961         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
71962
71963 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71964
71965         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
71966         convention.  Text proposed by Bruno Haible.
71967         (struct argp_option): Document the use of N_() wrappers.
71968
71969         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
71970         '\v', and translate the two parts separately, instead of feeding
71971         the whole string to gettext.  This allows to exclude
71972         '\v' from the strings visible to the translator by writing doc
71973         strings as N_("..") "\v" N_("..").
71974
71975 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
71976
71977         * config/srclist.txt: Undo latest change; the bug was fixed.
71978
71979 2006-09-09  Bruno Haible  <bruno@clisp.org>
71980
71981         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
71982         assignments if building a library without libtool.
71983         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
71984         in func_emit_lib_Makefile_am.
71985         (func_import): When building a static library libfoo.a, arrange to
71986         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
71987         (func_create_testdir): Likewise.
71988         * modules/gc (configure.ac, Makefile.am): If building statically,
71989         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
71990         * modules/iconvme (configure.ac, Makefile.am): Likewise.
71991         * modules/striconv (configure.ac, Makefile.am): Likewise.
71992         Based on a suggestion by Ralf Wildenhues.
71993
71994 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71995
71996         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71997         Check for unistd.h too, since Autoconf doesn't assume POSIX.
71998         Also:
71999
72000         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72001         Add year_2050_test to catch glibc bug 2821
72002         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72003
72004         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72005         Prefer #ifdef to #if.
72006
72007         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
72008         Return from 'main' instead of calling 'exit'.
72009
72010 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * lib/mktime.c (guess_time_tm): Fix bug where mktime
72013         returned the maximum time_t value rather than (time_t) -1.
72014         Problem originally reported by William Bardwell
72015         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72016
72017         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72018         Moved to here ...
72019         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72020         ... from here.
72021
72022 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72023
72024         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
72025         2821 is fixed.
72026
72027 2006-09-08  Jim Meyering  <jim@meyering.net>
72028
72029         Don't make generated files read-only.  That would bother too many
72030         people.  However, do retain the ability to work when targets are
72031         read-only: remove the destination and temporary files before writing
72032         them (when generated via sed or echo), or by using the -f option for
72033         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
72034         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72035         * modules/byteswap, modules/configmake, modules/fcntl:
72036         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72037         * modules/localcharset, modules/netinet_in, modules/poll:
72038         * modules/stdbool, modules/stdint, modules/sys_select:
72039         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72040
72041 2006-09-08  Jim Meyering  <jim@meyering.net>
72042
72043         Avoid new build failure on FreeBSD 6.0.
72044         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
72045         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
72046         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
72047
72048 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72049
72050         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
72051
72052 2006-09-07  Jim Meyering  <jim@meyering.net>
72053
72054         Fix global typo in last change: use chmod u-w, not chmod u-x.
72055         Spotted by Paul Eggert and Bruce Korb.
72056         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72057         * modules/byteswap, modules/configmake, modules/fcntl:
72058         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72059         * modules/localcharset, modules/netinet_in, modules/poll:
72060         * modules/stdbool, modules/stdint, modules/sys_select:
72061         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72062
72063 2006-09-06  Jim Meyering  <jim@meyering.net>
72064
72065         Make generated files be read-only.
72066         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
72067         Ensure that each generated file is now read-only.
72068         * modules/argz: Likewise.
72069         * modules/arpa_inet: Likewise.
72070         * modules/byteswap: Likewise.
72071         * modules/configmake: Likewise.
72072         * modules/fcntl: Likewise.
72073         * modules/fnmatch: Likewise.
72074         * modules/getopt: Likewise.
72075         * modules/glob: Likewise.
72076         * modules/inttypes: Likewise.
72077         * modules/netinet_in: Likewise.
72078         * modules/poll: Likewise.
72079         * modules/stdbool: Likewise.
72080         * modules/stdint: Likewise.
72081         * modules/sys_select: Likewise.
72082         * modules/sys_socket: Likewise.
72083         * modules/sys_stat: Likewise.
72084         * modules/sysexits: Likewise.
72085         * modules/localcharset: Same as above, but continue using temporary
72086         file named "t-$@" (why different?) rather than the "$@-t" used
72087         everywhere else.
72088
72089         * modules/sysexits (Makefile.am): Replace literal occurrences
72090         of "sysexit.h" more readable, and more consistent, "$@".
72091
72092 2006-09-06  Bruno Haible  <bruno@clisp.org>
72093
72094         * modules/striconv: New file.
72095         * modules/xstriconv: New file.
72096         * MODULES.html.sh (Internationalization functions): Add striconv,
72097         xstriconv.
72098
72099 2006-09-06  Bruno Haible  <bruno@clisp.org>
72100
72101         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
72102         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
72103         not using libtool correctly.
72104
72105 2006-09-06  Bruno Haible  <bruno@clisp.org>
72106
72107         * lib/striconv.h: New file.
72108         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
72109         iconvstring.c.
72110         * lib/xstriconv.h: New file.
72111         * lib/xstriconv.c: New file.
72112
72113 2006-09-06  Bruno Haible  <bruno@clisp.org>
72114
72115         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72116         lib_..._LDFLAGS.
72117
72118 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72119
72120         * lib/argz_.h: Sync from Libtool.
72121
72122         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
72123                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72124
72125         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
72126
72127 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72128
72129         * modules/trim: New file.
72130
72131 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72132
72133         * lib/trim.h: New file.
72134         * lib/trim.c: New file.
72135
72136 2006-09-05  Bruno Haible  <bruno@clisp.org>
72137
72138         * MODULES.html.sh (String handling): Add trim.
72139
72140 2006-09-04  Karl Berry  <karl@gnu.org>
72141
72142         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
72143         until next release.
72144
72145 2006-09-03  Bruno Haible  <bruno@clisp.org>
72146
72147         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
72148         correctly.
72149
72150 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72151
72152         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
72153         not gl_GETLOADAVG.  Omit unneeded semicolons.
72154         Problems reported by Ralf Wildenhues in
72155         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72156         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
72157         at the end, which is the usual gnulib style.
72158
72159         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
72160         of doing all the work ourselves.
72161         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
72162         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
72163
72164 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
72167         Problem reported by Ralf Wildenhues in
72168         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72169
72170         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
72171         HAVE_STRUCT_STATFS_F_FSTYPENAME.
72172
72173 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72174
72175         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
72176         yesterday's patch by changing test -n to test -z.
72177
72178 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * modules/getloadavg (Files): Add m4/getloadavg.m4.
72181         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
72182         the former is now obsolescent.
72183
72184         * modules/chdir-long (Depends-on): Add fcntl.
72185
72186 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
72189         obsolescent, and programs should use gnulib instead.
72190         * m4/getloadavg.m4: New file, with contents taken from Autoconf
72191         but with prefixes changed.
72192
72193 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72194
72195         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
72196         or stdbool.h, because they might not exist while configuring.
72197
72198         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
72199         Don't include unistd.h or limits.h; not needed, since chdir-long.h
72200         does that for us.
72201         (O_DIRECTORY): Remove.
72202
72203 2006-08-31  Eric Blake  <ebb9@byu.net>
72204
72205         * gnulib-tool: Don't let emacs change spaces to TAB.
72206
72207 2006-08-31  Bruno Haible  <bruno@clisp.org>
72208
72209         * gnulib-tool: When calling func_import more than once, do it in a
72210         subshell.
72211         Reported by Eric Blake <ebb9@byu.net>.
72212
72213 2006-08-31  Bruno Haible  <bruno@clisp.org>
72214
72215         * gnulib-tool (nl): Remove variable.
72216         (sed_transform_lib_file): Use more robust test for config-h module.
72217         (func_import): Fix typo in 2006-08-25 patch.
72218
72219 2006-08-31  Bruno Haible  <bruno@clisp.org>
72220
72221         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
72222         specified, augment Makefile.am variables instead of assigning them.
72223
72224 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72225
72226         Work around a bug in both the Linux and SunOS 64-bit kernels:
72227         nanosleep mishandles sleeps for longer than 2**31 seconds.
72228         Problem reported by Frank v Waveren in
72229         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
72231         Check for nanosleep bug.
72232         (LIB_NANOSLEEP): Append clock_gettime library if needed.
72233
72234 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         Work around a bug in both the Linux and SunOS 64-bit kernels:
72237         nanosleep mishandles sleeps for longer than 2**31 seconds.
72238         Problem reported by Frank v Waveren in
72239         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72240         * lib/nanosleep.c (BILLION): New constant.
72241         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
72242         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
72243         implementation.
72244
72245 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * modules/nanosleep (Depends-on): Add gettime.
72248
72249 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72250         and Simon Josefsson  <jas@extundo.com>
72251         and Oskar Liljeblad  <oskar@osk.mine.nu>
72252
72253         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
72254         * gnulib-tool (func_import): New license type 'unmodifiable license
72255         text'.
72256         * modules/fdl: Use it.  Longer description.
72257         * module/gpl, module/lgpl: New files.
72258
72259 2006-08-30  Jim Meyering  <jim@meyering.net>
72260
72261         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
72262         shadowing the parameter.
72263
72264 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72265
72266         Sync from Libtool:
72267
72268         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72269
72270         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
72271         sharing with gnulib.  Report by Eric Blake.
72272
72273 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * modules/isapipe: New file.
72276         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
72277
72278 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         * modules/configmake (Makefile.am): Add a comment, and omit
72281         the CONFIGMAKE_ prefix from generated macro names.  Suggested
72282         by Bruno Haible.
72283
72284 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72285
72286         * m4/isapipe.m4: New file.
72287
72288 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * lib/isapipe.c, lib/isapipe.h: New files.
72291
72292 2006-08-29  Jim Meyering  <jim@meyering.net>
72293
72294         * modules/configmake (Makefile.am): Make configmake.h depend on
72295         Makefile.  Otherwise, a stale configmake.h could hang around.
72296
72297 2006-08-29  Eric Blake  <ebb9@byu.net>
72298
72299         * lib/error.c (error_at_line, print_errno_message): Match libc, after
72300         resolution of upstream bug 3044.
72301
72302 2006-08-29  Bruno Haible  <bruno@clisp.org>
72303
72304         * modules/localcharset (Depends-on): Add configmake.
72305         (Makefile.am): Remove setting of LIBDIR through DEFS.
72306
72307 2006-08-29  Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
72310         defined.
72311
72312 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72313
72314         * modules/fcntl: New file.
72315         * modules/chdir-safer (Depends-on): Add fcntl.
72316         * modules/fts: Likewise.
72317         * modules/mkdir-p: Likewise.
72318
72319         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
72320         This undoes the most recent change, since we're now addressing the
72321         problem in a different way.
72322
72323         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
72324         into output, since the output might be called Makefile.am even
72325         if $makefile_name is something different.
72326         (func_import): Use $makefile_am rather than
72327         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
72328         empty.
72329
72330         * modules/inttypes (Files): Add m4/inttypes-h.m4.
72331
72332 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
72335         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
72336         recent change to stdint.m4, since we're now addressing the problem in a
72337         different way.
72338
72339 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72340
72341         * m4/fcntl_h.m4: New file.
72342
72343 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72344
72345         * lib/fcntl_.h: New file.
72346         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
72347         the fcntl module.
72348         * lib/dirchownmod.c: Likewise.
72349         * lib/fts.c: Likewise.
72350
72351         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
72352         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
72353         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
72354         just before including <inttypes.h>, to avoid circular inclusion.
72355
72356 2006-08-28  Jim Meyering  <jim@meyering.net>
72357
72358         * doc/visibility.texi: Actually read and correct the grammar of the
72359         sentence affected by yesterday's change.
72360
72361 2006-08-28  Eric Blake  <ebb9@byu.net>
72362
72363         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
72364         needs wrapper.
72365
72366 2006-08-28  Eric Blake  <ebb9@byu.net>
72367
72368         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
72369
72370 2006-08-28  Eric Blake  <ebb9@byu.net>
72371
72372         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
72373
72374 2006-08-28  Bruno Haible  <bruno@clisp.org>
72375
72376         * modules/c-strstr: New file, from GNU gettext.
72377         * MODULES.html.sh (String handling): Add c-strstr.
72378
72379 2006-08-28  Bruno Haible  <bruno@clisp.org>
72380
72381         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
72382         macros.
72383         Reported by Eric Blake.
72384
72385 2006-08-28  Bruno Haible  <bruno@clisp.org>
72386
72387         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
72388         (VASNPRINTF): Return a string of length > INT_MAX without failing.
72389         * lib/vasprintf.c: Include errno.h, limits.h.
72390         (EOVERFLOW): New fallback definition.
72391         (vasprintf): Test here whether the string length is > INT_MAX.
72392         * lib/vsnprintf.c: Include errno.h, limits.h.
72393         (EOVERFLOW): New fallback definition.
72394         (vsnprintf): Fix bug when generated string was too long for the buffer.
72395         Test here whether the string length is > INT_MAX.
72396
72397 2006-08-28  Bruno Haible  <bruno@clisp.org>
72398
72399         * lib/inttypes_.h (SCNX*): Remove definitions.
72400         Reported by Eric Blake.
72401
72402 2006-08-28  Bruno Haible  <bruno@clisp.org>
72403
72404         * lib/c-strstr.h: New file, from GNU gettext.
72405         * lib/c-strstr.c: New file, from GNU gettext.
72406
72407 2006-08-28  Bruno Haible  <bruno@clisp.org>
72408
72409         * gnulib-tool: Reorder some statements.
72410
72411 2006-08-28  Bruno Haible  <bruno@clisp.org>
72412
72413         * gnulib-tool: New option --makefile-name.
72414         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
72415         $makefile_name.
72416         (func_import): Write $makefile_name to the cache file, and read it from
72417         there unless explicitly specified. Use $makefile_name as file name
72418         instead of Makefile.am. Adjust the recommendations accordingly.
72419
72420 2006-08-28  Bruno Haible  <bruno@clisp.org>
72421
72422         * gnulib-tool (func_verify_module): Check against misapplying patch.
72423
72424 2006-08-28  Bruno Haible  <bruno@clisp.org>
72425
72426         * gnulib-tool (func_relativize, func_relconcat): New functions.
72427         Give an error if --local-dir is given with --update.
72428         Remove trailing slashes from $local_gnulib_dir.
72429         (func_import): Store the relativized $local_gnulib_dir in
72430         gnulib-cache.m4, and read it from there if not specified explicitly.
72431
72432 2006-08-28  Bruno Haible  <bruno@clisp.org>
72433
72434         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
72435         is the current directory. Respect also $local_gnulib_dir.
72436
72437 2006-08-28  Bruno Haible  <bruno@clisp.org>
72438             Simon Josefsson  <jas@extundo.com>
72439
72440         BeOS portability.
72441         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
72442
72443 2006-08-27  Jim Meyering  <jim@meyering.net>
72444
72445         * doc/visibility.texi: Remove duplicate word: "pointer".
72446
72447 2006-08-26  Bruno Haible  <bruno@clisp.org>
72448
72449         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
72450         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
72451         (Makefile.am): Create inttypes.h from inttypes_.h.
72452         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
72453
72454         * modules/imaxabs: New file.
72455
72456         * modules/imaxdiv: New file.
72457
72458 2006-08-26  Bruno Haible  <bruno@clisp.org>
72459
72460         * m4/inttypes.m4: New file.
72461         * m4/_inttypes_h.m4: Remove file.
72462         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
72463         PRI_MACROS_BROKEN.
72464         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
72465
72466         * m4/imaxabs.m4: New file.
72467
72468         * m4/imaxdiv.m4: New file.
72469
72470 2006-08-26  Bruno Haible  <bruno@clisp.org>
72471
72472         * lib/inttypes_.h: New file.
72473         * lib/inttypes.h: Remove file.
72474         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
72475
72476         * lib/imaxabs.c: New file.
72477
72478         * lib/imaxdiv.c: New file.
72479
72480 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         New config-h module, so that "make" output needn't be cluttered
72483         by -DHAVE_CONFIG_H.
72484         * MODULES.html.sh (Support for building libraries and executables):
72485         Add config-h.
72486         * modules/config-h: New file.
72487         * gnulib-tool (nl, sed_transform_lib_file): New vars.
72488         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
72489         the config-h module is used.
72490
72491         New configmake module, so that "make" output needn't be cluttered
72492         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
72493         * MODULES.html.sh (Support for building libraries and executables):
72494         Add configmake.
72495         * modules/configmake: New file.
72496
72497 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72498
72499         * m4/config-h.m4: New file.
72500
72501 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72502
72503         * config/srclist.txt: Add elisp-comp.
72504
72505 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72506
72507         * MODULES.html.sh (Support for building libraries and executables):
72508         Add elisp-comp.
72509         * build-aux/elisp-comp: New file.
72510         * modules/elisp-comp: New file.
72511
72512 2006-08-24  Bruno Haible  <bruno@clisp.org>
72513
72514         * gnulib-tool (func_create_testdir): Use non-default values of
72515         sourcebase and m4base.
72516
72517 2006-08-24  Bruno Haible  <bruno@clisp.org>
72518
72519         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
72520         HTML structure.
72521
72522 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72523
72524         * modules/openat (Depends-on): Add lchown.
72525
72526 2006-08-23  Bruno Haible  <bruno@clisp.org>
72527
72528         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
72529         of gl_LOCK_EARLY instead of gl_LOCK.
72530
72531 2006-08-23  Bruno Haible  <bruno@clisp.org>
72532
72533         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
72534         on OSF/1 to no.
72535         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
72536
72537 2006-08-23  Bruno Haible  <bruno@clisp.org>
72538
72539         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
72540         as unusable.
72541
72542         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
72543         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
72544         (gl_LOCK): New macro.
72545
72546 2006-08-22  Simon Josefsson  <jas@extundo.com>
72547
72548         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
72549         to md5 module.
72550
72551 2006-08-22  Simon Josefsson  <jas@extundo.com>
72552
72553         * MODULES.html.sh: Add "Support for maintaining and release
72554         projects".
72555
72556         * build-aux/gnupload: New file, from coreutils.
72557
72558 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72559
72560         Avoid the need for AC_LIBSOURCES in m4 macros.
72561         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
72562         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
72563         * modules/check-version (EXTRA_DIST): Add check-version.h.
72564         * modules/crc (EXTRA_DIST): Add crc.h.
72565         * modules/des (EXTRA_DIST): Add des.h.
72566         * modules/gc (EXTRA_DIST): Add gc.h.
72567         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
72568         * modules/getline (EXTRA_DIST): Add getline.h.
72569         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
72570         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
72571         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
72572         * modules/md2 (EXTRA_DIST): Add md2.h.
72573         * modules/md4 (EXTRA_DIST): Add md4.h.
72574         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
72575         * modules/read-file (EXTRA_DIST): Add read-file.h.
72576         * modules/readline (EXTRA_DIST): Add readline.h.
72577         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
72578         rijndael-api-fst.h.
72579
72580 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72581
72582         * m4/rijndael.m4 (gl_ARCFOUR):
72583         * m4/arctwo.m4 (gl_ARCTWO):
72584         * m4/check-version.m4 (gl_CHECK_VERSION):
72585         * m4/crc.m4 (gl_CRC):
72586         * m4/des.m4 (gl_DES):
72587         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
72588         * m4/gc.m4 (gl_GC):
72589         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
72590         * m4/getline.m4 (gl_FUNC_GETLINE):
72591         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
72592         * m4/hmac-md5.m4 (gl_HMAC_MD5):
72593         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
72594         * m4/md2.m4 (gl_MD2):
72595         * m4/md4.m4 (gl_MD4):
72596         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
72597         * m4/read-file.m4 (gl_FUNC_READ_FILE):
72598         * m4/readline.m4 (gl_FUNC_READLINE):
72599         * m4/rijndael.m4 (gl_RIJNDAEL):
72600         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72601         to get the necessary .h files and whatnot.
72602
72603 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
72604
72605         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
72606         gnulib rather than the other way around.
72607         * config/srclistvars.sh (COREUTILS): Remove.
72608
72609 2006-08-22  Jim Meyering  <jim@meyering.net>
72610
72611         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
72612
72613         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
72614
72615 2006-08-22  Eric Blake  <ebb9@byu.net>
72616
72617         * modules/regexprops-generic: New file.
72618         * MODULES.html.sh (Support for building documentation): List it.
72619
72620 2006-08-22  Eric Blake  <ebb9@byu.net>
72621
72622         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
72623         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
72624         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
72625         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
72626
72627 2006-08-22  Bruno Haible  <bruno@clisp.org>
72628
72629         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
72630         and lib_LTLIBRARIES like the other lib_* variables.
72631
72632 2006-08-22  Bruno Haible  <bruno@clisp.org>
72633
72634         * build-aux/x-to-1.in: New file, from GNU gettext.
72635
72636 2006-08-22  Bruno Haible  <bruno@clisp.org>
72637
72638         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
72639         <utmpx.h> exists.
72640
72641 2006-08-22  Bruno Haible  <bruno@clisp.org>
72642
72643         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
72644         <utmpx.h> exists.
72645
72646 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72647
72648         BeOS portability.
72649         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
72650         exist.
72651         Problem reported by Bruno Haible.
72652
72653 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72654
72655         Avoid the need for AC_LIBSOURCES in m4 macros.
72656         * modules/acl (EXTRA_DIST): Add acl.h.
72657         * modules/argmatch (Files): Add m4/argmatch.m4.
72658         (configure.ac): Add gl_ARGMATCH.
72659         (EXTRA_DIST): Renamed from lib_SOURCES, for
72660         consistency with the other modules.  Remove argmatch.c.
72661         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
72662         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
72663         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
72664         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
72665         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
72666         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
72667         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
72668         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
72669         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
72670         * modules/closeout (EXTRA_DIST): Add closeout.h.
72671         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
72672         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
72673         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
72674         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
72675         dirname.h; remove basename.c and stripslash.c.
72676         * modules/exclude (EXTRA_DIST): Add exclude.h.
72677         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
72678         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
72679         * modules/file-type (EXTRA_DIST): Add file-type.h.
72680         * modules/filemode (EXTRA_DIST): Add filemode.h.
72681         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
72682         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72683         * modules/fpending (EXTRA_DIST): Add __fpending.h.
72684         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
72685         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
72686         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
72687         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
72688         * modules/getdate (EXTRA_DIST): Add getdate.c.
72689         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
72690         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
72691         * modules/getpass (EXTRA_DIST): Add getpass.h.
72692         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
72693         * modules/group-member (EXTRA_DIST): Add group-member.h.
72694         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
72695         * modules/hash (EXTRA_DIST): Add hash.h.
72696         * modules/human (EXTRA_DIST): Add human.h.
72697         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
72698         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
72699         * modules/lchown (EXTRA_DIST): Add lchown.h.
72700         * modules/long-options (EXTRA_DIST): Add long-options.h.
72701         * modules/lstat (EXTRA_DIST): Add lstat.h.
72702         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
72703         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
72704         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
72705         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
72706         * modules/memxor (EXTRA_DIST): Add memxor.h.
72707         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
72708         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
72709         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
72710         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
72711         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
72712         * modules/physmem (EXTRA_DIST): Add physmem.h.
72713         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
72714         * modules/posixver (EXTRA_DIST): Add posixver.h.
72715         * modules/quote (EXTRA_DIST): Add quote.h.
72716         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
72717         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
72718         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
72719         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
72720         regex_internal.h regexec.c.
72721         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
72722         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
72723         * modules/same (EXTRA_DIST): Add same.h.
72724         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
72725         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
72726         * modules/savedir (EXTRA_DIST): Add savedir.h.
72727         * modules/sha1 (EXTRA_DIST): Add sha1.h.
72728         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
72729         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
72730         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
72731         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
72732         * modules/strdup (EXTRA_DIST): Add strdup.h.
72733         * modules/strftime (EXTRA_DIST): Add strftime.h.
72734         * modules/strndup (EXTRA_DIST): Add strndup.h.
72735         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
72736         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
72737         * modules/time_r (EXTRA_DIST): Add time_r.h.
72738         * modules/timespec (EXTRA_DIST): Add timespec.h.
72739         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
72740         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
72741         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
72742         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
72743         * modules/userspec (EXTRA_DIST): Add userspec.h.
72744         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
72745         * modules/utimens (EXTRA_DIST): Add utimens.h.
72746         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
72747         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
72748         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
72749         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
72750         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
72751         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
72752         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
72753         * modules/yesno (EXTRA_DIST): Add yesno.h.
72754
72755 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
72758
72759         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
72760         * m4/dev-ino.m4, same-inode.m4: Remove.
72761
72762         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
72763         * m4/acl.m4 (AC_FUNC_ACL):
72764         * m4/backupfile.m4 (gl_BACKUPFILE):
72765         * m4/c-strtod.m4 (gl_C99_STRTOLD):
72766         * m4/canon-host.m4 (gl_CANON_HOST):
72767         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72768         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
72769         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
72770         * m4/cloexec.m4 (gl_CLOEXEC):
72771         * m4/close-stream.m4 (gl_CLOSE_STREAM):
72772         * m4/closeout.m4 (gl_CLOSEOUT):
72773         * m4/dirfd.m4 (gl_FUNC_DIRFD):
72774         * m4/dirname.m4 (gl_DIRNAME):
72775         * m4/exclude.m4 (gl_EXCLUDE):
72776         * m4/exitfail.m4 (gl_EXITFAIL):
72777         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
72778         * m4/file-type.m4 (gl_FILE_TYPE):
72779         * m4/filemode.m4 (gl_FILEMODE):
72780         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
72781         * m4/fpending.m4 (gl_FUNC_FPENDING):
72782         * m4/fprintftime.m4 (gl_FPRINTFTIME):
72783         * m4/fts.m4 (gl_FUNC_FTS):
72784         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
72785         * m4/getdate.m4 (gl_GETDATE):
72786         * m4/gethrxtime.m4 (gl_GETHRXTIME):
72787         * m4/getpagesize.m4 (gl_GETPAGESIZE):
72788         * m4/getpass.m4 (gl_FUNC_GETPASS):
72789         * m4/gettime.m4 (gl_GETTIME):
72790         * m4/getugroups.m4 (gl_GETUGROUPS):
72791         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
72792         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
72793         * m4/hard-locale.m4 (gl_HARD_LOCALE):
72794         * m4/hash.m4 (gl_HASH):
72795         * m4/idcache.m4 (gl_IDCACHE):
72796         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
72797         * m4/lchown.m4 (gl_FUNC_LCHOWN):
72798         * m4/long-options.m4 (gl_LONG_OPTIONS):
72799         * m4/lstat.m4 (gl_FUNC_LSTAT):
72800         * m4/md5.m4 (gl_MD5):
72801         * m4/memcasecmp.m4 (gl_MEMCASECMP):
72802         * m4/memcoll.m4 (gl_MEMCOLL):
72803         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
72804         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
72805         * m4/memxor.m4 (gl_MEMXOR):
72806         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
72807         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
72808         * m4/modechange.m4 (gl_MODECHANGE):
72809         * m4/mountlist.m4 (gl_MOUNTLIST):
72810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72811         * m4/openat.m4 (gl_FUNC_OPENAT):
72812         * m4/pathmax.m4 (gl_PATHMAX):
72813         * m4/physmem.m4 (gl_PHYSMEM):
72814         * m4/posixtm.m4 (gl_POSIXTM):
72815         * m4/posixver.m4 (gl_POSIXVER):
72816         * m4/quote.m4 (gl_QUOTE):
72817         * m4/quotearg.m4 (gl_QUOTEARG):
72818         * m4/readtokens.m4 (gl_READTOKENS):
72819         * m4/readutmp.m4 (gl_READUTMP):
72820         * m4/regex.m4 (gl_REGEX):
72821         * m4/safe-read.m4 (gl_SAFE_READ):
72822         * m4/safe-write.m4 (gl_SAFE_WRITE):
72823         * m4/same.m4 (gl_SAME):
72824         * m4/save-cwd.m4 (gl_SAVE_CWD):
72825         * m4/savedir.m4 (gl_SAVEDIR):
72826         * m4/settime.m4 (gl_SETTIME):
72827         * m4/sha1.m4 (gl_SHA1):
72828         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
72829         * m4/stat-macros.m4 (gl_STAT_MACROS):
72830         * m4/stat-time.m4 (gl_STAT_TIME):
72831         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
72832         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
72833         * m4/strdup.m4 (gl_FUNC_STRDUP):
72834         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
72835         * m4/strndup.m4 (gl_FUNC_STRNDUP):
72836         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
72837         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
72838         * m4/time_r.m4 (gl_TIME_R):
72839         * m4/timespec.m4 (gl_TIMESPEC):
72840         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
72841         * m4/unlinkdir.m4 (gl_UNLINKDIR):
72842         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
72843         * m4/userspec.m4 (gl_USERSPEC):
72844         * m4/utimecmp.m4 (gl_UTIMECMP):
72845         * m4/utimens.m4 (gl_UTIMENS):
72846         * m4/xalloc.m4 (gl_XALLOC):
72847         * m4/xgetcwd.m4 (gl_XGETCWD):
72848         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
72849         * m4/xreadlink.m4 (gl_XREADLINK):
72850         * m4/xstrtod.m4 (gl_XSTRTOD):
72851         * m4/yesno.m4 (gl_YESNO):
72852         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
72853         to get the necessary .h files and whatnot.
72854
72855 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
72856             Bruno Haible  <bruno@clisp.org>
72857
72858         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
72859         /bin/sh understanding of '!' conditional negation.
72860
72861 2006-08-21  Jim Meyering  <jim@meyering.net>
72862
72863         * modules/openat (Depends-on): Really alphabetize.
72864
72865         * modules/acl (Depends-on): Add error and quote.
72866
72867         * check-module (find_included_lib_files): Add at-func.c to the
72868         ok-to-include-more-than-once white list.
72869
72870         * modules/openat (Depends-on): Add lstat.  Alphabetize.
72871
72872 2006-08-21  Bruno Haible  <bruno@clisp.org>
72873
72874         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72875         Emit a pkgdata_DATA variable only if some snippets add contents to it.
72876         Reported by Martin Lambers <marlam@marlam.de>.
72877
72878 2006-08-21  Bruno Haible  <bruno@clisp.org>
72879
72880         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
72881         specify an installation location, don't emit a noinst_LIBRARIES or
72882         noinst_LTLIBRARIES assignment.
72883
72884 2006-08-21  Bruno Haible  <bruno@clisp.org>
72885
72886         BeOS portability.
72887         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
72888         BeOS has mbrtowc() but no <wctype.h>.
72889
72890 2006-08-21  Bruno Haible  <bruno@clisp.org>
72891
72892         BeOS portability.
72893         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
72894         exist.
72895
72896 2006-08-21  Bruno Haible  <bruno@clisp.org>
72897
72898         BeOS portability.
72899         * lib/mbchar.h: Include <wctype.h> only if it exists.
72900
72901 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72902
72903         Remove files that are no longer needed by their respective modules.
72904         * m4/obstack.m4: Remove.
72905         * m4/strerror_r.m4: Remove.
72906         * m4/uint32_t.m4: Remove.
72907         * m4/uintptr_t.m4: Remove.
72908         * m4/ullong_max.m4: Remove.
72909         * m4/xstrtoimax.m4: Remove.
72910         * m4/xstrtoumax.m4: Remove.
72911
72912         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
72913         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
72914         dependencies now capture this.
72915
72916         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
72917         Do not use AC_LIBSOURCES, since gnulib modules now do this.
72918         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
72919         * m4/human.m4 (gl_HUMAN): Likewise.
72920         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
72921         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
72922
72923         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
72924
72925         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
72926         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
72927         stdint.
72928         * m4/human.m4 (gl_HUMAN): Likewise.
72929         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
72930         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
72931         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72932         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72933         * m4/xstrtol (gl_XSTRTOL): Likewise.
72934
72935         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
72936         AC_TYPE_LONG_LONG_INT.
72937         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
72938         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
72939         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
72940         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
72941
72942         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
72943         on stdbool.
72944
72945         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
72946         (gl_PREREQ_XSTRTOUL): Remove.
72947
72948         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
72949
72950         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
72951         mode.
72952
72953 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72954
72955         Add and change modules to make it easier for coreutils to use
72956         gnulib-tool.
72957         * modules/backupfile (Files): Remove m4/d-ino.m4.
72958         (Depends-on): Add d-ino.
72959         * modules/cycle-check (Depends-on): Add stdint.
72960         (lib_SOURCES): Add cycle-check.h.
72961         * modules/d-ino: New module.
72962         * modules/d-type: New module.
72963         * modules/error (Files): Remove m4/strerror_r.m4.
72964         * modules/filemode (Files): Add m4/st_dm_mode.m4.
72965         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72966         m4/inttypes_h.m4, m4/uintmax_t.m4.
72967         (Depends-on): Add stdint.
72968         (lib_SOURCES): Add fsusage.h.
72969         * modules/getcwd (Files): Remove d-ino.m4.
72970         (Depends-on): Add d-ino.
72971         * modules/getndelim2 (Depends-on): Add stdint.
72972         * modules/glob (Files): Remove m4/d-type.m4.
72973         (Depends-on): Add d-type.
72974         * modules/host-os: New module.
72975         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
72976         m4/inttypes_h.m4, m4/uintmax_t.m4.
72977         * Depends-on: Add stdint.
72978         (lib_SOURCES): Add human.h.
72979         * modules/inttostr (Files): Remove m4/intmax_t.m4,
72980         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
72981         m4/uintmax_t.m4, m4/ulonglong.m4.
72982         (Depends-on): Add stdint.
72983         (EXTRA_DIST): Add inttostr.h.
72984         * modules/lchmod: New module.
72985         * modules/link-follow: New module.
72986         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
72987         (Depends-on): Add lchmod.
72988         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
72989         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
72990         (Depends-on): Add stdint.
72991         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
72992         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
72993         (Depends-on): Add stdint.
72994         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
72995         * modules/perl: New module.
72996         * modules/regex (Depends-on): Add stdint.
72997         * modules/rmdir-errno: New module.
72998         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
72999         m4/intmax_t.m4.
73000         (Depends-on): Add stdint.
73001         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73002         m4/uintmax_t.m4.
73003         (Depends-on): Add stdint.
73004         * modules/unlink-busy: New module.
73005         * modules/utimecmp (Depends-on): Add stdint.
73006         * modules/uptime: New module.
73007         * modules/winsz-ioctl: New module.
73008         * modules/winsz-termios: New module.
73009         * modules/xnanosleep (Depends-on): Add nanosleep.
73010         * modules/ullong_max: Remove.
73011         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
73012         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
73013         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
73014         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
73015         (Depends-on): Add inttypes.
73016         (lib_SOURCES): Add xstrtol.h.
73017         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
73018         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
73019         * MODULES.html.sh: Move 'assert' into the assert section.
73020         Move 'dummy' into the linking section.
73021         Remove ullong_max.
73022         Add section for compatibility checks for POSIX:2001 functions,
73023         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
73024         winsz-ioctl, and winsz-termios into it.
73025         Add lchmod.
73026         Add top-level Misc section and put host-os, perl, and uptime
73027         into it.
73028
73029 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73030
73031         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
73032         now assume the stdint module.  Do not include inttypes.h.
73033         * lib/fsusage.h: Likewise.
73034         * lib/getndelim2.c: Likewise.
73035         * lib/human.h: Likewise.
73036         * lib/inttostr.h: Likewise.
73037         * lib/obstack.c: Likewise.
73038         * lib/regex_internal.h: Likewise.
73039         * lib/tempname.c: Likewise.
73040         * lib/utimecmp.c: Likewise.
73041         * lib/xstrtol.h: Likewise.
73042
73043         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
73044
73045         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
73046         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
73047         * lib/xtime.h: Likewise.
73048
73049 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73050
73051         * modules/openat (Files): Add lib/fchmodat.c.
73052         Fixes problem reported by Jay Youngman.
73053
73054 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73055
73056         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
73057         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
73058
73059 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
73060             Bruno Haible  <bruno@clisp.org>
73061
73062         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
73063         and is a script that invokes bison. Tighten the code. Add comments.
73064
73065 2006-08-18  Jim Meyering  <jim@meyering.net>
73066
73067         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
73068         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
73069         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
73070         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
73071
73072 2006-08-18  Bruno Haible  <bruno@clisp.org>
73073
73074         * modules/bison-i18n: New file.
73075         * MODULES.html.sh (Internationalization functions): Add it.
73076
73077 2006-08-18  Bruno Haible  <bruno@clisp.org>
73078
73079         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
73080         sys/statvfs.h. When getmntinfo was found, check its declaration and
73081         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
73082
73083 2006-08-18  Bruno Haible  <bruno@clisp.org>
73084
73085         * m4/bison-i18n.m4: New file, from bison.
73086
73087 2006-08-18  Bruno Haible  <bruno@clisp.org>
73088
73089         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
73090         (ME_DUMMY): Treat "kernfs" as a dummy.
73091         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
73092
73093 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73094
73095         Update from coreutils.
73096
73097         2006-08-15  Jim Meyering  <jim@meyering.net>
73098
73099         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
73100
73101         2006-01-17  Jim Meyering  <jim@meyering.net>
73102
73103         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
73104
73105         2006-01-11  Jim Meyering  <jim@meyering.net>
73106
73107         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
73108         Check for the lchmod function.
73109
73110 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73111
73112         Update from coreutils.
73113
73114         * lib/__fpending.h: Add copyright notice.
73115         * lib/fprintftime.h: Likewise.
73116         * lib/savedir.c: Use (C) in copyright notice.
73117         * lib/savedir.h: Likewise.
73118
73119         2006-08-15  Jim Meyering  <jim@meyering.net>
73120
73121         * lib/at-func.c: New file, with the logic of all emulated at-functions.
73122         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
73123         in support of the EXPECTED_ERRNO macro.
73124         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
73125         definitions.  Instead, define the appropriate symbols and include
73126         "at-func.c".
73127         * lib/mkdirat.c (mkdirat): Likewise.
73128         * lib/fchmodat.c (fchmodat): Likewise.
73129         (ENOSYS): Remove definition.
73130         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
73131         it.  Don't include "unistd--.h" -- it wasn't ever used.
73132
73133         2006-01-17  Jim Meyering  <jim@meyering.net>
73134
73135         Rewrite fts.c not to change the current working directory,
73136         by using openat, fstatat, fdopendir, etc..
73137
73138         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
73139         (HAVE_OPENAT_SUPPORT): Define.
73140         [_LIBC] (fchdir): Don't undef or define; no longer used.
73141         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
73142         Now, this `function' always succeeds, and consumes its file descriptor
73143         parameter -- so callers must not close such FDs.  Update callers.
73144         (diropen_fd, opendirat, cwd_advance_fd): New functions.
73145         (diropen): Add parameter, SP.  Adjust all callers.
73146         Implement using diropen_fd, rather than open.
73147         (fts_open): Initialize new member, fts_cwd_fd.
73148         Remove fts_rft-setting code.
73149         (fts_close): Close fts_cwd_fd, if necessary.
73150         (__opendir2): Define in terms of opendir or opendirat,
73151         depending on whether the FST_NOCHDIR flag is set.
73152         (fts_build): Since fts_safe_changedir consumes its FD, and since
73153         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
73154         and close the dup'd file descriptor upon failure.
73155         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
73156         (fts_safe_changedir): Tweak semantics to reflect that this function
73157         now calls cwd_advance_fd and hence consumes its FD argument.
73158         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
73159         [struct FTS] (fts_rft): Remove now-unused member.
73160         [struct FTS] (fts_cycle.state): Improve comment.
73161
73162         * lib/openat.c (openat_needs_fchdir): New function.
73163         * lib/openat.h (openat_needs_fchdir): Declare it.
73164
73165 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73166
73167         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
73168         Problem and fix reported by Pádraig Brady in
73169         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
73170
73171 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
73174
73175 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73176
73177         * lib/memcoll.c (memcoll): Optimize for the common case where the
73178         arguments are bytewise equal.
73179
73180 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73181
73182         * doc/regexprops-generic.texi: Add a copyright notice.
73183
73184 2006-08-15  Bruno Haible  <bruno@clisp.org>
73185
73186         * modules/tmpdir (License): Change to LGPL.
73187
73188 2006-08-15  Bruno Haible  <bruno@clisp.org>
73189
73190         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
73191         module.
73192
73193 2006-08-14  Simon Josefsson  <jas@extundo.com>
73194
73195         * config/srclist.txt: Add gnupload.
73196
73197 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         Change copyright notice from LGPL 2 to GPL 2, since that's the
73200         standard form used in the gnulib repository.
73201         * tests/test-lock.c: Likewise.
73202         * tests/test-stdint.c: Likewise.
73203         * tests/test-tls.c: Likewise.
73204
73205         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
73206         prelude-manager.  User shorter URLs for GNU projects, without '?'.
73207         Add copyright notice.
73208
73209         * check-module: Add copyright notice.  Output a copyright
73210         notice if "--version" is specified.
73211         * modules/COPYING: New file.
73212         * tests/test-getaddrinfo.c: Add copyright notice.
73213         * tests/test-verify.c: Likewise.
73214
73215 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         Change copyright notice from LGPL 2 to GPL 2, since that's the
73218         standard form used in the gnulib repository.
73219         * lib/lock.c: LGPL -> GPL.
73220         * lib/lock.h: Likewise.
73221         * lib/strnlen1.c: Likewise.
73222         * lib/strnlen1.h: Likewise.
73223         * lib/tls.c: Likewise.
73224         * lib/tls.h: Likewise.
73225         * lib/tmpdir.c: Likewise.
73226
73227         * lib/TODO: Remove; this belongs only in coreutils.
73228
73229 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         Add copyright notices to long-enough files that lack them, since
73232         otherwise the files aren't clearly free.  Use the same notice that
73233         getdate.texi already uses.
73234         * doc/alloca-opt.texi: Add copyright notice.
73235         * doc/alloca.texi: Likewise.
73236         * doc/ctime.texi: Likewise.
73237         * doc/functions.texi: Likewise.
73238         * doc/gcd.texi: Likewise.
73239         * doc/gnulib-tool.texi: Likewise.
73240         * doc/inet_ntoa.texi: Likewise.
73241         * doc/visibility.texi: Likewise.
73242
73243         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
73244         * doc/quote.texi: Add copyright notice.
73245
73246         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
73247         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
73248         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
73249         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
73250         is now obsolete, and give a pointer to the Sun list.
73251         Add copyright notice.
73252
73253 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73254
73255         * config/srclistvars.sh: Add copyright notice.
73256
73257 2006-08-14  Eric Blake  <ebb9@byu.net>
73258
73259         Import the following change from libc:
73260
73261         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
73262
73263         Upstream bug 2997.
73264         * lib/misc/error.c: Add space between program name and message if file
73265         name is missing.
73266
73267 2006-08-12  Karl Berry  <karl@gnu.org>
73268
73269         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
73270         remove, these originate in gnulib now.
73271
73272 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73273
73274         * doc/Makefile (standards.info standards.html standards.dvi):
73275         Also depend on make-stds.texi.
73276
73277 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
73280         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
73281
73282         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
73283         in wchar_t.  Problem reported by Eric Blake.
73284
73285         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
73286         LEN is smaller than SIZE.  Suggested by Bruno Haible.
73287         Also, help the compiler to keep LEN in a register.
73288
73289 2006-08-11  Eric Blake  <ebb9@byu.net>
73290
73291         * users.txt: Sort.  Add tar.
73292
73293 2006-08-11  Bruno Haible  <bruno@clisp.org>
73294
73295         * users.txt: New file.
73296
73297 2006-08-11  Bruno Haible  <bruno@clisp.org>
73298
73299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
73300         before <wchar.h>. Needed for OSF/1 and BSD/OS.
73301
73302 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * modules/snprintf (Depends-on): Remove minmax.
73305         (Maintainer): Add self and Bruno.
73306
73307 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * lib/.cppi-disable: Add snprintf.h, socket_.h.
73310         * lib/snprintf.c: Include <errno.h> and <limits.h>.
73311         (EOVERFLOW): Define if the system does not.
73312         Do not include "minmax.h"; it wasn't used.
73313         (snprintf): Don't assume size_t promotes to an unsigned type.
73314         Fix bug when generated string was too long for the buffer: the
73315         buffer's contents are supposed to be the initial prefix of the
73316         output.  Don't assume vasnprintf returns EOVERFLOW if the size
73317         exceeds INT_MAX; do the check ourselves.
73318
73319         Import the following changes from libc:
73320
73321         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
73322
73323         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
73324         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
73325         set wc to the byte which couldn't be converted.
73326         (re_string_reconstruct): Don't clear valid_raw_len before calling
73327         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
73328         tip_context using re_string_context_at.
73329
73330         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
73331
73332         * lib/posix/regex.h: g++ still cannot handled [restrict].
73333
73334         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
73335
73336         * lib/posix/regex.h: Remove special handling for VMS.
73337
73338 2006-08-10  Jim Meyering  <jim@meyering.net>
73339
73340         * modules/same-inode: New module.
73341         * modules/dev-ino: New module.
73342         * modules/cycle-check: Depend on these modules, rather than simply
73343         including their .h files.
73344         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
73345         required via m4/cycle-check.m4.
73346         * modules/same: Depend on new same-inode module, rather than
73347         including same-inode.h.
73348         * modules/chdir-safer: New file.
73349
73350         * modules/chown (Depends-on): Add stat-macros.
73351
73352 2006-08-10  Jim Meyering  <jim@meyering.net>
73353
73354         * m4/cycle-check.m4: New file.
73355         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
73356         * m4/dev-ino.m4, m4/same-inode.m4: New files.
73357
73358 2006-08-10  Eric Blake  <ebb9@byu.net>
73359
73360         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
73361         in from original proposal.
73362
73363 2006-08-10  Eric Blake  <ebb9@byu.net>
73364         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73365
73366         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
73367         namespace.
73368
73369 2006-08-10  Bruno Haible  <bruno@clisp.org>
73370
73371         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
73372         as well.
73373
73374 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73375
73376         Sync from coreutils.
73377
73378         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
73379
73380         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
73381         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
73382
73383 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73384
73385         * modules/restrict: Remove; no longer needed now that we assume
73386         Autoconf 2.59 or later.
73387         * MODULES.html.sh: Remove 'restrict'.
73388         * modules/argp (Depends-on): Remove 'restrict'.
73389         * modules/base64 (Depends-on): Likewise.
73390         * modules/gc (Depends-on): Likewise.
73391         * modules/getaddrinfo (Depends-on): Likewise.
73392         * modules/glob (Depends-on): Likewise.
73393         * modules/inet_ntop (Depends-on): Likewise.
73394         * modules/inet_pton (Depends-on): Likewise.
73395         * modules/memxor (Depends-on): Likewise.
73396         * modules/regex (Depends-on): Likewise.
73397         * modules/strtok_r (Depends-on): Likewise.
73398         * modules/time_r (Depends-on): Likewise.
73399
73400 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73401
73402         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
73403         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
73404         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73405         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
73406         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
73407         * m4/memxor.m4 (gl_MEMXOR): Likewise.
73408         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
73409         gl_C_RESTRICT replaced by AC_C_RESTRICT.
73410
73411         Merge from coreutils.
73412         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
73413         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
73414         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73415         * m4/time_r.m4 (gl_TIME_R): Likewise.
73416
73417 2006-08-09  Karl Berry  <karl@gnu.org>
73418
73419         * config/srclist.txt: no more gettext-tools, per Bruno.
73420
73421 2006-08-08  Eric Blake  <ebb9@byu.net>
73422
73423         * modules/verror: New module.
73424         * MODULES.html.sh: Document it.
73425
73426 2006-08-08  Eric Blake  <ebb9@byu.net>
73427
73428         * lib/verror.h, lib/verror.c: New files.
73429
73430 2006-08-08  Eric Blake  <ebb9@byu.net>
73431
73432         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
73433         verror_at_line output complies with GNU Coding Standards even when
73434         file is NULL.
73435
73436 2006-08-07  Bruno Haible  <bruno@clisp.org>
73437
73438         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
73439         versions of AIX.
73440         Reported by Ralf Wildenhues.
73441
73442 2006-08-07  Bruno Haible  <bruno@clisp.org>
73443
73444         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
73445         in an AC_DEFUN. Needed so that the autoconf snippets can use
73446         AC_REQUIRE.
73447
73448 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73449
73450         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73451         Initialize pkgdata_DATA.
73452         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
73453         overriding it.
73454
73455 2006-08-06  Eric Blake  <ebb9@byu.net>
73456
73457         * lib/error.h: Fold in some upstream changes from glibc.
73458         * lib/error.c: Likewise.
73459
73460 2006-08-04  Bruno Haible  <bruno@clisp.org>
73461
73462         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73463         Make the mostlyclean-local rule depend on mostlyclean-generic.
73464         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
73465
73466 2006-07-31  Bruno Haible  <bruno@clisp.org>
73467
73468         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
73469         <stdlib.h>, <string.h>.
73470
73471 2006-07-30  Bruno Haible  <bruno@clisp.org>
73472
73473         * modules/readlink (License): Change to LGPL.
73474
73475 2006-07-30  Bruno Haible  <bruno@clisp.org>
73476
73477         * modules/javaversion (Makefile.am): Distribute javaversion.java and
73478         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
73479         set PKGDATADIR to point to it.
73480
73481 2006-07-30  Bruno Haible  <bruno@clisp.org>
73482
73483         * modules/csharpexec (configure.ac): Comment out macro invocation.
73484         * modules/javaexec (configure.ac): Likewise.
73485         * modules/javacomp-script (configure.ac): Likewise.
73486
73487         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
73488
73489 2006-07-30  Bruno Haible  <bruno@clisp.org>
73490
73491         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
73492         linked-list.
73493
73494 2006-07-30  Bruno Haible  <bruno@clisp.org>
73495
73496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
73497
73498 2006-07-30  Bruno Haible  <bruno@clisp.org>
73499
73500         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73501         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
73502         get removed.
73503
73504 2006-07-29  Bruno Haible  <bruno@clisp.org>
73505
73506         Make it possible for gnulib-tool to work with locally modified or
73507         augmented gnulib repositories.
73508         * gnulib-tool (func_usage): Document --local-dir option.
73509         (local_gnulib_dir): New variable.
73510         Handle --local-dir option.
73511         (func_lookup_file): New function.
73512         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
73513         (func_get_description, func_get_filelist, func_get_description,
73514         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
73515         func_get_automake_snippet, func_get_include_directive,
73516         func_get_license, func_get_maintainer): Use func_lookup_file.
73517         (func_import, func_create_testdir): Use func_lookup_file.
73518
73519 2006-07-29  Bruno Haible  <bruno@clisp.org>
73520
73521         * modules/setenv (Depends-on): Add unistd.
73522
73523 2006-07-29  Bruno Haible  <bruno@clisp.org>
73524
73525         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
73526
73527 2006-07-29  Bruno Haible  <bruno@clisp.org>
73528
73529         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
73530
73531 2006-07-29  Bruno Haible  <bruno@clisp.org>
73532
73533         * gnulib-tool (import, update): If there is no Makefile.am, look at
73534         aclocal.m4, instead of bailing out.
73535
73536 2006-07-29  Bruno Haible  <bruno@clisp.org>
73537
73538         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
73539         Categorize the options by when they are useful.
73540
73541 2006-07-29  Bruno Haible  <bruno@clisp.org>
73542
73543         * gnulib-tool (func_usage): Document option --no-libtool.
73544         Handle option --no-libtool.
73545         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
73546         for changed semantics of $libtool variable.
73547         (func_import): Likewise. If libtool is not used, show this through
73548         an option --no-libtool.
73549         (func_create_testdir): Update.
73550
73551 2006-07-29  Bruno Haible  <bruno@clisp.org>
73552
73553         * gnulib-tool (func_import): Extend error message about missing
73554         --doc-base.
73555
73556 2006-07-29  Bruno Haible  <bruno@clisp.org>
73557
73558         * gnulib-tool (func_import): Don't create the $docbase directory if
73559         there is no file to store there.
73560
73561 2006-07-29  Bruno Haible  <bruno@clisp.org>
73562
73563         * gnulib-tool (autoconf_minversion): If a --dir option is given and
73564         relevant, look for configure.ac there, not in the current directory.
73565         Also use a simple search for AC_PREREQ, not "autoconf --trace".
73566
73567 2006-07-29  Bruno Haible  <bruno@clisp.org>
73568
73569         * gnulib-tool (SORT): New variable.
73570         (func_usage): Undocument --assume-autoconf option.
73571         Remove --assume-autoconf option handling.
73572         (autoconf_minversion): Determine from the contents of configure.ac.
73573         (func_import): Remove autoconf_minversion handling.
73574         Suggested by Eric Blake.
73575
73576 2006-07-29  Bruno Haible  <bruno@clisp.org>
73577
73578         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
73579
73580 2006-07-29  Bruno Haible  <bruno@clisp.org>
73581
73582         * config/srclist.txt (*setenv.[ch]): Remove rules.
73583
73584 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73585
73586         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
73587
73588 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73589
73590         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
73591         arpa/inet.h.
73592
73593 2006-07-28  Simon Josefsson  <jas@extundo.com>
73594
73595         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
73596         * modules/inet_pton (Depends-on): Likewise.
73597
73598 2006-07-28  Simon Josefsson  <jas@extundo.com>
73599
73600         * m4/netinet_in_h.m4: New file.
73601
73602 2006-07-28  Simon Josefsson  <jas@extundo.com>
73603
73604         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
73605         #include's.
73606
73607 2006-07-28  Simon Josefsson  <jas@extundo.com>
73608
73609         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
73610         #include's.
73611
73612 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
73613
73614         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
73615         setgid on directories only if they set these bits.
73616         * lib/modechange.h: Remove obsolete comment about masks.
73617
73618 2006-07-28  Eric Blake  <ebb9@byu.net>
73619
73620         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
73621         macro expansion.
73622
73623 2006-07-28  Bruno Haible  <bruno@clisp.org>
73624
73625         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
73626
73627 2006-07-28  Bruno Haible  <bruno@clisp.org>
73628
73629         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
73630
73631 2006-07-28  Bruno Haible  <bruno@clisp.org>
73632
73633         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
73634         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
73635         Define fallbacks.
73636         Avoids link error on FreeBSD 4.x.
73637         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73638
73639         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
73640         encoding.
73641         * lib/mbswidth.c (iswcntrl): Likewise.
73642
73643 2006-07-27  Bruno Haible  <bruno@clisp.org>
73644
73645         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
73646         test.
73647
73648 2006-07-27  Bruno Haible  <bruno@clisp.org>
73649
73650         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
73651         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
73652         defined.
73653
73654 2006-07-26  Eric Blake  <ebb9@byu.net>
73655
73656         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
73657
73658 2006-07-26  Eric Blake  <ebb9@byu.net>
73659
73660         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
73661         like mingw that lack mkstemp.
73662         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
73663         avoid compilation warning on mingw.
73664
73665 2006-07-26  Bruno Haible  <bruno@clisp.org>
73666
73667         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
73668         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
73669         INT_FAST*_MIN, INTPTR_MIN.
73670
73671 2006-07-25  Bruno Haible  <bruno@clisp.org>
73672
73673         * modules/version-etc (Depends-on): Add stdarg.
73674
73675 2006-07-25  Bruno Haible  <bruno@clisp.org>
73676
73677         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
73678         complex commands.
73679
73680 2006-07-25  Bruno Haible  <bruno@clisp.org>
73681
73682         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
73683         defined in <stdarg.h> or config.h.
73684
73685 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
73688         (gl_STDIO_SAFER): Remove.
73689
73690 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
73691
73692         * MODULES.html.sh (File stream based Input/Output):
73693         Add fopen-safer, tmpfile-safer; remove stdio-safer.
73694         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
73695         * modules/fopen-safer, modules/tmpfile-safer: New files.
73696         * modules/stdio-safer: Remove.
73697
73698 2006-07-24  Bruno Haible  <bruno@clisp.org>
73699
73700         * modules/tmpdir: New file.
73701         * MODULES.html.sh (File system functions): Add it.
73702
73703 2006-07-24  Bruno Haible  <bruno@clisp.org>
73704
73705         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
73706         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
73707
73708 2006-07-24  Bruno Haible  <bruno@clisp.org>
73709
73710         * modules/clean-temp: New file.
73711
73712 2006-07-24  Bruno Haible  <bruno@clisp.org>
73713
73714         * m4/tmpdir.m4: New file, from GNU gettext.
73715
73716 2006-07-24  Bruno Haible  <bruno@clisp.org>
73717
73718         * lib/tmpdir.h: New file, from GNU gettext.
73719         * lib/tmpdir.c: New file, from GNU gettext.
73720
73721 2006-07-24  Bruno Haible  <bruno@clisp.org>
73722
73723         * lib/clean-temp.h: New file, from GNU gettext.
73724         * lib/clean-temp.c: New file, from GNU gettext.
73725
73726 2006-07-23  Eric Blake  <ebb9@byu.net>
73727
73728         * modules/stdio-safer (Files): Add tmpfile-safer.c.
73729         (Depends-on): Add binary-io.
73730
73731 2006-07-23  Eric Blake  <ebb9@byu.net>
73732
73733         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
73734
73735 2006-07-23  Eric Blake  <ebb9@byu.net>
73736
73737         * lib/tmpfile-safer.c: New file.
73738         * lib/stdio-safer.h (fopen_safer): Add prototype.
73739         * lib/stdio--.h (tmpfile): Make safer.
73740
73741 2006-07-23  Bruno Haible  <bruno@clisp.org>
73742
73743         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
73744         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
73745         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
73746         gl_linked_remove_at): Use it.
73747
73748 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73749         and Simon Josefsson <jas@extundo.com>
73750
73751         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
73752
73753         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
73754
73755 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * modules/close-stream: New file.
73758         * modules/closeout (Description): Make it clear that it exits
73759         with a diagnostic on error.
73760         (Depends-on): Add close-stream.  Remove fpending, stdbool.
73761         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
73762
73763 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73764
73765         * m4/close-stream.m4: New file.
73766
73767 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * lib/close-stream.c, lib/close-stream.h: New files.
73770
73771 2006-07-22  Bruno Haible  <bruno@clisp.org>
73772
73773         Merge from GNU gettext 0.15.
73774
73775         2006-05-01  Bruno Haible  <bruno@clisp.org>
73776
73777                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
73778
73779         2006-07-22  Bruno Haible  <bruno@clisp.org>
73780
73781                 * modules/javaversion: New file.
73782                 * MODULES.html.sh (Java): Add javaversion.
73783
73784         2006-03-12  Bruno Haible  <bruno@clisp.org>
73785
73786                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
73787
73788         2005-12-04  Bruno Haible  <bruno@clisp.org>
73789
73790                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
73791                 (untested).
73792
73793         2006-06-21  Bruno Haible  <bruno@clisp.org>
73794
73795                 Avoid warnings from recent versions of mcs.
73796                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
73797                 -o, -L, -r any more. Use options documented since mcs-1.0
73798                 instead. Similarly for -g.
73799
73800         2005-12-04  Bruno Haible  <bruno@clisp.org>
73801
73802                 * build-aux/csharpcomp.sh.in: Suffix for resources is
73803                 .resources, not .resource.
73804
73805         2005-07-09  Bruno Haible  <bruno@clisp.org>
73806
73807                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
73808                 add a .dll suffix.
73809                 Reported by Mark Junker <mjscod@gmx.de>.
73810
73811         2006-07-22  Bruno Haible  <bruno@clisp.org>
73812
73813                 * modules/gettext: Upgrade to gettext-0.15.
73814                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
73815                 m4/visibility.m4.
73816                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
73817
73818 2006-07-22  Bruno Haible  <bruno@clisp.org>
73819
73820         Merge from GNU gettext 0.15.
73821
73822         2006-03-25  Bruno Haible  <bruno@clisp.org>
73823
73824                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
73825
73826         2006-07-21  Bruno Haible  <bruno@clisp.org>
73827
73828                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
73829                 "1.1".
73830
73831         2006-05-09  Bruno Haible  <bruno@clisp.org>
73832
73833                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
73834                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
73835                 for the conftestver execution.
73836
73837         2006-05-01  Bruno Haible  <bruno@clisp.org>
73838
73839                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
73840                 optional target-version argument. Verify that the compiler
73841                 groks source of the specified source-version, or add -source
73842                 option as necessary. Verify that the compiler produces
73843                 bytecode in the specified target-version, or add -target and
73844                 -source options as necessary. Make the result of the test
73845                 available as variable CONF_JAVAC. Also log error output in
73846                 config.log.
73847
73848         2006-03-11  Bruno Haible  <bruno@clisp.org>
73849
73850                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
73851
73852         2006-05-09  Bruno Haible  <bruno@clisp.org>
73853
73854                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
73855                 CLASSPATH_SEPARATOR to a semicolon.
73856
73857         2006-03-12  Bruno Haible  <bruno@clisp.org>
73858
73859                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
73860                 available as variable CONF_JAVA, for subsequent autoconf
73861                 tests. Also log error output in config.log.
73862
73863         2006-07-19  Bruno Haible  <bruno@clisp.org>
73864
73865                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
73866                 that getline works on glibc2 systems. Needed to avoid trouble
73867                 in relocatable.c.
73868                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
73869
73870         2005-12-04  Bruno Haible  <bruno@clisp.org>
73871
73872                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
73873                 launcher (untested).
73874
73875         2005-12-04  Bruno Haible  <bruno@clisp.org>
73876
73877                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
73878
73879         2006-07-22  Bruno Haible  <bruno@clisp.org>
73880
73881                 * gettext.m4: Update from GNU gettext-0.15.
73882                 * nls.m4: Likewise.
73883                 * po.m4: Likewise.
73884                 * inttypes-pri.m4: Likewise.
73885                 * inttypes-h.m4: Renamed from inttypes.m4.
73886                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
73887
73888 2006-07-22  Bruno Haible  <bruno@clisp.org>
73889
73890         Merge from GNU gettext 0.15.
73891
73892         2005-07-05  Bruno Haible  <bruno@clisp.org>
73893
73894                 * printf-args.c (printf_fetchargs): Work around broken
73895                 definition of wint_t on mingw.
73896
73897         2005-02-12  Bruno Haible  <bruno@clisp.org>
73898
73899                 * xallocsa.h: Add extern "C" for C++.
73900
73901         2006-05-17  Bruno Haible  <bruno@clisp.org>
73902
73903                 Cygwin portability.
73904                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
73905
73906         2006-04-30  Bruno Haible  <bruno@clisp.org>
73907
73908                 * progreloc.c: Include <mach-o/dyld.h> if available.
73909                 (find_executable): Use _NSGetExecutablePath when possible.
73910
73911         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73912
73913                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
73914                 function.
73915
73916         2005-12-29  Bruno Haible  <bruno@clisp.org>
73917
73918                 * progreloc.c (set_program_name_and_installdir): Fix
73919                 compilation error.
73920
73921         2005-12-04  Bruno Haible  <bruno@clisp.org>
73922
73923                 Cygwin portability.
73924                 * progreloc.c: Include <windows.h> also on Cygwin.
73925                 (find_executable): Add support for Cygwin.
73926                 (set_program_name_and_installdir): Handle also platforms with
73927                 nonempty EXEEXT.
73928
73929         2006-07-11  Bruno Haible  <bruno@clisp.org>
73930
73931                 * javacomp.c: Fix a comment.
73932                 Reported by Jim Meyering.
73933
73934         2006-04-30  Bruno Haible  <bruno@clisp.org>
73935
73936                 * javacomp.h (compile_java_class): Add source_version,
73937                 target_version arguments.
73938                 * javacomp.c: Rewritten to choose only a compiler that
73939                 respects the specified source_version and target_version.
73940
73941         2006-06-27  Bruno Haible  <bruno@clisp.org>
73942
73943                 Assume correct S_ISDIR macro.
73944                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
73945
73946         2006-07-22  Bruno Haible  <bruno@clisp.org>
73947
73948                 * javaversion.h: New file, from GNU gettext.
73949                 * javaversion.c: New file, from GNU gettext.
73950                 * javaversion.java: New file, from GNU gettext.
73951                 * javaversion.class: New file, from GNU gettext.
73952
73953         2006-05-17  Bruno Haible  <bruno@clisp.org>
73954
73955                 Cygwin portability.
73956                 * javaexec.c (execute_java_class): Test for jview program
73957                 also on Cygwin.
73958
73959         2006-04-09  Bruno Haible  <bruno@clisp.org>
73960
73961                 * fatal-signal.c: Don't include string.h.
73962                 (at_fatal_signal): Use a copying loop instead of memcpy.
73963
73964         2005-12-04  Bruno Haible  <bruno@clisp.org>
73965
73966                 * csharpexec.c: Add support for 'clix' launcher (untested).
73967                 (execute_csharp_using_sscli): New function.
73968                 (execute_csharp_program): Call it.
73969
73970         2006-06-21  Bruno Haible  <bruno@clisp.org>
73971
73972                 Avoid warnings from recent versions of mcs.
73973                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
73974                 -o, -L, -r any more. Use options documented since mcs-1.0
73975                 instead. Similarly for -g.
73976
73977         2005-07-09  Bruno Haible  <bruno@clisp.org>
73978
73979                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
73980                 add a .dll suffix.
73981                 Reported by Mark Junker <mjscod@gmx.de>.
73982
73983         2006-06-17  Bruno Haible  <bruno@clisp.org>
73984
73985                 * config.charset: Update for NetBSD 3.0.
73986
73987         2006-05-17  Bruno Haible  <bruno@clisp.org>
73988
73989                 Cygwin portability.
73990                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
73991
73992         2006-05-16  Bruno Haible  <bruno@clisp.org>
73993
73994                 * localcharset.c [CYGWIN]: Include <windows.h>.
73995                 (get_charset_aliases): For Cygwin, return the same CPxxx
73996                 aliases list as under WIN32.
73997                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
73998                 the environment variables. Fall back to GetACP().
73999
74000         2006-04-05  Bruno Haible  <bruno@clisp.org>
74001
74002                 * config.charset: Update Juan Manuel Guerrero's address.
74003
74004         2005-02-12  Bruno Haible  <bruno@clisp.org>
74005
74006                 * allocsa.h: Add extern "C" for C++.
74007
74008         2005-02-10  Bruno Haible  <bruno@clisp.org>
74009
74010                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
74011                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
74012
74013         2006-07-22  Bruno Haible  <bruno@clisp.org>
74014
74015                 * gettext.h: Update to GNU gettext-0.15.
74016
74017 2006-07-22  Bruno Haible  <bruno@clisp.org>
74018
74019         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
74020         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
74021         lib-prefix.m4, longdouble.m4, ssize_t.m4.
74022
74023 2006-07-21  Eric Blake  <ebb9@byu.net>
74024
74025         * modules/stdlib-safer: New file.
74026         * MODULES.html.sh (File stream based Input/Output): Add
74027         stdlib-safer.
74028
74029 2006-07-21  Eric Blake  <ebb9@byu.net>
74030
74031         * lib/stdlib-safer.h: New file from coreutils, required by
74032         stdlib--.h.
74033
74034 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
74035
74036         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
74037
74038 2006-07-20  Bruno Haible  <bruno@clisp.org>
74039
74040         * gnulib-tool: Recognize new option --assume-autoconf.
74041         (autoconf_minversion): New variable.
74042         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
74043
74044 2006-07-20  Bruno Haible  <bruno@clisp.org>
74045
74046         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
74047
74048 2006-07-19  Derek R. Price  <derek@ximbiot.com>
74049
74050         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
74051         Reindent and repaginate.
74052
74053 2006-07-19  Derek Price  <derek@ximbiot.com>
74054
74055         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
74056         Correct grammar.
74057
74058 2006-07-17  Bruno Haible  <bruno@clisp.org>
74059
74060         * modules/list: New file.
74061         * modules/array-list: New file.
74062         * modules/carray-list, modules/carray-list-tests: New files.
74063         * modules/linked-list, modules/linked-list-tests: New files.
74064         * modules/avltree-list, modules/avltree-list-tests: New files.
74065         * modules/rbtree-list, modules/rbtree-list-tests: New files.
74066         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
74067         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
74068         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
74069         * modules/oset: New file.
74070         * modules/array-oset: New file.
74071         * modules/avltree-oset, modules/avltree-oset-tests: New files.
74072         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
74073         * tests/test-carray_list.c: New file.
74074         * tests/test-linked_list.c: New file.
74075         * tests/test-avltree_list.c: New file.
74076         * tests/test-rbtree_list.c: New file.
74077         * tests/test-linkedhash_list.c: New file.
74078         * tests/test-avltreehash_list.c: New file.
74079         * tests/test-rbtreehash_list.c: New file.
74080         * tests/test-avltree_oset.c: New file.
74081         * tests/test-rbtree_oset.c: New file.
74082         * MODULES.html.sh (Container data structures): New section.
74083
74084 2006-07-17  Bruno Haible  <bruno@clisp.org>
74085
74086         * m4/gl_list.m4: New file.
74087
74088 2006-07-17  Bruno Haible  <bruno@clisp.org>
74089
74090         * lib/gl_list.h: New file.
74091         * lib/gl_list.c: New file.
74092         * lib/gl_array_list.h: New file.
74093         * lib/gl_array_list.c: New file.
74094         * lib/gl_carray_list.h: New file.
74095         * lib/gl_carray_list.c: New file.
74096         * lib/gl_linked_list.h: New file.
74097         * lib/gl_linked_list.c: New file.
74098         * lib/gl_anylinked_list1.h: New file.
74099         * lib/gl_anylinked_list2.h: New file.
74100         * lib/gl_avltree_list.h: New file.
74101         * lib/gl_avltree_list.c: New file.
74102         * lib/gl_anyavltree_list1.h: New file.
74103         * lib/gl_anyavltree_list2.h: New file.
74104         * lib/gl_rbtree_list.h: New file.
74105         * lib/gl_rbtree_list.c: New file.
74106         * lib/gl_anyrbtree_list1.h: New file.
74107         * lib/gl_anyrbtree_list2.h: New file.
74108         * lib/gl_anytree_list1.h: New file.
74109         * lib/gl_anytree_list2.h: New file.
74110         * lib/gl_linkedhash_list.h: New file.
74111         * lib/gl_linkedhash_list.c: New file.
74112         * lib/gl_anyhash_list1.h: New file.
74113         * lib/gl_anyhash_list2.h: New file.
74114         * lib/gl_avltreehash_list.h: New file.
74115         * lib/gl_avltreehash_list.c: New file.
74116         * lib/gl_rbtreehash_list.h: New file.
74117         * lib/gl_rbtreehash_list.c: New file.
74118         * lib/gl_anytreehash_list1.h: New file.
74119         * lib/gl_anytreehash_list2.h: New file.
74120
74121         * lib/gl_oset.h: New file.
74122         * lib/gl_oset.c: New file.
74123         * lib/gl_array_oset.h: New file.
74124         * lib/gl_array_oset.c: New file.
74125         * lib/gl_avltree_oset.h: New file.
74126         * lib/gl_avltree_oset.c: New file.
74127         * lib/gl_rbtree_oset.h: New file.
74128         * lib/gl_rbtree_oset.c: New file.
74129         * lib/gl_anytree_oset.h: New file.
74130
74131 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * m4/mkancesdirs.m4: New file.
74134         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
74135         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
74136         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
74137         it.
74138
74139 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
74142         * lib/mkancesdirs.h: New files.
74143         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
74144         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
74145         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
74146         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
74147         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
74148         callers changed.  Revamp internals significantly, by not
74149         attempting to create directories that are temporarily more
74150         permissive than the final results.  Do not attempt to use
74151         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
74152         This removes some race conditions, fixes some bugs, and simplifies
74153         things.  Use new dirchownmod function to do owner and mode changes.
74154         * lib/mkdir-p.h: Likewise.
74155         * lib/modechange.c (octal_to_mode): New function.
74156         (struct mode_change): New member mentioned.
74157         (make_node_op_equals): New arg mentioned.  All callers changed.
74158         (mode_compile): Keep track of which mode bits the user has explicitly
74159         mentioned.
74160         (mode_adjust): New arg DIR, so that we implement the X op correctly.
74161         New arg PMODE_BITS, to keep track of which mode bits the user
74162         mentioned; it treats S_ISUID and S_ISGID speciall.
74163         All callers changed.
74164         * lib/modechange.h: Likewise.
74165
74166 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74167
74168         * MODULES.html.sh: Add mkancestors.
74169         * modules/mkancesdirs: New module.
74170         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
74171         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
74172         The chdir-safer and afs files are now orphans; I'll remove them
74173         unless someone speaks up.
74174         Add lib/dirchownmod.c, lib/dirchownmod.h.
74175         (Depends-on): Remove alloca, chown, save-cwd, dirname.
74176         Add lchown, mkancesdirs.
74177         (Maintainer): Add self.
74178
74179 2006-07-15  Karl Berry  <karl@gnu.org>
74180
74181         * gnulib-tool: help message wording/arrangement.
74182
74183 2006-07-14  Simon Josefsson  <jas@extundo.com>
74184
74185         * doc/gnulib.texi (Libtool and Windows): New section.
74186
74187 2006-07-12  Simon Josefsson  <jas@extundo.com>
74188
74189         * modules/gendocs (License): Fix license, approved by Karl.
74190
74191 2006-07-12  Eric Blake  <ebb9@byu.net>
74192
74193         * MODULES.html.sh: Add gendocs.
74194
74195 2006-07-11  Eric Blake  <ebb9@byu.net>
74196
74197         * modules/fdl: New module, to install doc/fdl.texi.
74198         * MODULES.html.sh: Add new section for documentation modules.
74199         * gnulib-tool: Avoid space-tab.
74200         (--doc-base): New option, to manage files from doc.
74201
74202 2006-07-11  Eric Blake  <ebb9@byu.net>
74203
74204         * m4/absolute-header.m4: Fix comments to match recent change.
74205
74206 2006-07-11  Eric Blake  <ebb9@byu.net>
74207
74208         * gnulib-tool: List --doc-base before --tests-base.
74209
74210 2006-07-11  Derek R. Price  <derek@ximbiot.com>
74211
74212         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
74213
74214 2006-07-11  Bruno Haible  <bruno@clisp.org>
74215
74216         * README: Mention where to put documentation.
74217
74218 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74219
74220         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
74221
74222 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74223
74224         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
74225         to stdint.m4.
74226
74227 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74228
74229         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
74230         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
74231         "no/such/file/stdint.h" when there is no such file, so that
74232         the resulting C code can be parsed by dodgy compilers.
74233         Problems reported by Bob Proulx.
74234
74235 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74236
74237         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
74238         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74239         macros into the GNU _D_EXACT_NAMLEN.
74240         * lib/savedir.c:  Likewise.
74241         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
74242
74243 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74244         and Paul Eggert  <eggert@cs.ucla.edu>
74245
74246         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
74247         * m4/savedir.m4:
74248         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74249         macros into the GNU _D_EXACT_NAMLEN.
74250
74251 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
74254         around the absolute name, to work around a problem with the HP-UX
74255         11.23 native C compiler, reported by Bob Proulx.
74256
74257 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * doc/maintain.texi, make-stds.texi: Sync from
74260         <http://savannah.gnu.org/projects/gnustandards>.
74261
74262 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74263
74264         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
74265
74266 2006-07-09  Jim Meyering  <jim@meyering.net>
74267
74268         * m4/glob.m4: Remove a doubled word in a comment.
74269
74270 2006-07-09  Jim Meyering  <jim@meyering.net>
74271
74272         * lib/argp-pv.c: Remove a doubled word in a comment.
74273         * lib/check-version.c (check_version): Likewise.
74274         * lib/javacomp.c (compile_java_class): Likewise.
74275
74276 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
74279         for the benefit of people using Autoconf 2.60.  If you want to
74280         support older Autoconf versions you can copy m4/onceonly_2_57.m4
74281         (or m4/onceonly.m4, if pre-2.57) manually.
74282
74283 2006-07-08  Jim Meyering  <jim@meyering.net>
74284
74285         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
74286         comment.
74287         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
74288         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
74289         comment.
74290
74291 2006-07-08  Jim Meyering  <jim@meyering.net>
74292
74293         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
74294
74295 2006-07-07  Simon Josefsson  <jas@extundo.com>
74296
74297         * tests/test-crc.c: Change expected crc value, the test vector
74298         were probably computed using the old broken crc.c?
74299
74300 2006-07-06  Simon Josefsson  <jas@extundo.com>
74301
74302         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
74303         now the canonical place for the M4 file).
74304
74305         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
74306         from the sys_socket dependency now.
74307
74308         * modules/inet_pton (Files): Ditto.
74309
74310         * modules/inet_ntop (Files): Ditto.
74311
74312 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74313
74314         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
74315         not gl_PREREQ_GETUSERSHELL.
74316
74317 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74318
74319         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
74320         with only one argument, for Autoconf 2.60.
74321         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
74322         expand to nothing, so add a shell command to avoid syntax error.
74323         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74324
74325 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74326
74327         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
74328
74329 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74330
74331         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
74332         no longer needed.  Check for isblank decl.
74333         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
74334         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
74335         of existence.
74336
74337 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         * lib/getloadavg.c: Use __VMS, not VMS.
74340         * lib/getopt.c: Likewise.
74341         * lib/getpagesize.h: Likewise.
74342         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
74343         and probably does not work.
74344
74345 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         * lib/.cppi-disable: Add wcwidth.
74348         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
74349         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
74350         (ISGRAPH): Remove.  All uses changed to isgraph.
74351         (FOLD) [!defined _LIBC]: Remove special case.
74352         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
74353         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
74354         HAVE_ISBLANK.
74355         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
74356         case.
74357
74358 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74359
74360         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
74361         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
74362         brackets.  Other minor changes to suppress some compiler
74363         warnings.
74364
74365 2006-07-06  Derek R. Price  <derek@ximbiot.com>
74366         and Paul Eggert  <eggert@cs.ucla.edu>
74367
74368         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
74369         of invoking obsolescent AC_HEADER_DIRENT macro.
74370         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
74371         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
74372         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
74373         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74374         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
74375         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74376         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
74377         * m4/readdir.m4: Remove; no longer needed.
74378
74379 2006-07-06  Derek R. Price  <derek@ximbiot.com>
74380         and Paul Eggert  <eggert@cs.ucla.edu>
74381
74382         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
74383         Don't worry about this obsolete case any more.
74384         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
74385         directories.
74386         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
74387         worry about this obsolete case any more.
74388         * lib/fts.c: Likewise.
74389         * lib/getcwd.c: Likewise.
74390         * lib/glob.h: Likewise.
74391         * lib/savedir.c: Likewise.
74392
74393 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74394
74395         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
74396         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
74397         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
74398         needed.
74399         All uses removed.
74400         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74401         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
74402         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
74403         needed.
74404         * m4/getdate.m4 (gl_GETDATE): Likewise.
74405         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
74406         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
74407         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
74408         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74409         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
74410         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74411         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
74412         needed.
74413
74414 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74415
74416         * lib/memcasecmp.c: Include <limits.h>.
74417         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
74418         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
74419         Don't assume isdigit succeeds only on '0' through '9'.
74420
74421 2006-07-05  Eric Blake  <ebb9@byu.net>
74422
74423         * modules/getaddrinfo (Depends-on): Add snprintf.
74424
74425 2006-07-05  Eric Blake  <ebb9@byu.net>
74426
74427         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
74428         to avoid 'header present but could not be compiled' on cygwin.
74429
74430 2006-07-05  Eric Blake  <ebb9@byu.net>
74431
74432         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
74433         missing from netdb.h.
74434         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
74435
74436 2006-07-05  Derek R. Price  <derek@ximbiot.com>
74437
74438         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
74439         no longer needed.
74440         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
74441         * m4/getdate.m4 (gl_GETDATE): Likewise.
74442         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
74443         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
74444         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
74445         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
74446         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74447
74448 2006-07-05  Derek R. Price  <derek@ximbiot.com>
74449
74450         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
74451         All uses of is_space replaced by isspace.
74452         * lib/exit.h: Don't talk about STDC_HEADERS.
74453         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
74454         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
74455         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
74456         replaced by isprint etc.
74457         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
74458         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
74459         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
74460         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
74461         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
74462         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
74463
74464 2006-07-05  Bruno Haible  <bruno@clisp.org>
74465
74466         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
74467         the function exists, before testing against AIX.
74468         Reported by Martin Lambers <marlam@marlam.de>.
74469
74470 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
74471
74472         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
74473         From Mark D. Baushke.
74474
74475 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
74476
74477         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
74478         to the absolute name, not just one, to bypass Sun C 5.8's
74479         "warning: #include of /usr/include/... may be non-portable".
74480
74481 2006-07-04  Eric Blake  <ebb9@byu.net>
74482
74483         * modules/dirname-tests: New test module.
74484         * tests/test-dirname.c: New file, replacing dirname.c
74485         TEST_DIRNAME section that was recently deleted.
74486
74487 2006-07-04  Bruno Haible  <bruno@clisp.org>
74488
74489         Assume ANSI C header files and <ctype.h> functions.
74490         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
74491         (mbsnwidth): Use isprint, iscntrl instead.
74492
74493 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74494
74495         Merge from coreutils.
74496         * MODULES.html.sh: Add xstrtold.
74497         * modules/xstrtold: New file.
74498         * modules/cycle-check (Files): Add lib/same-inode.h.
74499         * modules/dirname (Files): Add m4/double-slash-root.m4.
74500         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
74501         * modules/mkdir-p (Files): Add lib/same-inode.h.
74502         * modules/same (Files): Add lib/same-inode.h.
74503
74504 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         * m4/absolute-header.m4: Renamed from full-header-path.m4.
74507         This is to keep the terminology clean; POSIX talks about
74508         "absolute pathnames", not "full pathnames", but the GNU
74509         Coding Standards say to use "path" for something else;
74510         so use "absolute" to keep both sides happy.
74511         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
74512         Set gl_absolute_header, not gl_full_header_path.
74513         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
74514         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
74515         All uses changed.
74516
74517         Merge from coreutils.
74518
74519         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
74522         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
74523         want to require the building of c-strtod.o.
74524         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
74525         needs -lm directly.
74526         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
74527
74528         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74529
74530         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
74531         --as-needed option if available.  Problem reported by Albert Chin in
74532         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
74533         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
74534         cc merely issues a bunch of annoying warnings for --as-needed
74535         (this problem was reported by Bob Proulx).  Also, try linking with
74536         -lm to detect a bug in binutils 2.16 (this problem was reported
74537         by Ralf Wildenhues).
74538
74539         2006-06-18  Jim Meyering  <jim@meyering.net>
74540
74541         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
74542         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
74543         macro.
74544         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
74545         also check for glibc-2.4's abort-inducing bug.
74546
74547         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
74548         Low-probability clean-up should be to use rmdir to get rid of
74549         the just-created directory, not unlink.
74550
74551         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
74552         configure fail, and request a bug report to inform us about it.
74553         Add a comment that, barring reports to the contrary, in 2007 we'll
74554         assume ftruncate is universally available.
74555
74556         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
74557
74558         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
74559
74560         2006-03-12  Jim Meyering  <jim@meyering.net>
74561
74562         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
74563         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
74564         * m4/same.m4 (gl_SAME): Likewise.
74565         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
74566
74567         2006-03-11  Eric Blake  <ebb9@byu.net>
74568
74569         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
74570         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
74571         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
74572         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
74573
74574 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74575
74576         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
74577         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
74578         reported by Mark D. Baushke, one in
74579         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
74580
74581         Merge from coreutils.
74582
74583         * lib/.cppi-disable: Add stdint_.h.
74584         * lib/.cvsignore: Add stdint.h.
74585
74586         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
74587
74588         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
74589         both double and long double versions.
74590         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
74591         * lib/xstrtold.c: New file.
74592         * lib/xstrtod.h (xstrtold): New decl.
74593
74594         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         * lib/filemode.c (setst): Remove.
74597         (strmode): Rewrite to avoid setst.  This makes the code shorter,
74598         (arguably) clearer, and the generated code is a bit smaller on my
74599         Debian GNU/Linux stable x86 host.
74600
74601         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
74602
74603         * lib/filemode.c: Include "filemode.h" first, to test the interface.
74604         Assume that filemode.h includes sys/types.h and sys/stat.h.
74605         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
74606         (ftypelet): Reorder to put common cases first, for efficiency.
74607         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
74608         to do 'M'.
74609         (strmode): Renamed from mode_string, and now stores 12 bytes instead
74610         of 10, for compatibility with FreeBSD.  All callers changed.
74611         (filemodestring): Now stores 12 bytes instead of 10, and sets file
74612         types that can't be deduced solely from st_mode.  First arg is now a
74613         const pointer.
74614         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
74615         (strmode): Renamed from mode_string.
74616         (filemodestring): New decl.
74617         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
74618         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
74619         needed.
74620         (S_ISPORT, S_ISWHT): New macros, if not already defined.
74621
74622         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74623
74624         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
74625         fsusage.h now does that.  Include fsusage.h first, to test interface.
74626         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
74627         at most one method (the old code could have generated decls that
74628         didn't conform to C89, not that this was ever exercised).
74629         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
74630
74631         2006-03-19  Jim Meyering  <jim@meyering.net>
74632
74633         Work even in a chroot where d_ino values for entries in "/"
74634         don't match the stat.st_ino values for the same names.
74635         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
74636         number, iterate through all entries again, using lstat instead.
74637         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
74638         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
74639
74640         * lib/getcwd.c (__getcwd): Clarify a comment.
74641         Use memcpy in place of a call to strcpy.
74642
74643         2006-03-12  Jim Meyering  <jim@meyering.net>
74644
74645         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
74646         matches that of the current directory (which we're about to chdir ".."
74647         out of), then save the dev-ino of the parent, instead.
74648
74649         * lib/same-inode.h (SAME_INODE): New file/macro.
74650         * lib/chdir-safer.c (SAME_INODE): Remove definition.
74651         Include "same-inode.h", instead.
74652         * lib/same.c: Likewise.
74653         * lib/cycle-check.h: Include "same-inode.h".
74654         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
74655         * lib/cycle-check.c (SAME_INODE): Remove definition.
74656         * lib/root-dev-ino.h: Include "same-inode.h".
74657
74658         2006-03-11  Eric Blake  <ebb9@byu.net>
74659
74660         * lib/same.c (same_name): s/base_name/last_component/
74661         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
74662         * lib/filenamecat.c (file_name_concat): Likewise.
74663
74664         2006-03-11  Eric Blake  <ebb9@byu.net>,
74665                     Paul Eggert  <eggert@cs.ucla.edu>
74666
74667         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
74668         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
74669         drive prefix.
74670         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
74671         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
74672         (last_component): New method.
74673         * lib/dirname.c (dir_len): Determine when drive letters need a
74674         subsequent slash.  Preserve // when it is special.
74675         (dir_name): Don't append dot when drive letter is absolute.
74676         [TEST_DIRNAME]: Move into a full-blown gnulib test.
74677         * lib/basename.c (base_name): New semantics - malloc the result.
74678         Preserve // when it is special.  Preserve relative files that look
74679         like drive letters.
74680         (base_len): Preserve // when it is special.
74681         (last_component): New method, similar to old base_name semantics.
74682         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
74683         base_name.  Strip redundant slashes from ///.
74684
74685 2006-07-03  Jim Meyering  <jim@meyering.net>
74686
74687         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
74688         macro is used before the first cycle_check call.
74689
74690 2006-07-03  Eric Blake  <ebb9@byu.net>
74691
74692         * modules/dirname (Depends-on): Add xstrndup.
74693
74694 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
74695
74696         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
74697         test cases, so that config.log is a bit easier to follow.
74698
74699 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
74702         both are 64 bits, since this seems to be the tradition, and this
74703         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
74704         we ever run into a host that prefers long long to long in this
74705         case, we'll need another configure-time test.  Problem reported by
74706         Jim Meyering.
74707
74708 2006-07-02  Eric Blake  <ebb9@byu.net>
74709
74710         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
74711
74712 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74713
74714         * modules/inttypes (Depends-on): No longer depends on stdint.
74715         * modules/stdint (Description): Say more about assumptions.
74716         Say that the fast types might differ.  Say macros are used.
74717         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
74718         (Makefile.am): Revise list of substituted symbols to match
74719         new stdint.m4.
74720         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
74721         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
74722         * tests/test-stdint.c (verify_same_types)
74723         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
74724         the code conforms to C99/C89.
74725         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
74726         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
74727
74728 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74729
74730         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
74731         but fix a bug, by requiring at least 64 bits.
74732         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
74733         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
74734         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
74735         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
74736
74737         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
74738         changes.  Make 2.59 a prerequisite.  Check and substitute for
74739         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
74740         inttypes.h.  Do not use special include files; just use the
74741         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
74742         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
74743         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
74744         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
74745         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
74746         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
74747         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
74748         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
74749         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
74750         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
74751         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
74752         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
74753         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
74754         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
74755         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
74756         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
74757         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
74758         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
74759         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
74760         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
74761         WINT_MAX.  Check for C99 conformance more strictly, by detecting
74762         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
74763         not check for things that C99 does not require, e.g., int8_t.  If
74764         a test isn't needed unless <stdint.h> isn't working, and is
74765         unlikely to be needed for any other reason, then don't do it
74766         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
74767         size_t, since we assume C89 freestanding at least.  Do not check
74768         for sig_atomic_t, wchar_t, or wint_t, since the code now does
74769         the right thing even if the types are not defined.  Instead use:
74770         (gl_STDINT_TYPE_PROPERTIES): New macro.
74771         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
74772         testing whether <sys/types.h> clashes, as Autoconf does this for
74773         us now.  All uses removed.
74774         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
74775         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
74776         (gl_CHECK_TYPE_SAME):
74777         Remove; no longer needed.
74778         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
74779         exists, since we'll return 0 anyway in that case.
74780         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
74781
74782 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74783
74784         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
74785         possible collision with system files.
74786         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
74787         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
74788         WCHAR_MIN and WCHAR_MAX in this case.
74789         (<stddef.h>): Do not include; no longer needed.
74790         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
74791         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
74792         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
74793         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
74794         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
74795         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
74796         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
74797         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
74798         !defined(__c99))]: Include in this case too, since it's harmless
74799         now.
74800         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
74801         dangerous to do so.
74802         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
74803         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
74804         (_STDINT_MIN, _STDINT_MAX): New macros.
74805         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
74806         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
74807         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
74808         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
74809         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
74810         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
74811         macros, not typedefs; this simplifies things quite a bit.
74812         Use long int for all types narrower than int64_t.
74813         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
74814         Define in terms of long long int or int64_t or long int,
74815         not int64_t or int32_t.  This saves some compile-time testing.
74816         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
74817         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
74818         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
74819         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
74820         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
74821         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
74822         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
74823         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
74824         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
74825         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
74826         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74827         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74828         undef any previous version and define our own version, for
74829         simplicity and consistency with the new macros for types.
74830         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
74831         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
74832         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
74833         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
74834         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
74835         @WINT_T_SUFFIX@ to keep things simple here.
74836         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
74837         Simplify by assuming typical 8/16/32/64 host, since we're
74838         already doing that elsewhere anyway.
74839         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
74840         and assume long long int is 64 bits if available.  This
74841         speeds up 'configure'.
74842
74843 2006-07-01  Eric Blake  <ebb9@byu.net>
74844
74845         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
74846         Reported by Andreas Buening.
74847
74848 2006-07-01  Eric Blake  <ebb9@byu.net>
74849
74850         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
74851
74852 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74853
74854         * lib/getaddrinfo.c: fixed typo
74855
74856 2006-06-29  Jim Meyering  <jim@meyering.net>
74857
74858         * modules/strftime (Maintainer): Add my name, since with the
74859         FPRINTFTIME changes strftime.c has forked from glibc.
74860
74861 2006-06-29  Eric Blake  <ebb9@byu.net>
74862
74863         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
74864
74865 2006-06-29  Eric Blake  <ebb9@byu.net>
74866
74867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
74868
74869 2006-06-29  Eric Blake  <ebb9@byu.net>
74870
74871         * lib/stat_.h: New file.
74872
74873 2006-06-29  Eric Blake  <ebb9@byu.net>
74874
74875         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
74876         unused static function.
74877
74878 2006-06-29  Eric Blake  <ebb9@byu.net>
74879
74880         * doc/functions.texi (Function Portability): Document missing lstat
74881         on mingw.
74882
74883 2006-06-29  Eric Blake  <ebb9@byu.net>
74884
74885         * MODULES.html.sh: Add sys_stat.
74886         * modules/sys_stat: New module.
74887         * modules/mkstemp (Depends-on): Add sys_stat.
74888
74889 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74890
74891         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
74892
74893 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74894
74895         * m4/c-bs-a.m4: Removed.
74896
74897 2006-06-29  Derek R. Price  <derek@ximbiot.com>
74898
74899         * lib/strftime.c: Assume strftime() exists.
74900
74901 2006-06-29  Derek Price  <derek@ximbiot.com>
74902
74903         * modules/c-bs-a: Removed - \a is C89.
74904         * MODULES.html.sh: Remove c-bs-a.
74905
74906 2006-06-29  Bruno Haible  <bruno@clisp.org>
74907
74908         * modules/wcwidth (License): Change to LGPL.
74909
74910 2006-06-28  Simon Josefsson  <jas@extundo.com>
74911
74912         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
74913         on _WIN32.
74914
74915         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
74916         getnameinfo.
74917
74918 2006-06-28  Simon Josefsson  <jas@extundo.com>
74919
74920         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
74921
74922 2006-06-28  Simon Josefsson  <jas@extundo.com>
74923
74924         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
74925         functions there.  It will succeed on Windows XP, but on Windows
74926         2000 and (presumably) earlier, it will fail, and use the internal
74927         re-implementation.
74928         (use_win32_p): New function.
74929         (getaddrinfo): Use strtoul on servname, to support numeric ports.
74930         Support AI_NUMERICSERV to disable getservbyname.
74931         (getnameinfo): New function, only supports
74932         NI_NUMERICHOST|NI_NUMERICSERV for now.
74933
74934         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
74935         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
74936         getnameinfo.
74937
74938 2006-06-28  Eric Blake  <ebb9@byu.net>
74939
74940         * modules/wcwidth: New file.
74941         * modules/mbchar (Depends-on): Add wcwidth.
74942         * modules/mbswidth (Depends-on): Add wcwidth.
74943         * MODULES.html.sh: Add wcwidth.
74944
74945 2006-06-28  Eric Blake  <ebb9@byu.net>
74946
74947         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
74948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
74949
74950 2006-06-28  Eric Blake  <ebb9@byu.net>
74951
74952         * lib/xvasprintf.h: Fix comments.
74953
74954 2006-06-28  Eric Blake  <ebb9@byu.net>
74955
74956         * lib/mbchar.h (wcwidth): Include wcwidth.h.
74957         * lib/mbswidth.c (wcwidth): Move from here...
74958         * lib/wcwidth.h: ...to this new file.
74959
74960 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74961
74962         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
74963
74964         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
74965         it's obsolete.
74966         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
74967
74968 2006-06-28  Derek R. Price  <derek@ximbiot.com>
74969
74970         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
74971         Autoconf 2.60 says this stuff was obsolete.
74972
74973 2006-06-28  Bruno Haible  <bruno@clisp.org>
74974
74975         * modules/wcwidth (Files): Add m4/wchar_t.m4.
74976
74977 2006-06-28  Bruno Haible  <bruno@clisp.org>
74978
74979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
74980         gt_TYPE_WCHAR_T.
74981
74982 2006-06-28  Bruno Haible  <bruno@clisp.org>
74983
74984         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
74985         declaration for wcwidth.
74986         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
74987
74988 2006-06-28  Bruno Haible  <bruno@clisp.org>
74989
74990         * lib/mkdtemp.c [MINGW]: Include <io.h>.
74991         (mkdir): Define using _mkdir.
74992
74993 2006-06-28  Bruno Haible  <bruno@clisp.org>
74994
74995         * lib/getaddrinfo.h: Fix POSIX URL.
74996         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
74997         _WIN32.
74998         (use_win32_p): Make static.
74999         (getaddrinfo): Reject service name if it is empty or does not consist
75000         solely of decimal digits, or if its value is > 65535.
75001         (getnameinfo): Remove useless casts.
75002
75003 2006-06-27  Simon Josefsson  <jas@extundo.com>
75004
75005         * modules/sys_select: New file, suggested by Bruno Haible, Paul
75006         Eggert and Martin Lambers.
75007
75008 2006-06-27  Simon Josefsson  <jas@extundo.com>
75009
75010         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
75011         Eggert and Martin Lambers.
75012
75013 2006-06-27  Bruno Haible  <bruno@clisp.org>
75014
75015         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
75016         result to 0, not to empty.
75017         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
75018
75019 2006-06-27  Bruno Haible  <bruno@clisp.org>
75020
75021         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
75022
75023 2006-06-26  Simon Josefsson  <jas@extundo.com>
75024
75025         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
75026         present.
75027
75028 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
75029
75030         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
75031         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
75032         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
75033
75034 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
75035
75036         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
75037
75038 2006-06-26  Bruno Haible  <bruno@clisp.org>
75039
75040         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
75041
75042 2006-06-26  Bruno Haible  <bruno@clisp.org>
75043
75044         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
75045
75046 2006-06-26  Bruno Haible  <bruno@clisp.org>
75047
75048         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
75049         SGI C compiler in pre-C99 mode.
75050         Suggested by Mark D. Baushke and Larry Jones.
75051
75052 2006-06-26  Bruno Haible  <bruno@clisp.org>
75053
75054         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
75055         WCHAR_MAX.
75056         Reported by Mark D. Baushke and Larry Jones.
75057
75058 2006-06-26  Bruno Haible  <bruno@clisp.org>
75059
75060         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
75061         in pre-C99 mode.
75062         Suggested by Mark D. Baushke and Larry Jones.
75063
75064 2006-06-23  Simon Josefsson  <jas@extundo.com>
75065             Bruno Haible  <bruno@clisp.org>
75066
75067         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
75068         Emit mostlyclean-local rule.
75069         (func_emit_tests_Makefile_am): Likewise.
75070         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
75071
75072 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
75073
75074         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
75075
75076 2006-06-23  Bruno Haible  <bruno@clisp.org>
75077
75078         * tests/test-stdint.c: Update to match ISO C 99 Technical
75079         Corrigendum 1.
75080
75081 2006-06-23  Bruno Haible  <bruno@clisp.org>
75082
75083         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
75084
75085 2006-06-23  Bruno Haible  <bruno@clisp.org>
75086
75087         * lib/stdint_.h: Treat IRIX like OpenBSD.
75088
75089 2006-06-23  Bruno Haible  <bruno@clisp.org>
75090
75091         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
75092         ISO C 99 Technical Corrigendum 1.
75093
75094 2006-06-22  Simon Josefsson  <jas@extundo.com>
75095
75096         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
75097         MinGW.
75098
75099 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75100
75101         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
75102         needed.  Some compiler complained about some of them.  Problem reported
75103         by Larry Jones in
75104         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
75105
75106 2006-06-21  Simon Josefsson  <jas@extundo.com>
75107
75108         * tests/test-getaddrinfo.c: New file.
75109
75110         * modules/getaddrinfo-tests: New file.
75111
75112         * MODULES.html.sh: Add inet_pton.
75113
75114         * modules/inet_pton: New file.
75115
75116 2006-06-21  Simon Josefsson  <jas@extundo.com>
75117
75118         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
75119         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
75120         of using the (limited) gnulib implementation on Windows XP.
75121
75122         * m4/inet_pton.m4: New file.
75123
75124 2006-06-21  Simon Josefsson  <jas@extundo.com>
75125
75126         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
75127         variable.
75128
75129         * lib/socket_.h: Don't define WINVER.
75130
75131         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
75132         slightly modified to work in gnulib.
75133
75134 2006-06-21  Simon Josefsson  <jas@extundo.com>
75135
75136         * doc/gnulib.texi (Windows sockets): Add.
75137
75138 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
75139
75140         * lib/read-file.c (fread_file): Start with buffer allocation of
75141         0 bytes rather than 1 byte; this simplifies the code.
75142         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
75143         code to free buffer and save/restore errno.
75144         (internal_read_file): Remove unused local.
75145
75146 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
75149         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
75150         Problem reported by Denis Excoffier in
75151         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
75152
75153 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75154
75155         * modules/sys_socket, modules/socklen: Include sys/types since
75156         FreeBSD 4.x's sys/socket.h needs it.
75157
75158 2006-06-19  Simon Josefsson  <jas@extundo.com>
75159
75160         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
75161
75162 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75163
75164         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
75165
75166 2006-06-19  Bruno Haible  <bruno@clisp.org>
75167
75168         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
75169         and FULL_PATH_INTTYPES_H in angle brackets.
75170         Reported by Mark D. Baushke <mdb@gnu.org>.
75171
75172 2006-06-17  Eric Blake  <ebb9@byu.net>
75173
75174         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
75175         errno.
75176
75177 2006-06-17  Bruno Haible  <bruno@clisp.org>
75178
75179         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
75180         <sys/inttypes.h>.
75181
75182 2006-06-17  Bruno Haible  <bruno@clisp.org>
75183
75184         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
75185         whether errno is declared. Assume <errno.h> declares errno.
75186
75187 2006-06-17  Bruno Haible  <bruno@clisp.org>
75188
75189         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
75190
75191 2006-06-17  Bruno Haible  <bruno@clisp.org>
75192
75193         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
75194         problem on Solaris 2.5.1.
75195
75196 2006-06-16  Eric Blake  <ebb9@byu.net>
75197
75198         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
75199         * lib/unicodeio.c [!defined errno]: Likewise.
75200         * lib/strtol.c [!defined errno]: Likewise.
75201         * lib/strtod.c [!defined errno]: Likewise.
75202
75203 2006-06-15  Eric Blake  <ebb9@byu.net>
75204
75205         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
75206
75207 2006-06-15  Eric Blake  <ebb9@byu.net>
75208
75209         * config/srclist.txt (ssize_t.m4): Lose sync.
75210
75211 2006-06-15  Bruno Haible  <bruno@clisp.org>
75212
75213         * modules/stdint (Files): Include m4/full-header-path.m4,
75214         m4/size_max.m4, m4/wchar_t.m4.
75215         (Makefile.am): Many more substitutions.
75216         * modules/stdint-tests: New file.
75217         * tests/test-stdint.c: New file.
75218
75219 2006-06-15  Bruno Haible  <bruno@clisp.org>
75220
75221         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
75222         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
75223         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
75224         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
75225         gl_CHECK_TYPE_SAME): New macros.
75226
75227 2006-06-15  Bruno Haible  <bruno@clisp.org>
75228
75229         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
75230
75231 2006-06-15  Bruno Haible  <bruno@clisp.org>
75232
75233         * lib/stdint_.h: Rewritten to be fully auto-configured.
75234         Fixes bug on HP-UX/IA64.
75235
75236 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
75237
75238         * lib/getdate.y (__attribute__): Don't define if already defined.
75239         Problem reported by Larry Jones.
75240         * lib/utimens.c (__attribute__): Likewise.
75241
75242 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
75245         reported by Andreas Schwab.
75246
75247 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75248             Bruno Haible  <bruno@clisp.org>
75249
75250         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
75251         check for the declaration of strnlen and a run test that exposes the
75252         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
75253         rpl_strndup.
75254
75255 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75256             Bruno Haible  <bruno@clisp.org>
75257
75258         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
75259
75260 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75261
75262         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
75263         compile test, for Tru64 4.0D.
75264
75265 2006-05-28  Karl Berry  <karl@gnu.org>
75266
75267         * config/srclist.txt (printf-args.c): lose sync.
75268
75269 2006-05-26  Martin Lambers  <marlam@marlam.de>
75270
75271         * lib/getpass.c: Updates the test for the native W32 API, and adds
75272         missing includes, thus fixing compilation warnings.
75273
75274 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75275
75276         * lib/exclude.c (exclude_fnmatch): New function.
75277         (excluded_file_name): Call exclude_fnmatch.
75278         * lib/exclude.h (excluded_file_name): New prototype
75279
75280 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
75281
75282         * lib/tempname.c (small_open, large_open): New macros.
75283         (__open, __open64) [!_LIBC]: Remove.
75284         (__gen_tempname): Use small_open and large_open instead of __open
75285         and __open64.  This fixes a portability bug on HP-UX 11.11i
75286         reported by Simon Wing-Tang in
75287         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
75288
75289 2006-05-24  Bruno Haible  <bruno@clisp.org>
75290
75291         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
75292         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
75293         Reported by Thorsten Maerz <torte@netztorte.de> via
75294         Aaron Stone <aaron@serendipity.cx>.
75295
75296 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
75299         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
75300         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
75301         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
75302         not really conditional on the cache.
75303         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
75304
75305 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75306
75307         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
75308         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
75309         (my_usleep): Don't mishandle maximum value.
75310
75311 2006-05-19  Jim Meyering  <jim@meyering.net>
75312
75313         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
75314
75315 2006-05-17  Bruno Haible  <bruno@clisp.org>
75316
75317         Cygwin portability.
75318         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
75319
75320 2006-05-17  Bruno Haible  <bruno@clisp.org>
75321
75322         * lib/stdint_.h: Fix recognition of Cygwin.
75323
75324 2006-05-15  Bruno Haible  <bruno@clisp.org>
75325
75326         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
75327         on libtool patch by Ralf Wildenhues.
75328
75329 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
75332         test for C99 conformance; (bool) 0.5 is an integer constant
75333         expression, but (bool) -0.5 is not.  Problem reported by Fedor
75334         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
75335
75336 2006-05-11  Simon Josefsson  <jas@extundo.com>
75337
75338         * m4/xvasprintf.m4: Fix obvious typo.
75339
75340 2006-05-11  Jim Meyering  <jim@meyering.net>
75341
75342         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
75343         James Lemley.
75344
75345 2006-05-10  Simon Josefsson  <jas@extundo.com>
75346
75347         * lib/md4.c: Typo fix, update copyright years.
75348         (K1, K2): Don't use L because it turn computations into 64-bit on
75349         64-bit platforms.
75350
75351 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
75352
75353         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
75354         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
75355         unwanted sign propagation, e.g., on hosts with 64-bit int.
75356         There still are some problems with reeelly weird theoretical hosts
75357         (e.g., 33-bit int) but it's not worth worrying about now.
75358         * lib/sha1.c (rol): Likewise.
75359         (K1, K2, K3, K4): Remove unnecessary L suffix.
75360
75361 2006-05-10  Bruno Haible  <bruno@clisp.org>
75362
75363         * lib/des.c: Cast to avoid warnings.
75364
75365 2006-05-09  Bruno Haible  <bruno@clisp.org>
75366
75367         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
75368         (Depends-on): Depend also on xsize, stdarg.
75369         (configure.ac): Add gl_XVASPRINTF.
75370
75371 2006-05-09  Bruno Haible  <bruno@clisp.org>
75372
75373         * m4/xvasprintf.m4: New file.
75374
75375 2006-05-09  Bruno Haible  <bruno@clisp.org>
75376
75377         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
75378         (EOVERFLOW): Define fallback value.
75379         (xstrcat): New function.
75380         (xvasprintf): Recognize the special case of a string concatenation.
75381
75382 2006-05-08  Eric Blake  <ebb9@byu.net>
75383
75384         * gnulib-tool (func_version): Base copyright year on CVS date.
75385         (func_emit_copyright_notice): New function.
75386         (func_emit_lib_Makefile_am): Use it.
75387         (func_emit_tests_Makefile_am): Likewise.
75388         (func_import): Likewise.
75389
75390 2006-05-08  Bruno Haible  <bruno@clisp.org>
75391
75392         * modules/stdarg: New file.
75393         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
75394
75395 2006-05-08  Bruno Haible  <bruno@clisp.org>
75396
75397         * m4/stdarg.m4: New file, from GNU gettext.
75398
75399 2006-05-08  Bruno Haible  <bruno@clisp.org>
75400
75401         * config/srclist.txt (build-aux/config.rpath): different from latest
75402         release.
75403
75404 2006-05-08  Bruno Haible  <bruno@clisp.org>
75405
75406         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
75407
75408 2006-05-05  Jim Meyering  <jim@meyering.net>
75409
75410         * m4/warning.m4: New file, derived from bison's file by the same name.
75411
75412 2006-05-03  Bruno Haible  <bruno@clisp.org>
75413
75414         * lib/stdint_.h: Shorter URL.
75415         * lib/inttypes.h: Likewise.
75416
75417 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75418
75419         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
75420
75421 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75422
75423         * lib/verify.h: Document the internals better.  Most of this change
75424         was written by Bruno Haible.
75425
75426 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
75427
75428         * doc/verify.texi: New file, partly based on a proposal by
75429         Bruno Haible.
75430
75431 2006-05-02  Bruno Haible  <bruno@clisp.org>
75432
75433         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
75434         test from here...
75435         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
75436
75437 2006-04-29  Bruno Haible  <bruno@clisp.org>
75438
75439         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
75440         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
75441
75442 2006-04-29  Bruno Haible  <bruno@clisp.org>
75443
75444         * gnulib-tool: Make --update option actually work.
75445
75446 2006-04-29  Bruno Haible  <bruno@clisp.org>
75447
75448         * doc/gcd.texi: New file.
75449         * doc/gnulib.texi: Include it.
75450
75451 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         * lib/getdate.y (get_date): When adding relative date, start with the
75454         initial time, not with the result of the first mktime call.
75455
75456 2006-04-25  Bruno Haible  <bruno@clisp.org>
75457
75458         * gnulib-tool (func_import): Output the include directives in three
75459         blocks, sorted separately.
75460         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75461
75462 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
75465         to define main with arguments, for C++.  Reported by Eric Blake.
75466         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
75467         Prefer 'int main ()' to 'int main (void)', for C++.
75468         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
75469         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
75470         for 'main', for C99 and C++.
75471
75472 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
75473
75474         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
75475         Don't assume that exit status -1 is valid.
75476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75477         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
75478         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
75479         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
75480         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
75481         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
75482         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
75483         functions can be used without declaring them, or that you can
75484         exit with status -1.
75485         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
75486
75487 2006-04-24  Karl Berry  <karl@gnu.org>
75488
75489         * config/srclist.txt (longdouble.m4): sync lost.
75490
75491 2006-04-24  Eric Blake  <ebb9@byu.net>
75492
75493         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
75494
75495 2006-04-24  Bruno Haible  <bruno@clisp.org>
75496
75497         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
75498         poll() implementation in AIX.
75499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75500
75501 2006-04-24  Bruno Haible  <bruno@clisp.org>
75502
75503         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
75504         assigned exactly once.
75505
75506 2006-04-23  Claudio Fontana  <claudio@gnu.org>
75507             Bruno Haible  <bruno@clisp.org>
75508
75509         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
75510         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
75511         for AM_CPPFLAGS.
75512
75513 2006-04-23  Bruno Haible  <bruno@clisp.org>
75514
75515         * modules/copy-file: Depend on unistd.
75516         * modules/execute: Likewise.
75517         * modules/fatal-signal: Likewise.
75518         * modules/findprog: Likewise.
75519         * modules/mkdtemp : Likewise.
75520         * modules/pipe: Likewise.
75521         * modules/wait-process: Likewise.
75522
75523 2006-04-23  Bruno Haible  <bruno@clisp.org>
75524
75525         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
75526         condition was already detected.
75527         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75528
75529 2006-04-23  Bruno Haible  <bruno@clisp.org>
75530
75531         * lib/copy-file.c: Include <unistd.h> unconditionally.
75532         * lib/execute.c: Likewise.
75533         * lib/fatal-signal.c: Likewise.
75534         * lib/findprog.c: Likewise.
75535         * lib/mkdtemp.c: Likewise.
75536         * lib/pipe.h: Likewise.
75537         * lib/pipe.c: Likewise.
75538         * lib/wait-process.h: Likewise.
75539
75540 2006-04-23  Bruno Haible  <bruno@clisp.org>
75541
75542         * gnulib-tool (func_usage): Fix --import description. Document
75543         --update.
75544         (func_import): Create temporary file in a temporary directory, if
75545         --dry-run is specified. Silence errors from 'grep' when there are no
75546         m4 files in $m4dir.
75547         (func_create_testdir): Silence errors from 'grep' when there are no
75548         m4 files in $m4dir.
75549         Reported by Karl Berry <karl@freefriends.org>.
75550
75551 2006-04-20  Bruno Haible  <bruno@clisp.org>
75552
75553         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
75554         one argument, so that the code will be portable to Autoconf 2.60.
75555         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
75556         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75557         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
75558
75559 2006-04-19  Derek Price  <derek@ximbiot.com>
75560             Eric Blake  <ebb9@byu.net>
75561
75562         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
75563         rather than "/full/path.h".  Update comment to match.  Shorten &
75564         generalize m4_translit call via AS_TR_CPP.
75565
75566 2006-04-19  Derek Price  <derek@ximbiot.com>
75567             Eric Blake  <ebb9@byu.net>
75568
75569         * lib/inttypes.h: Correct grammar in comment.
75570
75571 2006-04-18  Derek Price  <derek@ximbiot.com>
75572             Paul Eggert  <eggert@cs.ucla.edu>
75573
75574         * modules/inttypes: New file.
75575         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
75576
75577 2006-04-18  Derek Price  <derek@ximbiot.com>
75578             Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
75581         New files.
75582
75583 2006-04-18  Derek Price  <derek@ximbiot.com>
75584             Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * lib/inttypes.h: New file.
75587         * lib/strtoimax.c: Assume <inttypes.h>.
75588
75589 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
75590
75591         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
75592         isn't mounted.  Problem reported by Kir Kolyshkin.
75593
75594 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75595
75596         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
75597         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
75598         Derek R. Price.
75599         * lib/regex.h (RE_DUP_MAX): Update comment to match current
75600         implementation.
75601
75602 2006-04-12  Eric Blake  <ebb9@byu.net>
75603
75604         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
75605         is now done automatically by the corresponding Autoconf macro.
75606
75607 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
75610         time_r.h.
75611
75612 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75613
75614         Merge regex changes from libc, removing some of our
75615         POSIX-conformance changes that were rejected and redoing them in a
75616         less-intrusive way.
75617
75618         * lib/regcomp.c (re_compile_internal, init_dfa):
75619         Length arg is now size_t, not Idx.  All uses changed.
75620         (peek_token): Forward decl now says internal_function.
75621         (__re_error_msgid, __re_error_msgid_idx):
75622         Now static rather than extern with attribute_hidden.
75623         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
75624         For some reason libc prefers K&R style defns for external functions.
75625         (regerror) [!defined _LIBC]: Likewise.
75626         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
75627         (seek_collating_symbol_entry, lookup_collation_sequence_value):
75628         (build_range_exp, build_collating_symbol):
75629         Use K&R-style defn.
75630         (re_compile_fastmap): Use '\0' to memset, not 0.
75631         (utf8_sb_map): Make the calculations more obvious.
75632         (init_dfa, parse_bracket_exp, build_charclass_op):
75633         Call calloc and cast result, as glibc does.
75634         (init_word_char, fetch_token, peek_token, peek_token_bracket):
75635         (build_range_exp, build_collating_symbol):
75636         Now internal functions.
75637
75638         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
75639
75640         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
75641         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
75642         Don't depend on VMS; depend on __VMS instead, for POSIX
75643         namespace cleanness.
75644         (regoff_t): Define to ssize_t, not long int.
75645
75646         Remove the REG_ macros named below.  Instead, make the old names
75647         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
75648         __USE_GNU_REGEX.
75649         (REG_BACKSLASH_ESCAPE_IN_LISTS):
75650         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
75651         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
75652         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
75653         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
75654         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
75655         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
75656         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
75657         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
75658         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
75659         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
75660         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
75661         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
75662         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
75663         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
75664         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
75665         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
75666         (REG_NREGS):
75667         Remove.  All uses replaced by the old RE_* names.
75668         (RE_BACKSLASH_ESCAPE_IN_LISTS):
75669         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
75670         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
75671         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
75672         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
75673         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
75674         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
75675         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
75676         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
75677         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
75678         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
75679         Don't bother having these macros be independent of each others'
75680         values, since they no longer exist in the POSIX name space.
75681
75682         Rename the following member names back to their old names,
75683         unless !__USE_GNU_REGEX.  All uses changed back.
75684         (buffer): Renamed from re_buffer.
75685         (allocated): Renamed from re_allocated.
75686         (used): Renamed from re_used.
75687         (syntax): Renamed from re_syntax.
75688         (fastmap): Renamed from re_fastmap.
75689         (translate): Renamed from re_translate.
75690         (can_be_null): Renamed from re_can_be_null.
75691         (regs_allocated): Renamed from re_regs_allocated.
75692         (fastmap_accurate): Renamed from re_fastmap_accurate.
75693         (no_sub): Renamed from re_no_sub.
75694         (not_bol): Renamed from re_not_bol.
75695         (not_eol): Renamed from re_not_eol.
75696         (newline_anchor): Renamed from re_newline_anchor.
75697         (num_regs): Renamed from rm_num_regs.
75698         (start): Renamed from rm_start.
75699         (end): Renamed from rm_end.
75700
75701         (free_state): Move up a bit.
75702
75703         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
75704         #define to be empty.
75705         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
75706         when that is what is intended.
75707         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
75708         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
75709         (MAX): New macro.
75710         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
75711         All uses changed back to re_malloc, etc.  It's now the caller's
75712         responsibility to check for overflow; all callers changed.
75713         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
75714         (re_x2nrealloc): Remove.
75715         (free_state): Remove decl.
75716
75717         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
75718         (re_set_registers, re_exec):
75719         Use K&R-style defn.
75720
75721         2006-01-31  Roland McGrath  <roland@redhat.com>
75722
75723         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
75724         Reported by Mike Frysinger <vapier@gentoo.org>.
75725
75726         2006-01-15  Andreas Jaeger  <aj@suse.de>
75727
75728         [BZ #1950]
75729         * lib/regex_internal.c (re_string_reconstruct): Adjust for
75730         build_wcs_upper_buffer change.
75731         (build_wcs_upper_buffer): Change return type.
75732
75733         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
75734
75735         * lib/regex_internal.h: Include <stdint.h> if available.
75736
75737         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
75738
75739         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
75740
75741         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75742
75743         * lib/regcomp.c: Adjust for changed secondary hash function.
75744
75745         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
75746
75747         * lib/regex.h: Pretty printing.
75748         Clean up namespace a bit.
75749
75750         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
75751
75752         * lib/regexec.c (update_cur_sifted_state, check_arrival,
75753         check_arrival_add_next_nodes): Avoid using uninitialized variable.
75754
75755         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75756                     Ulrich Drepper  <drepper@redhat.com>
75757
75758         [BZ #1302]
75759         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
75760         changed.
75761         (bitset_word_t): Renamed from bitset_word.  All uses changed.
75762
75763         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
75764
75765         [BZ #281]
75766         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
75767         * lib/regcomp.c: Remove unnecessary uses of
75768         unsigned RE_TRANSLATE_TYPE.
75769         * lib/regex_internal.h: Likewise.
75770         * lib/regex_internal.c: Likewise.
75771         * lib/regexec.c: Likewise.
75772         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
75773
75774         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
75775
75776         * lib/regexec.c (find_recover_state): Remove unnecessary
75777         initialization.
75778         (transit_state_bkref): Make DFA a const pointer.
75779         (get_subexp): Likewise.
75780         (check_arrival): Likewise.
75781         (update_cur_sifted_state): Likewise.
75782         (re_search_internal): Likewise.
75783         (prune_impossible_nodes): Likewise.
75784         (acquire_init_state_context): Likewise.
75785         (proceed_next_node): Likewise.
75786         (set_regs): Likewise.
75787         (free_fail_stack_return): Likewise.
75788         (check_arrival_expand_ecl): Mark DFA parameter as const.
75789         (check_arrival_expand_ecl_sub): Likewise.
75790         (check_subexp_limits): Likewise.
75791         (sub_epsilon_src_nodes):  Likewise.
75792         (add_epsilon_src_nodes):  Likewise.
75793         (merge_state_array): Likewise.
75794         (update_regs): Likewise.
75795         (build_trtable): Likewise.
75796         (sift_states_backward): Mark MCTX parameter as const.
75797         (build_sifted_states): Likewise.
75798         (update_cur_sifted_state): Likewise.
75799         (sift_states_mkref): Likewise.
75800         (check_arrival_expand_ecl): Mark eclosure as const.
75801         (check_dst_limits_calc_pos_1): Likewise.
75802         * lib/regex_internal.h (re_match_context_t): Make dfa a const
75803         pointer.
75804
75805         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
75806
75807         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
75808         (transit_state_sb): Likewise.
75809         (transit_state_mb): Likewise.
75810         (sift_states_iter_mb): Likewise.
75811         (check_arrival_add_next_nodes): Likewise.
75812         (check_node_accept_bytes): Change first parameter to pointer-to-const.
75813         [_LIBC] (re_search_2_stub): Use mempcpy.
75814
75815         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
75816         mbrtowc for very simple UTF-8 case.
75817
75818         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
75819         a pointer-to-const.
75820         (re_acquire_state_context): Likewise.
75821         * lib/regex_internal.h: Adjust prototypes.
75822
75823         * lib/regex.c: Prevent using C++ compilers.
75824
75825         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
75826         (re_acquire_state_context): Likewise.
75827
75828 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * modules/regex (Depends-on): Add ssize_t.
75831
75832 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
75835         translation table.
75836
75837 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
75840
75841 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
75842             Bruno Haible  <bruno@clisp.org>
75843
75844         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
75845         <sys/types.h> and <inttypes.h>.
75846
75847 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75848
75849         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
75850         `__error_t_defined', so argp.h will not typedef the former.
75851
75852 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
75855         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
75856         glibc names.  Even if glibc is changed to conform to POSIX, the
75857         traditional names will be available anyway, since regex depends on
75858         the extensions module.  Also, fix a longstanding typo in the
75859         implementation of Spencer ERE test #75 from grep 2.3.  Problems
75860         reported by Emanuele Giaquinta.  Also, change sense of cached
75861         variable, so that the message makes sense.
75862
75863 2006-03-24  Simon Josefsson  <jas@extundo.com>
75864
75865         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
75866         including some doc fixes.
75867         (base64_encode_alloc): Fix +1 bug on allocation failures.
75868
75869 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75870
75871         * lib/base64.c (base64_encode): Do not read past end of array with
75872         unsanitized input on systems with CHAR_BIT > 8.
75873
75874 2006-03-24  Eric Blake  <ebb9@byu.net>
75875
75876         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
75877
75878 2006-03-22  Karl Berry  <karl@gnu.org>
75879
75880         * config/srclist.txt (*setenv.[ch]): get from coreutils.
75881         * config/srclistvars.sh (COREUTILS): new var.
75882
75883 2006-03-17  Jim Meyering  <jim@meyering.net>
75884
75885         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
75886         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
75887
75888 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75889
75890         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
75891         no longer needs it.  Instead, check that regoff_t is as least
75892         as wide as ptrdiff_t.
75893
75894         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
75895         so that our regex.h stays compatible with the installed regex.
75896         This is helpful for installers who configure --without-included-regex.
75897         Problem reported by Emanuele Giaquinta.
75898
75899 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
75900
75901         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
75902         Typedef to long int, not to off_, as POSIX will likely change
75903         in that direction.
75904
75905 2006-03-15  Eric Blake  <ebb9@byu.net>
75906
75907         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
75908
75909 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75910
75911         * lib/argp-help.c (validate_uparams): Fix typo
75912         * lib/argp-parse.c (argp_default_options): Consistently begin help
75913         messages with a lowercase letter.
75914
75915 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
75916
75917         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
75918         overrun buffers and shouldn't be used (much as gets shouldn't be
75919         used).
75920         * lib/time_r.c (asctime_r, ctime_r): Likewise.
75921
75922 2006-03-08  Simon Josefsson  <jas@extundo.com>
75923
75924         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
75925         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75926
75927 2006-03-08  Simon Josefsson  <jas@extundo.com>
75928
75929         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
75930         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75931
75932 2006-03-08  Simon Josefsson  <jas@extundo.com>
75933
75934         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
75935         signal that configure disabled the device.
75936
75937 2006-03-08  Simon Josefsson  <jas@extundo.com>
75938
75939         * build-aux/maint.mk: Fix refresh-po, to handle no translated
75940         languages.
75941
75942 2006-03-07  Simon Josefsson  <jas@extundo.com>
75943
75944         * modules/getopt (Depends-on): Add unistd.
75945
75946         * modules/unistd: New file.
75947
75948 2006-03-07  Simon Josefsson  <jas@extundo.com>
75949
75950         * modules/gc-random: New file.
75951
75952 2006-03-07  Simon Josefsson  <jas@extundo.com>
75953
75954         * m4/unistd_h.m4: New file.
75955
75956 2006-03-07  Simon Josefsson  <jas@extundo.com>
75957
75958         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
75959         test to be side-effect free by storing the result in the cache
75960         variable gl_cv_lib_readline, and moving the assignment of
75961         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
75962         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75963
75964 2006-03-07  Simon Josefsson  <jas@extundo.com>
75965
75966         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
75967         error on missing devices (the functions will return an error).
75968
75969         * m4/gc.m4: Move random stuff to gc-random.m4
75970
75971 2006-03-07  Simon Josefsson  <jas@extundo.com>
75972
75973         * lib/unistd_.h: New file.
75974
75975 2006-03-07  Simon Josefsson  <jas@extundo.com>
75976
75977         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
75978
75979 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
75982         Problem reported by Juan Manuel Guerrero.
75983
75984 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
75987         the unistd module.
75988         * lib/getlogin_r.c: Likewise.
75989         * lib/getlogin_r.h: Likewise.
75990         * lib/glob.c: Likewise.
75991         * lib/pagealign_alloc.c: Likewise.
75992         * lib/unistd_.h: Remove; no longer needed.
75993
75994 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
75995
75996         * MODULES.html.sh (Support for systems lacking POSIX:2001):
75997         Add unistd.
75998         * modules/c-stack (Depends-on): Add unistd.
75999         * modules/getlogin_r: Likewise.
76000         * modules/glob: Likewise.
76001         * modules/pagealign_alloc: Likewise.
76002         * modules/unistd (Files): Remove lib/unistd_.h.
76003         (EXTRA_DIST): Remove.
76004         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
76005         need unistd_.h.
76006         (MOSTLYCLEANFILES): Remove unistd.h-t.
76007
76008 2006-03-03  Simon Josefsson  <jas@extundo.com>
76009
76010         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
76011
76012 2006-03-03  Simon Josefsson  <jas@extundo.com>
76013
76014         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
76015         libidn and bison.
76016
76017 2006-03-03  Simon Josefsson  <jas@extundo.com>
76018
76019         * build-aux/maint.mk: Add indent target.
76020
76021 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
76022
76023         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
76024         our replacement poll.h in any case, to avoid a differing
76025         declaration from a system header.  Seen on AIX.
76026
76027 2006-03-01  Simon Josefsson  <jas@extundo.com>
76028
76029         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
76030         <kasal@ucw.cz>.
76031
76032 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * modules/gettime (Depends-on): Add extensions module.
76035         * modules/nanosleep (Depends-on): Likewise.
76036         * modules/settime (Depends-on): Likewise.
76037
76038 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76039
76040         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
76041         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
76042         pedantically.
76043         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76044         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
76045
76046         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
76047         not "==".  Reported by Ralf Wildenhues.
76048
76049 2006-03-01  Karl Berry  <karl@gnu.org>
76050
76051         * doc/Copyright/request-*: new files, synced from gnuorg.
76052
76053 2006-03-01  Karl Berry  <karl@gnu.org>
76054
76055         * config/srclist.txt (Copyright/*): new entries.
76056
76057 2006-02-28  Simon Josefsson  <jas@extundo.com>
76058
76059         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
76060
76061 2006-02-27  Simon Josefsson  <jas@extundo.com>
76062
76063         * lib/base64.h: Indent #define's.  From Jim Meyering
76064         <jim@meyering.net>.
76065
76066 2006-02-27  Jim Meyering  <jim@meyering.net>
76067
76068         Revert the change of 2006-02-24, so these files can continue
76069         to be sync'd from gettext.
76070         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
76071         of `config.h'.
76072
76073 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76074
76075         * modules/intprops: New file.
76076         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76077         Add intprops.
76078         * modules/getloadavg (Files): Remove lib/intprops.h.
76079         (Depends-on): Add intprops.
76080         * modules/human: Likewise.
76081         * modules/inttostr: Likewise.
76082         * modules/openat: Likewise.
76083         * modules/sig2str: Likewise.
76084         * modules/userspec: Likewise.
76085         * modules/utimecmp: Likewise.
76086         * modules/xnanosleep: Likewise.
76087         * modules/xstrtol: Likewise.
76088
76089 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
76090
76091         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
76092         * modules/lock-tests (TESTS): Use $(EXEEXT).
76093         * modules/tls-tests: Likewise.
76094         * modules/argp-tests: Likewise.
76095         (check_PROGRAMS): New var, replacing...
76096         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
76097
76098 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76099
76100         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
76101         `config.h'.
76102
76103 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
76104
76105         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
76106
76107 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76108
76109         Sync from coreutils.
76110         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
76111         gl_CHDIR_SAFER.
76112
76113 2006-02-22  Jim Meyering  <jim@meyering.net>
76114
76115         Sync from coreutils.
76116         * m4/chdir-safer.m4: New file.
76117
76118 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
76119
76120         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
76121         AT_FDCWD exceeds INT_MAX.
76122         * lib/openat.h (AT_FDCWD): Likewise.
76123
76124 2006-02-17  Eric Blake  <address@hidden>
76125
76126         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
76127
76128 2006-02-16  Simon Josefsson  <jas@extundo.com>
76129
76130         * modules/getaddrinfo (Depends-on): Add sys_socket.
76131
76132 2006-02-15  Simon Josefsson  <jas@extundo.com>
76133
76134         * build-aux/maint.mk: Add dsyntax-check rule.
76135
76136 2006-02-15  Eric Blake  <ebb9@byu.net>
76137
76138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
76139         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
76140         'present but cannot compile' warnings on cygwin.
76141         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
76142         use ws2tcpip.h if sys/socket.h works.
76143         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
76144         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
76145
76146 2006-02-14  Simon Josefsson  <jas@extundo.com>
76147
76148         * modules/maintainer-makefile (Files): Rename.
76149
76150         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
76151         and (the local) Makefile.cfg to maint-cfg.mk.
76152
76153         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
76154         to the latter.
76155
76156         * modules/maintainer-makefile: New module.
76157
76158         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
76159         severaly stripped to make it possible to build it up from scratch
76160         with reliable tests.
76161
76162         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
76163         fixes to permit overriding the default actions when configure and
76164         makefile are not available.
76165
76166 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         Sync from coreutils.
76169         * modules/lstat (Depends-on): Don't depend on xalloc.
76170         (License): Change from GPL to LGPL, since this is now simply a
76171         replacement for a libc function.
76172
76173 2006-02-14  Jim Meyering  <jim@meyering.net>
76174
76175         Sync from coreutils.
76176
76177         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
76178         failure on deficient systems, and simplify gnulib lgpl dependencies.
76179         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
76180         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
76181
76182         * lib/xalloc-die.c: Remove unused definition of N_.
76183
76184 2006-02-14  Jim Meyering  <jim@meyering.net>
76185
76186         Sync from coreutils.
76187         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
76188         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
76189         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
76190         double-quote uses of that variable, to accommodate the rare case in
76191         which getmntent is available in none of the libraries checked.  This
76192         happens at least on FreeBSD 5.0.
76193
76194 2006-02-13  Simon Josefsson  <jas@extundo.com>
76195
76196         * gnulib-tool (Usage): Fix --import, from
76197         karl@freefriends.org (Karl Berry).
76198
76199 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76200
76201         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
76202
76203 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
76204
76205         * lib/argp-namefrob.h: Restore changes accidentally lost during the
76206         "autoupdate" on 2005-12-12.
76207
76208 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76209
76210         * modules/closeout (Depends-on): Remove atexit.
76211
76212 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76213
76214         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
76215         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
76216
76217 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
76218
76219         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
76220         __EXTENSIONS__ if this causes compilation to fail.  Problem
76221         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
76222         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
76223
76224 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
76225
76226         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
76227         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
76228         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
76229         All uses changed.
76230
76231 2006-01-26  Simon Josefsson  <jas@extundo.com>
76232
76233         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
76234         prototype is visible on mingw32.
76235
76236         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
76237         for mingw32.
76238
76239         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
76240         mingw32).
76241
76242 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
76243
76244         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
76245         attempt to open for write; this always fails, at least on POSIX
76246         hosts.  This reinstates the 2006-01-09 change, which was
76247         inadvertently removed.
76248
76249 2006-01-26  Bruno Haible  <bruno@clisp.org>
76250
76251         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
76252         Reported by Paul Eggert.
76253
76254 2006-01-26  Bruno Haible  <bruno@clisp.org>
76255             Paul Eggert  <eggert@cs.ucla.edu>
76256
76257         * lib/stdbool_.h (_Bool)
76258         [(! (defined __cplusplus || defined __BEOS__)
76259           && !defined __GNUC__
76260           && !(defined __HP_cc || defined __xlc__
76261                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
76262                || defined __sgi))]:
76263         #define to signed char in these cases too; this simplifies
76264         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
76265         etc., separately) and makes it more conservative.
76266
76267 2006-01-25  Simon Josefsson  <jas@extundo.com>
76268
76269         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
76270         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
76271         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
76272
76273 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76274
76275         * lib/argp-namefrob.h: Bugfix. Remove stray #
76276
76277 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
76278
76279         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
76280         so that we test the test.
76281         Check for yet another HP-UX cc bug involving *bool |= bool.
76282
76283 2006-01-25  Karl Berry  <karl@gnu.org>
76284
76285         * config/srclist.txt (vasnprintf.c): sync lost.
76286
76287 2006-01-25  Jim Meyering  <jim@meyering.net>
76288
76289         Sync from the stable (b5) branch of coreutils:
76290
76291         * lib/fts.c (fts_children): Don't let close() clobber errno from
76292         failed fchdir().
76293
76294         * lib/fts.c (fts_stat): When following a symlink-to-directory,
76295         don't necessarily interpret stat-fails+lstat-succeeds as indicating
76296         a dangling symlink.  That can also happen at least for ELOOP.
76297         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
76298         FYI, this bug predates the inclusion of fts.c in coreutils.
76299
76300         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
76301         in their own block, so pre-c99 compilers don't object.
76302
76303         Avoid the double-free (first in fts_read, second in fts_close) that
76304         would occur when an `active' directory is made inaccessible (e.g.,
76305         via chmod a-x) during a traversal.
76306         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
76307         before returning.  Reproduce this failure by
76308         mkdir -p a/b; cd a; chmod a-x . b
76309         Reported by Stavros Passas.
76310
76311 2006-01-25  Jim Meyering  <jim@meyering.net>
76312
76313         * lib/fileblocks.c: Remove more useless parentheses.
76314         * lib/readutmp.h: Likewise.
76315
76316 2006-01-25  Bruno Haible  <bruno@clisp.org>
76317
76318         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
76319         warnings.
76320         Reported by Paul Eggert.
76321
76322 2006-01-25  Bruno Haible  <bruno@clisp.org>
76323
76324         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
76325         rid of a trap command. For Solaris sh.
76326         Reported by Mark D. Baushke <mdb@gnu.org>.
76327
76328 2006-01-24  Simon Josefsson  <jas@extundo.com>
76329
76330         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
76331         Bruno.
76332
76333 2006-01-24  Karl Berry  <karl@gnu.org>
76334
76335         * config/srclist.txt (argp-namefrob.h): sync lost.
76336
76337 2006-01-24  Jim Meyering  <jim@meyering.net>
76338
76339         * modules/openat (Files): Add lib/intprops.h.
76340         From Mark D. Baushke.
76341
76342 2006-01-24  Jim Meyering  <jim@meyering.net>
76343
76344         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
76345         Reported by Mark D. Baushke.
76346
76347 2006-01-24  Jim Meyering  <jim@meyering.net>
76348
76349         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
76350
76351 2006-01-24  Bruno Haible  <bruno@clisp.org>
76352
76353         * modules/strnlen (Maintainer): Change from glibc to all.
76354
76355 2006-01-24  Bruno Haible  <bruno@clisp.org>
76356
76357         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
76358         Patch by Paul Eggert.
76359
76360 2006-01-24  Bruno Haible  <bruno@clisp.org>
76361
76362         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
76363         already has it.
76364         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
76365         2005-11-26.
76366
76367         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
76368         'signed char' to avoid problems with the built-in _Bool type.
76369         Reported by Paul Eggert on 2005-11-26.
76370
76371 2006-01-24  Bruno Haible  <bruno@clisp.org>
76372
76373         * gnulib-tool (func_import): Avoid constructing complicated sed
76374         expressions inside backquote.
76375         Report and solution by Mark D. Baushke <mdb@gnu.org>.
76376
76377 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
76378
76379         These changes imported from libc.
76380         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
76381         test and two separate function calls.
76382         * lib/strndup.c (__strndup): Add libc_hidden_def.
76383
76384 2006-01-23  Simon Josefsson  <jas@extundo.com>
76385
76386         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
76387         Remove the test_*_SOURCES variable: automake infers it by default.
76388         * modules/tls-tests: Likewise.
76389
76390 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76391
76392         Work around porting bugs reported by Dieter in
76393         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
76394         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
76395         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
76396         Include "getopt.h" first, to check interface.
76397         (getenv): Declare only if defined HAVE_DECL_GETENV &&
76398         !HAVE_DECL_GETENV.
76399         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
76400         (__strndup): Revert to K&R-style function dfns, the glibc style.
76401         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
76402         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
76403         Include strnlen.h first, to get prototype properly.
76404         (strnlen): Renamed from __strnlen.
76405         Remove weak alias.
76406
76407 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
76410
76411 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76412
76413         * config/srclist.txt: Adjust to reflect glibc reorganization.
76414         This affects only comments.
76415
76416 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76417
76418          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
76419          Reported by Bruce Korb <bkorb@gnu.org>.
76420
76421 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
76424         to pacify gcc -Wswitch-default.
76425
76426 2006-01-22  Bruno Haible  <bruno@clisp.org>
76427
76428         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
76429         temporary buffer for sprintf, take into account the precision also
76430         for 'd', 'i', 'u', 'o', 'x', 'X'.
76431
76432 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
76433
76434         * modules/argp-tests: New module
76435         * tests/test-argp.c: New file
76436         * tests/test-argp-2.sh: New file
76437
76438 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
76439
76440         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
76441         (__argp_base_name): Removed
76442         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
76443         typo.
76444         (__argp_base_name): Provide macro definition or extern declaration
76445         depending on the configuration
76446
76447 2006-01-20  Simon Josefsson  <jas@extundo.com>
76448
76449         * modules/inet_ntop (Depends-on): Depend on sys_socket.
76450
76451 2006-01-20  Simon Josefsson  <jas@extundo.com>
76452
76453         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
76454
76455 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
76458         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
76459         Suggested by Bruno Haible.
76460
76461 2006-01-20  Karl Berry  <karl@gnu.org>
76462
76463         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
76464         until changes propagate, I guess.
76465
76466 2006-01-19  Simon Josefsson  <jas@extundo.com>
76467
76468         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
76469
76470 2006-01-19  Simon Josefsson  <jas@extundo.com>
76471
76472         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
76473
76474 2006-01-19  Simon Josefsson  <jas@extundo.com>
76475
76476         * gnulib-tool: Set check_PROGRAMS.
76477
76478         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
76479         modules/des-tests, modules/gc-arcfour-tests,
76480         modules/gc-arctwo-tests, modules/gc-des-tests,
76481         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
76482         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
76483         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
76484         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
76485         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
76486         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
76487         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
76488         test_*_SOURCES.
76489
76490 2006-01-18  Simon Josefsson  <jas@extundo.com>
76491
76492         * modules/socklen (Depends-on): Depend on sys_socket.
76493
76494 2006-01-18  Simon Josefsson  <jas@extundo.com>
76495
76496         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
76497         modules/des-tests, modules/gc-arcfour-tests,
76498         modules/gc-arctwo-tests, modules/gc-des-tests,
76499         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
76500         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
76501         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
76502         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
76503         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
76504         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
76505         $(EXEEXT) to automake TESTS variable, for mingw32.
76506
76507 2006-01-17  Simon Josefsson  <jas@extundo.com>
76508
76509         * modules/socklen (Include): Need sys/socket.h.
76510
76511 2006-01-17  Bruno Haible  <bruno@clisp.org>
76512
76513         * modules/ssize_t (Include): Add <sys/types.h>.
76514
76515 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
76516
76517         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
76518         it's not portable and it doesn't work with cross-compiles.
76519         Problem reported by Bruno Haible.  Fix missing-$ typo in
76520         'test "gl_cv_ignore_unused_libraries" ...' that prevented
76521         -zignore from being used with Sun's C compiler.
76522
76523 2006-01-12  Simon Josefsson  <jas@extundo.com>
76524
76525         * lib/base64.c: Fix warning, reported by Bruno Haible
76526         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
76527
76528 2006-01-12  Bruno Haible  <bruno@clisp.org>
76529
76530         * modules/ldd: New file.
76531         * build-aux/ldd.sh.in: New file.
76532         * MODULES.html.sh (Support for building libraries and executables): Add
76533         ldd.
76534
76535 2006-01-12  Bruno Haible  <bruno@clisp.org>
76536
76537         * m4/ldd.m4: New file.
76538
76539 2006-01-12  Bruno Haible  <bruno@clisp.org>
76540
76541         * gnulib-tool (func_import, func_create_testdir): Don't go into an
76542         endless loop while replacing $auxdir with build-aux.
76543
76544 2006-01-11  Simon Josefsson  <jas@extundo.com>
76545
76546         * lib/stdint_.h (SIZE_MAX): Add missing (.
76547
76548 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
76549
76550         Sync from coreutils.
76551         * lib/md5.c: Fix commentary typos.
76552         (alignof, UNALIGNED_P): No need for a GCC-specific version.
76553         * lib/md5.h (__attribute__): Remove; unused.
76554         * lib/sha1.c: Fix commentary to match md5 better.
76555         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
76556         so that we don't need to worry about alignment.  All uses changed.
76557         This merges the 2005-10-28 md5 change into sha1.
76558
76559 2006-01-11  Jim Meyering  <jim@meyering.net>
76560
76561         Sync from coreutils.
76562         * lib/md5.c (OP): Fix spacing.
76563
76564 2006-01-11  Bruno Haible  <bruno@clisp.org>
76565
76566         Ensure automatic ordering between gl_LOCK and gl_ARGP.
76567         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
76568         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
76569
76570 2006-01-11  Bruno Haible  <bruno@clisp.org>
76571
76572         Ensure automatic ordering between gl_LOCK and gl_ARGP.
76573         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
76574         the "early" section as well.
76575
76576 2006-01-11  Bruno Haible  <bruno@clisp.org>
76577
76578         Avoid "ar: no archive members specified" error on MacOS X.
76579         * gnulib-tool (func_modules_add_dummy): New function.
76580         (func_import, func_create_testdir): Invoke it.
76581
76582 2006-01-11  Bruno Haible  <bruno@clisp.org>
76583
76584         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
76585         with $auxdir in AC_CONFIG_FILES statements.
76586
76587 2006-01-11  Bruno Haible  <bruno@clisp.org>
76588
76589         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76590         Initialize also noinst_HEADERS to empty.
76591
76592 2006-01-11  Bruno Haible  <bruno@clisp.org>
76593
76594         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
76595         variables.
76596         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
76597         autoreconf.
76598
76599 2006-01-11  Bruno Haible  <bruno@clisp.org>
76600
76601         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
76602         overridable by the user.
76603         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76604
76605 2006-01-10  Simon Josefsson  <jas@extundo.com>
76606
76607         * modules/sys_socket: New file.
76608
76609 2006-01-10  Simon Josefsson  <jas@extundo.com>
76610
76611         * m4/sys_socket_h.m4: New file.
76612
76613 2006-01-10  Simon Josefsson  <jas@extundo.com>
76614
76615         * lib/socket_.h: New file.
76616
76617 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76618
76619         * modules/readutmp (Maintainer): Add myself.
76620
76621 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76622
76623         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
76624         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
76625         People who are still concerned with buggy memcmp implementations
76626         can invoke gl_FUNC_MEMCMP themselves.
76627
76628 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76629
76630         * lib/regex_internal.h (BITSET_WORD_BITS):
76631         Work around a bug in 64-bit PGC (before version 6.1-2), where the
76632         preprocessor mishandles large unsigned values as if they were signed.
76633         Problem reported by Claudio Fontana in
76634         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
76635
76636 2006-01-10  Jim Meyering  <jim@meyering.net>
76637
76638         Avoid the double-free (first in fts_read, second in fts_close) that
76639         would occur when an `active' directory is made inaccessible (e.g.,
76640         via chmod a-x) during a traversal.
76641         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
76642         before returning.  Reproduce this failure by
76643         mkdir -p a/b; cd a; chmod a-x . b
76644         Reported by Stavros Passas.
76645
76646         Sync from coreutils.
76647         * lib/sha1.c: Tweak grammar in a comment.
76648
76649 2006-01-10  Jim Meyering  <jim@meyering.net>
76650
76651         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
76652         Patch by Joerg Sonnenberger.
76653
76654 2006-01-10  Bruno Haible  <bruno@clisp.org>
76655
76656         * modules/readutmp: Depend on module free.
76657         * modules/strtok_r: Depend on module restrict.
76658
76659 2006-01-10  Bruno Haible  <bruno@clisp.org>
76660
76661         * modules/gettext (configure.ac): Add an invocation of
76662         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
76663
76664 2006-01-10  Bruno Haible  <bruno@clisp.org>
76665
76666         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
76667         Reported by Werner Lemberg <wl@gnu.org>.
76668
76669 2006-01-10  Bruno Haible  <bruno@clisp.org>
76670
76671         * lib/localcharset.c: Update from GNU gettext.
76672
76673 2006-01-10  Bruno Haible  <bruno@clisp.org>
76674
76675         * lib/argp.h (__const): Remove macro. Use const instead.
76676         * lib/argp-fmtstream.h (__const): Likewise.
76677         * lib/glob_.h (__const): Remove macro.
76678         * lib/glob-libc.h: Use const instead of __const.
76679
76680 2006-01-10  Bruno Haible  <bruno@clisp.org>
76681
76682         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
76683         variable.
76684         Needed to avoid an automake error regarding the 'gettext' module.
76685
76686 2006-01-09  Simon Josefsson  <jas@extundo.com>
76687
76688         * modules/inet_ntop (Depends-on): Add restrict.
76689
76690 2006-01-09  Simon Josefsson  <jas@extundo.com>
76691
76692         * modules/gc-rijndael-tests (License): Put under LGPL.
76693
76694         * modules/gc-des-tests (License): Likewise.
76695
76696         * modules/gc-arcfour-tests (License): Likewise.
76697
76698         * modules/gc-arctwo-tests (License): Likewise.
76699
76700         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
76701
76702         * modules/gc-hmac-sha1-tests (Files): Likewise.
76703
76704         * modules/gc-hmac-md5-tests (License): Likewise.
76705
76706         * modules/gc-sha1-tests (License): Likewise.
76707
76708         * modules/gc-md5-tests (License): Likewise.
76709
76710         * modules/gc-md4-tests (License): Likewise.
76711
76712         * modules/gc-md2-tests (License): Likewise.
76713
76714         * modules/gc-tests (License): Likewise.
76715
76716         * modules/des-tests (License): Likewise.
76717
76718         * modules/md4-tests (License): Likewise.
76719
76720         * modules/md2-tests (License): Likewise.
76721
76722 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76723
76724         Sync from coreutils:
76725
76726         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
76727         * modules/lib-ignore: New file.
76728         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
76729         chdir-safer.m4, lchmod.m4.
76730         * modules/openat: Add mkdirat.c, openat-priv.h.
76731
76732 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         Sync from coreutils.
76735         * m4/lib-ignore.m4: New file.
76736         * m4/lchmod.m4: New file.
76737
76738 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76739
76740         Sync from coreutils.
76741         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
76742         for write access: POSIX says that must fail.
76743         * lib/fts.c (diropen): Likewise.
76744         * lib/save-cwd.c (save_cwd): Likewise.
76745         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
76746         well, for minor improvements on hosts that lack O_DIRECTORY.
76747         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
76748         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
76749         Fall back on chown if open failed with EACCES.
76750
76751         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
76752         Report an error at compile-time if only a 1-second nominal clock
76753         resolution is found.
76754
76755         * lib/lchmod.h: New file.
76756         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
76757         (make_dir_parents): Use lchown rather than chown, and
76758         lchmod rather than chmod.
76759
76760         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
76761         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
76762         "proc" reported by n0dalus.
76763
76764         * lib/mountlist.c: Include <limits.h>.
76765         (dev_from_mount_options)
76766         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
76767         New function.  It no longer assumes "dev=" has the System V meaning
76768         on Linux (since it doesn't).  It also parses "dev=" more carefully.
76769         (read_file_system_list)
76770         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
76771         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
76772         dev= in that case.
76773
76774         * lib/posixtm.h (PDS_PRE_2000): New macro.
76775         * lib/posixtm.c (year): Arg is now syntax_bits rather than
76776         allow_century.  All usages changed.  Reject dates outside the range
76777         1969-1999 if PDS_PRE_2000 is used.
76778
76779 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         Sync from coreutils.
76782         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
76783         (Time of day items): Mention the possibility of leap seconds.
76784         Problem reported by Dr. David Alan Gilbert.
76785
76786 2006-01-09  Jim Meyering  <jim@meyering.net>
76787
76788         Sync from coreutils.
76789
76790         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
76791
76792         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
76793
76794         * lib/modechange.c (mode_compile): Reject an invalid mode string
76795         that starts with an octal digit.  From Andreas Gruenbacher.
76796
76797         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
76798         and dup to open_safer and dup_safer, respectively.
76799         (openat_permissive): Fix typo in comment.
76800
76801         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
76802         "gettext.h"; either no longer needed or are guaranteed by openat.h.
76803         (_): Remove; no longer needed.
76804         (openat): Renamed from rpl_openat; no need for rpl_openat
76805         since openat.h renames openat for us.
76806         Replace most of the body with a call to openat_permissive,
76807         to avoid duplicate code.
76808         Port to (probably hypothetical) environments were mode_t is
76809         wider than int.
76810         (openat_permissive): Require mode arg, so that we can check
76811         types better.  Put it just after flags.  Change cwd failure
76812         indicator from pointer-to-bool to pointer-to-errno-value.
76813         All callers changed.
76814         Invoke openat_save_fail and/or openat_restore_fail if
76815         cwd_errno is null, so that openat can call us.
76816         (openat_permissive, fdopendir, fstatat, unlinkat):
76817         Simplify errno handling to avoid some duplicate code,
76818         as it's OK to set errno on success.
76819         * lib/openat.h: Revamp code so that function macros depend on
76820         __OPENAT_PREFIX only, not also on AT_FDCWD.
76821         (openat_ro): Remove.  Caller changed to use openat_permissive.
76822         (openat_permissive): Now a macro, if not a function.
76823         (openat_restore_fail, openat_save_fail): Now always functions,
76824         since mkdirat needs them even if __OPENAT_PREFIX is defined.
76825
76826         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
76827         and openat.c.
76828         * lib/mkdirat.c: Include openat-priv.h.
76829         Remove definitions of macros defined therein.
76830         * lib/openat.c: Likewise.
76831
76832         * lib/mkdirat.c (mkdirat): New file and function.
76833         * lib/openat.h (mkdirat): Declare.
76834
76835         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
76836
76837         * lib/openat.h (openat_permissive): Declare.
76838         (openat_ro): Define.
76839
76840         * lib/openat.c (EXPECTED_ERRNO): New macro.
76841         (openat_permissive): New function -- used in remove.c rewrite.
76842         (all functions): Set errno just before returning, only if there
76843         was an actual failure.
76844         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
76845
76846         Emulate openat-family functions using Linux's procfs, if possible.
76847         Idea and some code based on Ulrich Drepper's glibc changes.
76848
76849         * lib/openat.c: (BUILD_PROC_NAME): New macro.
76850         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
76851         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
76852         before falling back on save_cwd and restore_cwd.
76853         (fdopendir, fstatat, unlinkat): Likewise.
76854
76855         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
76856         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
76857
76858         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
76859         as second argument to va_arg.  Otherwise, some versions of gcc
76860         warn that `if this code is reached, the program will abort'.
76861
76862 2006-01-09  Jim Meyering  <jim@meyering.net>
76863
76864         Sync from coreutils.
76865         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
76866         Require openat-priv.h.
76867
76868 2006-01-09  Bruno Haible  <bruno@clisp.org>
76869
76870         * modules/strnlen (Include): Use strnlen.h.
76871
76872 2006-01-09  Bruno Haible  <bruno@clisp.org>
76873
76874         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
76875
76876 2006-01-09  Bruno Haible  <bruno@clisp.org>
76877
76878         * lib/sysexit_.h (EX_OK): New macro.
76879         Suggested by Martin Lambers <marlam@marlam.de>.
76880
76881 2006-01-09  Bruno Haible  <bruno@clisp.org>
76882
76883         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
76884         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
76885
76886 2006-01-09  Bruno Haible  <bruno@clisp.org>
76887
76888         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
76889         numbers.
76890
76891 2006-01-09  Bruno Haible  <bruno@clisp.org>
76892
76893         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
76894         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
76895         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
76896         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
76897
76898 2006-01-09  Bruno Haible  <bruno@clisp.org>
76899
76900         * build-aux/javacomp.sh.in: New file, moved from lib/.
76901         * modules/javacomp-script (Files): Update.
76902         (configure.ac): Add AC_CONFIG_FILES invocation.
76903         (EXTRA_DIST): Remove variable.
76904
76905         * build-aux/javaexec.sh.in: New file, moved from lib/.
76906         * modules/javaexec (Files): Update.
76907         (configure.ac): Add AC_CONFIG_FILES invocation.
76908         (EXTRA_DIST): Remove javaexec.sh.in.
76909
76910         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
76911         * modules/csharpcomp-script (Files): Update.
76912         (configure.ac): Add AC_CONFIG_FILES invocation.
76913         (EXTRA_DIST): Remove variable.
76914
76915         * build-aux/csharpexec.sh.in: New file, moved from lib/.
76916         * modules/csharpexec (Files): Update.
76917         (configure.ac): Add AC_CONFIG_FILES invocation.
76918         (EXTRA_DIST): Remove csharpexec.sh.in.
76919
76920 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76921
76922         Sync from coreutils.
76923
76924         Add POSIX ACL support
76925         * lib/acl.h (copy_acl, set_acl): Add declarations.
76926         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
76927         systems other than Linux.
76928         (chmod_or_fchmod): New function: use fchmod when possible,
76929         and chmod otherwise.
76930         (file_has_acl): Add a POSIX ACL implementation, with a
76931         Linux-specific subcase.
76932         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
76933         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
76934         acls are unsupported.
76935         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
76936         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
76937         are unsupported.
76938
76939 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
76940
76941         Sync from coreutils.
76942         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
76943
76944 2006-01-07  Bruno Haible  <bruno@clisp.org>
76945
76946         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
76947         gl_EARLY.
76948
76949 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76950
76951         * lib/strftime.c (tzname): Don't declare if it is already #defined.
76952         Problem reported for Mingw by Mark Junker.
76953
76954 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76955
76956         * README: Gnulib normally doesn't generate a tarball.
76957
76958 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
76961         long int, not int, for nanosecond counts, so that people who are
76962         used to POSIX struct timespec won't be surprised.  Reported by Jim
76963         Meyering.
76964
76965 2005-12-28  Bruno Haible  <bruno@clisp.org>
76966
76967         * build-aux/config.rpath: Update from GNU gettext.
76968
76969 2005-12-16  Jim Meyering  <jim@meyering.net>
76970
76971         * modules/fprintftime: New module.
76972         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
76973
76974 2005-12-16  Jim Meyering  <jim@meyering.net>
76975
76976         * m4/fprintftime.m4: New file.
76977
76978 2005-12-16  Jim Meyering  <jim@meyering.net>
76979
76980         * lib/fprintftime.c, lib/fprintftime.h: New files.
76981
76982 2005-12-15  Simon Josefsson  <jas@extundo.com>
76983
76984         * modules/socklen (configure.ac): Fix M4 macro name, to align with
76985         new m4/socklen.m4.
76986
76987 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76988
76989         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
76990         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
76991
76992 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76993
76994         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
76995         * lib/argp-help.c (fill_in_uparams): Check if the constructed
76996         struct uparams is valid. Fall back to the default values if it is
76997         not.
76998
76999 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77000
77001         * modules/argp (Files): Add argp-pin.c
77002         (Depends-on): dirname
77003         (lib_SOURCES): Add argp-pin.c
77004
77005 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77006
77007         * m4/argp.m4:  Check if program_invocation_name and
77008         program_invocation_short_name are declared and define appropriate
77009         macros if they are not.
77010
77011 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77012
77013         * lib/argp-help.c (__argp_base_name): New function
77014         (__argp_short_program_name): Rewrite using __argp_base_name
77015         * lib/argp-namefrob.h: Define program_invocation_name and
77016         program_invocation_short_name if requested
77017         (__argp_base_name): Add prototype
77018         * lib/argp-parse.c (argp_def): Use gettext wrappers
77019         (argp_default_parser): Use __argp_base_name
77020         * lib/argp-pin.c: New file. Defines program_invocation_name and
77021         program_invocation_short_name on systems that lack them.
77022
77023 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
77026         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77027         porting problem reported by Georg Schwarz in
77028         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77029
77030 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
77033         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77034         porting problem reported by Georg Schwarz in
77035         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77036
77037 2005-12-05  Bruno Haible  <bruno@clisp.org>
77038
77039         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
77040         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
77041         Reported by Mark Junker <mjscod@gmx.de>.
77042
77043 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
77044
77045         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
77046         Use implementation from Albert Chin, with some
77047         comments/corrections by Stepan Kasal and myself.
77048
77049 2005-12-02  Bruno Haible  <bruno@clisp.org>
77050
77051         * gnulib-tool (func_import): Accept GPLed build tool modules when
77052         --lgpl is given.
77053         * modules/csharpcomp-script: New file.
77054         * modules/csharpcomp: Depend on it.
77055         * modules/javacomp-script: New file.
77056         * modules/javacomp: Depend on it.
77057         Suggested by Simon Josefsson.
77058
77059 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
77060
77061         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
77062         statement, to work around an HP-UX 10.20 compiler bug reported by
77063         Peter O'Gorman.
77064
77065 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77066
77067         * modules/savedir (Depends-on): Add openat.
77068
77069 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77070
77071         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
77072         (uintmax_t) [defined uintmax_t]: Do not declare.
77073         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
77074         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
77075         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
77076         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
77077         sake of portability to weird hosts that C allows (though we don't
77078         know of any practical examples).
77079
77080         * lib/savedir.h (fdsavedir): New decl.
77081         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
77082         contains most of the former guts of savedir.
77083         (savedir): Use savedirstream.
77084         Include "openat.h".
77085
77086 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77087
77088         * modules/obstack (Files): Add m4/ulonglong.m4.
77089         Problem reported by Davide Angelocola.
77090
77091 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
77092
77093         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
77094         coreutils no longer futzes with rounding modes.
77095
77096 2005-11-14  Jim Meyering  <jim@meyering.net>
77097
77098         * lib/mkstemp-safer.c: Include <config.h>, required for possible
77099         replacement of mkstemp.
77100
77101 2005-11-10  Simon Josefsson  <jas@extundo.com>
77102
77103         * lib/readline.c: Remove EOL.
77104
77105 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77106
77107         * modules/gethrxtime (Depends-on): Add gettime.
77108
77109 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77110
77111         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
77112         or gettimeofday; no longer needed.
77113
77114 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
77117         time business.
77118         (gethrxtime) [! (HAVE_NANOUPTIME
77119         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
77120         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
77121         our own approximation.
77122
77123 2005-11-08  Eric Blake  <ebb9@byu.net>
77124
77125         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77126
77127 2005-11-08  Eric Blake  <ebb9@byu.net>
77128
77129         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77130
77131 2005-11-04  Bruno Haible  <bruno@clisp.org>
77132
77133         * gnulib-tool: Implement --update mode.
77134
77135 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77136
77137         Fix porting problem reported by Theodoros V. Kalamatianos.
77138         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
77139         Don't assume that futimes failing means we must fail.
77140
77141 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77142
77143         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
77144         variables to suggest the intended function of the PATH_MAX check.
77145
77146 2005-10-30  Kean Johnston  <jkj@sco.com>
77147
77148         Trivial changes to support SCO systems.
77149         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
77150         as PATH_MAX.
77151         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
77152         where __ptr is null when no I/O is pending.
77153
77154 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77155
77156         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
77157         leave errno alone.  Problem reported by Dmitry V. Levin.
77158
77159 2005-10-28  Simon Josefsson  <jas@extundo.com>
77160
77161         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
77162         Test more.
77163
77164         * tests/test-gc-md2.c, tests/test-md2.c: New files.
77165
77166         * modules/md2, modules/md2-tests: New files.
77167
77168 2005-10-28  Simon Josefsson  <jas@extundo.com>
77169
77170         * m4/inet_ntop.m4: More tests.
77171
77172         * m4/gc-md2.m4, md2.m4: New file.
77173
77174 2005-10-28  Simon Josefsson  <jas@extundo.com>
77175
77176         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
77177         "restrict" keywords, as per POSIX.  Protect the function
77178         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
77179         Don't use K&R prototypes.  Check the sprintf return values.
77180         Re-define EAFNOSUPPORT if not present.  Indent.
77181
77182         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
77183         suggested by Bruno Haible <bruno@clisp.org>.
77184
77185         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
77186
77187         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
77188
77189         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
77190         libgcrypt).
77191
77192         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
77193
77194         * lib/md2.h, lib/md2.c: New files.
77195
77196 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
77197
77198         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
77199         errno alone.  Problem reported by Frederic Jolliton.
77200
77201 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77202
77203         * modules/verify (License): Change from GPL to LGPL.  This is a
77204         tiny module and there are apparently near-equivalents that are
77205         under the BSD license.
77206
77207 2005-10-24  Simon Josefsson  <jas@extundo.com>
77208
77209         * modules/sha1: Relicense to LGPL.
77210
77211 2005-10-24  Simon Josefsson  <jas@extundo.com>
77212
77213         * lib/md4.h: Shrink buffer size, now that we changed the type.
77214
77215 2005-10-23  Simon Josefsson  <jas@extundo.com>
77216
77217         * gnulib-tool (func_import): Fix --tests-base.
77218
77219 2005-10-22  Simon Josefsson  <jas@extundo.com>
77220
77221         * modules/arcfour (Depends-on): Need stdint.
77222
77223 2005-10-22  Simon Josefsson  <jas@extundo.com>
77224
77225         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
77226         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
77227
77228 2005-10-22  Simon Josefsson  <jas@extundo.com>
77229
77230         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
77231         suggested by Bruno Haible <bruno@clisp.org>.
77232
77233 2005-10-22  Simon Josefsson  <jas@extundo.com>
77234
77235         * lib/crc.h: Include stddef.h, for size_t.
77236
77237 2005-10-22  Simon Josefsson  <jas@extundo.com>
77238
77239         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
77240         arcfour_context struct (simplify test vector testing in GNU
77241         Shishi).
77242
77243 2005-10-21  Simon Josefsson  <jas@extundo.com>
77244
77245         * modules/des, modules/des-tests: New files.
77246
77247         * modules/gc-des, modules/gc-des-tests: New files.
77248
77249         * tests/test-des.c, tests/test-gc-des.c: New file.
77250
77251 2005-10-21  Simon Josefsson  <jas@extundo.com>
77252
77253         * modules/arctwo, modules/arctwo-tests: New files.
77254
77255         * tests/test-arctwo.c: New file.
77256
77257         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
77258
77259         * tests/test-gc-arctwo.c: New file.
77260
77261 2005-10-21  Simon Josefsson  <jas@extundo.com>
77262
77263         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
77264         Bruno Haible <bruno@clisp.org>.
77265
77266         * m4/gc-des.m4: New file.
77267
77268 2005-10-21  Simon Josefsson  <jas@extundo.com>
77269
77270         * m4/arctwo.m4: New file.
77271
77272         * m4/gc-arctwo.m4: New file.
77273
77274 2005-10-21  Simon Josefsson  <jas@extundo.com>
77275
77276         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
77277         block.
77278
77279 2005-10-21  Simon Josefsson  <jas@extundo.com>
77280
77281         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
77282         <bruno@clisp.org>.
77283
77284         * lib/hmac-sha1.c (hmac_sha1): Likewise.
77285
77286         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
77287         Bruno Haible <bruno@clisp.org>.
77288
77289         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
77290         <bruno@clisp.org>.
77291
77292 2005-10-21  Simon Josefsson  <jas@extundo.com>
77293
77294         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
77295
77296 2005-10-21  Simon Josefsson  <jas@extundo.com>
77297
77298         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
77299
77300 2005-10-21  Simon Josefsson  <jas@extundo.com>
77301
77302         * lib/des.h, lib/des.c: New files.
77303
77304         * lib/gc-gnulib.c: Support DES.c
77305
77306 2005-10-21  Simon Josefsson  <jas@extundo.com>
77307
77308         * lib/arctwo.h, lib/arctwo.c: New files.
77309
77310         * lib/gc-gnulib.c: Support ARCTWO.
77311
77312 2005-10-21  Simon Josefsson  <jas@extundo.com>
77313
77314         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
77315         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77316
77317 2005-10-21  Simon Josefsson  <jas@extundo.com>
77318
77319         * gnulib-tool (func_import, func_create_testdir): Define automake
77320         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
77321         Makefile.am snippet),
77322         suggested by Bruno Haible <bruno@clisp.org>.
77323
77324         * modules/gc (Makefile.am): Use it.
77325
77326 2005-10-21  Bruno Haible  <bruno@clisp.org>
77327
77328         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
77329         patch.
77330
77331 2005-10-19  Simon Josefsson  <jas@extundo.com>
77332
77333         * tests/test-gc-rijndael.c: New file.
77334
77335         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
77336
77337 2005-10-19  Simon Josefsson  <jas@extundo.com>
77338
77339         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
77340         interface too.
77341
77342 2005-10-19  Simon Josefsson  <jas@extundo.com>
77343
77344         * tests/test-gc-arcfour.c: New file.
77345
77346         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
77347
77348 2005-10-19  Simon Josefsson  <jas@extundo.com>
77349
77350         * modules/gc-md4, modules/gc-md4-tests: New file.
77351
77352         * tests/test-gc-md4.c: New file.
77353
77354 2005-10-19  Simon Josefsson  <jas@extundo.com>
77355
77356         * m4/gc-md4.m4: New file.
77357
77358 2005-10-19  Simon Josefsson  <jas@extundo.com>
77359
77360         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
77361         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
77362         <kasal@ucw.cz>.
77363
77364 2005-10-19  Simon Josefsson  <jas@extundo.com>
77365
77366         * m4/gc-arcfour.m4: New file.
77367
77368         * m4/gc-rijndael.m4: New file.
77369
77370 2005-10-19  Simon Josefsson  <jas@extundo.com>
77371
77372         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
77373
77374 2005-10-19  Simon Josefsson  <jas@extundo.com>
77375
77376         * lib/gc-gnulib.c: Support ARCFOUR.
77377
77378 2005-10-19  Simon Josefsson  <jas@extundo.com>
77379
77380         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
77381         support.
77382
77383         * lib/gc.h: Add ECB enum type.
77384
77385         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
77386
77387 2005-10-18  Simon Josefsson  <jas@extundo.com>
77388
77389         * tests/test-md5.c: New file.
77390
77391         * modules/md5-tests: New file.
77392
77393 2005-10-18  Simon Josefsson  <jas@extundo.com>
77394
77395         * tests/test-md4.c: New file.
77396
77397         * modules/md4, modules/md4-tests: New files.
77398
77399 2005-10-18  Simon Josefsson  <jas@extundo.com>
77400
77401         * m4/md4.m4: New file.
77402
77403 2005-10-18  Simon Josefsson  <jas@extundo.com>
77404
77405         * lib/md4.h, lib/md4.c: New files, based on md5.?.
77406
77407 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
77408
77409         * gnulib-tool (func_create_testdir): Omit the second check whether
77410         BUILT_SOURCES in nonempty.
77411
77412 2005-10-17  Simon Josefsson  <jas@extundo.com>
77413
77414         * tests/test-rijndael.c: New file.
77415
77416 2005-10-17  Simon Josefsson  <jas@extundo.com>
77417
77418         * modules/sha1: Depend on stdint instead of md5.
77419
77420         * modules/md5: Depend on stdint, remove uint32_t.
77421
77422 2005-10-17  Simon Josefsson  <jas@extundo.com>
77423
77424         * modules/gc-sha1-tests: New file.
77425
77426         * tests/test-gc-sha1.c: New file.
77427
77428 2005-10-17  Simon Josefsson  <jas@extundo.com>
77429
77430         * m4/md5.m4: Remove call to uint32_t.m4.
77431
77432 2005-10-17  Simon Josefsson  <jas@extundo.com>
77433
77434         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
77435
77436         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
77437         md5.h.
77438
77439         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
77440
77441         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
77442
77443 2005-10-17  Simon Josefsson  <jas@extundo.com>
77444
77445         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
77446
77447 2005-10-17  Simon Josefsson  <jas@extundo.com>
77448
77449         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
77450
77451 2005-10-17  Simon Josefsson  <jas@extundo.com>
77452
77453         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
77454
77455         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
77456
77457 2005-10-17  Bruno Haible  <bruno@clisp.org>
77458
77459         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
77460         that it can also be used in a test.
77461
77462 2005-10-16  Bruno Haible  <bruno@clisp.org>
77463
77464         * gnulib-tool (func_emit_tests_Makefile_am): Also define
77465         TESTS_ENVIRONMENT, so that individual tests can augment it.
77466
77467         * gnulib-tool (func_create_testdir): Use an intermediate target for
77468         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
77469         macros, like $(ALLOCA_H), which cannot be passed through the command
77470         line.
77471
77472 2005-10-15  Simon Josefsson  <jas@extundo.com>
77473
77474         * modules/rijndael-tests: New file.
77475
77476         * modules/rijndael: New file.
77477
77478 2005-10-15  Simon Josefsson  <jas@extundo.com>
77479
77480         * m4/rijndael.m4: New file.
77481
77482 2005-10-15  Simon Josefsson  <jas@extundo.com>
77483
77484         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
77485
77486         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
77487
77488 2005-10-14  Simon Josefsson  <jas@extundo.com>
77489
77490         * tests/test-arcfour.c: New file.
77491
77492         * modules/arcfour, modules/arcfour-tests: New files.
77493
77494 2005-10-14  Simon Josefsson  <jas@extundo.com>
77495
77496         * m4/arcfour.m4: New file.
77497
77498 2005-10-14  Simon Josefsson  <jas@extundo.com>
77499
77500         * lib/arcfour.h, lib/arcfour.c: New files.
77501
77502 2005-10-14  Roland McGrath  <roland@redhat.com>
77503
77504         Import from libc.  [BZ #1331]
77505         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
77506         macro argument.
77507         Reported by Matej Vela <vela@debian.org>.
77508
77509 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77510
77511         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
77512         include <wchar.h>; no longer needed.
77513
77514 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77515
77516         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
77517
77518 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
77519         and  Ulrich Drepper  <drepper@redhat.com>
77520
77521         Import from libc.
77522         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
77523         instead of inline stream orientation test and two separate
77524         function calls.  Pay no attention to USE_IN_LIBIO.
77525
77526 2005-10-13  Simon Josefsson  <jas@extundo.com>
77527
77528         * modules/gc-hmac-md5-tests: New file.
77529
77530         * tests/test-gc-hmac-sha1.c: New file.
77531
77532         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
77533
77534         * modules/gc-hmac-md5-tests: New file.
77535
77536         * tests/test-gc-md5.c: New file.
77537
77538         * modules/gc-md5-tests: New file.
77539
77540 2005-10-13  Simon Josefsson  <jas@extundo.com>
77541
77542         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
77543         Move memory allocation outside of loop.
77544
77545 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
77546
77547         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
77548         intermediate directory is in a read-only file system.  Problem
77549         reported by Eric Blake.
77550
77551 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
77552
77553         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
77554
77555 2005-10-12  Simon Josefsson  <jas@extundo.com>
77556
77557         * tests/test-hmac-sha1.c: New file.
77558
77559         * modules/hmac-sha1-tests: New file.
77560
77561         * modules/hmac-sha1: New file.
77562
77563 2005-10-12  Simon Josefsson  <jas@extundo.com>
77564
77565         * modules/gc-sha1: New file.
77566
77567 2005-10-12  Simon Josefsson  <jas@extundo.com>
77568
77569         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
77570
77571         * tests/test-gc-pbkdf2-sha1.c: New file.
77572
77573 2005-10-12  Simon Josefsson  <jas@extundo.com>
77574
77575         * modules/gc-md5, modules/gc-hmac-md5: New files.
77576
77577         * modules/gc (Files): Remove md5, memxor and hmac files.
77578
77579 2005-10-12  Simon Josefsson  <jas@extundo.com>
77580
77581         * m4/gc-pbkdf2-sha1.m4: New file.
77582
77583         * m4/gc-hmac-sha1.m4: New file.
77584
77585         * m4/gc-sha1: New file.
77586
77587         * m4/hmac-sha1.m4: New file.
77588
77589 2005-10-12  Simon Josefsson  <jas@extundo.com>
77590
77591         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
77592
77593         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
77594
77595 2005-10-12  Simon Josefsson  <jas@extundo.com>
77596
77597         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
77598         suggested by Bruno Haible <bruno@clisp.org>.
77599
77600 2005-10-12  Simon Josefsson  <jas@extundo.com>
77601
77602         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
77603
77604 2005-10-12  Simon Josefsson  <jas@extundo.com>
77605
77606         * lib/gc-pbkdf2-sha1.c: New file.
77607
77608         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
77609
77610 2005-10-12  Simon Josefsson  <jas@extundo.com>
77611
77612         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
77613
77614         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
77615
77616 2005-10-12  Simon Josefsson  <jas@extundo.com>
77617
77618         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
77619         GC_USE_HMAC_MD5, respectively.
77620
77621         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
77622         (gc_md5): Fix typo.
77623
77624         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
77625
77626         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
77627
77628         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
77629
77630 2005-10-12  Bruno Haible  <bruno@clisp.org>
77631
77632         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
77633         Reported by Stepan Kasal <kasal@ucw.cz>.
77634
77635 2005-10-11  Simon Josefsson  <jas@extundo.com>
77636
77637         * tests/test-crc.c: New file.
77638
77639         * modules/crc, modules/crc-tests: New files.
77640
77641 2005-10-11  Simon Josefsson  <jas@extundo.com>
77642
77643         * m4/crc.m4: New file.
77644
77645 2005-10-11  Simon Josefsson  <jas@extundo.com>
77646
77647         * lib/gc.h: Add gc_hash and gc_hash_buffer.
77648
77649         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
77650
77651         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
77652
77653 2005-10-11  Simon Josefsson  <jas@extundo.com>
77654
77655         * lib/crc.h, lib/crc.c: New files.
77656
77657         * lib/gc.h (gc_hash_buffer): Add doc.
77658
77659 2005-10-11  Bruno Haible  <bruno@clisp.org>
77660
77661         * modules/c-strcasestr: New file.
77662         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
77663
77664 2005-10-11  Bruno Haible  <bruno@clisp.org>
77665
77666         * modules/c-strcase: New file.
77667         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
77668
77669 2005-10-11  Bruno Haible  <bruno@clisp.org>
77670
77671         * lib/strcasecmp.c: Include limits.h.
77672         (strcasecmp): Avoid integer overflow on exotic platforms.
77673         * lib/strncasecmp.c: Include limits.h.
77674         (strncasecmp): Avoid integer overflow on exotic platforms.
77675         Reported by Paul Eggert.
77676
77677 2005-10-11  Bruno Haible  <bruno@clisp.org>
77678
77679         * lib/c-strcasestr.h: New file, from GNU gettext.
77680         * lib/c-strcasestr.c: New file, from GNU gettext.
77681
77682 2005-10-11  Bruno Haible  <bruno@clisp.org>
77683
77684         * lib/c-strcase.h: New file, from GNU gettext.
77685         * lib/c-strcasecmp.c: New file, from GNU gettext.
77686         * lib/c-strncasecmp.c: New file, from GNU gettext.
77687
77688 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77689
77690         * modules/mempcpy (License): GPL -> LGPL.
77691         * modules/strchrnul (License): Likewise.
77692         * modules/sysexits (License): Likewise.
77693
77694 2005-10-08  Simon Josefsson  <jas@extundo.com>
77695
77696         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
77697
77698 2005-10-07  Simon Josefsson  <jas@extundo.com>
77699
77700         * m4/memxor.m4: Remove gl_C_RESTRICT call.
77701
77702 2005-10-06  Simon Josefsson  <jas@extundo.com>
77703
77704         * tests/test-hmac-md5.c: New file.
77705
77706         * modules/hmac-md5-tests: New file.
77707
77708         * modules/hmac-md5: New file.
77709
77710 2005-10-06  Simon Josefsson  <jas@extundo.com>
77711
77712         * m4/hmac-md5.m4: New file.
77713
77714         * m4/memxor.m4: Require gl_C_RESTRICT.
77715
77716 2005-10-06  Simon Josefsson  <jas@extundo.com>
77717
77718         * lib/memxor.c (memxor): Avoid casts and warnings.
77719
77720 2005-10-06  Simon Josefsson  <jas@extundo.com>
77721
77722         * lib/hmac-md5.c: New file.
77723
77724         * lib/hmac.h: New file.
77725
77726 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77727
77728         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
77729         promotes to int, not unsigned int, to catch the AIX 5.3
77730         compiler bug.
77731
77732 2005-10-05  Simon Josefsson  <jas@extundo.com>
77733
77734         * modules/memxor: New file.
77735
77736         * modules/iconv (Files): Move config.rpath to havelib, it is used
77737         there.
77738
77739         * modules/havelib (Files): Add config.rpath.
77740
77741 2005-10-05  Simon Josefsson  <jas@extundo.com>
77742
77743         * m4/memxor.m4: New file.
77744
77745 2005-10-05  Simon Josefsson  <jas@extundo.com>
77746
77747         * lib/memxor.c (memxor): Fix compiler error.
77748
77749         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
77750         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
77751
77752         * lib/memxor.h, lib/memxor.c: New files.
77753
77754         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
77755         we assume all systems have it, suggested by Jim Meyering
77756         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
77757         any systems lack sys/socket.h; mingw32 is known to lack it, but we
77758         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
77759         same reasons.
77760
77761 2005-10-05  Simon Josefsson  <jas@extundo.com>
77762
77763         * config/srclist.txt: Add glibc bug 1423 for md5.h.
77764
77765 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77766
77767         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
77768         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
77769         needed, since the source code now assumes these .h files.
77770
77771 2005-10-05  Derek Price  <derek@ximbiot.com>
77772
77773         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
77774
77775 2005-10-05  Bruno Haible  <bruno@clisp.org>
77776
77777         * modules/stdint (License): Change to LGPL.
77778
77779 2005-10-04  Simon Josefsson  <jas@extundo.com>
77780
77781         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
77782         D. Baushke" <mdb@gnu.org>.
77783
77784 2005-10-04  Bruno Haible  <bruno@clisp.org>
77785
77786         * lib/verify.h (verify_true): Provide alternative definition for C++.
77787
77788 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
77789
77790         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
77791         (SSIZE_MAX): New macro, if not already defined.
77792         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
77793         than 2 GiB.
77794
77795 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         Sync from coreutils.
77798         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
77799         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
77800         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
77801         ULLONG_MAX doesn't work with 2.7.2.1.
77802
77803 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77804
77805         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
77806         From Ben Pfaff.
77807
77808         * modules/exclude (Depends-on): Depend on verify.
77809         * modules/strtoimax (Depends-on): Likewise.
77810         * modules/utimecmp (Depends-on): Likewise.
77811
77812 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         * lib/exclude.c: Include verify.h.
77815         (verify): Remove.  All callers changed to use verify.h's version.
77816         * lib/strtoimax.c: Likewise.
77817         * lib/utimecmp.c: Likewis.e
77818
77819         Sync from coreutils.
77820         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
77821         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
77822         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
77823         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
77824         bother returning ENOSYS if settimeofday or stime fails; just let
77825         them return whatever errno they want to return.
77826         * lib/utimens.c: Include unistd.h, for dup2.
77827         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
77828         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
77829
77830 2005-10-02  Jim Meyering  <jim@meyering.net>
77831
77832         Sync from coreutils.
77833         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
77834         from glibc-2.2.5 that fails for read-only files.
77835
77836 2005-10-02  Jim Meyering  <jim@meyering.net>
77837
77838         Sync from coreutils.
77839         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
77840         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
77841         `#if HAVE_CONFIG_H'.
77842         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
77843         Remove AT_FDCWD test.
77844         Do not consume the fd unless successful.
77845         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
77846         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
77847         block, so that we don't even try to compile it if settimeofday is
77848         available.  This works around a compilation failure on OSF1 V5.1,
77849         due to stime requiring a `long int*' while tv_sec is `int'.
77850
77851 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
77852
77853         Sync from coreutils.
77854         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
77855         against `yes', rather than just testing for nonempty.
77856
77857 2005-10-01  Simon Josefsson  <jas@extundo.com>
77858
77859         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
77860         and Darwin.
77861
77862         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
77863         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
77864         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
77865         freeaddrinfo and gai_strerror are declared by the POSIX headers.
77866         Check if struct addrinfo is declared.
77867
77868 2005-10-01  Simon Josefsson  <jas@extundo.com>
77869
77870         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
77871         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
77872         AI_* and EAI_* definitions.  Protect function declarations.
77873
77874 2005-10-01  Jim Meyering  <jim@meyering.net>
77875
77876         Sync from coreutils.
77877
77878         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
77879         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
77880         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
77881         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77882         in the inet and nsl libraries.  Required on Solaris 5.7.
77883
77884 2005-10-01  Jim Meyering  <jim@meyering.net>
77885
77886         Sync from coreutils.
77887         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
77888         in the inet and nsl libraries.  Required on Solaris 5.7.
77889
77890 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
77891
77892         * lib/getdelim.c (getdelim): Remove unused variables.
77893
77894 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77895
77896         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
77897         so that the code works even with ancient cpp.  Portability problem
77898         with GCC 2.7.2.1 reported by Thomas M.Ott.
77899
77900 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77901
77902         * modules/regex (Depends-on): Add strcase.
77903
77904         * modules/gethostname (Licence): Change from GPL to LGPL, since
77905         gethostname.c is a trivial implementation of a standard library
77906         function.
77907         * modules/poll (License): Change from GPL to LGPL, since it's
77908         derived from LGPL code.
77909
77910 2005-09-27  Jim Meyering  <jim@meyering.net>
77911
77912         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
77913         HAVE_CONFIG_H.
77914
77915         * lib/intprops.h (signed_type_or_expr__): Define.
77916         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
77917         for unsigned types.
77918
77919 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77920
77921         * lib/verify.h (verify_expr): Remove, replacing with:
77922         (verify_true): New macro that returns true instead of void.
77923         (verify_type__): Remove.
77924         (verify): Use verify_true rather than verify_type__.
77925
77926 2005-09-26  Bruno Haible  <bruno@clisp.org>
77927
77928         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
77929         is necessary.
77930         (lib_SOURCES): Remove mbchar.c.
77931         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
77932         (Files): Add m4/mbrtowc.m4.
77933         * modules/mbiter: Likewise.
77934         * modules/mbuiter: Likewise.
77935
77936 2005-09-26  Bruno Haible  <bruno@clisp.org>
77937
77938         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
77939         compile mbchar.c if they are not both present.
77940         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
77941         * m4/mbiter.m4 (gl_MBITER): Likewise.
77942         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
77943         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
77944         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
77945
77946 2005-09-25  Jim Meyering  <jim@meyering.net>
77947
77948         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
77949         also uses socklen_t.
77950
77951 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
77952
77953         * lib/utimens.c (ENOSYS): Define if not already defined.
77954         (futimens): Support having a null PATH if the file descriptor
77955         is nonnegative.
77956
77957         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
77958         Remove.
77959         (__attribute): Define to empty unless GCC 3.1 or later.
77960         This works around a core dump on OpenBSD 3.4, which has GCC
77961         2.95.3, which dumps core when given __attribute__(()).  It also
77962         simplifies other tests, since we really don't want to bother with
77963         worrying about which ancient version of GCC supported what.
77964         Original problem reported by Yoann Vandoorselaere, with part of
77965         the fix suggested by Derek Price.
77966
77967 2005-09-24  Jim Meyering  <jim@meyering.net>
77968
77969         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
77970         so we can once again use a positive bitfield width of 1 -- now we
77971         don't have to explain why we were using a bitfield width of 2.
77972
77973 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77974
77975         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
77976         and similarly for the other external symbols.  Problem reported
77977         by James Gallager.
77978
77979         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
77980         bug reported by Jim Meyering.
77981
77982         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
77983         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
77984         not needed, since socklen is a prerequisite module.
77985
77986 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
77987
77988         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
77989         Problem reported by Eric Blake.
77990         (getaddrinfo): Initialize se so that it's not garbage.
77991         Redo internal storage allocation so that it doesn't make unportable
77992         assumptions about alignment.
77993         Fix a memory leak.
77994
77995         * lib/utimens.c (futimens): Use futimesat if available.
77996         Prefer it to futimes since it doesn't have the futimes bug.
77997
77998         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
77999         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
78000         Instead, declare a function that returns a pointer to an array,
78001         and use verify_type__ to declare the size of the array.
78002         Problem and germ of a solution reported by Bruno Haible.
78003         (verify_type__): Use 2, not 1, for bitfield size, to avoid
78004         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
78005
78006 2005-09-23  Jim Meyering  <jim@meyering.net>
78007
78008         Sync from coreutils.
78009         Correct build failure (socklen_t not defined) on at least
78010         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
78011         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
78012
78013 2005-09-23  Jim Meyering  <jim@meyering.net>
78014
78015         * modules/getaddrinfo (Depends-on): Add socklen.
78016
78017 2005-09-23  Bruno Haible  <bruno@clisp.org>
78018
78019         * tests/test-verify.c: New file.
78020
78021 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         Sync from coreutils.
78024
78025         * modules/argmatch (Depends-on): Add verify.
78026         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
78027         unistd-safer.
78028         * modules/save-cwd (Depends-on): Likewise.
78029
78030         * modules/openat (Files): Add lib/openat-die.c.
78031         (Depends-on): Remove error, exitfail.
78032         Add dirname.
78033
78034         * modules/verify: New file.
78035         * MODULES.html.sh (Diagnostics <assert.h>): New section,
78036         with "verify" module.
78037
78038 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         Sync from coreutils.
78041
78042         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
78043         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
78044         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
78045         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
78046         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
78047         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
78048         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
78049         Don't bother checking for string.h, stdlib.h, unistd.h.
78050         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
78051         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
78052         module's job.
78053         * m4/jm-macros.m4 (gl_MACROS): Likewise.
78054         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
78055
78056         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
78057         (gl_GETDATE): Use it.
78058
78059         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
78060
78061 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78062
78063         Sync from coreutils.
78064
78065         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
78066         stat-time.h.
78067         * lib/argmatch.h: Include verify.h
78068         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
78069         (ARGMATCH_ASSERT): Remove; unused.
78070         * lib/canonicalize.c: Assume STDC_HEADERS.
78071         * lib/exclude.c: Include "strcase.h".
78072         * lib/regex_internal.h [!defined _LIBC]: Likewise.
78073         * lib/getusershell.c: Include stdio--.h rather than stdio.h
78074         and stdio-safer.h.
78075         (getusershell): Call fopen, not fopen_safer.
78076         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
78077         Do not include unistd-safer.h.
78078         (save_cwd): Don't call fd_safer; no longer needed
78079         now that we include fcntl--.h.
78080
78081         * lib/getdate.y (relative_time): New type.
78082         (RELATIVE_TIME_0): New constant.
78083         (parser_control): Use relative_time instead of doing it ourselves.
78084         (%union): Add new relative_time rel member.
78085         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
78086         Now typeless.
78087         (relunit, relunit_snumber): Now of type rel.
78088         (zone, rel, relunit, get_date): Adjust to above changes.
78089
78090         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
78091         Do not include unistd-safer.h.
78092         (getloadavg): Don't call fd_safer; no longer needed
78093         now that we include fcntl--.h.
78094
78095         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
78096         (make_dir_parents): Treat ENOSYS like EEXIST.
78097
78098         Improve quality of diagnostics on restore_cwd failure.
78099         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
78100         (make_dir_parents): Last arg is now int * (for errno), not bool *.
78101         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
78102         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
78103         each time through the loop.  Do not diagnose restore_cwd failure;
78104         that is the caller's job (and perhaps the caller does not care).
78105
78106         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
78107         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
78108         If the file already exists but is not a directory, don't bother
78109         to try to make its parents.
78110         Close potential file descriptor leak if we can't chdir("/") (!).
78111         Don't always return true if chdir($PWD) fails; return true only
78112         if the requested action was done successfully (except for the
78113         chdir($PWD)).
78114         Don't log final directory unless we actually made it.
78115         Refactor to avoid duplicate code to fix up permissions.
78116         Don't attempt to fix up parent permissions if chdir($PWD) fails.
78117
78118         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
78119         to make it a bit faster and (I hope) clearer.
78120         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
78121         Fix bug in formats like %2N.
78122
78123         * lib/verify.h: New file.
78124
78125 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78126
78127         Sync from coreutils.
78128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
78129
78130 2005-09-22  Jim Meyering  <jim@meyering.net>
78131
78132         Sync from coreutils.
78133
78134         * m4/lstat.m4 (gl_FUNC_LSTAT):
78135         Use AC_LIBSOURCES to require lstat.c and lstat.h.
78136         Remove obsolete comment.
78137         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
78138         * m4/xstrtod.m4: Likewise.
78139
78140         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
78141
78142 2005-09-22  Jim Meyering  <jim@meyering.net>
78143
78144         Sync from coreutils.
78145
78146         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
78147
78148         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
78149         the .tm_year member, since otherwise gcc-4.0 would now warn about
78150         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
78151
78152         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
78153         order to avoid an unsuppressible warning from gcc on 64-bit systems.
78154
78155         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
78156         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
78157         when run in a time zone for which daylight savings time is in effect
78158         for the starting date.
78159
78160         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
78161         stop us from restricting permissions of just-created absolute-named
78162         directories.
78163         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
78164         to restore initial working directory.
78165         * lib/mkdir-p.c (make_dir_parents): New parameter:
78166         different_working_dir, to tell caller if/when we change the working
78167         directory and are unable to return to the initial one.
78168         * lib/mkdir-p.h (make_dir_parents): Update prototype.
78169         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
78170         `return false'.  This fixes a bug introduced on 2004-07-30.
78171
78172         * lib/openat.c (fdopendir): Be sure to close the supplied
78173         file descriptor before returning.  This makes our replacement
78174         implementation a little closer to Solaris's, where fdopendir
78175         ties the file descriptor to the returned DIR* pointer.
78176         * lib/openat.c (unlinkat): New function.
78177         * lib/openat.h (unlinkat): Add prototype.
78178         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
78179         (openat_restore_fail): Rename from openat_restore_die.
78180         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
78181
78182         Provide an alternative to exiting immediately upon save_cwd or
78183         restore_cwd failure.  Now, an application can arrange e.g.,
78184         to perform a longjump in that case.
78185         * lib/openat.c: Include dirname.h.
78186         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
78187         (rpl_openat, fdopendir, fstatat): Call openat_save_die
78188         and openat_restore_die rather than calling error directly.
78189         Don't include "error.h" or "exitfail.h"; they're no longer needed.
78190
78191         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
78192         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
78193         define.
78194
78195         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
78196         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
78197                             int utc, int nanoseconds);
78198         Background:
78199         date should not have to allocate a megabyte of virtual memory to
78200         handle a format argument like +%1048575T.  When implemented with
78201         strftime, it must allocate such a buffer, use strftime to fill it
78202         in, print it, then free it.
78203         With fprintftime, it simply prints everything and exits.
78204         With no need for memory allocation, that's one fewer way to fail.
78205         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
78206         optional field width, not before, so we accept %9:z, not %:9z.
78207         (my_strftime): Be sure to use L_('x') for literals.
78208
78209         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
78210         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
78211         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
78212         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
78213         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
78214         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
78215         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
78216         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
78217         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
78218         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
78219         * lib/xgethostname.c, lib/xreadlink.c:
78220         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
78221
78222         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
78223         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
78224         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
78225         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78226         and don't include <sys/file.h>).
78227
78228 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
78229
78230         Sync from coreutils.
78231
78232         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
78233         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
78234         [!LDAV_DONE]: Avoid unused variable warning.
78235
78236 2005-09-21  Bruno Haible  <bruno@clisp.org>
78237
78238         * lib/unicodeio.h (unicode_to_mb): New declaration.
78239
78240 2005-09-20  Derek Price  <derek@ximbiot.com>
78241
78242         * lib/getaddrinfo.c: Don't include <netdb.h> included from
78243         getaddrinfo.h.
78244
78245 2005-09-20  Bruno Haible  <bruno@clisp.org>
78246
78247         * gnulib-tool: Remove trailing slashes from the values specified for
78248         --source-base, --m4-base, --tests-base, --aux-dir.
78249         Suggested by Simon Josefsson <jas@extundo.com>.
78250
78251 2005-09-20  Bruno Haible  <bruno@clisp.org>
78252
78253         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
78254         func_modules_to_filelist, func_import, func_create_testdir): Make all
78255         sorting results locale-independent, so that gnulib-cache.m4 doesn't
78256         change when gnulib-tool is invoked in a different locale.
78257
78258 2005-09-19  Simon Josefsson  <jas@extundo.com>
78259
78260         * m4/socklen.m4: Fix typo.
78261
78262 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78263
78264         Use a consistent style for including <config.h>.
78265         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
78266         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
78267         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
78268         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
78269         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
78270         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
78271         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
78272         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
78273         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
78274         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
78275         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
78276         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
78277         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
78278         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
78279         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
78280         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
78281         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
78282         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
78283         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
78284         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
78285         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
78286         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
78287         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
78288         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
78289         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
78290         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
78291         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
78292         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
78293         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
78294         lib/xstrtoumax.c, lib/yesno.c:
78295         Standardize inclusion of config.h.
78296         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
78297         lib/inttostr.h:  Removed inclusion of config.h from header files.
78298         * lib/inttostr.c:  Adjusted in-tree users.
78299         * lib/timespec.h: Remove superfluous warning to include config.h.
78300         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
78301         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
78302         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
78303         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
78304         config.h with HAVE_CONFIG_H.
78305
78306 2005-09-19  Jim Meyering  <jim@meyering.net>
78307
78308         * modules/pathmax (License): Change to LGPL.
78309
78310 2005-09-19  Derek Price  <derek@ximbiot.com>
78311
78312         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
78313
78314 2005-09-19  Bruno Haible  <bruno@clisp.org>
78315
78316         * gnulib-tool (import): Provide default for --tests-base.
78317
78318 2005-09-19  Bruno Haible  <bruno@clisp.org>
78319
78320         * doc/quote.texi: New file, extracted from gnulib.texi.
78321         * doc/ctime.texi: New file, extracted from gnulib.texi.
78322         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
78323         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
78324         * doc/gnulib.texi: Include them.
78325
78326 2005-09-18  Bruno Haible  <bruno@clisp.org>
78327
78328         Portability fix.
78329         * gnulib-tool (func_readlink): New function.
78330         (func_ln_if_changed): Use it.
78331
78332 2005-09-18  Bruno Haible  <bruno@clisp.org>
78333
78334         * gnulib-tool: Support --with-tests also with --import.
78335         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
78336         (func_import): Use variables $testsbase and $inctests. Emit a
78337         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
78338         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
78339         SUBDIRS += $testsdir.
78340         (func_create_testdir): Update.
78341
78342 2005-09-18  Bruno Haible  <bruno@clisp.org>
78343
78344         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
78345         instead of $dry_run.
78346         (func_cp_if_changed, func_mv_if_changed): Remove functions.
78347         (func_ln_if_changed): Don't handle dry-run here.
78348         (func_import): In dry-run mode, detect more precisely which actions
78349         would be performed, and don't use "...ing" verbs.
78350
78351 2005-09-18  Bruno Haible  <bruno@clisp.org>
78352
78353         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
78354         (func_import): Use join on two temporary files instead of three nested
78355         loops, in order to determine which files are new or old.
78356
78357 2005-09-18  Bruno Haible  <bruno@clisp.org>
78358
78359         * gnulib-tool (func_import): Comment out code that spits out the
78360         new files with --dry-run.
78361
78362 2005-09-18  Bruno Haible  <bruno@clisp.org>
78363
78364         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
78365
78366 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78367
78368         * lib/stat-time.h: New file.
78369         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
78370         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
78371         in a different way.
78372         (timespec_cmp): New function.
78373         * lib/utimecmp.c: Include stat-time.h.
78374         (SYSCALL_RESOLUTION): Depend on whether various struct stat
78375         members exist, not on the obsolescent ST_MTIM_NSEC.
78376         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
78377
78378 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78379
78380         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
78381
78382 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78383
78384         * MODULES.html.sh (File system functions): Add stat-time.
78385         * modules/stat-time: New file.
78386         * modules/timespec (Files): Remove m4/st_mtim.m4; this
78387         is now done in a different way, by the stat-time module.
78388         * modules/utimecmp (Depends-on): Add stat-time.
78389
78390 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78391
78392         * m4/st_mtim.m4: Remove.  Superseded by...
78393         * m4/stat-time.m4: New file.
78394         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
78395         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
78396
78397 2005-09-15  Derek Price  <derek@ximbiot.com>
78398
78399         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
78400
78401 2005-09-15  Derek Price  <derek@ximbiot.com>
78402
78403         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
78404         * lib/regex_internal.c: Ditto, using this...
78405         (__GNUC_PREREQ): ...new macro.
78406         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
78407         using...
78408         (__GNUC_PREREQ): ...this new macro.
78409
78410         * lib/strstr.h: Include string.h. Define strstr as a macro here.
78411
78412 2005-09-15  Derek Price  <derek@ximbiot.com>
78413             Paul Eggert  <eggert@cs.ucla.edu>
78414
78415         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
78416         changes, consolidating in...
78417         * lib/regex_internal.h: ...this file.
78418
78419 2005-09-13  Jim Meyering  <jim@meyering.net>
78420
78421         * lib/canon-host.c: Filter through gnu indent and reword comments
78422         slightly.
78423         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
78424
78425 2005-09-13  Derek Price  <derek@ximbiot.com>
78426
78427         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
78428         failure.
78429         Reported by Jim Meyering  <jim@meyering.net>.
78430
78431 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78432
78433         * lib/base64.c: Typo.
78434         (base64_encode): Put b64str in initialized data section.
78435
78436 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
78437
78438         Merge glibc and coreutils changes into gnulib, plus a few
78439         extra fixes.
78440         * lib/md5.c: Use #error rather than a string.
78441         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
78442         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
78443         (__attribute__): Define to empty for non recent-GCC.
78444         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
78445         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
78446         Renamed from their non-__ counterparts, with new macros replacing
78447         them if not _LIBC.  Add __THROW attribute.
78448         (rol): Remove.
78449         (struct md5_ctx): Align buffer if using GCC.
78450         * lib/sha1.h (struct sha1_ctx): Likewise.
78451         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
78452         The old name was backwards.
78453         (NOTSWAP): Remove; not used.
78454         (rol): New macro, moved here from md5.h.
78455         (sha1_process_block): Remove a FIXME that doesn't make sense.
78456
78457 2005-09-12  Derek Price  <derek@ximbiot.com>
78458
78459         Return usable errors from canon-host.
78460         * lib/canon-host.h: New file.
78461         * lib/canon-host.c (canon_host): Wrap...
78462         (canon_host_r): ...this new function, which now relies exclusively on
78463         getaddrinfo.
78464         (ch_strerror): New function.
78465         (last_cherror): New global.
78466         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
78467         interface.
78468         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
78469         void *.
78470         (freeaddrinfo): Free ai->ai_canonname when set.
78471
78472 2005-09-12  Derek Price  <derek@ximbiot.com>
78473
78474         Make canon-host require getaddrinfo.
78475         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
78476         AC_LIBSOURCE canon-host.h.  Call...
78477         (gl_PREREQ_CANON_HOST): ...this new function, which requires
78478         gl_GETADDRINFO.
78479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
78480
78481 2005-09-12  Derek Price  <derek@ximbiot.com>
78482
78483         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
78484         LGPL.
78485         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
78486
78487 2005-09-12  Derek Price  <derek@ximbiot.com>
78488
78489         * lib/gai_strerror.c: Include config.h when available.  Include
78490         getaddrinfo.h before other headers to test interface.
78491         Reported by Larry Jones <lawrence.jones@ugs.com>.
78492
78493 2005-09-12  Derek Price  <derek@ximbiot.com>
78494             Paul Eggert  <eggert@cs.ucla.edu>
78495
78496         * modules/glob (Files): Add glob-libc.h.
78497
78498 2005-09-12  Derek Price  <derek@ximbiot.com>
78499             Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
78502         glob_.h, glob-libc.h.
78503         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
78504
78505 2005-09-12  Derek Price  <derek@ximbiot.com>
78506             Paul Eggert  <eggert@cs.ucla.edu>
78507
78508         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
78509         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
78510         protecting things that should be done only in gnulib contexts.
78511         * lib/glob_.h: New file, containing only the glob things needed for
78512         gnulib.
78513         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
78514         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
78515         (glob, globfree, glob_pattern_p): Now defined simply in terms of
78516         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
78517         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
78518         and to respect the namespace rules better.
78519
78520 2005-09-08  Simon Josefsson  <jas@extundo.com>
78521
78522         * modules/socklen: New file.
78523
78524 2005-09-08  Simon Josefsson  <jas@extundo.com>
78525
78526         * m4/socklen.m4: New file.
78527
78528 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78529
78530         * modules/utimens (Files): Add m4/utimbuf.m4, since
78531         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
78532         Reported by Sergey Poznyakoff.
78533
78534 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78535
78536         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
78537         definitions, since that's the preferred style in glibc.
78538         Fix a minor spacing issue, and update copyright notice to match
78539         glibc's.
78540
78541 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78542
78543         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
78544
78545 2005-09-06  Simon Josefsson  <jas@extundo.com>
78546
78547         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
78548         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
78549
78550 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
78553         warning.
78554
78555 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78556
78557         * config/srclist.txt: Add glibc bug 1302.
78558
78559 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
78560
78561         Change bitset word type from unsigned int to unsigned long int,
78562         as this has better performance on typical 64-bit hosts.
78563         Port bitset code to hosts with unusual word sizes.
78564         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
78565         (build_collating_symbol):
78566         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
78567         argument is a bitset.  This is merely a style issue, but it makes
78568         it clearer that an entire array is expected.
78569         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
78570         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
78571         Port to the case where bitset_word is not the same as unsigned int.
78572         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78573         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
78574         Likewise.
78575         * lib/regexec.c (check_dst_limits_calc_pos_1,
78576         check_subexp_matching_top):
78577         (build_trtable, group_nodes_into_DFAstates):
78578         Likewise.
78579         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
78580         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
78581         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
78582         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
78583         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
78584         * lib/regcomp.c (optimize_subexps, lower_subexp):
78585         Work even if bitset_word has holes in its bitwise representation.
78586         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
78587         * lib/regexec.c (check_dst_limits_calc_pos_1,
78588         check_subexp_matching_top):
78589         Likewise.
78590         * lib/regex_internal.c (re_string_reconstruct):
78591         Don't assume UCHAR_MAX == 255.
78592         * lib/regex_internal.h (bitset_set_all): Likewise.
78593         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
78594         All uses changed.
78595         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
78596         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
78597         All uses changed.
78598         (BITSET_WORD_MAX): New macro.
78599         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
78600         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
78601         (bitset_empty, bitset_copy):
78602         Prefer sizeof (bitset) to multiplying it out ourselves.
78603         (bitset_not_merge): Remove; unused.
78604         (bitset_contain): Return bool, not unsigned int with one bit on.
78605         All callers changed.
78606         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
78607         alignment than re_node_set; do this by defining a new internal
78608         type struct dests_alloc and using it to allocate memory.
78609
78610 2005-09-05  Bruno Haible  <bruno@clisp.org>
78611
78612         * gnulib-tool (func_import): Fix comparison in handling of symbolic
78613         links.
78614
78615 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
78616
78617         * modules/size_max (Makefile.am): Add size_max.h
78618
78619 2005-09-04  Derek Price  <derek@ximbiot.com>
78620
78621         * gnulib-tool (func_import): Fix reversed $symbolic logic.
78622
78623 2005-09-03  Simon Josefsson  <jas@extundo.com>
78624
78625         * gnulib-tool: Fix typo.
78626
78627 2005-09-03  Simon Josefsson  <jas@extundo.com>
78628
78629         * config/srclist.txt: Add glibc bug 1293.
78630
78631 2005-09-03  Derek Price  <derek@ximbiot.com>
78632
78633         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
78634         From Larry Jones <lawrence.jones@ugs.com>.
78635
78636 2005-09-02  Simon Josefsson  <jas@extundo.com>
78637
78638         * modules/socklen: New file.
78639
78640 2005-09-02  Simon Josefsson  <jas@extundo.com>
78641
78642         * modules/havelib: New module.
78643
78644         * modules/gettext, modules/iconv, modules/lock, modules/readline:
78645         Use havelib.
78646
78647 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
78648
78649         Check for arithmetic overflow when calculating sizes, to prevent
78650         some buffer-overflow issues.  These patches are conservative, in the
78651         sense that when I couldn't determine whether an overflow was possible,
78652         I inserted a run-time check.
78653         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
78654         macros.
78655         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
78656         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
78657         (re_xnrealloc, re_x2nrealloc): New inline functions.
78658         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
78659         parse_bracket_exp):
78660         (build_equiv_class, build_charclass): Check for arithmetic overflow
78661         in size expression calculations.
78662         * lib/regex_internal.c (re_string_realloc_buffers):
78663         (build_wcs_upper_buffer, re_node_set_add_intersect):
78664         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
78665         (re_dfa_add_node, register_state): Likewise.
78666         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
78667         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
78668         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
78669         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
78670
78671 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
78672
78673         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78674         m4/ulonglong.m4.  Problem reported by Martin Lambers.
78675
78676 2005-09-02  Bruno Haible  <bruno@clisp.org>
78677
78678         Support for lib vs. lib64 distinction on biarch platforms.
78679         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
78680         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
78681         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
78682
78683 2005-09-02  Bruno Haible  <bruno@clisp.org>
78684
78685         * gnulib-tool (import): In the other first-use case, provide defaults
78686         as well.
78687
78688 2005-09-02  Bruno Haible  <bruno@clisp.org>
78689
78690         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
78691         patches not yet found in the latest gettext release.
78692
78693 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78694
78695         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
78696         to avoid a collision with bits/local_lim.h in glibc.
78697         All uses changed.  Problem reported by Dmitry V. Levin in
78698         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
78699
78700         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
78701         bugs in int versus size_t comparisons.
78702         (re_string_context_at): Fix bug where the code assumed that
78703         Idx is signed.
78704
78705         Use bool where appropriate.
78706         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
78707         All callers changed.
78708         (calc_eclosure_iter): Likewise, for ROOT arg.
78709         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
78710         (build_charclass_op): Likewise, for NON_MATCH arg.
78711         * lib/regex_internal.c (re_string_allocate, re_string_construct):
78712         (re_string_construct_common): Likewise, for ICASE arg.
78713         * lib/regexec.c (re_search_2_stub, re_search_stub):
78714         Likewise, for RET_LEN arg.
78715         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
78716         (set_regs): Likewise, for FL_BACKTRACK arg.
78717         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
78718         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
78719         (calc_eclosure_iter, parse_bracket_exp):
78720         Use bool for internal variables that are booleans.
78721         * lib/regexec.c (re_search_internal, check_matching,
78722         proceed_next_node):
78723         (set_regs, build_sifted_states, sift_states_bkref):
78724         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
78725         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78726         (find_collation_sequence_value):
78727         Likewise.
78728         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
78729         (re_node_set_compare):
78730         Return bool, not int. All callers changed.
78731         * lib/regexec.c (check_halt_node_context, check_dst_limits):
78732         (build_trtable, check_node_accept): Likewise.
78733         * lib/regex_internal.h: Include stdbool.h.
78734
78735         Fix bugs uncovered when converting to bool.
78736         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
78737         failure instead of charging ahead blindly.
78738         * lib/regex_internal.c (register_state): Likewise.
78739         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
78740         for freeing internal storage.
78741         (group_nodes_into_DFA_states): Use unsigned int, not int, for
78742         bitset pieces used as boolean, to avoid undefined behavior
78743         on hosts that do int overflow checking.
78744
78745 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78746
78747         * config/srclist.txt: Add glibc bugs 1285-1287.
78748
78749 2005-09-01  Jim Meyering  <jim@meyering.net>
78750
78751         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
78752         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
78753         Require gl_STAT_MACROS, too.
78754
78755 2005-09-01  Bruno Haible  <bruno@clisp.org>
78756
78757         * gnulib-tool (import): In the first-use case, provide defaults.
78758
78759 2005-09-01  Bruno Haible  <bruno@clisp.org>
78760
78761         * gnulib-tool (func_import): Remove the .tmp files.
78762
78763 2005-09-01  Bruno Haible  <bruno@clisp.org>
78764
78765         * gnulib-tool (func_import): Fix handling of symbolic links.
78766
78767 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
78770         old glibc regex code mishandles strings longer than 2**31 bytes.
78771         This patch fixes this when the regex code is used in gnulib
78772         (i.e., outside glibc).
78773
78774         This patch should not affect the use of the regex code inside
78775         glibc.  No doubt this problem also needs to be handled for glibc
78776         as well, but the result will be an incompatible change to the
78777         glibc ABI, and the old ABI will have to be supported too.  That
78778         can be the the subject for another patch.
78779
78780         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
78781         governing whether the rest of this patch is active.  By default,
78782         the macro is disabled and the patch has no effect.
78783         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
78784         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
78785         (struct re_pattern_buffer, re_search, re_search_2, re_match):
78786         (re_match_2, re_set_registers): Use the new types.
78787         * lib/regex_internal.h (Idx, re_hashval_t): New types.
78788         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
78789         New macros.
78790         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
78791         (re_string_context_at, bin_tree_t, re_dfastate_t):
78792         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
78793         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
78794         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
78795         (re_string_char_size_at, re_string_wchar_at):
78796         (re_string_elem_size_at):
78797         Use the new types and macros to port to 64-bit hosts.
78798         Use unsigned types for internal values, so that the code
78799         mostly works even for arrays larger than SSIZE_MAX.
78800         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
78801         (search_duplicated_node, calc_eclosure_iter, fetch_number):
78802         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
78803         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
78804         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
78805         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
78806         (calc_inveclosure, parse_dup_op, build_range_exp):
78807         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
78808         (fetch_number, create_token_tree, mark_opt_subexp):
78809         Likewise.
78810         * lib/regex_internal.c (re_string_construct_common,
78811         create_ci_newstate):
78812         (create_cd_newstate, re_string_allocate, re_string_construct):
78813         (re_string_realloc_buffers, build_wcs_upper_buffer):
78814         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78815         (re_string_reconstruct, re_string_peek_byte_case):
78816         (re_string_fetch_byte_case, re_string_context_at):
78817         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78818         (re_node_set_init_copy, re_node_set_add_intersect):
78819         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78820         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78821         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78822         (re_acquire_state, re_acquire_state_context, register_state):
78823         Likewise.
78824         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
78825         search_cur_bkref_entry):
78826         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
78827         (re_search_internal, re_search_2_stub, re_search_stub)
78828         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
78829         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
78830         (update_cur_sifted_state, check_dst_limits):
78831         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78832         (check_subexp_limits, sift_states_bkref, merge_state_array):
78833         (check_subexp_matching_top, get_subexp, get_subexp_sub):
78834         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
78835         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78836         (expand_bkref_cache, check_node_accept_bytes):
78837         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
78838         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
78839         (acquire_init_state_context, check_halt_node_context):
78840         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
78841         (sift_states_backward, clean_state_log_if_needed):
78842         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
78843         (find_recover_state, transit_state_sb, transit_state_mb):
78844         (transit_state_bkref, build_trtable, match_ctx_clean):
78845         Likewise.
78846         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
78847         to work around an assumption that REG_MISSING is negative.
78848
78849         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
78850         (seek_collating_symbol_entry) [defined _LIBC]:
78851         (lookup_collation_sequence_value) [defined _LIBC]:
78852         (build_range_exp, build_collating_symbol) [defined _LIBC]:
78853         Use prototypes rather than old-style function definitions.
78854         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
78855         (transit_state_sb) [0]:
78856         (find_collation_sequence_value) [defined _LIBC]: Likewise.
78857
78858         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
78859         rm_eo.
78860
78861         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
78862         (optimize_subexps, lower_subexp):
78863         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
78864         since the signed shift might overflow.  Use 1u<<31 instead.
78865         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
78866         Likewise.
78867         * lib/regexec.c (check_dst_limits_calc_pos_1,
78868         check_subexp_matching_top): Likewise.
78869
78870         * lib/regcomp.c (optimize_subexps, lower_subexp):
78871         Use CHAR_BIT rather than 8, for clarity.
78872         * lib/regexec.c (check_dst_limits_calc_pos_1):
78873         (check_subexp_matching_top): Likewise.
78874         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
78875         have to worry about portability issues when shifting it left.
78876         Remove no-longer-needed test for table_size > 0.
78877         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
78878         in a word, as the resulting behavior is undefined.
78879         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
78880         in one case, a <= should have been an <, and in another case the
78881         whole test was missing.
78882         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
78883         the standard name CHAR_BIT.
78884         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
78885         this is not true on one's complement and signed-magnitude hosts.
78886
78887         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
78888         next_last_offset.
78889         (struct re_dfa_t): Remove unused member states_alloc.
78890         * lib/regcomp.c (init_dfa): Don't initialize unused members.
78891
78892 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
78895         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
78896         and large-file glibc and in 32-bit large-file Solaris.
78897
78898 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78899
78900         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
78901         lengths fit in regoff_t; this isn't true if regoff_t is the same
78902         width as size_t.
78903         * lib/regex.c (re_search_internal): 5th arg is LAST_START
78904         (= START + RANGE) instead of RANGE.  This avoids overflow
78905         problems when regoff_t is the same width as size_t.
78906         All callers changed.
78907         (re_search_2_stub): Check for overflow when adding the
78908         sizes of the two strings.
78909         (re_search_stub): Check for overflow when adding START
78910         to RANGE; if it occurs, substitute the extreme value.
78911
78912 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78913
78914         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
78915
78916 2005-08-31  Jim Meyering  <jim@meyering.net>
78917
78918         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
78919         a pointer-to-const.
78920         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
78921         (register_state): Likewise.
78922         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
78923         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
78924         (group_nodes_into_DFAstates): Likewise.
78925
78926 2005-08-31  Jim Meyering  <jim@meyering.net>
78927
78928         * check-module: Add a FIXME comment.
78929
78930 2005-08-31  Eric Blake  <ebb9@byu.net>
78931
78932         * modules/unistd-safer (Files): Add unistd--.h.
78933         * modules/stdio-safer (Files): Add stdio--.h.
78934
78935 2005-08-31  Derek Price  <derek@ximbiot.com>
78936
78937         * lib/getdelim.c (getdelim): Return EOF on EOF.
78938         Reported by Larry Jones <lawrence.jones@ugs.com>.
78939
78940 2005-08-31  Bruno Haible  <bruno@clisp.org>
78941
78942         Avoid unnecessary diffs in the generated lib/Makefile.am.
78943         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
78944         the generated files.
78945         (func_import): Don't set cmd.
78946
78947 2005-08-31  Bruno Haible  <bruno@clisp.org>
78948
78949         * lib/strstr.c: Include <stddef.h>, for NULL.
78950         * lib/strcasestr.c: Likewise.
78951         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78952
78953 2005-08-31  Bruno Haible  <bruno@clisp.org>
78954
78955         * gnulib-tool: New option --macro-prefix.
78956         (func_import): Use macro_prefix.
78957         (import): Handle option --macro-prefix.
78958
78959 2005-08-31  Bruno Haible  <bruno@clisp.org>
78960
78961         * gnulib-tool (import): Rename most ac_* variables to cached_*.
78962         Also use new variables cached_lgpl, cached_libtool.
78963
78964 2005-08-31  Bruno Haible  <bruno@clisp.org>
78965
78966         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
78967         always instantiating them.
78968
78969 2005-08-31  Bruno Haible  <bruno@clisp.org>
78970
78971         * gnulib-tool (func_import): Read the previous cached settings
78972         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
78973         earlier added by gnulib but are now dropped. Warn when a gnulib file
78974         overwrites a non-gnulib file.
78975
78976 2005-08-31  Bruno Haible  <bruno@clisp.org>
78977
78978         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
78979         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
78980         projects that don't keep autogenerated files in CVS. Put into
78981         actioncmd only the specified modules, not the transitive closure.
78982
78983 2005-08-31  Bruno Haible  <bruno@clisp.org>
78984
78985         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
78986         Create directories that shall be filled.
78987         (import): Don't look for gl_* macros in configure.ac. Recurse across
78988         all directories containing a gnulib-cache.m4 files, if meaningful.
78989
78990 2005-08-31  Bruno Haible  <bruno@clisp.org>
78991
78992         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
78993         (import): Set seen_libtool when we see gl_LIBTOOL.
78994
78995 2005-08-31  Bruno Haible  <bruno@clisp.org>
78996
78997         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
78998         declaration macro definitions from generated gnulib.m4.
78999
79000 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
79001
79002         * lib/iconvme.h: Add prototype for iconv_alloc.
79003
79004 2005-08-29  Simon Josefsson  <jas@extundo.com>
79005
79006         * lib/iconvme.c: Fix errno.
79007
79008 2005-08-29  Bruno Haible  <bruno@clisp.org>
79009
79010         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
79011         that it works when the directory contains spaces.
79012
79013 2005-08-29  Bruno Haible  <bruno@clisp.org>
79014
79015         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
79016
79017 2005-08-29  Bruno Haible  <bruno@clisp.org>
79018
79019         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
79020         Emit more advice.
79021
79022 2005-08-29  Bruno Haible  <bruno@clisp.org>
79023         and Stepan Kasal  <kasal@ucw.cz>
79024
79025         * check-module: If more parameters are given, check each of them
79026         separately; add more exceptions, as noted by Jim Meyering.
79027         (check_module): New procedure.
79028         (%exempt_header): Now contains all exceptions.
79029
79030 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
79031
79032         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
79033
79034 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79035
79036         * lib/iconvme.c: Split iconv_string into iconv_alloc.
79037
79038 2005-08-28  Bruno Haible  <bruno@clisp.org>
79039
79040         * m4/gnulib-tool.m4: New file.
79041
79042 2005-08-27  Jim Meyering  <jim@meyering.net>
79043
79044         * modules/unistd-safer (Files): Add pipe-safer.c.
79045         * modules/fcntl-safer (Files): Add creat-safer.c.
79046
79047 2005-08-27  Jim Meyering  <jim@meyering.net>
79048
79049         * m4/stdlib-safer.m4: New file.  From coreutils.
79050         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
79051         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
79052         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
79053         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
79054         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
79055
79056 2005-08-27  Jim Meyering  <jim@meyering.net>
79057
79058         * lib/fopen-safer.c: Merge minor changes from coreutils.
79059         * lib/dup-safer.c: Likewise.
79060         * lib/fd-safer.c: Likewise.
79061
79062         Merge from coreutils.
79063         * lib/stdio--.h: New file.
79064         * lib/stdlib--.h: New file.
79065         * lib/mkstemp-safer.c: New file.
79066
79067         GNU tar needs these.
79068         * lib/pipe-safer.c: New file.
79069         * lib/creat-safer.c: New file.
79070         * lib/fcntl--.h (creat): Define to creat_safer.
79071         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
79072         * lib/unistd--.h (pipe): Define to pipe_safer.
79073         * lib/unistd-safer.h: Declare pipe_safer.
79074
79075 2005-08-26  Simon Josefsson  <jas@extundo.com>
79076
79077         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
79078         Haible <bruno@clisp.org>.
79079
79080 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * lib/regex_internal.h: Remove all references to
79083         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
79084         or better.
79085         (bitset_not, bitset_merge, bitset_not_merge):
79086         (bitset_mask, re_string_allocate, re_string_construct):
79087         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
79088         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
79089         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
79090         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
79091         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79092         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79093         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
79094         (re_acquire_state_context):
79095         Remove unnecessary forward decls.
79096         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
79097         Put __attribute at function definition,
79098         now that the function decl has been removed.
79099         * lib/regex_internal.c (re_string_peek_byte_case):
79100         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
79101         Likewise.
79102
79103 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
79104
79105         * m4/regex.m4: Add AC_PREREQ(2.50).
79106         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
79107
79108 2005-08-25  Simon Josefsson  <jas@extundo.com>
79109
79110         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
79111         __fsetlocking.
79112
79113 2005-08-25  Simon Josefsson  <jas@extundo.com>
79114
79115         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
79116         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
79117         GLIBC specific code.
79118
79119 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         Make regex safe for g++.  This fixes one real bug (an "err"
79122         that should have been "*err").  g++ problem reported by
79123         Sam Steingold.
79124         * lib/regex_internal.h (re_calloc): New macro, consistent with
79125         re_malloc etc.  All callers of calloc changed to use re_calloc.
79126         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
79127         not int.  All callers changed.
79128         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
79129         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
79130         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
79131         (find_recover_state): Change "err" to "*err"; this fixes what
79132         appears to be a real bug.
79133         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
79134         versus int.
79135
79136 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79137
79138         * modules/regex (Depends-on): Add malloc, since the code
79139         assumes that !malloc(0) means failure.
79140
79141 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79142
79143         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
79144
79145         alloca modernization/simplification for regex.
79146         * lib/regex.c: Remove portability cruft for alloca.  This no longer
79147         needs to be at the start of the file, and can be moved into
79148         regex_internal.h and simplified.
79149         * lib/regex_internal.h: Include <alloca.h>.
79150         (__libc_use_alloca) [!defined _LIBC]: New macro.
79151         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
79152         now works outside glibc.
79153
79154 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         * config/srclist.txt: Add glibc bugs 1241, 1245.
79157
79158 2005-08-25  Jim Meyering  <jim@meyering.net>
79159
79160         * lib/open-safer.c: Include <config.h>.
79161         Otherwise, we'd lose LARGEFILE support in any file using
79162         e.g. "fcntl--.h"
79163
79164 2005-08-25  Bruno Haible  <bruno@clisp.org>
79165
79166         * m4/minmax.m4: Require autoconf 2.52.
79167         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
79168         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
79169         alternatives of translit over the alphabet.
79170         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
79171
79172 2005-08-24  Simon Josefsson  <jas@extundo.com>
79173
79174         * tests/test-getpass.c: New file.
79175
79176 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
79179         for GNU regex features.
79180
79181 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79182
79183         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
79184         * lib/regex.h (regerror): Likewise.
79185
79186         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
79187         requires this.  (The code never needed it.)
79188
79189         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
79190         All uses of recently-renamed identifiers changed to use the new,
79191         POSIX-compliant names.  The code will build and run just fine
79192         without these changes, but it's better to eat our own dog food
79193         and use the standard-conforming names.
79194
79195         * lib/regex.h: Fix a multitude of POSIX name space violations.
79196         These changes have an effect only for programs that define
79197         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
79198         do not change anything for programs compiled in the normal way.
79199         Also, there is no effect on the ABI.
79200
79201         (_REGEX_SOURCE): New macro.
79202         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
79203         defined and _GNU_SOURCE is not; this fixes a name space violation.
79204
79205         Rename the following macros to obey POSIX requirements.
79206         The old names are still visible as macros if _REGEX_SOURCE is defined.
79207         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
79208         RE_BACKSLASH_ESCAPE_IN_LISTS.
79209         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
79210         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
79211         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
79212         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
79213         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
79214         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
79215         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
79216         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
79217         (REG_INTERVALS): renamed from RE_INTERVALS.
79218         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
79219         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
79220         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
79221         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
79222         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
79223         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
79224         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
79225         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
79226         RE_UNMATCHED_RIGHT_PAREN_ORD.
79227         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
79228         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
79229         (REG_DEBUG): renamed from RE_DEBUG.
79230         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
79231         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
79232         unusual, since we can't clash with the POSIX REG_ICASE.
79233         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
79234         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
79235         (REG_NO_SUB): renamed from RE_NO_SUB.
79236         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
79237         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
79238         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
79239         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
79240         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
79241         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
79242         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
79243         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
79244         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
79245         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
79246         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
79247         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
79248         RE_SYNTAX_POSIX_MINIMAL_BASIC.
79249         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
79250         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
79251         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
79252         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
79253         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
79254         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
79255         (REG_FIXED): Renamed from REGS_FIXED.
79256         (REG_NREGS): Renamed from RE_NREGS.
79257
79258         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
79259         of other REG_* macros, since POSIX says the user is allowed to
79260         #undef these macros selectively.
79261
79262         (reg_errcode_t): Update comment stating what other tables need
79263         to be consistent.
79264
79265         Rename the following enum values to obey POSIX requirements.
79266         The old names are still visible as macros.
79267         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
79268         is not defined, since GNU is supposed to be a superset of POSIX as
79269         much as possible, and since we want reg_errcode_t to be a signed
79270         type for implementation consistency.
79271         (_REG_NOERROR): Renamed from REG_NOERROR.
79272         (_REG_NOMATCH): Renamed from REG_NOMATCH.
79273         (_REG_BADPAT): Renamed from REG_BADPAT.
79274         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
79275         (_REG_ECTYPE): Renamed from REG_ECTYPE.
79276         (_REG_EESCAPE): Renamed from REG_EESCAPE.
79277         (_REG_ESUBREG): Renamed from REG_ESUBREG.
79278         (_REG_EBRACK): Renamed from REG_EBRACK.
79279         (_REG_EPAREN): Renamed from REG_EPAREN.
79280         (_REG_EBRACE): Renamed from REG_EBRACE.
79281         (_REG_BADBR): Renamed from REG_BADBR.
79282         (_REG_ERANGE): Renamed from REG_ERANGE.
79283         (_REG_ESPACE): Renamed from REG_ESPACE.
79284         (_REG_BADRPT): Renamed from REG_BADRPT.
79285         (_REG_EEND): Renamed from REG_EEND.
79286         (_REG_ESIZE): Renamed from REG_ESIZE.
79287         (_REG_ERPAREN): Renamed from REG_ERPAREN.
79288         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
79289         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
79290         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
79291         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
79292
79293         (_REG_RE_NAME, _REG_RM_NAME): New macros.
79294         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
79295         changed.  But support the old name if the new one is not defined
79296         and if _REGEX_SOURCE.
79297
79298         Change the following member names in struct re_pattern_buffer.
79299         The old names are still supported if !_REGEX_SOURCE.
79300         The new names are always supported, regardless of _REGEX_SOURCE.
79301         (re_buffer): Renamed from buffer.
79302         (re_allocated): Renamed from allocated.
79303         (re_used): Renamed from used.
79304         (re_syntax): Renamed from syntax.
79305         (re_fastmap): Renamed from fastmap.
79306         (re_translate): Renamed from translate.
79307         (re_can_be_null): Renamed from can_be_null.
79308         (re_regs_allocated): Renamed from regs_allocated.
79309         (re_fastmap_accurate): Renamed from fastmap_accurate.
79310         (re_no_sub): Renamed from no_sub.
79311         (re_not_bol): Renamed from not_bol.
79312         (re_not_eol): Renamed from not_eol.
79313         (re_newline_anchor): Renamed from newline_anchor.
79314
79315         Change the following member names in struct re_registers.
79316         The old names are still supported if !_REGEX_SOURCE.
79317         The new names are always supported, regardless of _REGEX_SOURCE.
79318         (rm_num_regs): Renamed from num_regs.
79319         (rm_start): Renamed from start.
79320         (rm_end): Renamed from end.
79321
79322         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
79323         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
79324         Prepend __ to parameter names.
79325
79326         Undo yesterday's changes.
79327
79328 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79329
79330         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
79331         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
79332         lib/regex.c.
79333
79334 2005-08-24  Jim Meyering  <jim@meyering.net>
79335
79336         Sync from coreutils.
79337         * m4/fcntl-safer.m4: New file.
79338
79339         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
79340         and object files for this module.
79341
79342 2005-08-24  Jim Meyering  <jim@meyering.net>
79343
79344         Sync from coreutils.
79345         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
79346
79347 2005-08-24  Jim Meyering  <jim@meyering.net>
79348
79349         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
79350         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
79351
79352 2005-08-24  Jim Meyering  <jim@meyering.net>
79353
79354         * modules/fcntl-safer: New module.
79355         * modules/fts (Depends-on): Add fcntl-safer.
79356         * MODULES.html.sh (File descriptor based Input/Output):
79357         Add fcntl-safer.
79358
79359 2005-08-24  Bruno Haible  <bruno@clisp.org>
79360
79361         Support for unit test modules.
79362         * modules/README: Mention tests modules.
79363         * modules/TEMPLATE-TESTS: New file.
79364         * gnulib-tool: New options --extract-tests-module, --with-tests and
79365         --tests-base (unused for the moment).
79366         (testsbase, inctests): New variables.
79367         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
79368         (func_verify_module): Exclude TEMPLATE-TESTS.
79369         (func_verify_nontests_module, func_verify_tests_module): New functions.
79370         (func_get_dependencies): Add implicit dependency for tests modules.
79371         (func_get_tests_module): New function.
79372         (func_modules_transitive_closure): When --with-tests was specified,
79373         include the unit tests as well, unless explicitly avoided.
79374         (func_emit_lib_Makefile_am): Ignore the tests modules here.
79375         (func_emit_tests_Makefile_am): New function.
79376         (func_create_testdir): When --with-tests was specified, emit a
79377         tests/ directory.
79378         * MODULES.html.sh (Future developments): Update.
79379
79380 2005-08-24  Bruno Haible  <bruno@clisp.org>
79381
79382         * modules/tls-tests: New file.
79383         * tests/test-tls.c: New file, from GNU gettext.
79384
79385 2005-08-24  Bruno Haible  <bruno@clisp.org>
79386
79387         * modules/lock-tests: New file.
79388         * tests/test-lock.c: New file, from GNU gettext.
79389
79390 2005-08-24  Bruno Haible  <bruno@clisp.org>
79391
79392         * lib/lock.h: Add multiple inclusion guard.
79393         * lib/tls.h: Add multiple inclusion guard.
79394
79395 2005-08-24  Bruno Haible  <bruno@clisp.org>
79396
79397         * gnulib-tool: Add support for the --aux-dir option to
79398         --create-testdir, --create-megatestdir, --test, --megatest.
79399         (func_create_testdir, func_create_megatestdir): Optionally emit a
79400         AC_CONFIG_AUX_DIR directive.
79401         (create-testdir, create-megatestdir, test, megatest): Provide a
79402         default value for $auxdir.
79403
79404 2005-08-24  Bruno Haible  <bruno@clisp.org>
79405
79406         * gnulib-tool (import): Use compound statement instead of subshell
79407         where possible.
79408
79409 2005-08-24  Bruno Haible  <bruno@clisp.org>
79410
79411         * gnulib-tool (import): Change --aux-dir default to "build-aux".
79412
79413 2005-08-24  Bruno Haible  <bruno@clisp.org>
79414
79415         * gnulib-tool (func_version): Update.
79416
79417 2005-08-24  Bruno Haible  <bruno@clisp.org>
79418
79419         * gnulib-tool (func_import, func_create_testdir,
79420         func_create_megatestdir): Quote all autoconf macro arguments.
79421
79422 2005-08-24  Bruno Haible  <bruno@clisp.org>
79423
79424         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
79425         option --force, because --force causes the aclocal.m4 of each
79426         subdirectory to be newer than the corresponding config.h.in.
79427
79428 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79429
79430         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
79431         All contents moved to gl_REGEX.
79432         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
79433         assume that it does.
79434
79435 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * lib/regex.h (REG_NOSYS)
79438         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
79439         Define, since POSIX requires it as of 2001.
79440         (_REG_ENOSYS)
79441         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
79442         New private symbol, used to keep the enum signed in all cases.
79443         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
79444         Youngman in
79445         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
79446
79447         * lib/regex_internal.c (re_string_skip_chars, register_state):
79448         (calc_state_hash):
79449         Remove forward decls; no longer needed now that we use prototypes.
79450         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
79451         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
79452         (clean_state_log_if_needed): Likewise.
79453
79454 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * config/srclist.txt: Add glibc bugs 1231-1233.
79457
79458 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79459
79460         Fix problems reported by Sam Steingold in
79461         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
79462         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
79463         assumed that reg_errcode_t is a signed type, which is not
79464         necessarily true if _XOPEN_SOURCE is not defined.
79465         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
79466         since some compilers warn about it otherwise.
79467
79468 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79469
79470         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
79471         (init_word_char, create_initial_state, duplicate_node_closure):
79472         (fetch_token, peek_token_bracket, build_range_exp):
79473         (build_collating_symbol): Remove forward decls; no longer needed
79474         now that we use prototypes.
79475
79476         * lib/regcomp.c:
79477         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
79478         (re_compile_fastmap_iter, regcomp, regerror, regfree):
79479         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
79480         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
79481         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
79482         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
79483         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
79484         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
79485         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
79486         (build_range_exp, build_collating_symbol, parse_bracket_exp):
79487         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
79488         (build_charclass, build_charclass_op, fetch_number, create_tree):
79489         (create_token_tree, mark_opt_subexp, duplicate_tree):
79490         Use prototypes rather than old-style definitions.
79491
79492         * lib/regex_internal.c:
79493         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
79494         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
79495         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79496         (re_string_reconstruct, re_string_peek_byte_case):
79497         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
79498         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79499         (re_node_set_init_copy, re_node_set_add_intersect):
79500         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79501         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79502         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79503         (re_acquire_state, re_acquire_state_context, register_state):
79504         (create_ci_newstate, create_cd_newstate, free_state):
79505         Likewise.
79506         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
79507         re_search_2):
79508         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
79509         (re_search_internal, prune_impossible_nodes):
79510         (acquire_init_state_context, check_matching, static):
79511         (check_halt_node_context, check_halt_state_context, proceed_next_node):
79512         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
79513         (update_regs, sift_states_backward, build_sifted_states):
79514         (clean_state_log_if_needed, merge_state_array):
79515         (update_cur_sifted_state, add_epsilon_src_nodes):
79516         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
79517         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
79518         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
79519         (find_recover_state, check_subexp_matching_top, transit_state_mb):
79520         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
79521         (check_arrival, check_arrival_add_next_nodes):
79522         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79523         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79524         (check_node_accept_bytes, check_node_accept, extend_buffers):
79525         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
79526         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
79527         (sift_ctx_init):
79528         Likewise.
79529
79530         * lib/regex_internal.h:
79531         (re_string_allocate, re_string_construct, re_string_reconstruct):
79532         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
79533         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
79534         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
79535         (re_string_context_at, re_string_peek_byte_case):
79536         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
79537         is defined, since we now use prototypes always.
79538
79539         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
79540         C89 or better.  All uses removed.
79541
79542 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79543
79544         * config/srclist.txt: Add glibc bugs 1220-1227.
79545
79546 2005-08-20  Jim Meyering  <jim@meyering.net>
79547
79548         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
79549         of unused local, dfa.
79550
79551 2005-08-20  Bruno Haible  <bruno@clisp.org>
79552
79553         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
79554
79555 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79556
79557         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
79558         (re_node_set_insert_last, re_dfa_add_node):
79559         Rename local variables to avoid GCC shadowing warnings.
79560
79561 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79562
79563         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
79564         [defined lint]: Suppress bogus uninitialized-variable warnings.
79565
79566         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
79567         and let the caller return REG_ESPACE if out of space.  This
79568         removes an uninitialied-variable warning with GCC 4.0.1, and also
79569         avoids taking the address of a local variable.  All callers
79570         changed.
79571
79572 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79573
79574         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
79575         $LIBCSRC/posix/regexec.c.
79576         Add glibc bug 1217 for regcomp.c.
79577
79578 2005-08-19  Jim Meyering  <jim@meyering.net>
79579
79580         * lib/regexec.c (proceed_next_node): Redo local variables to
79581         avoid GCC shadowing warnings.
79582
79583 2005-08-18  Bruno Haible  <bruno@clisp.org>
79584
79585         * lib/strstr.c (strstr): Fix return value in multibyte case.
79586         * lib/strcasestr.c (strcasestr): Likewise.
79587
79588 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
79591
79592 2005-08-17  Jim Meyering  <jim@meyering.net>
79593
79594         Make the %s format (seconds since the epoch) work for a negative
79595         number and when used with a zero-padded field width, e.g. %015s.
79596
79597         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
79598         label so that it precedes the code to set `digits'.  Otherwise,
79599         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
79600         print `00-22'.  Now, it prints `-0022', as it should.
79601
79602 2005-08-17  Bruno Haible  <bruno@clisp.org>
79603
79604         * modules/strstr (Files): Add m4/mbrtowc.m4.
79605         (Depends-on): Add mbuiter.
79606
79607 2005-08-17  Bruno Haible  <bruno@clisp.org>
79608
79609         * modules/strcasestr: New file.
79610         * MODULES.html.sh (String handling, based on ANSI C 89): Add
79611         strcasestr.
79612
79613 2005-08-17  Bruno Haible  <bruno@clisp.org>
79614
79615         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
79616
79617 2005-08-17  Bruno Haible  <bruno@clisp.org>
79618
79619         * modules/mbuiter: New file.
79620         * MODULES.html.sh (Extended multibyte and wide character utilities):
79621         Add mbuiter.
79622
79623 2005-08-17  Bruno Haible  <bruno@clisp.org>
79624
79625         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
79626         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
79627
79628 2005-08-17  Bruno Haible  <bruno@clisp.org>
79629
79630         * m4/strcasestr.m4: New file.
79631
79632 2005-08-17  Bruno Haible  <bruno@clisp.org>
79633
79634         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
79635         * lib/strstr.c: Completely rewritten, with multibyte locale support.
79636
79637 2005-08-17  Bruno Haible  <bruno@clisp.org>
79638
79639         * lib/strcasestr.h: New file.
79640         * lib/strcasestr.c: New file.
79641
79642 2005-08-17  Bruno Haible  <bruno@clisp.org>
79643
79644         * lib/strcasecmp.c: Use mbuiter.h.
79645
79646 2005-08-17  Bruno Haible  <bruno@clisp.org>
79647
79648         * lib/mbuiter.h: New file.
79649
79650 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79651
79652         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
79653         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
79654         and gl_GETOPT are both invoked via different paths (as happens
79655         with GNU tar CVS because it uses both argp and getopt), the former
79656         wins.
79657
79658 2005-08-16  Bruno Haible  <bruno@clisp.org>
79659
79660         * modules/tls: New file.
79661         * MODULES.html.sh (Multithreading): Add tls.
79662
79663 2005-08-16  Bruno Haible  <bruno@clisp.org>
79664
79665         * modules/strnlen1: New file.
79666         * MODULES.html.sh (String handling): Add strnlen1.
79667
79668 2005-08-16  Bruno Haible  <bruno@clisp.org>
79669
79670         * modules/strcase (Files): Add m4/mbrtowc.m4.
79671         (Depends-on): Add strnlen1, mbchar.
79672
79673 2005-08-16  Bruno Haible  <bruno@clisp.org>
79674
79675         * modules/mbiter: New file.
79676         * MODULES.html.sh (Extended multibyte and wide character utilities):
79677         Add mbiter.
79678
79679 2005-08-16  Bruno Haible  <bruno@clisp.org>
79680
79681         * modules/mbfile: New file.
79682         * MODULES.html.sh (Extended multibyte and wide character utilities):
79683         Add mbfile.
79684
79685 2005-08-16  Bruno Haible  <bruno@clisp.org>
79686
79687         * modules/mbchar: New file.
79688         * MODULES.html.sh (Extended multibyte and wide character utilities):
79689         New section.
79690
79691 2005-08-16  Bruno Haible  <bruno@clisp.org>
79692
79693         * m4/tls.m4: New file, from GNU gettext.
79694
79695 2005-08-16  Bruno Haible  <bruno@clisp.org>
79696
79697         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
79698         always.
79699         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
79700
79701 2005-08-16  Bruno Haible  <bruno@clisp.org>
79702
79703         * m4/mbiter.m4: New file.
79704
79705 2005-08-16  Bruno Haible  <bruno@clisp.org>
79706
79707         * m4/mbfile.m4: New file.
79708
79709 2005-08-16  Bruno Haible  <bruno@clisp.org>
79710
79711         * m4/mbchar.m4: New file.
79712
79713 2005-08-16  Bruno Haible  <bruno@clisp.org>
79714
79715         * lib/tls.h: New file, from GNU gettext.
79716         * lib/tls.c: New file, from GNU gettext.
79717
79718 2005-08-16  Bruno Haible  <bruno@clisp.org>
79719
79720         * lib/strnlen1.h: New file.
79721         * lib/strnlen1.c: New file.
79722
79723 2005-08-16  Bruno Haible  <bruno@clisp.org>
79724
79725         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
79726         (mbi_init): Update.
79727         (mbi_avail, mbi_advance): Let the iteration end before the terminating
79728         NUL byte, not after it.
79729
79730 2005-08-16  Bruno Haible  <bruno@clisp.org>
79731
79732         * lib/strcase.h (strcasecmp): Add note in comments.
79733         * lib/strncasecmp.c: Use code from strcasecmp.c.
79734         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
79735         (strcasecmp): Work correctly in multibyte locales.
79736
79737 2005-08-16  Bruno Haible  <bruno@clisp.org>
79738
79739         * lib/mbiter.h: New file.
79740
79741 2005-08-16  Bruno Haible  <bruno@clisp.org>
79742
79743         * lib/mbfile.h: New file.
79744
79745 2005-08-16  Bruno Haible  <bruno@clisp.org>
79746
79747         * lib/mbchar.h: New file.
79748         * lib/mbchar.c: New file.
79749
79750 2005-08-16  Bruno Haible  <bruno@clisp.org>
79751
79752         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
79753         the valid ones. Makes the comparison operations transitive:
79754         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
79755         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
79756
79757 2005-08-15  Simon Josefsson  <jas@extundo.com>
79758
79759         * modules/ssize_t (License): Change to 'unlimited'.
79760
79761         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
79762
79763 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79764
79765         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
79766         Add comments for each pending glibc patch.
79767
79768 2005-08-15  Bruno Haible  <bruno@clisp.org>
79769
79770         * lib/regex.h (__restrict_arr): Don't define to __restrict if
79771         __cplusplus is defined.
79772
79773 2005-08-14  Jim Meyering  <jim@meyering.net>
79774
79775         Sync from coreutils.
79776
79777         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
79778         Use the hash-table-based cycle-detection code not just when
79779         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
79780         Reported by James Youngman in
79781         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
79782         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
79783         FTS_TIGHT_CYCLE_CHECK.
79784         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
79785         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
79786         once again.
79787         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
79788         * lib/fts.c (fd_safer): Remove decl.
79789         Include fcntl--.h rather than unistd-safer.h
79790         (fts_safe_changedir): Don't call fd_safer; no longer needed
79791         now that we include fcntl--.h.
79792
79793 2005-08-12  Simon Josefsson  <jas@extundo.com>
79794
79795         * modules/getndelim2: Use ssize_t module.
79796         * modules/getnline: Likewise.
79797         * modules/safe-read: Likewise.
79798         * modules/xreadlink: Likewise.
79799
79800         * modules/ssize_t: New file.
79801
79802 2005-08-12  Simon Josefsson  <jas@extundo.com>
79803
79804         * m4/readline.m4: Look for termcap, curses or ncurses if required.
79805
79806 2005-08-12  Simon Josefsson  <jas@extundo.com>
79807
79808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79809         ssize_t.
79810
79811 2005-08-12  Simon Josefsson  <jas@extundo.com>
79812
79813         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
79814         readline, getdelim and check_version.
79815         (Support for systems lacking ISO C 99: Sizes of integer types):
79816         Add size_max.
79817
79818 2005-08-12  Bruno Haible  <bruno@clisp.org>
79819
79820         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
79821
79822 2005-08-11  Simon Josefsson  <jas@extundo.com>
79823
79824         * modules/readline: New file.
79825
79826         * modules/strnlen (Files): Add strnlen.h.
79827
79828 2005-08-11  Simon Josefsson  <jas@extundo.com>
79829
79830         * m4/readline.m4: New file.
79831
79832 2005-08-11  Simon Josefsson  <jas@extundo.com>
79833
79834         * lib/readline.h, readline.c: New file.
79835
79836 2005-08-11  Simon Josefsson  <jas@extundo.com>
79837
79838         * doc/gnulib.texi (Initial import, Finishing touches): Mention
79839         gl_AVOID.
79840
79841 2005-08-11  Bruno Haible  <bruno@clisp.org>
79842
79843         * lib/strnlen.h (strnlen): Change parameter name to match comment.
79844
79845 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
79846
79847         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
79848
79849 2005-08-10  Simon Josefsson  <jas@extundo.com>
79850
79851         * tests/test-iconvme.c: New file.
79852
79853 2005-08-10  Simon Josefsson  <jas@extundo.com>
79854
79855         * m4/strnlen.m4: New file.
79856
79857         * m4/strndup.m4: Don't check for strnlen declaration, done in
79858         strnlen.m4.
79859
79860 2005-08-10  Simon Josefsson  <jas@extundo.com>
79861
79862         * lib/strndup.c: Use strnlen.h.
79863
79864         * lib/strnlen.h: New file.
79865
79866 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79867
79868         * README: Typos.
79869
79870 2005-08-02  Simon Josefsson  <jas@extundo.com>
79871
79872         * modules/readline: New file.
79873
79874 2005-08-02  Simon Josefsson  <jas@extundo.com>
79875
79876         * modules/getdelim: New file.
79877
79878         * modules/getline: Rewrite, don't use getndelim2.
79879
79880 2005-08-02  Simon Josefsson  <jas@extundo.com>
79881
79882         * m4/getline.m4: Separate out getdelim stuff into separate module.
79883
79884         * m4/getdelim.m4: New file.
79885
79886 2005-08-02  Simon Josefsson  <jas@extundo.com>
79887
79888         * lib/getline.h, getline.c: Rewrite.
79889
79890         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
79891
79892 2005-07-31  Bruno Haible  <bruno@clisp.org>
79893
79894         * lib/lock.h (gl_lock_initializer): New macro.
79895         (gl_lock_define_initialized): Use it.
79896         (gl_rwlock_initializer): New macro.
79897         (gl_rwlock_define_initialized): Use it.
79898         (gl_recursive_lock_initializer): New macro.
79899         (gl_recursive_lock_define_initialized): Use it.
79900
79901 2005-07-30  Karl Berry  <karl@gnu.org>
79902
79903         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
79904         Report from Ben Pfaff, regarding getopt.
79905
79906 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
79909         normal way.
79910         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
79911         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
79912         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
79913         (gl_GETOPT): Use the new macros.  Most of the implementation
79914         is moved to the new macros.  This is for programs like Emacs
79915         that don't want all the functionality of gl_GETOPT.
79916
79917 2005-07-26  Bruno Haible  <bruno@clisp.org>
79918
79919         * m4/lock.m4: Update from GNU gettext.
79920
79921 2005-07-26  Bruno Haible  <bruno@clisp.org>
79922
79923         * lib/lock.h: Update from GNU gettext.
79924         * lib/lock.c: Update from GNU gettext.
79925
79926 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
79927
79928         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
79929         obsolescent AC_TRY_RUN.  Include the default includes files, for
79930         'exit'.
79931
79932 2005-07-24  Bruno Haible  <bruno@clisp.org>
79933
79934         * modules/visibility: New file.
79935         * MODULES.html.sh (Misc): Add visibility.
79936
79937 2005-07-24  Bruno Haible  <bruno@clisp.org>
79938
79939         * m4/visibility.m4: New file.
79940
79941 2005-07-24  Bruno Haible  <bruno@clisp.org>
79942
79943         * doc/visibility.texi: New file.
79944
79945 2005-07-22  Bruno Haible  <bruno@clisp.org>
79946
79947         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
79948         $(ALLOCA_H), redundant through BUILT_SOURCES.
79949         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
79950         redundant through BUILT_SOURCES.
79951         * modules/byteswap (Makefile.am): Remove explicit dependency on
79952         $(BYTESWAP_H), redundant through BUILT_SOURCES.
79953         * modules/fnmatch (Makefile.am): Remove explicit dependency on
79954         $(FNMATCH_H), redundant through BUILT_SOURCES.
79955         * modules/getopt (Makefile.am): Remove explicit dependency on
79956         $(GETOPT_H), redundant through BUILT_SOURCES.
79957         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
79958         redundant through BUILT_SOURCES.
79959         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
79960         redundant through BUILT_SOURCES.
79961         * modules/stdbool (Makefile.am): Remove explicit dependency on
79962         $(STDBOOL_H), redundant through BUILT_SOURCES.
79963         * modules/stdint (Makefile.am): Remove explicit dependency on
79964         $(STDINT_H), redundant through BUILT_SOURCES.
79965         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
79966         Remove explicit dependency on $(SYSEXITS_H).
79967         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
79968
79969 2005-07-18  Simon Josefsson  <jas@extundo.com>
79970
79971         * lib/check-version.c (check_version): Accept identical versions too.
79972
79973 2005-07-18  Bruno Haible  <bruno@clisp.org>
79974
79975         * modules/lock: New file.
79976         * MODULES.html.sh (Multithreading): New section.
79977
79978 2005-07-18  Bruno Haible  <bruno@clisp.org>
79979
79980         * m4/lock.m4: New file, from GNU gettext.
79981
79982 2005-07-18  Bruno Haible  <bruno@clisp.org>
79983
79984         * lib/lock.h: New file, from GNU gettext.
79985         * lib/lock.c: New file, from GNU gettext.
79986
79987 2005-07-18  Bruno Haible  <bruno@clisp.org>
79988
79989         * lib/lock.h (gl_once_t): New type.
79990         (gl_once_define, gl_once): New macros.
79991         * lib/lock.c (fresh_once): New variable.
79992         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
79993         functions.
79994
79995 2005-07-16  Simon Josefsson  <jas@extundo.com>
79996
79997         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
79998         workaround, suggested by Bruno.
79999
80000 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80001
80002         * modules/xalloc (Depends-on): Add xalloc-die.
80003         * modules/xvasprintf (Depends-on): Add xalloc-die.
80004
80005 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80006
80007         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
80008         with a minor change.
80009
80010 2005-07-15  Bruno Haible  <bruno@clisp.org>
80011
80012         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
80013         When using lib/poll.c, define poll as rpl_poll.
80014
80015 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
80016
80017         * modules/argp (Depends-on): Remove unlocked-io.
80018
80019 2005-07-14  Derek Price  <derek@ximbiot.com>
80020
80021         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
80022         for glob symlink bug.
80023
80024 2005-07-14  Bruno Haible  <bruno@clisp.org>
80025
80026         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
80027         Instead, test for *_unlocked function declarations directly.
80028
80029 2005-07-11  Simon Josefsson  <jas@extundo.com>
80030
80031         * modules/size_max: New file.
80032
80033         * modules/xsize: Depend on size_max module for size_max.m4.
80034
80035 2005-07-11  Simon Josefsson  <jas@extundo.com>
80036
80037         * lib/size_max.h: New file.
80038
80039 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
80040
80041         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
80042         copyright symbol and the year.
80043         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
80044         (version_etc_va): Use parameterized copyright notice.
80045         Reword to conform to the current GNU coding standards.
80046
80047 2005-07-11  Karl Berry  <karl@gnu.org>
80048
80049         * doc/gnulib.texi (Quoting): new node.
80050         (Initial import): more info, from Patrice.
80051
80052 2005-07-11  Bruno Haible  <bruno@clisp.org>
80053
80054         * gnulib-tool (func_usage): Document option --avoid.
80055         (Command line options): Handle --avoid.
80056         (func_acceptable): New function.
80057         (func_modules_transitive_closure): Use it.
80058
80059 2005-07-11  Bruno Haible  <bruno@clisp.org>
80060
80061         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
80062         Reported by Jim Meyering.
80063
80064 2005-07-10  Bruno Haible  <bruno@clisp.org>
80065
80066         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
80067         Needed when size_t is smaller than 'unsigned int'.
80068         Reported by Paul Eggert.
80069
80070 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80071
80072         * modules/argp (Depends-on): Add unlocked-io
80073
80074 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80075
80076         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
80077         block of defines.
80078
80079 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         * config/srclist.txt: Comment out regcomp.c, since we have a porting
80082         fix now.
80083
80084 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
80085         and Paul Eggert  <eggert@cs.ucla.edu>
80086
80087         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
80088         in wint_t, not wchar_t.  Remove now-unnecessary cast.
80089
80090 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80091
80092         * modules/regex (Files): Add lib/regex_internal.c,
80093         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
80094         (Depends-on): Add extensions.
80095         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
80096
80097 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80098
80099         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
80100         pathconf.
80101         * m4/same.m4 (gl_SAME): Likewise.
80102         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
80103
80104         * m4/regex.m4: Adjust to new libc regex implementation.
80105         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
80106         all the .c and .h parts of (the new) regex.
80107         Quote the m4 stuff better.
80108         Check for RE_ICASE bug of old gnulib.
80109         Check for REG_STARTEND of recent libc.
80110         Rename local variables from jm_* to gl_*.
80111         Quote operand of "test -f".
80112         Say "recent enough" version of libc, not "version 2".
80113         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
80114         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
80115         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
80116         Remove check for btowc, isascii.
80117         Require AM_LANGINFO_CODESET.
80118
80119 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80120
80121         * lib/regex.c, regex.h: Sync from libc.
80122         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
80123         * lib/regexec.c:
80124         New files, synced from libc, except that regex_internal.h
80125         currently has a small porting fix.
80126
80127 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80128
80129         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
80130         regex_internal.c, regexec.c.
80131         Add regex_internal.h too, but as a comment, since the libc version
80132         is currently broken in gnulib mode.
80133
80134 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80135
80136         Support programs like Emacs that use gnulib but not gettext.
80137         * MODULES.html.sh (Internationalization functions): Add gettext-h.
80138         * modules/gettext-h: New file.
80139         * modules/gettext (Files): Remove lib/gettext.h.
80140         (Depends-on): Add gettext-h.
80141         (Makefile.am): Remove lib_SOURCES.
80142         * modules/argmatch, modules/c-stack, modules/closeout:
80143         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
80144         * modules/execute, modules/file-type, modules/getaddrinfo:
80145         * modules/getopt, modules/human, modules/javacomp:
80146         * modules/javaexec, modules/mkdir-p, modules/obstack:
80147         * modules/openat, modules/pagealign_alloc, modules/pipe:
80148         * modules/quotearg, modules/regex, modules/rpmatch:
80149         * modules/unicodeio, modules/userspec, modules/version-etc:
80150         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
80151         * modules/xsetenv:
80152         Depend on gettext-h, not gettext.
80153
80154 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         * gnulib-tool (func_import): Add support for 'public domain' license.
80157         * modules/alloca, modules/atexit, modules/memmove:
80158         Now public domain, not GPL.
80159         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
80160         * modules/realloc, modules/strerror, modules/strtod:
80161         Now LGPL, not GPL.
80162
80163 2005-07-05  Bruno Haible  <bruno@clisp.org>
80164
80165         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
80166         autoconf CVS. Needed for mingw.
80167
80168 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80169
80170         Remove the dependency of the strftime module on the tzset module.
80171         * modules/strftime (Depends-on): Remove dependency on tzset.
80172
80173 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         Remove the dependency of the strftime module on the tzset module.
80176         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
80177         gl_FUNC_TZSET_CLOBBER.
80178
80179 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80180
80181         Remove the dependency of the strftime module on the tzset module.
80182         * lib/strftime.c (my_strftime)
80183         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
80184         Copy the input structure, to work around some of the bug with
80185         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
80186         Solaris releases, you should also use the tzset module, but we won't
80187         require it as a dependency any more since we don't want LGPLed code
80188         to depend on GPLed code.
80189
80190 2005-07-02  Jim Meyering  <jim@meyering.net>
80191
80192         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
80193         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
80194         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
80195         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
80196
80197 2005-07-02  Jim Meyering  <jim@meyering.net>
80198
80199         * lib/backupfile.c (backup_args): Change a `0' to NULL.
80200
80201 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
80204         declares only 'struct timespec;' (!).
80205
80206 2005-07-01  Jim Meyering  <jim@meyering.net>
80207
80208         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
80209         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
80210         * lib/save-cwd.c, tempname.c:
80211         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80212         and don't include <sys/file.h>).
80213
80214 2005-06-29  Jim Meyering  <jim@meyering.net>
80215
80216         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
80217         type name.  Use the variable name instead.
80218         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
80219         Likewise.
80220
80221 2005-06-28  Simon Josefsson  <jas@extundo.com>
80222
80223         * modules/check-version (Files): Add check-version.m4.
80224
80225 2005-06-28  Simon Josefsson  <jas@extundo.com>
80226
80227         * m4/check-version.m4: New file, suggested by Jim Meyering
80228         <jim@meyering.net>.
80229
80230 2005-06-28  Simon Josefsson  <jas@extundo.com>
80231
80232         * lib/check-version.h, lib/check-version.c: New files.
80233
80234 2005-06-28  Simon Josefsson  <jas@extundo.com>
80235
80236         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
80237         collision with global variable.  Better indentation.  Don't
80238         increment buffer pointer beyond buffer end.  Based on comments
80239         from Paul Eggert <eggert@cs.ucla.edu>.
80240
80241         * lib/base64.h: Indent.
80242
80243 2005-06-28  Simon Josefsson  <jas@extundo.com>
80244
80245         * doc/gnulib.texi (Library version handling): New section.
80246
80247 2005-06-28  Jim Meyering  <jim@meyering.net>
80248
80249         * check-module (find_included_lib_files): Hard-code another
80250         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
80251         but modules/fts-lgpl (correctly) does not list those files.
80252
80253         * modules/canonicalize (Files): Add lib/pathmax.h.
80254
80255 2005-06-25  Simon Josefsson  <jas@extundo.com>
80256
80257         * modules/check-version: New file.
80258
80259 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
80262         initializer of struct addrinfo, as an indication that we don't
80263         care how many members the structure has.
80264
80265 2005-06-24  Derek Price  <derek@ximbiot.com>
80266         and Bruno Haible  <bruno@clisp.org>
80267
80268         Remove stat module & update lstat.
80269         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
80270         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80271         * m4/stat.m4: Remove this file.
80272
80273 2005-06-24  Derek Price  <derek@ximbiot.com>
80274         and Bruno Haible  <bruno@clisp.org>
80275
80276         Remove stat module & update lstat.
80277         * lib/stat.c: Remove this file...
80278         (slash_aware_lstat): ...moving this content and its support...
80279         * lib/lstat.c (rpl_lstat): ...into here.
80280         * lib/lstat.h: New file.
80281
80282 2005-06-24  Derek Price  <derek@ximbiot.com>
80283         and Bruno Haible  <bruno@clisp.org>
80284
80285         Remove stat module & update lstat.
80286         * config/srclist.txt (libc sources): Remove stat.
80287
80288 2005-06-24  Derek Price  <derek@ximbiot.com>
80289         and Bruno Haible  <bruno@clisp.org>
80290
80291         Remove stat module & update lstat.
80292         * MODULES.html.sh (stat): Remove.
80293         * MODULES.html: Regenerated.
80294         * modules/lstat (Description): Correct function name.
80295         (Files): Add "lstat.h".
80296         (Depends-on): Remove stat, add xalloc, stat-macros.
80297         * modules/stat: Remove this file.
80298         (Include): Add "lstat.h", remove <sys/stat.h>.
80299
80300 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
80301
80302         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
80303         (ranged_convert): Don't save conversion in a temporary struct.
80304         This causes a warning with GCC 4.0.0, and anyway in the typical
80305         case it's not worth the extra 100 bytes or so of code.
80306         (ranged_convert, __mktime_internal): When calling a function via a
80307         pointer P, use P () rather than (*P) (), as we now assume C89 or
80308         better.
80309
80310 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
80313         "who -r" failed to give output.  Problem reported by Tim Waugh.
80314
80315         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
80316         (xcalloc): Use it to avoid needless tests.
80317         Problem reported by Jim Meyering.
80318
80319 2005-06-20  Derek Price  <derek@ximbiot.com>
80320
80321         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
80322         unnecessary for Autoconfs > 2.59c.
80323
80324 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80325
80326         * lib/argp.h (__option_is_short): Check upper limit of
80327         __key. Isprint() requires its argument to have the value
80328         of an unsigned char or EOF.
80329
80330 2005-06-16  Jim Meyering  <jim@meyering.net>
80331
80332         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
80333         when either N or S is zero.
80334
80335 2005-06-16  Derek Price  <derek@ximbiot.com>
80336
80337         * m4/bison.m4: Declare YACC & YFLAGS precious.
80338
80339 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
80340
80341         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
80342         multibyte string or pattern, fall back on unibyte matching.
80343         Problem reported by James Youngman.
80344
80345 2005-06-08  Bruno Haible  <bruno@clisp.org>
80346
80347         * modules/csharpcomp: New file.
80348         * MODULES.html.sh (C#): Add csharpcomp.
80349
80350 2005-06-08  Bruno Haible  <bruno@clisp.org>
80351
80352         * m4/csharpcomp.m4: New file, from GNU gettext.
80353
80354 2005-06-08  Bruno Haible  <bruno@clisp.org>
80355
80356         * lib/csharpcomp.h: New file, from GNU gettext.
80357         * lib/csharpcomp.c: New file, from GNU gettext.
80358         * lib/csharpcomp.sh.in: New file, from GNU gettext.
80359
80360 2005-06-08  Bruno Haible  <bruno@clisp.org>
80361
80362         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
80363         warning on mingw.
80364
80365 2005-06-07  Derek Price  <derek@ximbiot.com>
80366
80367         Sync from CVS.
80368         * lib/glob_.h: Indent nested #ifdef.
80369
80370 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80371
80372         Sync from coreutils.
80373         Use "file name" when talking about file names, instead of "filename"
80374         or "path", as per the GNU coding standards.
80375         * lib/mkdir-p.c: Renamed from makepath.c.
80376         (make_dir_parents): Renamed from make_path.  All callers changed.
80377         * lib/mkdir-p.h: Likewise.  All includers changed.
80378         * lib/filenamecat.c: Renamed from path-concat.c.
80379         (file_name_concat): Renamed from path_concat.  All callers changed.
80380         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
80381         * lib/filenamecat.h: Likewise.  All includers changed.
80382         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
80383         in comments or local variable names.
80384         * lib/basename.c: Likewise.
80385         * lib/canonicalize.c, canonicalize.h: Likewise.
80386         * lib/dirname.c, dirname.h: Likewise.
80387         * lib/euidaccess.c: Likewise.
80388         * lib/exclude.c: Likewise
80389         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
80390         * lib/fsusage.c, fsuage.h: Likewise.
80391         * lib/fts.c, fts_.h: Likewise.
80392         * lib/getcwd.c: Likewise.
80393         * lib/getloadavg.c: Likewise.
80394         * lib/mkstemp.c: Likewise.
80395         * lib/mountlist.c, mountlist.h: Likewise.
80396         * lib/openat.c, openat.h: Likewise.
80397         * lib/readlink-stub.c: Likewise.
80398         * lib/readutmp.c, readutmp.h: Likewise.
80399         * lib/rename.c: Likewise.
80400         * lib/rmdir.c: Likewise.
80401         * lib/same.c: Likewise.
80402         * lib/savedir.c: Likewise.
80403         * lib/stripslash.c: Likewise.
80404         * lib/tempname.c: Likewise.
80405         * lib/xreadlink.c: Likewise.
80406         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
80407         All uses changed.
80408         * lib/exclude.h: Likewise.
80409
80410         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
80411         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80412         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
80413         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80414         * lib/pathmax.h: Include <limits.h> unconditionally, since other
80415         files have been getting away with it for years (MORE/BSD 4.3
80416         is extinct now).
80417         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
80418         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
80419
80420         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
80421         Define to 256, not 255, as per modern POSIX.
80422
80423 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80424
80425         Sync from coreutils.
80426         Use "file name" when talking about file names, instead of "filename"
80427         or "path", as per the GNU coding standards.
80428         * MODULES.html.sh: mkdir-p renamed from makepath.
80429         filenamecat renamed from path-concat.
80430         * modules/filenamecat: Renamed from modules/path-concat.
80431         (Files): filenamecat.h and filenamecat.c renamed from
80432         path-concat.h and path-concat.c.
80433         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
80434         (Include): filenamecat.h, not path-concat.h.
80435         * modules/mkdir-p: Renamed from modules/makepath.
80436         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
80437         makepath.c.
80438         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
80439         (Include): mkdir-p.h, not makepath.h.
80440
80441 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         Sync from coreutils.
80444         * m4/mkdir-p.m4: Renamed from makepath.m4.
80445         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
80446         Rename files from makepath.c to mkdir-p.c, and from
80447         makepath.h to mkdir-p.h.
80448         * m4/filenamecat.m4: Renamed from path-concat.m4.
80449         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
80450         Rename files from path-concat.c to filenamecat.c,
80451         and from path-concat.h to filenamecat.h.
80452         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
80453         "file name" in local variables or comments.
80454         * m4/rename.m4: Likewise.
80455
80456 2005-06-01  Bruno Haible  <bruno@clisp.org>
80457
80458         * modules/csharpexec: New file.
80459         * MODULES.html.sh (C#): New section.
80460
80461 2005-06-01  Bruno Haible  <bruno@clisp.org>
80462
80463         * m4/csharp.m4: New file, from GNU gettext.
80464         * m4/csharpexec.m4: New file, from GNU gettext.
80465
80466 2005-06-01  Bruno Haible  <bruno@clisp.org>
80467
80468         * lib/csharpexec.h: New file, from GNU gettext.
80469         * lib/csharpexec.c: New file, from GNU gettext.
80470         * lib/csharpexec.sh.in: New file, from GNU gettext.
80471
80472 2005-05-31  Derek Price  <derek@ximbiot.com>
80473             Paul Eggert  <eggert@cs.ucla.edu>
80474
80475         Sync from cvs.
80476         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
80477
80478 2005-05-31  Derek Price  <derek@ximbiot.com>
80479             Paul Eggert  <eggert@cs.ucla.edu>
80480
80481         Sync from cvs.
80482         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
80483
80484 2005-05-29  Derek Price  <derek@ximbiot.com>
80485
80486         * config/srclist.txt (glob_.h, glob.c): Add these files.
80487
80488 2005-05-29  Derek Price  <derek@ximbiot.com>
80489
80490         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
80491         * modules/glob: New file.
80492         * modules/getlogin_r: Add link to POSIX spec in description.
80493
80494 2005-05-29  Derek Price  <derek@ximbiot.com>
80495             Paul Eggert  <eggert@cs.ucla.edu>
80496
80497         * m4/glob.m4: New file.
80498
80499 2005-05-29  Derek Price  <derek@ximbiot.com>
80500             Paul Eggert  <eggert@cs.ucla.edu>
80501
80502         * lib/glob_.h, lib/glob.c: New files.
80503
80504 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80505
80506         * modules/fts (Files): Remove m4/inttypes-pri.m4.
80507         * modules/fts-lgpl (Depends-on): Remove gettext.
80508
80509 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80510
80511         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
80512         and don't require gt_INTTYPES_PRI.
80513
80514 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
80515
80516         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
80517
80518         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
80519         the configuration hassle isn't worth it.
80520         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
80521         (LONGEST_MODIFIER, PRIuMAX): Remove.
80522
80523 2005-05-27  Bruno Haible  <bruno@clisp.org>
80524
80525         * lib/getlogin_r.h: Remove second include of <stddef.h>.
80526
80527 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
80528
80529         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
80530         _POSIX_PTHREAD_SEMANTICS for Solaris.
80531
80532 2005-05-25  Derek Price  <derek@ximbiot.com>
80533
80534         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
80535
80536 2005-05-25  Derek Price  <derek@ximbiot.com>
80537             Paul Eggert  <eggert@cs.ucla.edu>
80538
80539         * modules/getlogin_r, m4/getlogin_r.m4: New files.
80540         * lib/getlogin_r.c, getlogin_r.h: New files.
80541
80542 2005-05-25  Bruno Haible  <bruno@clisp.org>
80543             Derek Price  <derek@ximbiot.com>
80544
80545         * lib/getlogin_r.h: Simplify API documentation.
80546
80547 2005-05-23  Derek Price  <derek@ximbiot.com>
80548
80549         * modules/minmax (Files): Add m4/minmax.m4.
80550         (configure.ac): Add gl_MINMAX.
80551
80552 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80553
80554         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
80555         so that unistd-safer.h (GPL'ed code) need not be included.
80556
80557 2005-05-22  Bruno Haible  <bruno@clisp.org>
80558
80559         * m4/minmax.m4: New file.
80560         Based on a patch by Derek Price <derek@ximbiot.com>.
80561
80562 2005-05-22  Bruno Haible  <bruno@clisp.org>
80563
80564         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
80565         (INT64_MIN): Fix definition.
80566         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
80567
80568         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
80569         NEED_SIGNED_INT_TYPES.
80570
80571         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
80572         HAVE_SYSTEM_INTTYPES.
80573
80574 2005-05-22  Bruno Haible  <bruno@clisp.org>
80575
80576         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
80577         Also include <sys/param.h> if it defines MIN, MAX.
80578         Based on a patch by Derek Price <derek@ximbiot.com>.
80579
80580 2005-05-21  Jim Meyering  <jim@meyering.net>
80581
80582         * modules/fts (Files): Add m4/inttypes-pri.m4.
80583         (Depends-on): Add lstat and remove gettext.  Alphabetize.
80584
80585 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80586
80587         New fts module.
80588         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
80589         (setup_dir, free_dir): New functions.
80590         (enter_dir, leave_dir): Define trivial
80591         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
80592         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
80593         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
80594         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
80595         Move to fts-cycle.c.
80596         (fts_open): Use setup_dir.
80597         (fts_close): Use free_dir.
80598         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
80599         This adds a label and some gotos, but the alternatives were messier.
80600         Check for memory allocation failure when entering a dir.
80601         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
80602         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
80603         (FTS): New member fts_cycle, that is a union that contains the
80604         old active_dir_ht and cycle_state.  All uses changed to mention
80605         fts_cycle.ht and fts_cycle.state.
80606         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
80607         fts.c, with the following changes:
80608         (setup_dir, free_dir): New functions.
80609         (enter_dir): Now returns bool.  Return true if successful, false
80610         if memory exhausted.  All callers changed.
80611         Do not bother partly cleaning up on
80612         memory allocation failure; that is free_dir's job.
80613         However, free ad if hash_insert fails, to avoid memory leak.
80614         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
80615         fts->fts_options to see which union member to use.
80616
80617 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
80620         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
80621
80622 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80623
80624         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
80625
80626 2005-05-20  Jim Meyering  <jim@meyering.net>
80627
80628         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
80629         Now a macro, to pacify GCC.
80630
80631 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
80632
80633         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
80634         of -1.
80635
80636 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
80637
80638         * lib/chown.c (rpl_chown): Return -1 on failure.
80639
80640 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
80641
80642         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
80643         Don't check for stddef.h.
80644         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
80645         don't use its results.
80646         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
80647         since we include them unconditionally.  Don't require
80648         AM_STDBOOL_H, since stdbool is a prerequisite.
80649         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
80650         since we assume C89 or better.
80651         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
80652         as we don't use their results.
80653         Don't check for fchdir, memmove, memset, strrchr, as we use
80654         them unconditionally.
80655         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
80656         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
80657
80658 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
80661         Include <stddef.h> unconditionally, since we assume C89 now.
80662         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
80663         * lib/fts.c: Include fts_.h first, to check interface.
80664         Do not include intprops.h; no longer needed.
80665         Include cycle-check.h and hash.h, since fts_.h no longer does.
80666         Remove unnecessary casts of closedir to void.
80667         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
80668         decide whether to decrement nlinks.
80669         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
80670         (FTS): Use struct hash_table * instead of Hash_table, so that
80671         we no longer need to include hash.h here.
80672
80673 2005-05-18  Jim Meyering  <jim@meyering.net>
80674
80675         * modules/dirfd (License): Change to LGPL.  Most of the code
80676         is already in the public domain.
80677
80678 2005-05-18  Jim Meyering  <jim@meyering.net>
80679
80680         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
80681         Reported by Yoann Vandoorselaere.
80682
80683 2005-05-17  Jim Meyering  <jim@meyering.net>
80684
80685         * m4/fts.m4: New file, from coreutils.
80686
80687 2005-05-17  Jim Meyering  <jim@meyering.net>
80688
80689         * lib/fts.c, lib/fts_.h: New files, from coreutils.
80690
80691 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         Sync from coreutils.
80694         * m4/unlinkdir.m4: New file.
80695
80696 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80697
80698         Sync from coreutils.
80699         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
80700         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
80701         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
80702         White space changes only.
80703         * lib/makepath.c (make_path): Port to hosts where leading "//" is
80704         special.
80705         * lib/yesno.c: Include getline.h, not ctype.h.
80706         (yesno): Don't remove leading white space; POSIX doesn't allow it.
80707         Use getline to remove arbitrary restriction on response length.
80708
80709 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80710
80711         * config/srclist-update: Spell out "Street" in FSF postal
80712         mail address; this is the style the FSF seems to prefer.
80713
80714         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
80715         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
80716         this updates FSF postal mail address.
80717
80718         Sync from coreutils.
80719         * modules/unlinkdir: New file.
80720         * modules/yesno (Depends-on): Add getline.
80721         * MODULES.html.sh (File system functions): Add unlinkdir.
80722
80723 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80724
80725         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
80726         lib/strsep.h:
80727         Change the initial comment to refer to GPL, not LGPL.
80728         gnulib-tool will change it to LGPL as needed.
80729
80730         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
80731         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
80732         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
80733         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
80734         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
80735         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
80736         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
80737         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
80738         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
80739         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
80740         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
80741         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
80742         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
80743         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
80744         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
80745         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
80746         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
80747         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
80748         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
80749         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
80750         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
80751         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
80752         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
80753         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
80754         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
80755         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
80756         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
80757         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
80758         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
80759         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
80760         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
80761         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
80762         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
80763         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
80764         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
80765         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
80766         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
80767         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
80768         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
80769         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
80770         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
80771         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
80772         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
80773         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
80774         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
80775         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
80776         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
80777         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
80778         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
80779         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
80780         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80781         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
80782         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
80783         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
80784         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
80785         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
80786         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
80787         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
80788         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
80789         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
80790         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
80791         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
80792         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
80793         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
80794         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
80795         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
80796         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
80797         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
80798         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
80799         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
80800         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
80801         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
80802         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
80803         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
80804         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
80805         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
80806         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
80807         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
80808         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
80809         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
80810         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
80811         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
80812         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
80813         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
80814         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
80815         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
80816         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
80817         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
80818         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
80819         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
80820         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
80821         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
80822         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
80823         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
80824         lib/yesno.c, lib/yesno.h:
80825         Update FSF postal mail address.
80826
80827 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80828
80829         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
80830         tests/test-memmem.c, tests/test-stpncpy.c:
80831         Update FSF postal mail address.
80832
80833 2005-05-13  Bruno Haible  <bruno@clisp.org>
80834
80835         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
80836         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
80837         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
80838         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
80839         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
80840         Add support for 64-bit integers in the MSVC compiler.
80841
80842 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80843
80844         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
80845
80846 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
80847
80848         * gnulib-tool (func_import): Sort and uniquify recommended includes.
80849
80850 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
80851
80852         * doc/getdate.texi (General date syntax): Don't say that date
80853         date --iso-8601=ns generates acceptable dates; it doesn't yet.
80854         Problem reported by Nic Ferrier.
80855
80856 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80857
80858         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
80859         specified in ai_socktype. Fix invalid ai_protocol
80860         check. ai_protocol is usually set to 0 or depending on
80861         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
80862         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
80863         ai_socktype / ai_protocol in the returned addrinfo structure.
80864
80865 2005-05-10  Simon Josefsson  <jas@extundo.com>
80866
80867         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
80868         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80869
80870 2005-05-10  Karl Berry  <karl@gnu.org>
80871
80872         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
80873         (from http://www.gnu.org/licenses).
80874         * doc/COPYING.LIB: also rename to COPYING.LESSER.
80875         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
80876         fdl.texi suffices.
80877
80878 2005-05-10  Karl Berry  <karl@gnu.org>
80879
80880         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
80881         (COPYING.DOC): remove.
80882
80883         * config/srclist-update: new FSF address.
80884
80885 2005-05-10  Derek Price  <derek@ximbiot.com>
80886
80887         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
80888         possible.
80889
80890 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80891             Bruno Haible  <bruno@clisp.org>
80892
80893         * modules/inet_ntop: New file.
80894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80895         inet_ntop.
80896
80897 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80898             Bruno Haible  <bruno@clisp.org>
80899
80900         * m4/inet_ntop.m4: New file.
80901
80902 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80903             Bruno Haible  <bruno@clisp.org>
80904
80905         * lib/inet_ntop.h: New file.
80906         * lib/inet_ntop.c: New file, from glibc with modifications.
80907
80908 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
80909
80910         * modules/time_r (License): Change to LGPL.
80911         * modules/extensions (License): Change to LGPL.  Actually,
80912         the license is more permissive than that, but currently gnulib-tool
80913         doesn't know how to handle more-permissive licenses.
80914
80915         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
80916         Problem reported by Dave Love.
80917
80918 2005-05-08  Jim Meyering  <jim@meyering.net>
80919
80920         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
80921         blank.
80922
80923 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80924
80925         * modules/argmatch (Depends-on): Add stdbool.
80926         * modules/backupfile (Depends-on): Likewise.
80927         * modules/chdir-long (Depends-on): Likewise.
80928         * modules/closeout (Depends-on): Likewise.
80929         * modules/cycle-check (Depends-on): Likewise.
80930         * modules/dirname (Depends-on): Likewise.
80931         * modules/fnmatch (Depends-on): Likewise.
80932         * modules/fsusage (Depends-on): Likewise.
80933         * modules/fwriteerror (Depends-on): Likewise.
80934         * modules/getcwd (Depends-on): Likewise.
80935         * modules/getloadavg (Depends-on): Likewise.
80936         * modules/hard-locale (Depends-on): Likewise.
80937         * modules/makepath (Depends-on): Likewise.
80938         * modules/mountlist (Depends-on): Likewise.
80939         * modules/nanosleep (Depends-on): Likewise.
80940         * modules/posixtm (Depends-on): Likewise.
80941         * modules/quotearg (Depends-on): Likewise.
80942         * modules/readtokens (Depends-on): Likewise.
80943         * modules/readtokens0 (Depends-on): Likewise.
80944         * modules/readutmp (Depends-on): Likewise.
80945         * modules/save-cwd (Depends-on): Likewise.
80946         * modules/strftime (Depends-on): Likewise.
80947         * modules/userspec (Depends-on): Likewise.
80948         * modules/utimecmp (Depends-on): Likewise.
80949         * modules/xgetcwd (Depends-on): Likewise.
80950         * modules/xnanosleep (Depends-on): Likewise.
80951         * modules/xstrtod (Depends-on): Likewise.
80952         * modules/yesno (Depends-on): Likewise.
80953
80954 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
80955
80956         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
80957         needless checks.
80958
80959 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80960
80961         Merge from coreutils.  Among other things,
80962         add bulletproofing for cases where stdin, stdout, or stderr are closed.
80963         * lib/fd-safer.c: New file.
80964         * lib/fcntl-safer.h, open-safer.c: Remove.
80965         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
80966         * lib/dup-safer.c: Include unistd-safer.h first.
80967         Don't include errno.h.
80968         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
80969         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
80970         * lib/file-type.c: Rely on file-type.h change.
80971         * lib/getloadavg.c: Include unistd-safer.h.
80972         (getloadavg): Use safer open.
80973         * lib/getusershell.c: Include "stdio-safer.h".
80974         (getusershell): Use safer fopen.
80975         * lib/long-options.c (long_options): Use NULL rather than 0.
80976         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
80977         'free'.
80978         * lib/modechange.c: Likewise.
80979         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
80980         (MODE_DONE): New constant.
80981         (struct mode_change): Remove 'next' member.
80982         (make_node_op_equals): New function; like the old one of the
80983         same name, except it allocates an array.
80984         (mode_compile, mode_create_from_ref): Use it.
80985         (mode_compile): Allocate result as an array, not a linked list.
80986         Parse octal string ourself, so that we catch mistakes like "+0".
80987         (mode_adjust): Arg is an array, not a linked list.
80988         * lib/modechange.c: Include stat-macros.h, xalloc.h.
80989         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
80990         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
80991         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
80992         Remove.  This is now stat-macros.h's job.
80993         (talloc): Remove.  All callers replaced by xalloc, so that
80994         our invokers don't have to worry about reporting memory failures.
80995         (make_node_op_equals): Remove.
80996         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80997         New constants.
80998         (struct mode_change): Moved here from modechange.h.
80999         (mode_append_entry): Remove.
81000         (mode_compile): Remove MASKED_OPS arg, since it encouraged
81001         apps to have incorrect behavior.  Use simpler algorithm for head
81002         and tail.  Don't futz with umask; that's now the job of mode_adjust.
81003         Detect more invalid usages rather than having somewhat-random behavior.
81004         Don't insert an "a=" action, as that leads to incorrect behavior.
81005         (mode_compile, mode_create_from_ref): Return NULL on error instead
81006         of an enum, since now there's only one way to have an error.  All
81007         callers changed.
81008         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
81009         at the correct time.  Simplify calculation of "+u" and its ilk.
81010         Don't mishandle "+X".
81011         (mode_free): Remove "register" and localize decls.
81012         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81013         (struct mode_change): Move to modechange.c; callers don't
81014         need to see this stuff.
81015         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
81016         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
81017         (mode_change, mode_adjust): Reflect the new signatures noted above.
81018         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
81019         that might redefine system include files.
81020         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
81021         (my_usleep): Use NULL rather than (void *) 0.
81022         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
81023         Use siginterrupt to specify that system calls should be interrupted.
81024         (rpl_nanosleep): Move initialization of suspended closer to call of
81025         my_usleep.
81026         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
81027         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
81028         (desirable_utmp_entry): New function.
81029         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
81030         using x2nrealloc, to simplify logic.
81031         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
81032         size calculation.  Do not assume utmp file is a regular file.
81033         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
81034         (READ_UTMP_CHECK_PIDS): New constant.
81035         * lib/save-cwd.c: Include unistd-safer.h.
81036         (save_cwd): Use fd_safer.
81037         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
81038         [!_LIBC] Include "stat-macros.h" instead.
81039         * lib/unistd-safer.h (fd_safer): New decl.
81040
81041 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * modules/getloadavg (Depends-on): Add unistd-safer.
81044         * modules/getusershell (Depends-on): Add stdio-safer.
81045         * modules/lstat (Depends-on): Remove xalloc.
81046         * modules/mkstemp (Depends-on): Add stat-macros.
81047         * modules/modechange (Depends-on): Remove xstrtol.
81048         Add stat-macros, xalloc.
81049         * modules/save-cwd (Depends-on): Add unistd-safer.
81050         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
81051         * modules/unistd-safer (Files): Add lib/fd-safer.c
81052         (Makefile.am): Remove lib_SOURCES.
81053
81054         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
81055         Remove fcntl-safer; unistd-safer supersedes it.
81056
81057 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81058
81059         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
81060         AC_HEADER_STAT.
81061         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
81062         (gl_PREREQ_CHOWN): Remove.
81063         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
81064         it.  Don't require AC_HEADER_STAT.
81065         (gl_PREREQ_LSTAT): Remove.
81066         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
81067         Don't require AC_HEADER_STAT.
81068         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
81069         (gl_PREREQ_RMDIR): Remove.
81070         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
81071         mention stat-macros.h or AC_HEADER_STAT, since we'll make
81072         the stat-macros module a prerequisite.
81073         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
81074         * m4/filemode.m4 (gl_FILEMODE): Likewise.
81075         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
81076         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
81077         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
81078         variable names.
81079         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
81080         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
81081         variable prefixes.
81082         * m4/fcntl-safer.m4: Remove.
81083         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
81084         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
81085         Invoke gl_PREREQ_FD_SAFER.
81086         (gl_PREREQ_FD_SAFER): New macro.
81087         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
81088         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
81089         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
81090         Remove duplicate call to AC_LIBOBJ(readutmp).
81091         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
81092
81093         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
81094         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
81095
81096 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81097
81098         * MODULES.html.sh (Misc): Add byteswap.
81099
81100 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81101
81102         * modules/getcwd (Depends-on): Add extensions.
81103         * modules/openat (Depends-on): Likewise.
81104
81105 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81106
81107         * modules/byteswap: New file.
81108
81109 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81110
81111         * m4/byteswap.m4: New file.
81112
81113 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81114
81115         * lib/byteswap_.h: New file.
81116
81117 2005-04-25  Karl Berry  <karl@gnu.org>
81118
81119         * m4/gettext.m4: Update from GNU gettext 0.14.4.
81120
81121 2005-04-25  Albert Chin  <china@thewrittenword.com>
81122
81123         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
81124         Toolkit C bug.
81125
81126 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
81127
81128         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
81129         (func_ln_if_changed): Remove forcibly for no error message
81130         in case file does not exist.
81131
81132 2005-04-19  Simon Josefsson  <jas@extundo.com>
81133
81134         * gnulib-tool (Options): Make --symlink mean --symbolic.
81135
81136 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
81137
81138         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
81139
81140 2005-04-16  Simon Josefsson  <jas@extundo.com>
81141
81142         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
81143
81144 2005-04-15  Simon Josefsson  <jas@extundo.com>
81145
81146         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
81147
81148 2005-04-15  Simon Josefsson  <jas@extundo.com>
81149
81150         * gnulib-tool: Rename --symlink to --symbolic.
81151
81152 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
81153
81154         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
81155         symbolic links to files instead of copying/moving.  Add --aux-dir,
81156         specifying directory relative --dir where auxiliary build tools
81157         are placed.
81158
81159 2005-04-14  Bruno Haible  <bruno@clisp.org>
81160
81161         * modules/allocsa (License): Change to LGPL.
81162         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
81163
81164 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81165
81166         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
81167         that "UTC +1 second" continues to work.  Problem reported
81168         by Dmitry V. Levin.
81169         (relunit_snumber): New rule.
81170         (relunit): Use it.
81171
81172 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81173
81174         * lib/getdate.y (universal_time_zone_table): New constant.
81175         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
81176         universal_time_zone_table.
81177         (lookup_zone): Prefer universal_time_zone_table to
81178         local_time_zone_table, so that "GMT" time stamps are allowed in
81179         London during the summer.  Problem reported by Ian Abbott.
81180
81181 2005-04-12  Jim Meyering  <jim@meyering.net>
81182
81183         * lib/human.c (humblock): Set *options even when returning due to
81184         xstrtoumax conversion failure.  Thanks to a used-uninitialized
81185         warning from gcc-4.
81186
81187 2005-04-09  Jim Meyering  <jim@meyering.net>
81188
81189         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
81190         -Wuninitialized: initialize tm0.tm_year.
81191
81192 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
81193
81194         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
81195         count, since there's no maximum.  All uses changed.
81196         Add member dsts_seen.
81197         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
81198         not being INT_MAX.
81199         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
81200         Use pc_rels_seen to decide whther a date is absolute.
81201
81202         * lib/getdate.y (number): Don't overwrite year.
81203         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
81204         check.
81205
81206 2005-04-02  Simon Josefsson  <jas@extundo.com>
81207
81208         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
81209         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
81210
81211 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
81212
81213         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
81214         where no absolute path name can be longer than PATH_MAX.
81215
81216 2005-03-27  Jim Meyering  <jim@meyering.net>
81217
81218         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
81219
81220 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
81223         "one's complement" -> "ones' complement" in comment, as per Knuth.
81224         "value of type" -> "type or expression" in comment.
81225         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
81226
81227 2005-03-26  Jim Meyering  <jim@meyering.net>
81228
81229         Comment nits.
81230         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
81231         Correct typos: s/or/of/.
81232
81233 2005-03-26  Jim Meyering  <jim@meyering.net>
81234
81235         * modules/check-include-files: Move to ../ and rename to...
81236         * check-module: ...this.
81237
81238 2005-03-25  Jim Meyering  <jim@meyering.net>
81239
81240         * modules/xvasprintf (Files): Add xalloc.h.
81241
81242 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
81243
81244         * modules/gettext (Files): config/config.rpath ->
81245         build-aux/config.rpath
81246         * modules/iconv (Files): Likewise.
81247         Problem reported by Oskar Liljeblad.
81248
81249 2005-03-23  Jim Meyering  <jim@meyering.net>
81250
81251         * modules/check-include-files: New script to check for
81252         missing dependencies, multiple includes, etc.
81253
81254         * modules/c-strtold (Depends-on): Add xalloc.
81255         * modules/c-strtod (Depends-on): Add xalloc.
81256         * modules/hash (Depends-on): Add xalloc.
81257         (Files): Remove lib/xalloc.h.
81258
81259         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
81260         * modules/userspec (Files): Add lib/inttostr.h.
81261
81262 2005-03-23  Jim Meyering  <jim@meyering.net>
81263
81264         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
81265
81266 2005-03-22  Jim Meyering  <jim@meyering.net>
81267
81268         * modules/stat-macros: New module.
81269         * modules/canonicalize, modules/euidaccess, modules/file-type,
81270         * modules/filemode, modules/lchown, modules/makepath,
81271         * modules/rmdir, modules/stat: Depend on new stat-macros module
81272         rather than listing lib/stat-macros.h manually.
81273         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
81274
81275 2005-03-22  Jim Meyering  <jim@meyering.net>
81276
81277         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
81278
81279 2005-03-22  Bruno Haible  <bruno@clisp.org>
81280
81281         * config/srclist.txt: Replace target directory 'config' with
81282         'build-aux'.
81283         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
81284         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
81285         ../build-aux/.
81286
81287 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
81288
81289         * modules/chdir-long (Depends-on): Add mempcpy.
81290
81291         * modules/acl, modules/backupfile, modules/c-strtod,
81292         modules/c-strtold, modules/canon-host, modules/canonicalize,
81293         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
81294         modules/exclude, modules/exitfail, modules/file-type,
81295         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
81296         modules/getdate, modules/getline, modules/getpagesize,
81297         modules/getpass, modules/getugroups, modules/group-member,
81298         modules/hard-locale, modules/hash, modules/human, modules/idcache,
81299         modules/inttostr, modules/long-options, modules/makepath,
81300         modules/md5, modules/memcasecmp, modules/memcoll,
81301         modules/modechange, modules/mountlist, modules/path-concat,
81302         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
81303         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
81304         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
81305         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
81306         modules/strftime, modules/strndup, modules/strverscmp,
81307         modules/timespec, modules/unlocked-io, modules/userspec,
81308         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
81309         modules/yesno:
81310         Remove lib_SOURCES line from Makefile.am section, as this is now
81311         done automatically by the corresponding Autoconf macro.
81312
81313 2005-03-21  Jim Meyering  <jim@meyering.net>
81314
81315         Changes imported from coreutils.
81316
81317         * lib/cycle-check.c: Don't include xalloc.h.
81318
81319         * lib/path-concat.c: Don't include assert.h.
81320         (path_concat): Remove assertion that would have triggered
81321         for ABASE starting with more than one slash.
81322         Reported by Andreas Schwab.
81323
81324         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
81325         properly when ABASE is an absolute file name.
81326         Correct the description of this function.
81327         Include <assert.h>.
81328         Add an assertion and a test driver.
81329         This fixes a bug introduced on 2004-07-02.
81330         Andreas Schwab reported the resulting failure of cp --parents:
81331         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
81332
81333 2005-03-21  Jim Meyering  <jim@meyering.net>
81334
81335         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
81336         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
81337
81338 2005-03-21  Jim Meyering  <jim@meyering.net>
81339         and  Paul Eggert  <eggert@cs.ucla.edu>
81340
81341         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
81342         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
81343         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
81344         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
81345         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
81346         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
81347         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
81348         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
81349         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
81350         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
81351         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
81352         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
81353         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
81354         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
81355         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
81356         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
81357         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
81358         for these modules.
81359
81360 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
81361
81362         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
81363         (which shouldn't happen), generate nothing instead of returning 0
81364         immediately, so that nstrftime (NULL, ...) doesn't return 0.
81365
81366 2005-03-16  Bruno Haible  <bruno@clisp.org>
81367
81368         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
81369         HAVE_LONGLONG_64BIT.
81370
81371 2005-03-16  Bruno Haible  <bruno@clisp.org>
81372
81373         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
81374         HAVE_LONGLONG_64BIT.
81375
81376 2005-03-16  Bruno Haible  <bruno@clisp.org>
81377
81378         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
81379         HAVE_LONGLONG_64BIT.
81380
81381 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
81382
81383         * lib/strftime.c (my_strftime): Prepend space to format so that we can
81384         reliably distinguish strftime failure from empty output on POSIX
81385         hosts.
81386
81387 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
81388
81389         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
81390         (iconv_string): Don't guess a size-zero buffer, as that might cause
81391         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
81392         result would be 'too large', where 'too large' is (heuristically)
81393         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
81394         overflow concerns.  This will prevent some unwanted malloc failures
81395         when the inputs are very large.
81396
81397 2005-03-15  Karl Berry  <karl@gnu.org>
81398
81399         * config/srclist.txt (config.rpath): from gettext.
81400         * config/config.rpath: update.
81401
81402 2005-03-15  Bruno Haible  <bruno@clisp.org>
81403
81404         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
81405         to 'negate'.
81406
81407         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
81408         variable.
81409
81410         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
81411         results.
81412
81413 2005-03-14  Simon Josefsson  <jas@extundo.com>
81414
81415         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
81416         <fx@gnu.org>.
81417
81418 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
81419
81420         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
81421         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
81422         intprops.h.
81423         * lib/strtol.c: Likewise.
81424
81425 2005-03-14  Jim Meyering  <jim@meyering.net>
81426
81427         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
81428         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
81429         to be nonzero so that we (and caller) can detect the difference
81430         between a valid zero-length expansion and an error return, even
81431         when the underlying strftime fails before writing anything into
81432         that location.
81433
81434 2005-03-14  Bruno Haible  <bruno@clisp.org>
81435
81436         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
81437         Update from GNU gettext 0.14.3.
81438
81439 2005-03-10  Jim Meyering  <jim@meyering.net>
81440
81441         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
81442
81443 2005-03-10  Jim Meyering  <jim@meyering.net>
81444
81445         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
81446         so that this module works on systems without fchdir.
81447
81448 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
81449
81450         Factor int-properties macros into a single file, except for
81451         glibc-related files.
81452         * lib/intprops.h: New file.
81453         * lib/getloadavg.c: Include it instead of limits.h.
81454         (INT_STRLEN_BOUND): Remove.
81455         * lib/human.c: Include intprops.h.
81456         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
81457         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
81458         302/1000.
81459         * lib/inttostr.h: Include intprops.h instead of limits.h.
81460         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
81461         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
81462         for consistency with intprops.h.
81463         (time_t_is_integer, twos_complement_arithmetic): Use them.
81464         * lib/sig2str.h: Include <signal.h>, intprops.h.
81465         (INT_STRLEN_BOUND): Remove.
81466         * lib/strftime.c (TYPE_SIGNED): Remove.
81467         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
81468         * lib/strtol.c: Adjust comments to match intprops.h.
81469         * lib/userspec.c: Include intprops.h.
81470         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
81471         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
81472         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
81473         instead of rolling our own expressions.
81474         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
81475
81476         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
81477         instead of int.
81478         (my_strftime): Do not mishandle years close to INT_MAX, by doing
81479         the right thing even if adding 1900 would overflow.  Similarly
81480         for tm_mon + 1 and tm_yday + 1.
81481         Make %Y always equivalent to %C%y, and similarly for %G and %g.
81482         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
81483         (DO_SIGNED_NUMBER): New macro.
81484         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
81485
81486 2005-03-07  Bruno Haible  <bruno@clisp.org>
81487
81488         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
81489
81490 2005-03-07  Bruno Haible  <bruno@clisp.org>
81491
81492         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
81493
81494 2005-03-04  Derek R. Price  <derek@ximbiot.com>
81495
81496         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
81497         (func_import): Only replace files via --import when they have actually
81498         changed.
81499
81500 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81501
81502         * m4/mmap-anon.m4: New file.
81503         * m4/pagealign_alloc.m4: New file.
81504
81505 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81506             Bruno Haible  <bruno@clisp.org>
81507
81508         * modules/pagealign_alloc: New file.
81509         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
81510
81511 2005-03-03  Derek R. Price  <derek@ximbiot.com>
81512             Bruno Haible  <bruno@clisp.org>
81513
81514         * lib/pagealign_alloc.h: New file.
81515         * lib/pagealign_alloc.c: New file.
81516
81517 2005-03-03  Bruno Haible  <bruno@clisp.org>
81518
81519         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
81520         Use an all-permissive copyright notice, recommended by RMS.
81521
81522 2005-03-02  Bruno Haible  <bruno@clisp.org>
81523
81524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
81525         of AIX, the replacement has to be done only after <string.h> is
81526         included, therefore not in config.h. stpncpy.h does the replacement,
81527         and stpncpy.c uses it.
81528
81529 2005-03-02  Bruno Haible  <bruno@clisp.org>
81530
81531         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
81532         stpncpy.c uses it.
81533
81534 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81535
81536         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
81537         The workaround isn't strictly needed for POSIX conformance, and
81538         it's too much of a pain to configure and maintain.  We'll ask
81539         people to fix their kernels instead.
81540         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
81541         (NANOSLEEP_BUG_WORKAROUND): Remove.
81542         (xnanosleep): Remove the workaround.
81543
81544 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81545
81546         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
81547         Reported by Derek Price.
81548         (Include): Add "timespec.h".
81549
81550         * modules/xnanosleep (Depends-on): Remove gethrxtime.
81551
81552 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81553
81554         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
81555         to detect nanosleep bug.
81556
81557 2005-03-01  Bruno Haible  <bruno@clisp.org>
81558
81559         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
81560
81561 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81562
81563         * modules/gethrxtime: New file.
81564         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
81565         (Depends-on): Add gethrxtime.
81566         (configure.ac): Add gl_XNANOSLEEP.
81567         (Makefile.am): Remove lib_SOURCES line.
81568
81569 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
81570
81571         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
81572         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
81573
81574 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
81575
81576         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
81577         * lib/timespec.h (gettime): Return void, since it always
81578         succeeds now.  All uses changed.
81579         * lib/gettime.c (gettime): Likewise.
81580         [HAVE_NANOTIME]: Prefer nanotime.
81581         Assume gettimeofday succeeds, as POSIX requires.
81582         Assime time () succeeds, since other code already does.
81583         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
81584         (timespec_subtract): Remove.
81585         (NANOSLEEP_BUG_WORKAROUND): New constant.
81586         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
81587         things considerably.  Use it only on GNU/Linux hosts, since the
81588         workaround shouldn't be needed elsewhere.
81589
81590 2005-02-24  Bruno Haible  <bruno@clisp.org>
81591
81592         * modules/gettext (Files): Add m4/glibc2.m4.
81593
81594 2005-02-24  Bruno Haible  <bruno@clisp.org>
81595
81596         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
81597         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
81598         * m4/progtest.m4:
81599         Update from GNU gettext 0.14.2.
81600         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
81601
81602 2005-02-24  Bruno Haible  <bruno@clisp.org>
81603
81604         * lib/localcharset.c: Update from GNU gettext 0.14.2.
81605         * lib/config.charset: Update from GNU gettext 0.14.2.
81606
81607 2005-02-24  Bruno Haible  <bruno@clisp.org>
81608
81609         * lib/gettext.h: Update from GNU gettext 0.14.2.
81610
81611 2005-02-23  Simon Josefsson  <jas@extundo.com>
81612
81613         * m4/iconvme.m4: New file.
81614
81615 2005-02-23  Jim Meyering  <jim@meyering.net>
81616
81617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
81618         change.
81619         Thanks to Bruno Haible for catching it.
81620
81621 2005-02-22  Simon Josefsson  <jas@extundo.com>
81622
81623         * modules/iconvme: New file.
81624
81625         * MODULES.html.sh: Add iconvme.
81626
81627 2005-02-22  Simon Josefsson  <jas@extundo.com>
81628
81629         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
81630
81631 2005-02-22  Simon Josefsson  <jas@extundo.com>
81632
81633         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
81634
81635 2005-02-22  Jim Meyering  <jim@meyering.net>
81636
81637         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
81638         s/ifndef/ifdef/.
81639
81640 2005-02-20  Neil Conway  <neilc@samurai.com>
81641
81642         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
81643         returned by OSX/Darwin if the specified buffer is not large
81644         enough for the hostname.
81645
81646 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81647
81648         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
81649         pass it to _help, otherwise the latter coredumps trying to
81650         dereference state.root_argp.
81651
81652 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81653
81654         * modules/chdir-long (Depends-on): Add memrchr.
81655         * modules/memrchr (Files): Add lib/memrchr.h.
81656         (Include): "memrchr.h".
81657
81658 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81659
81660         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
81661
81662 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
81663
81664         * lib/memrchr.h: New file.
81665         * lib/chdir-long.c: Include it.
81666         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
81667         Don't bother including stddef.h.
81668
81669 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
81670
81671         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
81672         inclusion.
81673         Include <sys/types.h>, for dev_t.
81674         (ME_DUMMY, ME_REMOTE): Move from here....
81675         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
81676         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
81677         Dmitry V. Levin.
81678         Include mountlist.h first, to test the interface.
81679
81680 2005-01-29  Bruno Haible  <bruno@clisp.org>
81681
81682         * lib/progname.c (program_name): Initialize.
81683         Needed when linking statically on MacOS X.
81684
81685 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
81686
81687         Sync from coreutils.
81688         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
81689         (Depends-on): Add c-strtod.
81690         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
81691
81692 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
81693
81694         Sync from coreutils.
81695         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
81696
81697         Remove files that are specific to coreutils.
81698         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
81699
81700 2005-01-28  Bruno Haible  <bruno@clisp.org>
81701
81702         * modules/javacomp: New file.
81703         * MODULES.html.sh (Java): Add javacomp.
81704
81705 2005-01-28  Bruno Haible  <bruno@clisp.org>
81706
81707         * m4/javacomp.m4: New file, from GNU gettext.
81708
81709 2005-01-28  Bruno Haible  <bruno@clisp.org>
81710
81711         * lib/javacomp.sh.in: New file, from GNU gettext.
81712         * lib/javacomp.h: New file, from GNU gettext.
81713         * lib/javacomp.c: New file, from GNU gettext.
81714
81715 2005-01-26  Simon Josefsson  <jas@extundo.com>
81716
81717         * lib/gai_strerror.c: Use GPL in header.
81718
81719 2005-01-26  Bruno Haible  <bruno@clisp.org>
81720
81721         * modules/javaexec: New file.
81722         * MODULES.html.sh (Java): Add javaexec.
81723
81724 2005-01-26  Bruno Haible  <bruno@clisp.org>
81725
81726         * m4/javaexec.m4: New file, from GNU gettext.
81727
81728 2005-01-26  Bruno Haible  <bruno@clisp.org>
81729
81730         * lib/javaexec.sh.in: New file, from GNU gettext.
81731         * lib/javaexec.h: New file, from GNU gettext.
81732         * lib/javaexec.c: New file, from GNU gettext.
81733
81734 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81735
81736         * modules/lchown (Depends-on): Remove lchown.h
81737
81738 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81739
81740         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
81741         must be defined if the header file was not found, in order
81742         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
81743
81744 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81745
81746         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
81747         initializers for struct pentry_state.
81748         (__argp_error): Check return value of __asprintf
81749         (__argp_failure): Translate error message
81750
81751         * lib/argp-parse.c: Removed braces around the expansion of N_()
81752
81753 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81754
81755         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
81756         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
81757         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
81758         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
81759         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
81760         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
81761         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
81762         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
81763         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
81764         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
81765         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
81766         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
81767         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
81768         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
81769         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
81770         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
81771         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
81772         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
81773         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
81774         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
81775         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
81776         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
81777         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
81778         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
81779         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
81780         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
81781         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
81782         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
81783         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
81784         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
81785         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
81786         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
81787         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
81788         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
81789         xstrtol.m4, xstrtoumax.m4, yesno.m4:
81790         Use an all-permissive copyright notice, recommended by RMS.
81791
81792 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
81793
81794         * modules/chdir-long (Depends-on): Remove mempcpy.
81795
81796 2005-01-21  Jim Meyering  <jim@meyering.net>
81797
81798         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
81799         same value as for Solaris 9.
81800
81801         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
81802         component length.  This included changing the parameter to be
81803         of type `char *' rather than `char const *'.
81804         * lib/chdir-long.h (chdir_long): Update prototype.
81805
81806         * lib/openat.c (fdopendir, fstatat): New functions.
81807         * lib/openat.h: Include headers required for use of DIR and struct
81808         stat.
81809         [AT_SYMLINK_NOFOLLOW]: Define.
81810         (fdopendir, fstatat): Add prototypes.
81811
81812 2005-01-21  Bruno Haible  <bruno@clisp.org>
81813
81814         * modules/classpath: New file.
81815         * MODULES.html.sh (Java): Add classpath.
81816
81817 2005-01-21  Bruno Haible  <bruno@clisp.org>
81818
81819         * lib/classpath.h: New file, from GNU gettext.
81820         * lib/classpath.c: New file, from GNU gettext.
81821
81822 2005-01-20  Simon Josefsson  <jas@extundo.com>
81823
81824         * modules/version-etc-fsf: New file.
81825
81826 2005-01-20  Simon Josefsson  <jas@extundo.com>
81827
81828         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
81829         * lib/version-etc.c: Remove version_etc_copyright.
81830         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
81831         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
81832
81833 2005-01-20  Simon Josefsson  <jas@extundo.com>
81834
81835         * lib/base64.h (isbase64): Add.
81836
81837         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
81838         using a unsigned prototype, don't inline.
81839         (base64_decode): Use it.
81840
81841 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
81844         it.
81845
81846 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81847
81848         * lib/save-cwd.c (save_cwd): Remove code to support the case
81849         where fchdir is missing or flaky.
81850
81851 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81852
81853         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
81854
81855 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
81856
81857         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
81858         AC_LIBSOURCES now does this.
81859         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
81860         with new ullong_max module.
81861
81862 2005-01-19  Bruno Haible  <bruno@clisp.org>
81863
81864         * modules/sh-quote: New file.
81865         * MODULES.html.sh (Executing programs): Add sh-quote.
81866
81867 2005-01-19  Bruno Haible  <bruno@clisp.org>
81868
81869         * lib/sh-quote.h: New file, from GNU gettext.
81870         * lib/sh-quote.c: New file, from GNU gettext.
81871
81872 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         Merge from coreutils.
81875         * m4/ullong_max.m4: New file.
81876         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
81877         (gl_MACROS): Assume localeconv exists.
81878
81879 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81880
81881         Merge changes from coreutils, as described below in several
81882         changelogs dated today.
81883
81884         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
81885         (O_DIRECTORY): Remove; not needed here, since "." must be
81886         a directory.  All uses removed.
81887         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
81888         universal on Suns, and we also need to test for IRIX.
81889         Revamp code to use 'if' rather than '#if'.
81890         Avoid unnecessary comparison of cwd->desc to 0.
81891
81892         * lib/utimens.c (futimens): Robustify the previous patch, by checking
81893         for known valid error numbers rather than observed invalid ones.
81894
81895 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
81896
81897         * modules/ullong_max: New file.
81898
81899         * modules/chdir-long, modules/openat: New files.
81900         * modules/save-cwd (Depends-on): Depend on chdir-long.
81901         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
81902
81903 2005-01-18  Jim Meyering  <jim@meyering.net>
81904
81905         Merge from coreutils.
81906         * m4/chdir-long.m4, m4/openat.m4: New files.
81907         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
81908         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
81909         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
81910         is sane and DOES follow symlinks.  Besides, testing 20 different
81911         systems found no broken chown implementations.
81912         Prompted by a change in rsync's copy of this macro.
81913         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
81914
81915         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
81916
81917         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
81918         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
81919         NULL-means-set-to-current-time semantics.
81920         Remove temporary file immediately, rather than waiting
81921         for configure's at-exit trap code to do it.
81922
81923 2005-01-18  Jim Meyering  <jim@meyering.net>
81924
81925         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81926
81927         * lib/utimens.c (futimens): Account for the fact that futimes
81928         can also fail with errno == ENOSYS or errno == ENOENT.
81929         Patch from Dmitry V. Levin.
81930
81931         Change the name of the robust chdir function from chdir to chdir_long.
81932         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
81933         (restore_cwd): Use chdir_long, not chdir.
81934         * lib/chdir-long.c: Renamed from chdir.c.
81935         * lib/chdir-long.h: Renamed from chdir.h.
81936         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
81937         Hurd.
81938
81939 2005-01-18  Bruno Haible  <bruno@clisp.org>
81940
81941         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
81942         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
81943         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
81944         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
81945         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
81946         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
81947         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
81948         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
81949         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
81950         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
81951         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
81952         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
81953         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
81954         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
81955         Use an all-permissive copyright notice, recommended by RMS.
81956
81957 2005-01-18  Bob Proulx  <bob@proulx.com>
81958
81959         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
81960         simplify offsetof() macro construct to avoid compile failure with
81961         native HP-UX 11.0 ANSI C compiler.
81962
81963 2005-01-17  Bruno Haible  <bruno@clisp.org>
81964
81965         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
81966         redundant because stpncpy.m4 takes care of it.
81967
81968 2005-01-17  Bruno Haible  <bruno@clisp.org>
81969
81970         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
81971
81972 2005-01-17  Bruno Haible  <bruno@clisp.org>
81973
81974         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
81975         used.
81976
81977 2005-01-17  Bruno Haible  <bruno@clisp.org>
81978
81979         * lib/fwriteerror.h (fwriteerror): Change specification to include
81980         fclose.
81981         * lib/fwriteerror.c: Include <stdbool.h>.
81982         (fwriteerror): At the end, close the file stream. Record whether
81983         stdout was already closed.
81984
81985 2005-01-17  Bruno Haible  <bruno@clisp.org>
81986
81987         * lib/execute.c (environ): Declare if needed.
81988         * lib/pipe.c (environ): Likewise.
81989         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
81990
81991 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81992
81993         * modules/argp: Depend on vsnprintf
81994
81995 2005-01-10  Jim Meyering  <jim@meyering.net>
81996
81997         * modules/closeout (Depends-on): Add atexit.
81998
81999 2005-01-06  Bruno Haible  <bruno@clisp.org>
82000
82001         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
82002
82003 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
82006         definitions to be after all include files, to avoid collisions.
82007         Problem reported by Bob Proulx.
82008
82009 2005-01-04  Jim Meyering  <jim@meyering.net>
82010
82011         Changes imported from coreutils.
82012         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
82013         as the mkstemp template, use a temporary directory and an
82014         8.3-friendly template to avoid trouble on systems like DJGPP.
82015         Reported by Juan M. Guerrero via Stepan Kasal.
82016         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
82017         close. Remove the temporary directory right away, rather than waiting
82018         for configure's at-exit trap code to do it.
82019         Suggestion from Stepan Kasal.
82020
82021 2005-01-01  Simon Josefsson  <jas@extundo.com>
82022
82023         * gnulib-tool: Print #include directives when --import'ing.
82024
82025 2004-12-28  Simon Josefsson  <jas@extundo.com>
82026
82027         * tests/test-base64.c: Include required header files.  Remove
82028         unused variables.
82029
82030 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82031
82032         * modules/error (Depends-on): Remove gettext.
82033
82034 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82035
82036         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
82037         not needed.  This removes a dependency on the gettext module.
82038         [defined _LIBC]: Do not include <libintl.h>; not needed.
82039
82040 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82041
82042         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
82043         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
82044
82045 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82046
82047         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
82048         HAVE_DECL_STRTOLD.
82049
82050 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82051
82052         * modules/getdate (Depends-on): Remove alloca-opt.
82053
82054 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82055
82056         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
82057
82058 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82059
82060         * lib/argp-parse.c: Include <stddef.h>.
82061         (alignof, alignto): New macros.
82062         (parser_init): Don't assume that void * is aligned sufficiently
82063         for struct option.
82064
82065         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
82066         need to extend the stack.
82067         (YYINITDEPTH): New macro, so that the initial stack isn't overly
82068         large.
82069
82070 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82071
82072         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
82073
82074 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82075
82076         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
82077         (2004-10-24) change.  Apparently this was a false alarm.
82078
82079         * modules/getdate: Depend on alloca-opt, not alloca.
82080
82081 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82082
82083         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
82084         Remove now-obsolete comment about AIX.
82085         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
82086         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
82087         (YYMAXDEPTH): New macro.
82088
82089 2004-12-18  Simon Josefsson  <jas@extundo.com>
82090
82091         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
82092
82093 2004-12-18  Bruno Haible  <bruno@clisp.org>
82094
82095         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
82096
82097 2004-12-18  Bruno Haible  <bruno@clisp.org>
82098
82099         * lib/fatal-signal.c (fatal_signals): Make non-const.
82100         (init_fatal_signals): New function.
82101         (uninstall_handlers, install_handlers): Ignore signals that were set to
82102         SIG_IGN.
82103         (at_fatal_signal): Call init_fatal_signals.
82104         (init_fatal_signal_set): Likewise. Ignore signals that were set to
82105         SIG_IGN.
82106         Reported by Paul Eggert.
82107
82108 2004-12-18  Bruno Haible  <bruno@clisp.org>
82109
82110         * doc/alloca.texi: New file.
82111         * doc/alloca-opt.texi: New file.
82112
82113 2004-12-17  Jim Meyering  <jim@meyering.net>
82114
82115         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
82116         Otherwise, install-sh could exit with improper exit status when
82117         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
82118
82119 2004-12-16  Simon Josefsson  <jas@extundo.com>
82120
82121         * tests/test-base64.c: Add license.
82122
82123 2004-12-15  Stepan Kasal  <address@hidden>
82124
82125         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
82126
82127 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
82128
82129         * modules/getcwd (Files): Add m4/d-ino.m4.
82130         Suggested by Mark D. Baushke.
82131
82132 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82133
82134         * lib/getdate.y (textint): New member "negative".
82135         (time_zone_hhmm): New function.
82136         Expect 14 shift-reduce conflicts, not 13.
82137         (o_colon_minutes): New rule.
82138         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
82139         (yylex): Set the "negative" member of signed numbers.
82140
82141 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         * doc/getdate.texi (Time of day items, Time zone items):
82144         Describe new formats +00:00, UTC+00:00.
82145
82146 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82147
82148         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
82149         spurious "-l"s.  Problem reported by Stepan Kasal.
82150
82151 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
82152
82153         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
82154         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
82155
82156 2004-12-04  Simon Josefsson  <jas@extundo.com>
82157
82158         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
82159         Vandoorselaere <yoann@prelude-ids.org>.
82160
82161 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82162
82163         Changes imported from coreutils.
82164         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
82165         exist.
82166         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
82167
82168 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82169
82170         Changes imported from coreutils.
82171         * lib/hard-locale.c: Assume <locale.h> exists.
82172         Include "strdup.h".
82173         (GLIBC_VERSION): New macro.
82174         (hard_locale): Assume setlocale exists.
82175         Rewrite to avoid #ifdef.
82176         Use strdup rather than malloc + strcpy.
82177         * lib/human.c: Assume <locale.h> exists.
82178         (human_readable): Assume localeconv exists.
82179
82180 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82181
82182         * modules/hard-locale (Depends-on): Add strdup.
82183
82184 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
82185
82186         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
82187         convert T2, not T.  (Imported from libc.)
82188
82189 2004-11-30  Simon Josefsson  <jas@extundo.com>
82190
82191         * modules/restrict (License): Change to LGPL.
82192
82193 2004-11-30  Simon Josefsson  <jas@extundo.com>
82194
82195         * m4/restrict.m4: Add copyright and copying conditions.
82196
82197 2004-11-30  Simon Josefsson  <jas@extundo.com>
82198
82199         * m4/base64.m4: New file.
82200
82201 2004-11-30  Simon Josefsson  <jas@extundo.com>
82202
82203         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
82204         base64.
82205
82206         * tests/test-base64.c: New file.
82207
82208         * modules/base64: New file.
82209
82210 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82211
82212         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
82213         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
82214
82215         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
82216
82217 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82218
82219         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
82220         (__getcwd.c): Don't restore errno; glibc doesn't.
82221         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
82222         first, falling back to our code only if its results look suspicious.
82223         Ensure that the resulting buffer is only as large as necessary.
82224
82225         * lib/readutmp.c: Include readutmp.h first.
82226         Include <errno.h>, since readutmp.h no longer does that.
82227         * lib/readutmp.h: Don't include <errno.h>,
82228         <sys/param.h>, <time.h>; not needed to establish interface.
82229         (errno): Remove decl.
82230         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
82231         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
82232         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
82233
82234 2004-11-28  Simon Josefsson  <jas@extundo.com>
82235
82236         * lib/base64.h, base64.c: New file.
82237
82238 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
82241
82242 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
82243
82244         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
82245         (Depends-on): Remove pathmax, same.  Add mempcpy.
82246         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
82247         (Makefile.am): Append getcwd.h to lib_SOURCES.
82248         (Include): Add getcwd.h.
82249         (Maintainer): Change from Jim Meyering to "all, glibc",
82250         since getdate now uses intended-for-glibc code.
82251         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
82252         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
82253
82254 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82255
82256         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
82257         HP's ANSI C compiler.
82258         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
82259         Declaring int functions causes warnings on some modern systems and
82260         shouldn't be needed to compile on ancient ones.
82261         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
82262         defined.
82263
82264         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
82265         with the following changes.
82266         (__set_errno): Parenthesize properly.
82267         Include <stdbool.h>.
82268         (MIN, MAX, MATCHING_INO): New macros.
82269         (__getcwd): Define with prototype, not K&R form.
82270         Use heuristics to allocate default buffer on stack if possible.
82271         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
82272         behavior, and to avoid the PATH_MAX limit when computing
82273         ../../../../...
82274         Use MATCHING_INO to compare inode number to file.
82275         Check for arithmetic overflow in size calculations.
82276         Fix bug in reallocation of dot array that caused getcwd to fail
82277         on directories nested deeper than 75.
82278         Be more careful about saving errno on error.
82279         Do not use realloc; use only free+malloc, as this is a bit
82280         more flexible and avoids a needless copy operation.
82281         Do not inspect st_dev and st_ino for symbolic links; POSIX
82282         doesn't specify the latter.
82283         Check for closedir errors.
82284         Avoid needless casts.
82285         Use "#ifdef weak_alias" around weak_alias, to be like other
82286         glibc code.
82287         The following changes to getcwd.c have effect only when used in
82288         gnulib; they have no effect inside glibc proper.
82289         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
82290         as alloca isn't used.
82291         (alloca, __alloca): Likewise.
82292         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
82293         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82294         unconditionally, as gnulib assumes C89 or better.
82295         Do not include <sys/param.h>.
82296         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
82297         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
82298         better.
82299         (NULL) [!defined NULL]: Remove; we assume C89 or better.
82300         Include <dirent.h> in a way that is compatible with modern Autoconf.
82301         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
82302         New macros, if not already defined.
82303         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
82304         Use "_LIBC", not "defined _LIBC", for consistency.
82305         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
82306         a mempcpy module.
82307         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
82308         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
82309         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
82310         credit only to Jim Meyering and adjust the copyright dates.
82311         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
82312         <stdlib.h>, <unistd.h>, "pathmax.h".
82313         Instead, include "xgetcwd.h" (first) and "getcwd.h".
82314         (INITIAL_BUFFER_SIZE): Remove.
82315         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
82316
82317 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82318
82319         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
82320         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
82321         Use the _ONCE methods, for efficiency.
82322         Check for fcntl.h.  In test program, include <errno.h>
82323         and <fcntl.h> if available.  Remove old K&R cruft from
82324         test program.  Check for common errors in GNU/Linux,
82325         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
82326         don't do AC_LIBOBJ, as that's getcwd.m4's job.
82327         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
82328         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
82329         name accordingly.
82330         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
82331         accommodate new getcwd.c.
82332         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
82333         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
82334         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
82335         that's all we need now.
82336
82337 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82338
82339         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
82340         argp-parse.c depends on getopt internals, that means we should
82341         always use our getopt, to be on the safe side.
82342         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
82343         order not to spoil the result of an eventual previous invocation
82344         of gl_GETOPT_SUBSTITUTE.
82345
82346 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82347
82348         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
82349         redefinition warnings. To avoid them, include the defines
82350         in `#if !defined __need_getopt ... #endif'. The only place
82351         where __getopt_argv_const is used is in definitions
82352         of getopt_long and getopt_long_only below, which are as well
82353         protected by `#ifndef __need_getopt'.
82354         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
82355         __need_getopt after including <stdio.h> and <unistd.h> These
82356         headers might have defined it.
82357
82358 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
82359
82360         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
82361
82362 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
82363
82364         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
82365         (futimens): New function, which uses futimes if available.
82366         (futimens, utimens): Support timespec==NULL, with same semantics
82367         as utime and utimens.
82368         * lib/utimens.h (futimens): New decl.
82369
82370 2004-11-23  Jim Meyering  <jim@meyering.net>
82371
82372         * lib/getopt_.h: Remove trailing blanks.
82373
82374 2004-11-23  Jim Meyering  <jim@meyering.net>
82375
82376         * lib/__fpending.c: Add comment.
82377
82378 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
82379
82380         * modules/canonicalize (Depends-on): Add xreadlink.
82381         Problem reported by James Youngman.
82382
82383 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
82384
82385         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
82386         New macros.
82387         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
82388         optopt): Use them instead of invoking ## directly; otherwise, the
82389         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
82390
82391 2004-11-19  Bruno Haible  <bruno@clisp.org>
82392
82393         * lib/strtok_r.c: Move comments from here...
82394         * lib/strtok_r.h: ... to here.
82395
82396 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
82397
82398         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
82399         implementations that mishandle size_t overflow.
82400
82401 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
82402
82403         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
82404         might fail.  Problem reported by Yoann Vandoorselaere.
82405         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
82406         implementations that mishandle size_t overflow.
82407
82408 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82409
82410         * modules/canon-host (Depends-on): Add strdup.
82411
82412 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82413
82414         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
82415
82416 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82417
82418         * lib/canon-host.c: Include "strdup.h".
82419         (canon_host): Use getaddrinfo if available, so that IPv6 works.
82420         Use strdup instead of malloc/strcpy to duplicate strings.
82421
82422         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
82423         (human_space_before_unit): New constant.
82424         * lib/human.c (human_readable): Support it.
82425
82426         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
82427         (xgetcwd): Set errno correctly when failing.
82428         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
82429         the failure is actually due to a PATH_MAX problem.
82430
82431         Further getopt changes to make it more likely that glibc will
82432         buy the changes back.
82433         * lib/getopt.c (POSIXLY_CORRECT): New constant.
82434         (getopt): Use it, so to preserve glibc semantic
82435         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
82436         when compiling for libc.
82437         * lib/getopt_.h (__getopt_argv_const): Bring it back.
82438         (getopt_long, getopt_long_only): Use it.
82439
82440         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
82441         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
82442         (getopt): Argv is now char * const *, as per standard.
82443         (_getopt_internal_r, _getopt_internal): Argv is now char **,
82444         not char *__getopt_argv_const *.
82445         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
82446         _getopt_long_only_r): Likewise.
82447         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
82448         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
82449         _getopt_long_r, _getopt_long_only_r): Likewise.
82450         * lib/getopt_.h (__getopt_argv_const): Remove.
82451         (getopt): Argv is now char * const *, as per standard.
82452
82453         * lib/getdate.y (tORDINAL): New token.
82454         (day, relunit): Allow it for relative times.
82455         (relative_time_table): Use tORDINAL for ordinals.
82456
82457 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82458
82459         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
82460         Document that "second" isn't allowed as an ordinal number.
82461
82462 2004-11-16  Jim Meyering  <jim@meyering.net>
82463
82464         * modules/closeout (Depends-on): Add fpending.
82465
82466 2004-11-15  Jim Meyering  <jim@meyering.net>
82467
82468         * lib/closeout.c: Include "__fpending.h" once again.
82469         Include <stdbool.h>.
82470         (close_stdout): Don't fail just because stdout was closed initially,
82471         since some programs don't write to stdout in the normal course of
82472         operation (other than --version and --help), and we don't want this
82473         function to make e.g. `touch file >&-' fail.
82474         But do fail if it was closed and someone has tried to write to it.
82475         E.g., `printf foo >&-' must fail.
82476
82477 2004-11-13  Jim Meyering  <jim@meyering.net>
82478
82479         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
82480
82481 2004-11-12  Simon Josefsson  <jas@extundo.com>
82482
82483         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
82484         small doc fix is still pending.
82485
82486 2004-11-11  Simon Josefsson  <jas@extundo.com>
82487
82488         * modules/strtok_r: New file.
82489
82490         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82491         strtok_r.
82492
82493 2004-11-11  Simon Josefsson  <jas@extundo.com>
82494
82495         * m4/strtok_r.m4: New file.
82496
82497         * m4/getopt.m4: Replace opterr.
82498
82499 2004-11-11  Simon Josefsson  <jas@extundo.com>
82500
82501         * lib/strtok_r.h, strtok_r.c: New file.
82502
82503 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
82504
82505         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
82506         of replacing opterr, getopt, etc.  This should handle the
82507         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
82508
82509 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
82510
82511         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
82512         we can stop lying to compilers about the constness of argv when we
82513         are compiled outside glibc.
82514         (getopt, getopt_long, getopt_long_only): Use it.
82515         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
82516         _getopt_internal, getopt): Likewise.
82517         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
82518         _getopt_long_only_r): Likewise.
82519         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
82520         _getopt_long_r, _getopt_long_only_r): Likewise.
82521
82522         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
82523         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
82524         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
82525         the other external symbols.
82526         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
82527         declaration, since the above renaming now works around collisions.
82528
82529 2004-11-11  Jim Meyering  <jim@meyering.net>
82530
82531         * lib/linebreak.c: Remove trailing blanks.
82532         * lib/alloca_.h: Likewise.
82533         * lib/acosl.c: Likewise.
82534         * lib/euidaccess.c: Likewise.
82535         * lib/allocsa.h: Likewise.
82536
82537 2004-11-10  Simon Josefsson  <jas@extundo.com>
82538
82539         * m4/getaddrinfo.m4: New file.
82540
82541 2004-11-10  Simon Josefsson  <jas@extundo.com>
82542
82543         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
82544
82545 2004-11-10  Simon Josefsson  <jas@extundo.com>
82546
82547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82548         getaddrinfo.
82549
82550         * modules/getaddrinfo: New file.
82551
82552 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82553
82554         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
82555
82556 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82557
82558         * lib/mktime.c (SHR): New macro, which is a portable
82559         substitute for >> that should work even on Crays.
82560         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
82561         Problem reported by Mark D. Baushke in
82562         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
82563         * lib/getdate.y (SHR): Likewise.
82564         (tm_diff): Use it.
82565         * lib/strftime.c (SHR): Likewise.
82566         (tm_diff): Use it.
82567         * lib/quotearg.c (struct quoting_options): Use unsigned int for
82568         quote_these_too, so that right shifts are well defined.  All uses
82569         changed.
82570
82571 2004-11-10  Jim Meyering  <jim@meyering.net>
82572
82573         Ensure that no close failure goes unreported.
82574         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
82575         return early when it seems there's nothing to flush.
82576         Don't include __fpending.h.
82577
82578 2004-11-10  Jim Meyering  <jim@meyering.net>
82579
82580         * modules/closeout (Depends-on): Remove fpending.
82581
82582 2004-11-10  Jim Meyering  <jim@meyering.net>
82583
82584         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
82585
82586 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
82587
82588         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
82589         gl_FUNC_STRFTIME.
82590         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
82591         and AC_REQUIRE when possible, to avoid duplicate checks.
82592         Check for <wchar.h>.
82593
82594 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
82597
82598 2004-11-09  Bruno Haible  <bruno@clisp.org>
82599
82600         * m4/sockpfaf.m4: New file.
82601
82602 2004-11-05  Bruno Haible  <bruno@clisp.org>
82603
82604         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
82605         Reported by Mark D. Baushke <mdb@cvshome.org>.
82606
82607 2004-11-04  Bruno Haible  <bruno@clisp.org>
82608
82609         2004-09-11  Bruno Haible  <bruno@clisp.org>
82610                 * allocsa.valgrind: New file.
82611         2004-02-06  Bruno Haible  <bruno@clisp.org>
82612                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
82613                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
82614                 Reported by Christopher Seip <chris.seip@hp.com>.
82615
82616 2004-11-04  Bruno Haible  <bruno@clisp.org>
82617
82618         * modules/allocsa (Files): Add lib/allocsa.valgrind.
82619         (Makefile.am): Distribute it.
82620
82621 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
82622
82623         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
82624         with errno == ERANGE if the buffer is too small.
82625         Problem reported by Mark D. Baushke.
82626
82627 2004-11-03  Albert Chin  <china@thewrittenword.com>
82628             Paul Eggert  <eggert@cs.ucla.edu>
82629
82630         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
82631         equivalent, substitute $ac_type for equivalent type rather than
82632         blindly using uint32_t *always* which won't work if uint32_t is not
82633         available.  Define _UINT32_T to work around typedef of uint32_t if
82634         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
82635         2.5.1.
82636
82637 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82638
82639         * m4/jm-macros.m4: Sync from coreutils.
82640         (gl_MACROS): Check for mbrlen, for pathchk.
82641         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
82642
82643 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82644
82645         * lib/xreadlink.c (MAXSIZE): New macro.
82646         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
82647         size does not exceed MAXSIZE.  Avoid cast.
82648         As suggested by Mark D. Baushke in
82649         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
82650         if readlink fails with buffer size just under MAXSIZE, try again
82651         with MAXSIZE.
82652
82653 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
82654
82655         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
82656
82657 2004-11-02  Derek R. Price  <derek@ximbiot.com>
82658         and  Paul Eggert  <eggert@cs.ucla.edu>
82659
82660         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
82661         (get_date): Overparenthesize to avoid GCC warning.
82662
82663 2004-11-02  Bruno Haible  <bruno@clisp.org>
82664
82665         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
82666         returns void.
82667
82668 2004-11-02  Bruno Haible  <bruno@clisp.org>
82669
82670         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
82671         function returns void.
82672
82673 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82674
82675         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
82676         fflush_unlocked, flockfile, funlockfile, funlockfile,
82677         fputs_unlocked, putc_unlocked.
82678
82679 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
82680
82681         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82682         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
82683         already declared.
82684
82685 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82686
82687         * modules/getdate (Files): Add doc/getdate.texi.
82688         (Depends-on): Add setenv, xalloc.
82689
82690 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82691
82692         * lib/getdate.y: Add support for TZ="foo" within a date string.
82693         Fix some bugs near time_t boundaries.  Reject dates with
82694         out-of-range components, e.g., "Sept 31".
82695         Include <stdlib.h>, "setenv.h", "xalloc.h".
82696         (ISDIGIT_LOCALE): Remove; unused.
82697         Note that the TZ and time functions used here are not reentrant.
82698         (mktime_ok, get_tz): New functions.
82699         (TZBUFSIZE): New constant.
82700         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
82701         This requires that we sometimes generate our own TZ="XXX..." setting.
82702
82703 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82704
82705         * doc/getdate.texi: New file, from coreutils with modifications for
82706         the new TZ parsing.
82707
82708 2004-10-27  Derek R. Price  <derek@ximbiot.com>
82709
82710         * lib/mktime.c (not_equal_tm): Remove redundant check.
82711
82712 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82713
82714         * modules/regex (lib_SOURCES): Add regex.c.
82715         Reported by James Youngman in
82716         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
82717
82718 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
82719
82720         * lib/getdate.y: Use Bison 1.875 features, and some minor
82721         code cleanups.  This change does not affect semantics.
82722         Don't include <stdlib.h>; no longer needed.
82723         Don't include unlocked-io.h; only the "#if TEST" code uses
82724         stdio, and performance isn't crucial there.
82725         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
82726         Bison 1.875 features as described below.
82727         All uses of "PC." replaced by "pc->".
82728         (YYSTYPE): Add a forward declaration.
82729         (yylex, yyerror): Use full prototypes in forward decls.
82730         Use "%pure-parser" rather than obsolescent "%pure_parser".
82731         Use %parse-param and %lex-param instead of obsolescent
82732         YYPARSE_PARAM and YYLEX_PARAM.
82733         (meridian_table, month_and_day_table, time_units_table,
82734         relative_time_table, time_zone_table, military_table,
82735         lookup_zone, lookup_word, get_date):
82736         Use NULL instead of 0 where appropriate.
82737         (to_hour): Avoid abort (), to avoid a dependency on
82738         stdlib.h.
82739         (yyerror, yylex): Now accepts parser_control * arg.
82740         (main) [TEST]: Use '\0' rather than 0 for char.
82741
82742 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82743
82744         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
82745
82746 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
82747
82748         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
82749         It's now the caller's responsibility to handle the case where
82750         !HAVE_GETPAGESIZE && !defined getpagesize.
82751
82752         * lib/mktime.c (leapyear): Arg is long int, not int.
82753
82754 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
82755
82756         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
82757
82758 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
82759
82760         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
82761         missing.  Problem reported by James Youngman.
82762
82763 2004-10-16  Simon Josefsson  <jas@extundo.com>
82764
82765         * gnulib-tool: Fix comments.  Fix parse problem.
82766         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
82767
82768 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
82769
82770         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
82771         implementation of getopt_long.  Problem reported by Alexander Taler in:
82772         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
82773
82774 2004-10-15  Bruno Haible  <bruno@clisp.org>
82775
82776         * gnulib-tool: Untabify. Initialize supplied_libname.
82777         (func_usage): More homogenous output.
82778         (func_modules_transitive_closure, func_modules_to_filelist,
82779         func_emit_lib_Makefile_am): New functions.
82780         (func_import): New function, extracted from big case statement. Use
82781         func_get_license, func_modules_transitive_closure,
82782         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
82783         opt_lgpl. Don't use test -a, as it's not portable.
82784         (func_create_testdir): Use func_modules_transitive_closure,
82785         func_modules_to_filelist, func_emit_lib_Makefile_am.
82786
82787 2004-10-15  Bruno Haible  <bruno@clisp.org>
82788
82789         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
82790
82791 2004-10-15  Bruno Haible  <bruno@clisp.org>
82792
82793         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
82794         the portions belonging to each module.
82795         Suggested by Derek Robert Price <derek@ximbiot.com>.
82796
82797 2004-10-12  Simon Josefsson  <jas@extundo.com>
82798
82799         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
82800         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
82801         to real functions.
82802
82803 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82804
82805         * modules/vsnprintf: New file.
82806
82807 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82808
82809         * m4/vsnprintf.m4: New file.
82810
82811 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82812
82813         * lib/vsnprintf.h: New file.
82814         * lib/vsnprintf.c: New file.
82815
82816 2004-10-11  Bruno Haible  <bruno@clisp.org>
82817
82818         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
82819         vsnprintf.
82820
82821 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82822
82823         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
82824
82825 2004-10-07  Bruno Haible  <bruno@clisp.org>
82826
82827         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
82828         fits into the provided buffer.
82829
82830 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82831
82832         * lib/diacrit.c, diacrit.h: Add GPL notice.
82833
82834         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
82835         notice.
82836         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
82837         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
82838         This avoids a potential constant-folding bug.
82839
82840 2004-10-05  Bruno Haible  <bruno@clisp.org>
82841
82842         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
82843         for the declaration of strsep.
82844
82845 2004-10-05  Bruno Haible  <bruno@clisp.org>
82846
82847         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
82848
82849 2004-10-04  Simon Josefsson  <jas@extundo.com>
82850
82851         * modules/memmem: New file.
82852         * tests/test-memmem.c: New file.
82853         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
82854
82855 2004-10-04  Simon Josefsson  <jas@extundo.com>
82856
82857         * m4/memmem.m4: New file.
82858
82859 2004-10-04  Simon Josefsson  <jas@extundo.com>
82860
82861         * lib/memmem.h: New file.
82862         * lib/memmem.c: New file, taken from glibc.
82863
82864 2004-10-04  Simon Josefsson  <jas@extundo.com>
82865
82866         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
82867         '#ifdef USE_UNLOCKED_IO'.
82868
82869 2004-10-04  Simon Josefsson  <jas@extundo.com>
82870
82871         * config/srclist.txt: Add memmem from glibc.
82872
82873 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
82876
82877         * modules/argmatch, modules/argp, modules/closeout, modules/error,
82878         modules/exclude, modules/getdate, modules/getline,
82879         modules/getndelim2, modules/getpass, modules/getpass-gnu,
82880         modules/getusershell, modules/linebuffer, modules/md5,
82881         modules/mountlist, modules/posixtm, modules/readtokens,
82882         modules/readutmp, modules/regex, modules/sha1,
82883         modules/version-etc, modules/yesno:
82884         Remove dependency on unlocked-io.
82885
82886 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82887
82888         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
82889
82890         * m4/unlocked-io.m4: Add copyright notice.
82891         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
82892
82893 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82894
82895         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
82896         * lib/xmalloc.c (xmemdup): Likewise.
82897         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
82898         XFREE): Remove these long-obsolescent macros.
82899         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
82900         * lib/xstrdup.c: Remove.
82901
82902         * lib/regex.c (re_comp): Cast gettext return value to char *,
82903         Problem reported by Martin Neitzel via Mark D. Baushke.
82904
82905 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
82906
82907         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
82908         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
82909         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
82910         regex.c, sha1.c, version-etc.c, yesno.c:
82911         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
82912         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
82913         the includer's responsibility.
82914
82915         Sync from coreutils.
82916
82917         * lib/modechange.c (mode_compile): Don't decrement a pointer that
82918         points to the start of a string, as the C Standard says the
82919         resulting behavior is undefined.
82920
82921         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
82922         simple -> simple_backups, numbered_existing ->
82923         numbered_existing_backups, numbered -> numbered_backups
82924         to avoid shadowing problems.  All uses changed.
82925         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
82926         * lib/backupfile.c (check_extension, numbered_backup):
82927         Rename locals to avoid shadowing 'basename'.
82928         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
82929         once.
82930
82931         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
82932         * lib/.cvsignore: Add getopt.h.
82933
82934 2004-10-04  Bruno Haible  <bruno@clisp.org>
82935
82936         * modules/README: New file.
82937         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
82938         not a module.
82939
82940 2004-10-02  Jim Meyering  <jim@meyering.net>
82941
82942         * lib/dirfd.h, getpagesize.h: Add copyright notice.
82943
82944 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82945
82946         * modules/strsep: New file.
82947
82948 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82949
82950         * m4/strsep.m4: New file.
82951
82952 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
82953
82954         * lib/strsep.h: New file.
82955         * lib/strsep.c: New file.
82956
82957 2004-10-01  Simon Josefsson  <jas@extundo.com>
82958
82959         * lib/snprintf.c (snprintf): Handle size==0.
82960
82961 2004-10-01  Simon Josefsson  <jas@extundo.com>
82962             Bruno Haible  <bruno@clisp.org>
82963
82964         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
82965         (snprintf): Declare 'args'.
82966
82967 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
82968
82969         * lib/snprintf.c: Remove comments as to why each header is needed.
82970
82971 2004-10-01  Bruno Haible  <bruno@clisp.org>
82972
82973         * MODULES.html.sh: Add strsep.
82974
82975 2004-09-30  Simon Josefsson  <jas@extundo.com>
82976
82977         * modules/snprintf: New file.
82978
82979 2004-09-30  Simon Josefsson  <jas@extundo.com>
82980
82981         * m4/snprintf.m4: New file.
82982
82983 2004-09-30  Simon Josefsson  <jas@extundo.com>
82984
82985         * lib/snprintf.h, lib/snprintf.c: New files.
82986
82987 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82988
82989         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
82990         (hol_entry_help): Never translate an empty string.
82991         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
82992         * lib/argp.h (OPTION_NO_TRANS): New option.
82993
82994 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
82995
82996         * modules/argp (Maintainer): Replace Simon Josefsson
82997         by Sergey Poznyakoff.
82998
82999 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83000
83001         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
83002         changes merged back into glibc.
83003
83004 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
83007
83008 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83009
83010         * lib/xvasprintf.c: Include xalloc.h.
83011         (xvasprintf): Use xalloc_die, not xmalloc_die.
83012
83013 2004-09-29  Bruno Haible  <bruno@clisp.org>
83014
83015         * modules/alloca-opt: New file, derived from modules/alloca.
83016         * modules/allocsa: Depend on alloca-opt instead of alloca.
83017         * modules/setenv: Likewise.
83018         * modules/vasnprintf: Likewise.
83019         * MODULES.html.sh: Add alloca-opt.
83020
83021 2004-09-28  Simon Josefsson  <jas@extundo.com>
83022
83023         * gnulib-tool: New parameter --lgpl, to asseert that modules are
83024         LGPL, and to replace license template from GPL to LGPL.
83025
83026 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83027
83028         * modules/dummy: Change license to LGPL.
83029
83030 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83031
83032         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
83033
83034 2004-09-24  Simon Josefsson  <jas@extundo.com>
83035
83036         * modules/minmax (License): Change from GPL to LGPL.
83037
83038 2004-09-23  Simon Josefsson  <jas@extundo.com>
83039
83040         * gnulib-tool (--import): Typo.
83041
83042 2004-09-23  Simon Josefsson  <jas@extundo.com>
83043
83044         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
83045
83046 2004-09-22  Bruno Haible  <bruno@clisp.org>
83047
83048         * modules/*: Add 'License' field.
83049         * gnulib-tool: Accept --extract-license option.
83050         (func_get_license): New function.
83051
83052 2004-09-21  Bruno Haible  <bruno@clisp.org>
83053
83054         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
83055         Reported by Simon Josefsson.
83056
83057 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83058
83059         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
83060         gl_AC_TYPE_LONG_LONG.
83061
83062 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83063
83064         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
83065
83066 2004-09-18  Simon Josefsson  <jas@extundo.com>
83067         and  Paul Eggert  <eggert@cs.ucla.edu>
83068
83069         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
83070         calls with autoreconf.  Define GL_LIB.
83071
83072 2004-09-14  Karl Berry  <karl@gnu.org>
83073
83074         * config/srclist.txt: unsync setenv.c, sigh.
83075
83076 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83077
83078         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
83079         Problem reported by Bruno Haible in:
83080         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
83081
83082 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83083
83084         * config/srclist.txt: Comment out argp-pvh.c.
83085
83086 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
83087
83088         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
83089         in case some system header has #define'd it.  Problem reported by
83090         Soeren D. Schulze in
83091         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
83092
83093 2004-09-09  Karl Berry  <karl@gnu.org>
83094
83095         * regex.[ch]: delete from the root.  These were supposed to be
83096                 synced with emacs cvs, but this has not happened for about
83097                 a year, and anyway nothing else uses emacs regex.[ch].
83098                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
83099                 lib/regex[.ch] is untouched.
83100
83101 2004-09-09  Bruno Haible  <bruno@clisp.org>
83102
83103         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
83104
83105 2004-09-09  Bruno Haible  <bruno@clisp.org>
83106
83107         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
83108         modifications.
83109         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
83110
83111 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83112
83113         * modules/xvasprintf: New file.
83114         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
83115
83116 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83117
83118         * lib/xvasprintf.h: New file.
83119         * lib/xvasprintf.c: New file.
83120         * lib/xasprintf.c: New file.
83121
83122 2004-09-08  Bruno Haible  <bruno@clisp.org>
83123
83124         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
83125
83126 2004-09-08  Bruno Haible  <bruno@clisp.org>
83127
83128         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
83129         length is > INT_MAX.
83130         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
83131         more.
83132
83133 2004-09-08  Bruno Haible  <bruno@clisp.org>
83134
83135         * lib/stdint_.h: New file, taken from GNU clisp.
83136
83137 2004-09-08  Bruno Haible  <bruno@clisp.org>
83138             Oskar Liljeblad  <oskar@osk.mine.nu>
83139
83140         * modules/stdint: New file.
83141         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
83142
83143 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83144
83145         Import from coreutils.
83146         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
83147         strings on unbounded length.  alloca's performance benefits aren't
83148         that important here.
83149         (V_STRDUP): Remove.
83150         (parse_with_separator): New function, with most of the internals
83151         of the old parse_user_spec.  Allow user to omit both user and group,
83152         for compatibility with FreeBSD.
83153         Clone only the user name, not the entire spec.
83154         Do not set *uid, *gid unless entirely successful.
83155         Avoid memory leak in some failing cases.
83156         Fix regression for USER.GROUP reported by Dmitry V. Levin in
83157         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
83158         (parse_user_spec): Rewrite to use parse_with_separator.
83159
83160 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83161
83162         * modules/userspec: Don't depend on alloca.
83163
83164 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83165
83166         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
83167
83168 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83169
83170         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
83171         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
83172         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
83173
83174 2004-08-16  Simon Josefsson  <jas@extundo.com>
83175
83176         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
83177         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
83178         Add --dry-run for --import.
83179         Let user provided command line parameters override configure.ac
83180         settings.
83181
83182 2004-08-12  Simon Josefsson  <jas@extundo.com>
83183
83184         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
83185         as discussed with Paul Eggert in threads rooted at
83186         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
83187         and
83188         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
83189         Before, the test was empty, and relied on ELIDE_CODE in source
83190         code.)
83191         (gl_PREREQ_GETOPT): New macro.
83192         (gl_GETOPT): Use them.
83193
83194 2004-08-12  Simon Josefsson  <jas@extundo.com>
83195
83196         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
83197         * lib/getopt_.h: Renamed from getopt.h.
83198
83199 2004-08-12  Simon Josefsson  <jas@extundo.com>
83200
83201         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
83202         Change default library name from libfoo to libgnu.
83203         Now, if you have a configure.ac that says:
83204                 gl_SOURCE_BASE(gl)
83205                 gl_M4_BASE(gl/m4)
83206                 gl_MODULES(error getopt etcetera)
83207                 gl_INIT
83208         you can import all you need by running:
83209                 ../gnulib/gnulib-tool --import
83210
83211         * modules/getopt (Files): Rename getopt.h to getopt_.h.
83212         (Makefile.am): Rewrite, use logic from argz.
83213         (Include): Use <getopt.h> instead of "getopt.h".
83214
83215 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83216
83217         * modules/argp (Files): Add m4/unlocked-io.m4.
83218         (Depends-on): Add extensions.
83219
83220 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83221
83222         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
83223         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
83224         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
83225         Check for program_invocation_name, program_invocation_short_name,
83226         flockfile, funlockfile, features.h, _getopt_long_only_r.
83227
83228 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83229
83230         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
83231         its complicated substitute.
83232         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
83233         and program_invocation_name.
83234         (__argp_basename) [!_LIBC]: Remove; the only use was
83235         replaced by its body.
83236         (__argp_short_program_name): Change condition from
83237         !defined __argp_short_program_name to
83238         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
83239         to match argp-namefrob.h.
83240         (__argp_failure): Don't assume strerror_r returns char *.
83241         * lib/argp-parse.c (N_): Define unconditionally.
83242         (argp_default_options): Fill out initializers with 0 to avoid
83243         gcc warnings.
83244
83245 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83246
83247         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
83248         getopt1.c.
83249
83250 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83251
83252         Merge from coreutils.
83253
83254         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
83255
83256         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
83257         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
83258
83259 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83260
83261         Merge from coreutils.
83262
83263         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
83264         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
83265         for Reliant Unix 5.43.
83266
83267         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
83268         (union fooround): Use uintmax_t, not long int.
83269         The rest is a merge from libc:
83270         [defined _LIBC]: Include <shlib-compat.h>.
83271         (_obstack) [defined _LIBC]: Remove after 2.3.4.
83272
83273         * lib/settime.c (settime): Recode to avoid warning with
83274         Sun Forte C 6U2.
83275
83276         * lib/strverscmp.c: Convert to UTF-8.
83277
83278 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83279
83280         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83281         m4/uintmax_t.m4.
83282
83283 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83284
83285         * modules/xalloc-die: New file.
83286         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
83287
83288         * modules/md5 (Files): Add m4/uint32_t.m4.
83289         * modules/sha1: Renamed from modules/sha.
83290         (Files):
83291         Rename lib/sha.h to lib/sha1.h.
83292         Rename lib/sha.c to lib/sha1.c.
83293         Rename m4/sha.m4 to m4/sha1.m4.
83294         (lib_SOURCES): Likewise.
83295         (configure.ac): Rename gl_SHA to gl_SHA1.
83296         (Include): sha.h -> sha1.h.
83297
83298 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83299
83300         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
83301         * m4/sha1.m4: Renamed from sha.m4.
83302         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
83303
83304 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83305
83306         * lib/obstack.h (obstack_empty_p):
83307         Don't assume that chunk->contents is suitably aligned.
83308         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
83309         Likewise. Problem reported by Benno in
83310         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
83311
83312         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
83313         readable.  This could be improved further but it'd take some work.
83314
83315 2004-08-08  Simon Josefsson  <jas@extundo.com>
83316
83317         * modules/xgethostname (Depends-on): Remove exit and error (not
83318         used).
83319
83320         * modules/getpass-gnu: Add getpass.h.
83321         (Depends-on): Add stdbool.
83322         * modules/getpass: Add getpass.h.
83323
83324 2004-08-08  Simon Josefsson  <jas@extundo.com>
83325
83326         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
83327         Check getpass declaration.
83328
83329 2004-08-08  Simon Josefsson  <jas@extundo.com>
83330
83331         * lib/xgethostname.c: Don't include error.h (not used).
83332
83333         * lib/getpass.h: Add.
83334         * lib/getpass.c: Include getpass.h first.
83335
83336 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
83337
83338         * lib/xalloc-die.c: New file.
83339         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
83340         All uses removed.
83341         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
83342         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
83343         xalloc-die.c.
83344         (_, N_, xalloc_die): Move to xalloc-die.c.
83345         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
83346         so that we needn't mess with xalloc_msg_memory_exhausted.
83347
83348         * lib/sha1.h: Renamed from sha.h.
83349         (SHA1_H): Renamed from _SHA_H.
83350         (sha1_ctx): Renamed from sha_ctx.
83351         (sha1_init_ctx): Renamed from sha_init_ctx.
83352         (sha1_process_block): Renamed from sha_process_block.
83353         (sha1_process_bytes): Renamed from sha_process_bytes.
83354         (sha1_finish_ctx): Renamed from sha_finish_ctx.
83355         (sha1_read_ctx): Renamed from sha_read_ctx.
83356         (sha1_stream): Renamed from sha_stream.
83357         (sha1_buffer): Renamed from sha_buffer.
83358         * lib/sha1.c: Likewise; renamed from sha.c.
83359         Do not include <sys/types.h>.
83360         Include <stddef.h> rather than <stdlib.h>.
83361
83362 2004-08-08  Bruno Haible  <bruno@clisp.org>
83363
83364         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
83365         FILESYSTEM_PREFIX_LEN.
83366         * lib/progreloc.c: Likewise.
83367         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
83368
83369 2004-08-06  Simon Josefsson  <jas@extundo.com>
83370
83371         * modules/progname (Depends-on): Don't depend on stdbool.
83372
83373 2004-08-06  Simon Josefsson  <jas@extundo.com>
83374
83375         * modules/getsubopt: New file.
83376         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83377         getsubopt.
83378
83379 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83380
83381         More merge from coreutils.
83382
83383         * m4/utimens.m4, m4/utimecmp.m4: New files.
83384         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
83385         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
83386         prereq.m4, sha.m4: Import changes from coreutils.
83387
83388 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83389
83390         More merge from coreutils.
83391         * modules/raise, modules/readtokens0, modules/utimens:
83392         * modules/utimecmp, module/xnanosleep: New files.
83393         * modules/strftime: Add lib/strftime.h.
83394         Change include from <time.h> to "strftime.h".
83395         * modules/yesno: Add lib/yesno.h.
83396         * modules/backupfile: Remove lib/addext.c.
83397         * modules/euidaccess: Add stat-macros.h.
83398         * modules/canonicalize, modules/euidaccess,
83399         modules/filemode, modules/lchown, modules/makepath,
83400         modules/rmdir, modules/stat: Likewise.
83401
83402 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
83403
83404         Merge from tar.
83405         * lib/argp-help.c (make_hol, hol_append): Don't assume that
83406         SIZE_MAX is a valid preprocessor constant.
83407         (__argp_basename): Change from "#ifndef _LIBC"
83408         to "#ifndef __argp_short_program_name", so that
83409         we don't compile these functions for tar.
83410
83411         More merges from coreutils.
83412         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
83413         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
83414         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
83415         * lib/addext.c: Remove; no longer needed.
83416         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
83417         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
83418         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
83419         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
83420         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
83421         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
83422         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
83423         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
83424         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
83425         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83426         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
83427         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
83428         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
83429         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
83430         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
83431         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
83432         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
83433         Import changes from coreutils.
83434
83435 2004-08-05  Simon Josefsson  <jas@extundo.com>
83436
83437         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
83438
83439 2004-08-05  Simon Josefsson  <jas@extundo.com>
83440
83441         * m4/getsubopt.m4: New file.
83442
83443 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83444
83445         Merge from coreutils.
83446
83447         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
83448         * m4/getcwd-path-max.m4: New files.
83449
83450         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
83451         FILESYSTEM_PREFIX_LEN ->
83452         FILE_SYSTEM_PREFIX_LEN.
83453         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
83454         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
83455         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
83456         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
83457
83458         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
83459         prerequisite modules now handle the DOS stuff.
83460         Don't check for unistd.h.
83461
83462 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83463
83464         Merge from coreutils.
83465
83466         * lib/.gdb-history: Remove; this doesn't belong here.
83467
83468         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
83469         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
83470         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
83471         * lib/getcwd.c: New files.
83472
83473         * lib/dirname.h: Include <stdbool.h>.
83474         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
83475         for consistency with POSIX terminology.  All uses changed.
83476         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
83477         (strip_trailing_slashes): Use bool for booleans.
83478         * lib/stripslash.c (strip_trailing_slashes): Likewise.
83479
83480         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
83481         sometimes returns a positive errno value even when it succeeds.
83482         (print_errno_message) [!LIBC]: Fall back on strerror if
83483         __strerror_r fails.
83484
83485         * lib/path-concat.c (mempcpy): Don't define if a system header defines
83486         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
83487         (longest_relative_suffix): New function.
83488         (path_concat): Use it.  Assume first argument is not NULL.
83489         Port to DOS.  Omit redundant separators.
83490         Report an error instead of returning NULL.
83491         Use mempcpy instead of memcpy.
83492         (xpath_concat): Remove: not declared or used.
83493
83494         * lib/same.h: Include <stdbool.h>
83495         (same_name): Return bool, not int.
83496         * lib/same.c (same_name): Likewise.
83497         (errno): Don't declare; we assume C89 or better now.
83498
83499         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
83500         if not already defined.
83501
83502         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
83503         * lib/dup-safer.c (errno): Likewise.
83504
83505 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
83506
83507         Merge from coreutils.
83508         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
83509         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
83510         * modules/path-concat: Don't depend on strdup.
83511
83512 2004-08-03  Simon Josefsson  <jas@extundo.com>
83513
83514         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
83515         * lib/progname.h: Don't include stdbool.h.
83516
83517 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83518
83519         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
83520         * MODULES.html.sh (func_all_modules): Remove fatal.
83521
83522 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83523
83524         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
83525
83526 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
83527
83528         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
83529         working.
83530
83531 2004-08-02  Simon Josefsson  <jas@extundo.com>
83532
83533         * lib/getsubopt.h: New file, with comments from Bruno Haible.
83534         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
83535         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
83536
83537 2004-08-01  Simon Josefsson  <jas@extundo.com>
83538
83539         * lib/xgetdomainname.c: Include stdlib.h, for free().
83540
83541 2004-07-19  Bruno Haible  <bruno@clisp.org>
83542
83543         * MODULES.html.sh (func_all_modules): Add dummy.
83544
83545 2004-07-16  Simon Josefsson  <jas@extundo.com>
83546
83547         * modules/dummy: New file.
83548
83549 2004-07-16  Simon Josefsson  <jas@extundo.com>
83550
83551         * lib/dummy.c: New file.
83552
83553 2004-07-16  Bruno Haible  <bruno@clisp.org>
83554
83555         * lib/backupfile.h: Add extern "C" for C++.
83556         * lib/closeout.h: Likewise.
83557         * lib/copy-file.h: Likewise.
83558         * lib/findprog.h: Likewise.
83559         * lib/full-write.h: Likewise.
83560         * lib/pathname.h: Likewise.
83561         * lib/progname.h: Likewise.
83562         * lib/stpcpy.h: Likewise.
83563         * lib/stpncpy.h: Likewise.
83564         * lib/strcase.h: Likewise.
83565         * lib/strstr.h: Likewise.
83566         * lib/xalloc.h: Likewise.
83567
83568         * lib/mbswidth.h: Add extern "C" for C++.
83569         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
83570
83571 2004-07-13  Robert Millan  <robertmh@gnu.org>
83572
83573         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
83574
83575 2004-07-09  Simon Josefsson  <jas@extundo.com>
83576
83577         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
83578         failed without this.)
83579
83580 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
83581
83582         * modules/chown (Files): Add lib/fchown-stub.c, since
83583         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
83584
83585 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
83586
83587         * lib/fchown-stub.c: New file.
83588
83589 2004-06-24  Jim Meyering  <jim@meyering.net>
83590
83591         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
83592
83593 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83594
83595         * modules/argz: Omit "#include".
83596
83597         * MODULES.html.sh (func_all_modules): Add calloc, to match
83598         2004-06-01 addition of calloc module.
83599
83600 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83601
83602         * m4/argz.m4: New file, which is autoupdated from libtool.
83603
83604 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83605
83606         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
83607         libtool.
83608
83609 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83610
83611         * config/srclist-update: Don't insist on "USA." before the
83612         close-comment, as libtool omits the period and puts the */ on a
83613         separate line.
83614         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
83615         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
83616
83617 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
83618
83619         * modules/argz: New file.
83620         * MODULES.html.sh (func_all_modules): Add argz.
83621
83622 2004-06-12  Jim Meyering  <jim@meyering.net>
83623         and  Paul Eggert  <eggert@cs.ucla.edu>
83624
83625         * modules/hash (Files): Add lib/xalloc.h.
83626         * modules/pipe (Depends-on): Add wait-process.
83627         * modules/stat (Depends-on): Add xalloc.
83628         * modules/userspec (Files): Add lib/userspec.h.
83629         * modules/xstrto
83630
83631         Upgrade from gettext-0.13.
83632         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
83633         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
83634         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
83635
83636 2004-06-10  Jim Meyering  <jim@meyering.net>
83637
83638         * lib/calloc.c: New file.
83639
83640 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
83641
83642         * lib/getdate.y (yylex): Allow space between sign and number.
83643         Problem reported by Dan Jacobson.
83644
83645 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
83646
83647         Merge from coreutils CVS.
83648
83649         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
83650         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
83651         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
83652         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
83653         xstrtol.m4: Fix copyright date and/or serial number.
83654
83655         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
83656         See if we need an fchown replacement.
83657         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
83658         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
83659         and use the replacement function if we detect either defect.
83660
83661         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
83662         gl_UTIMECMP.
83663
83664 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
83665         and  Jim Meyering  <jim@meyering.net>
83666
83667         Merge from coreutils CVS.
83668
83669         * lib/stat-macros.h: New file, with contents from file-type.h
83670         and coreutils' system.h.
83671         * lib/file-type.c: Include "stat-macros.h".
83672         * lib/file-type.h (file_type): Move all macro definitions to new file,
83673         stat-macros.h.
83674
83675         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
83676         Wrap old code with this conditional.
83677         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
83678         function that does not dereference symlinks.
83679         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
83680
83681         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
83682         dependency problems.
83683         (xreadlink): Accept new arg SIZE, for efficiency.
83684         All decls and uses changed.
83685         * lib/xreadlink.h: Include <stddef.h>, for size_t.
83686
83687         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
83688         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
83689
83690         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
83691         sysexits.h.
83692
83693 2004-06-01  Jim Meyering  <jim@meyering.net>
83694
83695         * m4/calloc.m4: New file.
83696
83697 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
83698
83699         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
83700         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
83701         Also, fix a typo in a diagnostic.
83702
83703 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
83704
83705         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
83706         or AC_FUNC_REALLOC.
83707
83708 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
83709
83710         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
83711         macros to be defined.
83712         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
83713         the allocator returns NULL because the requested size is zero.
83714
83715 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83716
83717         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
83718         var.  Add comment explaining why libc still defines it.  This
83719         merges the following patch from glibc:
83720         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
83721
83722 2004-05-20  Andreas Schwab  <schwab@suse.de>
83723
83724         * m4/free.m4: Replace free if it not known to work, not the other
83725         way round.
83726
83727 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83728
83729         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
83730         present in glibc since revision 1.1 of this file.
83731         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
83732         obstack_alignment_mask, obstack_alloc, obstack_base,
83733         obstack_blank, obstack_blank_fast, obstack_chunk_size,
83734         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
83735         obstack_grow0, obstack_init, obstack_int_grow,
83736         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
83737         obstack_next_free, obstack_object_size, obstack_ptr_grow,
83738         obstack_ptr_grow_fast, obstack_room): Remove declarations of
83739         nonexistent functions.
83740
83741 2004-05-18  Karl Berry  <karl@gnu.org>
83742
83743         * config/srclist.txt: break link for vasnprintf.c.
83744
83745 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83746
83747         Port obstack to the AS/400, where pointers are 16 bytes wide and
83748         you cannot cast an integer to a valid pointer.  This patch is
83749         currently waiting to be integrated into glibc; see
83750         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
83751
83752         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
83753         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
83754         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
83755         (struct obstack): temp member is now a union of a pointer and
83756         an integer, instead of an integer.  All integer uses changed.
83757         This does not affect the physical layout of struct obstack,
83758         except on hosts (like the AS/400) where the size or alignment of
83759         void * is greater than that of ptrdiff_t.
83760         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
83761         __STDC__)]: Store temporary in pointer member of union, not
83762         integer member.
83763         * lib/obstack.c: Include <stddef.h>, for offsetof.
83764         (struct fooalign): Remove; it doesn't need a name.
83765         (union fooround): Change double to long double, and add void *.
83766         (DEFAULT_ALIGNMENT): Use offsetof to compute.
83767         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
83768         not a macro.  Hence the values are always int; so remove all
83769         casts-to-int in uses.
83770
83771 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83772
83773         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
83774         we can get this patch merged into glibc.
83775
83776 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83777             Paul Eggert  <eggert@cs.ucla.edu>
83778
83779         * m4/argp: Depend on alloca.
83780
83781 2004-05-17  Derek R. Price  <derek@ximbiot.com>
83782             Paul Eggert  <eggert@cs.ucla.edu>
83783
83784         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
83785         freecoding.
83786
83787 2004-05-17  Bruno Haible  <bruno@clisp.org>
83788
83789         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
83790         precision that consists of a '.' followed by an empty digit string.
83791         Patch by Tor Lillqvist <tml@iki.fi>.
83792
83793 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83794
83795         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
83796         for backward compatibility with older code.  We need our own
83797         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
83798         it under some other name, and our alloca.h will define it.
83799
83800 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83801             Derek Price  <derek@ximbiot.com>
83802
83803         * lib/alloca.c: Include <alloca.h>, to get our interface.
83804         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
83805         include <alloca.h> first.  Use C89 prototype for alloca; this
83806         requires including <stddef.h> for size_t.  Use extern "C" if C++.
83807         Use #elif for simplicity, since we can assume C89 now.
83808         Don't try to source the system alloca.h since it will not be found
83809         and to prevent recursively including its replacement.
83810         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
83811         * lib/regex.c: Likewise.
83812
83813 2004-05-16  Derek Price  <derek@ximbiot.com>
83814             Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         getline cleanup.  This changes the getndelim2 API: both order of
83817         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
83818         no delimiter).
83819
83820         * lib/getline.c: Don't include stddef.h or stdio.h, since our
83821         interface does that.
83822         (getline): Always use getdelim, so that we don't have two
83823         copies of this code.
83824         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
83825         if available.
83826         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
83827         (GETNDELIM2_MAXIMUM): New macro.
83828         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
83829         instead of the old practice of delim2==0.  All callers changed.
83830         Return -1 on overflow, instead of returning junk.
83831         Do not set *linesize unless allocation succeeds.
83832         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
83833         that we include sys/types.h.
83834         * lib/getnline.h: Likewise.
83835         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
83836         (getndelim2): Reorder arguments.
83837         * lib/getnline.c (getnline, getndelim):
83838         Don't discard the NMAX argument.
83839         (getnline): Invoke getndelim, to avoid code duplication.
83840         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
83841         of (size_t) -1 by callers of the getnline family.
83842
83843 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83844
83845         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
83846         Check for gettimeofday.
83847         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
83848         Check for settimeofday, stime.
83849
83850 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83851
83852         * lib/nanosleep.c (suspended): Change its type from int to
83853         sig_atomic_t volatile.
83854         (first_call): Make it private to rpl_nanosleep, and have it
83855         be zero initially as that's a bit faster.
83856         (my_usleep): Round up fractional times instead of truncating them,
83857         as this is the usual meaning for 'sleep'.
83858
83859         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
83860         doesn't work.
83861         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
83862         (ENOSYS): Define if not defined.
83863         (settime): Fall back on stime if it exists and settimeofday fails.
83864         But don't bother with fallbacks if a method fails with errno == EPERM.
83865
83866 2004-05-11  Jim Meyering  <jim@meyering.net>
83867
83868         Prior to this change, the save_cwd caller required read access to the
83869         current directory on most systems (ones with the fchdir function).
83870
83871         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
83872         fails, try write-only, and finally, resort to using xgetcwd.
83873
83874 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83875
83876         * lib/obstack.c, obstack.h: Import changes from libc.
83877
83878 2004-04-28  Bruno Haible  <bruno@clisp.org>
83879
83880         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
83881         also implicitly appends .exe to executables.
83882         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
83883         accepts Windows pathnames.
83884         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83885         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83886         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
83887         Treat Cygwin like Windows, since it now accepts Windows pathnames.
83888         Reported by Derek Robert Price <derek@ximbiot.com>.
83889
83890 2004-04-21  Karl Berry  <karl@gnu.org>
83891
83892         * config/srclist.txt (localcharset.c): break sync.
83893
83894 2004-04-20  Paul Eggert  <eggert@twinsun.com>
83895
83896         * m4/host-os.m4: Add a copyright notice.
83897
83898 2004-04-20  Jim Meyering  <jim@meyering.net>
83899
83900         Change UTILS_ to gl_ in AC_DEFINE'd names.
83901         Change utils_- and jm_-prefixed variables, too.
83902         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
83903         UTILS_FUNC_MKDIR_TRAILING_SLASH.
83904         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
83905
83906         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
83907         Don't emit trailing blanks.
83908         Also rename jm_-prefixed variables to have gl_ prefix.
83909
83910         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
83911         Also rename jm_-prefixed variables to have gl_ prefix.
83912
83913         * m4/jm-macros.m4: Reflect the renamings.
83914         * m4/prereq.m4: Likewise.
83915
83916 2004-04-20  Jim Meyering  <jim@meyering.net>
83917
83918         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
83919         memory.
83920
83921 2004-04-20  Jim Meyering  <jim@meyering.net>
83922             Bruno Haible  <bruno@clisp.org>
83923
83924         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
83925         memory when realloc fails.
83926
83927 2004-04-19  Jim Meyering  <jim@meyering.net>
83928
83929         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
83930         now that readutmp.c may call `free (0)'.
83931
83932 2004-04-19  Bruno Haible  <bruno@clisp.org>
83933
83934         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
83935         * m4/inttypes_h.m4: Likewise.
83936         * m4/stdint_h.m4: Likewise.
83937         * m4/intmax_t.m4: Likewise.
83938         * m4/uintmax_t.m4: Likewise.
83939
83940 2004-04-18  Jim Meyering  <jim@meyering.net>
83941
83942         * m4/prereq.m4: Don't forbid jm_ prefix.
83943
83944         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
83945         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
83946         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
83947         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
83948         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
83949         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
83950         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
83951         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
83952         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
83953         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
83954         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
83955         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
83956         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
83957         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
83958         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
83959         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
83960         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
83961         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
83962         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
83963
83964 2004-04-18  Jim Meyering  <jim@meyering.net>
83965
83966         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
83967         failure, don't leak memory and do call END_UTMP_ENT.
83968
83969 2004-04-16  Jim Meyering  <jim@meyering.net>
83970
83971         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
83972         coreutils' stat program.
83973         (gl_PREREQ): Don't require jm_PREREQ_STAT.
83974
83975 2004-04-11  Paul Eggert  <eggert@twinsun.com>
83976
83977         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
83978         C89.
83979         (CHAR_BIT): Remove, since we assume C89.
83980         Include <stdint.h> if available, as per current Autoconf CVS advice.
83981
83982 2004-03-31  Jim Meyering  <jim@meyering.net>
83983
83984         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
83985         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
83986         * m4/xalloc.m4: Likewise.
83987
83988 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83989
83990         Merge from coreutils.
83991
83992         * m4/inttostr.m4: New file.
83993         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
83994         Require AM_STDBOOL_H and gl_TIMESPEC instead.
83995         Require gl_CLOCK_TIME.
83996         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
83997
83998 2004-03-30  Paul Eggert  <eggert@twinsun.com>
83999
84000         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
84001         not bool, to be more consistent with Unix conventions.
84002         Suggested by Bruno Haible.
84003
84004         Merge from coreutils.
84005
84006         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
84007         * lib/umaxtostr.c: New files.
84008
84009         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
84010         the usual <time.h> dance.
84011         (get_date): Change signature to support fractional time stamps.
84012         All callers changed.
84013         * lib/getdate.y: Include "getdate.h" first, as we can now
84014         assume C89 and don't need to worry about 'const'.
84015         Similarly, include "unlocked-io.h" near start, not in middle.
84016         Include <limits.h>.
84017         (textint.value): Use long int rather than int.
84018         (textint.digits): Use size_t rather than int.
84019         (BILLION, LOG10_BILLION): New constants.
84020         (parser_control): New member rel_ns.  Members day_ordinal,
84021         time_zone, month, day, hour, minutes, rel_year, rel_month,
84022         rel_day, rel_hour, rel_minutes, rel_seconds
84023         are now long int, not int.  Member seconds is now struct timespec,
84024         not int.  New member timespec_seen.  Members dates_seen, days_seen,
84025         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
84026         not int.
84027         (%union.intval): Now long int, not int.
84028         New member timespec.
84029         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
84030         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
84031         (spec): Now is a timespec or an item list.
84032         (timespec, items): New nonterminals.
84033         (time, rel, relunit, number, get_date):
84034         Add support for fractional seconds.
84035         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
84036         (gmtime, localtime, mktime): Remove decls; not needed with C89.
84037         (to_hour): First arg is now long int, not int.
84038         (to_year): Returns long int, not int.
84039         Don't treat year -70 like 70.
84040         (tm_diff): Returns long int, not int.
84041         (lookup_word): Use bool instead of int when appropriate.
84042         (yylex): Use size_t for count, not int.
84043         Detect overflow when parsing large integer constants.
84044         Add support for fractions.
84045         (get_date): Make pointers 'const' if possible.
84046         Use more-portable code to detect integer overflow.
84047         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
84048         Don't use ctime; it's not reliable if the year has >4 digits.
84049
84050         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
84051         This is for compatibility with BSD.
84052
84053         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
84054         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
84055         From coreutils' system.h.
84056
84057         * lib/userspec.c: Don't include "posixver.h".
84058         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
84059         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
84060         compatible extension.  Simplify code by removing a boolean int
84061         that was always nonzero if a string was nonnull.
84062
84063 2004-03-30  Jim Meyering  <jim@meyering.net>
84064
84065         Merge from coreutils.
84066
84067         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
84068         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
84069         on some systems one must include <grp.h> before it.
84070         Reported by Christian Krackowizer.
84071
84072 2004-03-30  Jim Meyering  <jim@meyering.net>
84073
84074         Merge from coreutils.
84075
84076         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
84077
84078         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
84079         an empty input stream.
84080
84081         * lib/readtokens.c: Include <stdbool.h>.
84082         (readtoken): Use `size_t' rather than int/long.
84083         All callers adjusted.
84084         Use `bool' rather than `int' where appropriate.
84085         Use memset rather than an explicit loop.
84086         Use x2nrealloc rather than xrealloc.
84087         Allow the use of `\0' as a delimiter.
84088         (readtokens): Likewise.
84089         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
84090
84091 2004-03-30  Jim Meyering  <jim@meyering.net>
84092
84093         * m4/realloc.m4: Remove file, since now it does no more than
84094         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
84095         the `configure.ac' section of module/realloc.
84096         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
84097
84098 2004-03-30  Bruno Haible  <bruno@clisp.org>
84099
84100         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
84101         nonnull.
84102
84103 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84104
84105         Merge changes to getloadavg.c from coreutils and Emacs.
84106
84107         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
84108         Define to an expression, not to the empty string.
84109         Include cloexec.h and xalloc.h.
84110         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
84111         Use set_cloexec_flag rather than rolling our own.
84112         * lib/cloexec.c, lib/cloexec.h: New files.
84113
84114 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84115
84116         * m4/cloexec.m4: New file.
84117
84118 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84119
84120         * lib/getopt.h: Sync with libc CVS.
84121
84122 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84123             Bruno Haible  <bruno@clisp.org>
84124
84125         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
84126         mbswidth.
84127
84128 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84129             Bruno Haible  <bruno@clisp.org>
84130
84131         * lib/mbswidth.h: Include <wchar.h> only if
84132         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
84133         <wchar.h>.
84134         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
84135
84136 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84137
84138         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
84139         Sync with libc CVS.
84140         * lib/getopt_int.h: New file, also synced from libc.
84141
84142 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84143
84144         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
84145         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
84146         Bring back getopt.c, getopt.h, getopt1.c.
84147
84148 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84149
84150         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
84151         All uses changed.  Check for sa_sigaction member; this fixes
84152         a bug first reported by Jason Andrade in
84153         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84154
84155 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84156
84157         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
84158         '#if' expressions.  Unlike the code it replaces, it does not
84159         depend on (defined _SC_PAGESIZE).  However, it does depend on
84160         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
84161         first reported by Jason Andrade in
84162         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84163
84164 2004-02-25  Simon Josefsson  <jas@extundo.com>
84165
84166         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
84167
84168 2004-02-25  Simon Josefsson  <jas@extundo.com>
84169
84170         * lib/strdup.h: New file.
84171         * lib/strdup.c: Include it.
84172         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
84173         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
84174
84175 2004-02-23  Karl Berry  <karl@gnu.org>
84176
84177         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
84178         (from fencepost.gnu.org:/gd/gnuorg).
84179
84180 2004-02-23  Karl Berry  <karl@gnu.org>
84181
84182         * config/srclistvars.sh (GNUORG) [karl]: redefine.
84183         * config/srclist.txt: add maintain/standards documents.
84184
84185 2004-02-18  Bruno Haible  <bruno@clisp.org>
84186
84187         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
84188         Reported by Derek Robert Price <derek@ximbiot.com>.
84189
84190 2004-02-16  Karl Berry  <karl@gnu.org>
84191
84192         * config/mkinstalldirs, install-sh: update from automake.
84193
84194 2004-02-06  Karl Berry  <karl@gnu.org>
84195
84196         * m4/po.m4: update from gettext 0.14.1.
84197
84198 2004-02-06  Karl Berry  <karl@gnu.org>
84199
84200         * lib/config.charset: update from gettext 0.14.1.
84201
84202 2004-02-05  Paul Eggert  <eggert@twinsun.com>
84203
84204         Add comments and code, prompted by suggestions from Bruno Haible
84205         for sh-quote.
84206         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
84207         describing the enum quoting_style values.
84208         * lib/quotearg.c (quotearg_alloc): New function.
84209         (quotearg_buffer_restyled): Treat lone { and } as special.
84210         Treat = as special.  Work around bug with older shells
84211         that "see" a '\' that is really the 2nd byte of a multibyte char.
84212         Quote empty string with shell_quoting_style.
84213
84214 2004-02-03  Bruno Haible  <bruno@clisp.org>
84215
84216         * m4/pipe.m4: New file, from GNU gettext.
84217
84218 2004-02-03  Bruno Haible  <bruno@clisp.org>
84219
84220         * lib/pipe.h: New file, from GNU gettext.
84221         * lib/pipe.c: New file, from GNU gettext.
84222
84223 2004-01-27  Bruno Haible  <bruno@clisp.org>
84224
84225         * m4/execute.m4: New file, from GNU gettext.
84226
84227 2004-01-27  Bruno Haible  <bruno@clisp.org>
84228
84229         * lib/execute.h: New file, from GNU gettext.
84230         * lib/execute.c: New file, from GNU gettext.
84231         * lib/w32spawn.h: New file, from GNU gettext.
84232
84233 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84234
84235         Merge from diffutils.
84236
84237         * lib/file-type.c (file_type): Add typed memory objects.
84238         * lib/file-type.h (S_TYPEISTMO): New macro.
84239
84240         * lib/c-stack.h (c_stack_action): Remove argv argument.
84241         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
84242         (die): Don't calculate message unless segv_action returns.
84243         (get_stack_location, min_address_from_argv, max_address_from_argv,
84244         volatile stack_base, volatile_stack_size): Remove.
84245         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
84246         that every segmentation violation is a stack overflow.  (Ouch!)
84247         See Debian bug 136249 (still outstanding) for more info about why
84248         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
84249
84250 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84251
84252         Exit-status fix from coreutils.
84253
84254         Use exit_failure consistently in place of EXIT_FAILURE,
84255         so that program exit statuses are consistent on failure.
84256
84257         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
84258         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
84259         * lib/argmatch.h: Comment fix to match the above.
84260         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
84261         Now a macro referring to exit_failure, instead of a separate
84262         variable.  Include "exitfail.h" to get it.
84263         * lib/xstrtol.h: Include "exitfail.h".
84264         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
84265
84266         * lib/long-options.c (parse_long_options): Use prototype
84267         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
84268         for clarity.
84269
84270 2004-01-21  Jim Meyering  <jim@meyering.net>
84271
84272         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
84273         so as not to conflict with a different-sized __mktime_internal
84274         function in GNU libc.
84275         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
84276         Problem building statically-linked `ls' reported by Michael Brunnbauer.
84277
84278 2004-01-20  Karl Berry  <karl@gnu.org>
84279
84280         * config/config.guess: update from config.
84281
84282         * config/srclistvars.sh: GNUWWWLICENSES for karl.
84283
84284 2004-01-20  Bruno Haible  <bruno@clisp.org>
84285
84286         Safer stack allocation.
84287         * lib/setenv.c: Include allocsa.h.
84288         (alloca): Remove fallback definition.
84289         (freea): Remove macro.
84290         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
84291         instead of freea.
84292
84293 2004-01-20  Bruno Haible  <bruno@clisp.org>
84294
84295         * m4/eealloc.m4: New file, from GNU gettext.
84296
84297 2004-01-20  Bruno Haible  <bruno@clisp.org>
84298
84299         * m4/allocsa.m4: New file, from GNU gettext.
84300
84301 2004-01-20  Bruno Haible  <bruno@clisp.org>
84302
84303         * lib/xallocsa.h: New file, from GNU gettext.
84304         * lib/xallocsa.c: New file, from GNU gettext.
84305
84306 2004-01-20  Bruno Haible  <bruno@clisp.org>
84307
84308         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
84309
84310 2004-01-20  Bruno Haible  <bruno@clisp.org>
84311
84312         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
84313         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
84314         specially.
84315
84316 2004-01-20  Bruno Haible  <bruno@clisp.org>
84317
84318         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
84319         patch.
84320
84321 2004-01-20  Bruno Haible  <bruno@clisp.org>
84322
84323         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
84324
84325 2004-01-20  Bruno Haible  <bruno@clisp.org>
84326
84327         * lib/eealloc.h: New file.
84328
84329 2004-01-20  Bruno Haible  <bruno@clisp.org>
84330
84331         * lib/binary-io.h: Avoid warnings on Cygwin.
84332
84333 2004-01-20  Bruno Haible  <bruno@clisp.org>
84334
84335         * lib/allocsa.h: New file, from GNU gettext.
84336         * lib/allocsa.c: New file, from GNU gettext.
84337
84338 2004-01-18  Karl Berry  <karl@gnu.org>
84339
84340         * doc/gpl.texi, doc/lgpl.texi: new files.
84341
84342 2004-01-18  Karl Berry  <karl@gnu.org>
84343
84344         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
84345         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
84346
84347 2004-01-15  Paul Eggert  <eggert@twinsun.com>
84348
84349         Merge from coreutils.
84350
84351         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
84352         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
84353         (gl_DEFAULT_POSIX2_VERSION): Move
84354         the documentation from 'configure' into 'config.hin',
84355         so that 'configure --help' isn't burdened by it and
84356         we don't have to worry about its formatting there.
84357         Reword the documentation so that it's more succinct
84358         and can be run together into a single paragraph.
84359         * m4/same.m4 (gl_SAME): Check for pathconf.
84360
84361 2004-01-15  Paul Eggert  <eggert@twinsun.com>
84362
84363         Merge from coreutils.
84364
84365         * lib/posixver.c: Include posixver.h.
84366
84367         * lib/same.c: Include <stdbool.h>, <limits.h>.
84368         (_POSIX_NAME_MAX): Define if not defined.
84369         (MIN): New macro.
84370         (same_name): If file names are silently truncated, report
84371         that the file names are the same if they are the same after
84372         the silent truncation.
84373
84374         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
84375         conversion function.
84376         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
84377         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
84378         longer needed.
84379
84380 2004-01-15  Jim Meyering  <jim@meyering.net>
84381
84382         Merge from coreutils.
84383
84384         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
84385         if no library is required.
84386         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
84387         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
84388         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
84389         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
84390         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
84391         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
84392         value, $ac_cv_search_crypt, if it's "none required".
84393         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
84394         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
84395         not gl_FUNC_GETLOADAVG.
84396         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
84397         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
84398
84399 2004-01-15  Jim Meyering  <jim@meyering.net>
84400
84401         Merge from coreutils.
84402
84403         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
84404         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
84405         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
84406
84407         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
84408         optional configure-time default.
84409
84410         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84411
84412         * lib/xreadlink.c (xreadlink): Correct outdated comment.
84413
84414 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
84415
84416         Merge from coreutils.
84417
84418         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
84419         value, $ac_cv_search_nanosleep, if it's "none required".
84420
84421 2004-01-14  Paul Eggert  <eggert@twinsun.com>
84422
84423         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
84424         with like-named macro in fnmatch.c.
84425         (EXT): Use an internal constant instead.
84426
84427         Merge fnmatch patches from glibc.
84428         * lib/fnmatch.c (mbsinit): Remove define.
84429         Add libc_hidden_ver (__fnmatch, fnmatch).
84430         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
84431         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
84432
84433 2004-01-14  Karl Berry  <karl@gnu.org>
84434
84435         * config/install-sh: update from automake.
84436
84437 2004-01-13  Karl Berry  <karl@gnu.org>
84438
84439         * config/install-sh: update from automake.
84440
84441 2004-01-09  Karl Berry  <karl@gnu.org>
84442
84443         * config/install-sh: update from automake.
84444
84445 2004-01-05  Karl Berry  <karl@gnu.org>
84446
84447         * config/config.{sub,guess}: update from config.
84448
84449 2003-12-31  Karl Berry  <karl@gnu.org>
84450
84451         * config/depcomp: update from automake.
84452
84453 2003-12-14  Karl Berry  <karl@gnu.org>
84454
84455         * lib/config.charset: update from gettext-runtime.
84456
84457 2003-12-03  Paul Eggert  <eggert@twinsun.com>
84458
84459         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
84460         Bug reported by Alfred M. Szmidt.
84461
84462 2003-12-03  Bruno Haible  <bruno@clisp.org>
84463
84464         * m4/gettext.m4: Upgrade from gettext-0.13.
84465         * m4/po.m4: Upgrade from gettext-0.13.
84466         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
84467         * m4/intmax.m4: New file, from gettext-0.13.
84468         * m4/printf-posix.m4: New file, from gettext-0.13.
84469
84470 2003-11-29  Karl Berry  <karl@gnu.org>
84471
84472         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
84473
84474 2003-11-25  Paul Eggert  <eggert@twinsun.com>
84475             Bruno Haible  <bruno@clisp.org>
84476
84477         * lib/printf-parse.h: Don't include sys/types.h.
84478         (ARG_NONE): New macro.
84479         (char_directive): Change type of *arg_index fields to size_t.
84480         * lib/printf-parse.c: Don't include sys/types.h.
84481         (SSIZE_MAX): Remove macro.
84482         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
84483         Remove unnecessary overflow check.
84484         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
84485         fields.
84486
84487 2003-11-25  Bruno Haible  <bruno@clisp.org>
84488
84489         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
84490
84491 2003-11-25  Bruno Haible  <bruno@clisp.org>
84492
84493         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
84494         gt_TYPE_SSIZE_T.
84495
84496 2003-11-24  Paul Eggert  <eggert@twinsun.com>
84497
84498         * modules/alloca: Remove dependency on xalloc.
84499
84500 2003-11-24  Paul Eggert  <eggert@twinsun.com>
84501
84502         * lib/alloca.c: Remove dependency on xalloc module.
84503         (xalloc_die): Remove.
84504         (memory_full) [!defined emacs]: New macro.
84505         [!defined emacs]: Don't include xalloc.h.
84506         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
84507         address arithmetic overflows.  Change datatypes a bit to avoid
84508         unnecessary casts.
84509
84510 2003-11-22  Jim Meyering  <jim@meyering.net>
84511
84512         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
84513         s/size/size_t/.
84514
84515 2003-11-21  Karl Berry  <karl@gnu.org>
84516
84517         * config/config.{sub,guess}: update from config.
84518
84519 2003-11-18  Karl Berry  <karl@gnu.org>
84520
84521         * config/config.{sub,guess}: update from config.
84522
84523         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
84524
84525 2003-11-17  Paul Eggert  <eggert@twinsun.com>
84526
84527         * README: Mention that S+T cannot overflow if S is the size of
84528         an existing object and T is sufficiently small.
84529
84530 2003-11-17  Jim Meyering  <jim@meyering.net>
84531
84532         On systems without utime and without a utimes function capable of
84533         dealing with a NULL struct utimbuf* argument, this utime replacement
84534         could -- in unusual circumstances -- leak a file descriptor.
84535         * lib/utime.c: Include <unistd.h> and <errno.h>.
84536         (utime_null): Be sure to close `fd' and to preserve errno.
84537         Reported by Geoff Collyer via Arnold Robbins.
84538
84539 2003-11-17  Bruno Haible  <bruno@clisp.org>
84540
84541         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
84542         (Depends-on): Add xsize.
84543
84544 2003-11-17  Bruno Haible  <bruno@clisp.org>
84545
84546         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
84547
84548 2003-11-17  Bruno Haible  <bruno@clisp.org>
84549
84550         * lib/vasnprintf.c (alloca): Remove fallback definition.
84551         (freea): Remove definition.
84552         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
84553         Reported by Paul Eggert.
84554
84555 2003-11-16  Paul Eggert  <eggert@twinsun.com>
84556             Bruno Haible  <bruno@clisp.org>
84557
84558         Protect against address arithmetic overflow.
84559         * lib/printf-args.h: Include stddef.h.
84560         (arguments): Change type of field 'count' to size_t.
84561         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
84562         'unsigned int' where appropriate.
84563         * lib/printf-parse.h: Include sys/types.h.
84564         (char_directive): Change type of *arg_index fields to ssize_t.
84565         (char_directives): Change type of fields 'count', max_*_length to
84566         size_t.
84567         * lib/printf-parse.c: Include sys/types.h and xsize.h.
84568         (SSIZE_MAX): Define fallback value.
84569         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
84570         instead of 'int' where appropriate. Check a_allocated, d_allocated
84571         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
84572         * lib/vasnprintf.c: Include xsize.h.
84573         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
84574         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
84575         overflow. Avoid wraparound when converting a width or precision from
84576         decimal to binary.
84577
84578 2003-11-16  Bruno Haible  <bruno@clisp.org>
84579
84580         Update from GNU gettext.
84581         * lib/printf-parse.c: Generalize to it can be compiled for wide
84582         strings.
84583         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
84584         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
84585         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
84586         SNPRINTF): New macros.
84587         Don't include <alloca.h> if the file is used inside libintl.
84588         (local_wcslen): New function, for Solaris 2.5.1.
84589         (VASNPRINTF): Use it instead of wcslen.
84590
84591 2003-11-16  Bruno Haible  <bruno@clisp.org>
84592
84593         * lib/xsize.h (xmax): New function.
84594         (xsum, xsum3, xsum4): Declare as "pure" functions.
84595
84596 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84597
84598         * modules/xalloc (Files): Undo latest change, since xalloc.h
84599         no longer needs SIZE_MAX or PTRDIFF_MAX.
84600
84601 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84602
84603         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
84604         gl_PTRDIFF_MAX.
84605
84606 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84607
84608         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
84609         "return", to pacify some unknown compiler.  Problem reported
84610         by Joerg Schilling.
84611
84612 2003-11-12  Paul Eggert  <eggert@twinsun.com>
84613
84614         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
84615         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
84616         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
84617         heuristic is just as accurate as far as we know, and it removes a
84618         dependency on size_max.m4 and ptrdiff_max.m4.
84619
84620 2003-11-11  Bruno Haible  <bruno@clisp.org>
84621
84622         * modules/xsize (Files): Add m4/size_max.m4.
84623         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
84624
84625 2003-11-11  Bruno Haible  <bruno@clisp.org>
84626
84627         * m4/size_max.m4: New file.
84628         * m4/ptrdiff_max.m4: New file.
84629         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
84630         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
84631         (gl_XALLOC): Invoke it.
84632
84633 2003-11-11  Bruno Haible  <bruno@clisp.org>
84634
84635         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
84636         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
84637         defined.
84638
84639 2003-11-10  Paul Eggert  <eggert@twinsun.com>
84640
84641         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
84642         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
84643         rejected some allocations of exactly SIZE_MAX - 2 bytes.
84644         From Bruno Haible.
84645         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
84646         not (size_t) -1, since it's defined here.
84647
84648 2003-11-09  Karl Berry  <karl@gnu.org>
84649
84650         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
84651
84652 2003-11-06  Paul Eggert  <eggert@twinsun.com>
84653
84654         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
84655         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
84656         Reject sizes of exactly SIZE_MAX bytes.
84657         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
84658         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
84659
84660 2003-11-05  Bruno Haible  <bruno@clisp.org>
84661
84662         * lib/xsize.h: Include limits.h, to avoid a possible collision with
84663         SIZE_MAX defined in <limits.h> on Solaris.
84664
84665 2003-11-04  Jim Meyering  <jim@meyering.net>
84666
84667         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
84668         variable names, rather than @VAR@.
84669         * modules/poll: Likewise.
84670
84671 2003-11-04  Bruno Haible  <bruno@clisp.org>
84672
84673         * modules/xsize: New file.
84674         * modules/linebreak: Depend on xsize.
84675         * MODULES.html.sh (func_all_modules): Add xsize.
84676
84677 2003-11-04  Bruno Haible  <bruno@clisp.org>
84678
84679         * m4/xsize.m4: New file.
84680
84681 2003-11-04  Bruno Haible  <bruno@clisp.org>
84682
84683         * lib/xsize.h: New file.
84684         * lib/linebreak.c: Include xsize.h.
84685         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
84686         argument for overflow.
84687         Suggested by Paul Eggert.
84688
84689 2003-11-03  Karl Berry  <karl@gnu.org>
84690
84691         * config/config.{guess,sub}: update from config.
84692
84693 2003-11-03  Jim Meyering  <jim@meyering.net>
84694
84695         * modules/userspec (lib_SOURCES): Add userspec.h.
84696         (Include): Add "userspec.h".
84697         Improve description.
84698
84699 2003-11-03  Jim Meyering  <jim@meyering.net>
84700
84701         * lib/userspec.c: Include "userspec.h".
84702         * lib/userspec.h: New file.
84703
84704 2003-11-03  Bruno Haible  <bruno@clisp.org>
84705
84706         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
84707
84708 2003-11-03  Bruno Haible  <bruno@clisp.org>
84709
84710         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
84711         available, to avoid (extremely rare) race condition.
84712         Suggested by Paul Eggert.
84713
84714 2003-11-02  Karl Berry  <karl@gnu.org>
84715
84716         * config/srclist.txt (vasprintf.c): sync broken, sigh.
84717
84718 2003-10-31  Paul Eggert  <eggert@twinsun.com>
84719
84720         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
84721         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
84722         (read_filesystem_list): Set and use me_type_malloced.
84723         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
84724         whatever the type happens to be), for brevity and consistency.
84725         Check for size calculation overflow on Alphas running OSF/1.
84726
84727 2003-10-31  Jim Meyering  <jim@meyering.net>
84728
84729         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
84730
84731         * lib/linebuffer.c: Include <string.h> for declaration of memset.
84732
84733 2003-10-30  Paul Eggert  <eggert@twinsun.com>
84734             Bruno Haible  <bruno@clisp.org>
84735
84736         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
84737         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
84738
84739 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84740
84741         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
84742         netbsd*-gnu*.  Suggested by Robert Millan.
84743
84744 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84745
84746         * modules/group-member: Depend on stdbool.
84747
84748 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84749
84750         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
84751
84752 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84753
84754         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
84755         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
84756         after the 'gnu' in these cases.  This fixes some bugs in the
84757         previous change, and is based on suggestions by Robert Millan.
84758
84759 2003-10-29  Paul Eggert  <eggert@twinsun.com>
84760
84761         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
84762         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
84763         no longer needed.
84764         * lib/quotearg.c (quotearg_n_options): Use it.
84765         * lib/group-member.c: Include <stdbool.h>.
84766         (free_group_info): Arg is now const *; don't free arg.
84767         (get_group_info): Now returns bool and accepts struct group_info *,
84768         rather than returning a malloc'ed struct group_info *.
84769         All uses changed.  Check for overflow in internal size calculation.
84770
84771         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
84772         rather than xmalloc/xrealloc.
84773         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
84774         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
84775         conformance bug: the old code used a pointer after freeing the
84776         storage that it addressed.
84777         * lib/hash.c (hash_initialize): Simplify the code by using
84778         xalloc_oversized rather than doing it by hand.
84779         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
84780         the buffer preserved.  Use free and xmalloc instead.
84781         * lib/quotearg.c (quotearg_n_options): Likewise.
84782         Use a simpler test for size overflow.  Don't use xalloc_oversized
84783         because unsigned int might be wider than size_t (!); this suggests
84784         that we should switch from unsigned int to size_t for slot numbers.
84785
84786 2003-10-28  Paul Eggert  <eggert@twinsun.com>
84787
84788         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
84789         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
84790         NetBSD kernels.  Requested by Richard Stallman.
84791
84792 2003-10-27  Paul Eggert  <eggert@twinsun.com>
84793
84794         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
84795         to allocate the returned structure.  Do not allocate a subarray,
84796         as x2nrealloc will do that.
84797         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
84798         instead of xnrealloc.
84799         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
84800
84801 2003-10-27  Bruno Haible  <bruno@clisp.org>
84802
84803         * lib/stdbool_.h: Better support for BeOS.
84804
84805 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84806
84807         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
84808         now uses inline.
84809
84810 2003-10-26  Paul Eggert  <eggert@twinsun.com>
84811
84812         * lib/xalloc.h (xalloc_oversized): New static inline function, for
84813         callers that want to do their own size-overflow checking.  Include
84814         <stdbool.h>, since xalloc_oversized returns bool.
84815         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
84816         to use xalloc_oversized.
84817
84818         Add two functions x2realloc, x2nrealloc, for programs that grow
84819         arrays dynamically by doubling their sizes.
84820         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
84821         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
84822         New functions.
84823
84824         Port to C99 semantics for 'inline' of external functions.
84825         Bug reported by Bruno Haible.
84826         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
84827         with the old contents of xnmalloc.
84828         (xnmalloc, xmalloc): Use it.
84829         (xnrealloc_inline): New static inline function,
84830         with the old contents of xnrealloc.
84831         (xnrealloc, xrealloc): Use it.
84832
84833         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
84834         that.
84835
84836 2003-10-26  Karl Berry  <karl@gnu.org>
84837
84838         * config/srclist.txt (COPYING.DOC): no longer available from
84839         /gd/gnuorg; don't know where the ultimate source is.
84840
84841 2003-10-25  Paul Eggert  <eggert@twinsun.com>
84842
84843         Fix several address-calculation bugs in the hash modules,
84844         plus some minor code cleanup.
84845
84846         * lib/hash.h: Include <stdbool.h>, for bool.
84847         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
84848         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
84849         hash_get_n_entries, hash_get_max_bucket_length,
84850         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
84851         hash_rehash): Use size_t rather than unsigned.
84852         * lib/hash.c (struct hash_table, hash_get_n_buckets,
84853         hash_get_n_buckets_used, hash_get_n_entries,
84854         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
84855         hash_get_entries, hash_do_for_each, hash_string, is_prime,
84856         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
84857         Likewise.
84858         (SIZE_MAX): Define if not defined.
84859         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
84860         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
84861         hash_print):
84862         Use const * when possible.
84863         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
84864         (check_tuning): Fix bug: if tuning parameters were very close to
84865         0 or 1, rounding errors could have caused subscript violations.
84866         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
84867         (hash_initialize): Add 'fail:' label
84868         to free table and return NULL, and use it to simplify code.
84869         Use calloc rather than clearing the storage ourself.
84870         (hash_initialize, hash_rehash): Check for arithmetic overflow in
84871         buffer size calculations.
84872         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
84873         Include <stddef.h>, for size_t.
84874         * lib/hash-pjw.c (hash_pjw): Likewise.
84875         Switch to method described by Bruno Haible.
84876         Include <limits.h>, for CHAR_BIT.
84877         (SIZE_BITS): New macro.
84878
84879 2003-10-23  Paul Eggert  <eggert@twinsun.com>
84880
84881         * m4/getline.m4 (AM_FUNC_GETLINE):
84882         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
84883         hosts.  Problem reported by Derek Robert Price in
84884         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
84885         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
84886         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
84887
84888 2003-10-21  Paul Eggert  <eggert@twinsun.com>
84889
84890         * lib/getndelim2.c (getndelim2): When size calculation overflows,
84891         ceiling the allocation at NMAX bytes rather than silently
84892         discarding input bytes before NMAX is reached.  This makes
84893         a difference only if NMAX exceeds SIZE_MAX / 2.
84894
84895         * lib/obstack.c: Merge from glibc.
84896         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
84897         Add libc_hidden_def (_obstack_newchunk).
84898         (_obstack_free) [! defined _LIBC]: Remove.
84899         [defined _LIBC]: Make a strong alias from obstack_free, rather than
84900         a clone of the function body.
84901         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
84902         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
84903
84904         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
84905         glibc.
84906         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
84907         arg to memcpy.
84908
84909         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
84910         (obstack_ptr_grow_fast, obstack_int_grow_fast):
84911         Don't use lvalue casts, as GCC plans to remove support for them
84912         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
84913         was also present in the non-GCC version, indicating that this
84914         code had always been buggy and had never been widely used.
84915         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
84916         Use the fast variant of each macro, rather than copying the
84917         definiens of the fast variant; that way, we'll be more likely to
84918         catch future bugs in the fast variants.
84919
84920 2003-10-20  Bruno Haible  <bruno@clisp.org>
84921
84922         * modules/wait-process: New file.
84923         * MODULES.html.sh (func_all_modules): Add wait-process.
84924
84925 2003-10-20  Bruno Haible  <bruno@clisp.org>
84926
84927         * m4/wait-process.m4: New file.
84928
84929 2003-10-20  Bruno Haible  <bruno@clisp.org>
84930
84931         * lib/wait-process.h: New file, from GNU gettext.
84932         * lib/wait-process.c: New file, from GNU gettext.
84933
84934 2003-10-19  Jim Meyering  <jim@meyering.net>
84935
84936         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
84937         HPUX 10.20.
84938
84939 2003-10-18  Karl Berry  <karl@gnu.org>
84940
84941         * config/config.guess: update from config.
84942
84943 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84944
84945         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
84946         (getgroups): First arg is int, not size_t.
84947         Don't let 'free' mangle errno.
84948
84949 2003-10-16  Paul Eggert  <eggert@twinsun.com>
84950
84951         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
84952
84953 2003-10-16  Karl Berry  <karl@gnu.org>
84954
84955         * config/config.{guess,sub}: update from config.
84956
84957 2003-10-16  Jim Meyering  <jim@meyering.net>
84958
84959         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
84960         memcpy.
84961
84962 2003-10-15  Paul Eggert  <eggert@twinsun.com>
84963
84964         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
84965         (SIZE_MAX): Remove.
84966         (new_exclude, add_exclude_file): Initial size no longer needs to
84967         be a power of 2.
84968         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
84969         our own address arithmetic overflow checking.
84970
84971         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
84972         (fnmatch): Do not alloca more than 2000 wide characters;
84973         instead, use malloc for large buffers.
84974         Check for address arithmetic overflow, and return -1
84975         with errno set to ENOMEM in that case.
84976         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
84977         (NEW_PATTERN): Do not alloca more than 8000 bytes;
84978         instead, return -1.  Check for address arithmetic overflow.
84979
84980 2003-10-14  Paul Eggert  <eggert@twinsun.com>
84981
84982         Handle invalid suffixes and overflow independently, so that
84983         callers can treat them independently as needed.  Fix some bugs in
84984         suffix handling, e.g., "100k@" was not diagnosed as an invalid
84985         suffix for a human-readable blocksize.  The major caller-visible
84986         change is the addition of a new
84987         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
84988         that both overflow and suffix chars were found.
84989
84990         * lib/human.c (humblock): Don't check separately for invalid suffix
84991         char; that is xstrtoumax's job (now that its bug is fixed).
84992         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
84993         INTMAX_MAX]: New macros.
84994         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
84995         TYPE_MAXIMUM): New macros.
84996         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
84997         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
84998         if overflow occurs, as it's what __strtol does and it's more useful
84999         in practice.
85000         (__xstrtol): If __strtol reports some error other than ERANGE,
85001         reflect it to the caller as LONGINT_INVALID.  If it reports
85002         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
85003         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
85004         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
85005         value.
85006         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
85007         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
85008         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
85009         [defined UINTMAX_MAX]: New macros.
85010
85011 2003-10-14  Bruno Haible  <bruno@clisp.org>
85012
85013         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
85014
85015 2003-10-14  Bruno Haible  <bruno@clisp.org>
85016
85017         * m4/sig_atomic_t: New file, from GNU gettext.
85018         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
85019
85020 2003-10-14  Bruno Haible  <bruno@clisp.org>
85021
85022         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
85023         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
85024         Also use volatile where needed.
85025
85026 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85027
85028         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
85029         Change maintainer from Bruno Haible to 'all'.
85030
85031 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85032
85033         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
85034
85035 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85036
85037         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
85038         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
85039         and define in terms of the other primitives.
85040         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
85041         (SIZE_MAX): Define if not already defined.
85042         (array_size_overflow): New function.
85043         (xalloc_die): Abort instead of exiting if 'error' returns.
85044         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
85045         (xmalloc, xrealloc): Use them.
85046         (xcalloc): Check for address arithmetic overflow.
85047         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
85048         a bit faster than strcpy.
85049
85050 2003-10-10  Simon Josefsson  <jas@extundo.com>
85051
85052         * modules/argp (Depends-on): Add restrict and strcase.
85053
85054 2003-10-10  Simon Josefsson  <jas@extundo.com>
85055
85056         * m4/argp.m4: Add AC_C_INLINE.
85057
85058 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85059
85060         Merge getpass from libc, plus a few fixes.
85061
85062         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
85063         Include <stdbool.h>.
85064         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
85065         __fsetlocking to empty.
85066         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
85067         do include <bits/libc-lock.h>.
85068         Do not include <fcntl.h>; not needed.
85069         [_LIBC]: Include <wchar.h>.
85070         (NOTCANCEL_MODE): New macro.
85071         (flockfile, funlockfile) [_LIBC]: New macros.
85072         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
85073         [!_LIBC]: New macros.
85074         (call_fclose): New function.
85075         (getpass): Use it.  Save tty stream separately; this simplifies the
85076         code and makes it more reliable if stdin happens to equal stdout.
85077         Invoke __fsetlocking on tty.
85078         Handle thread cancellation if needed.
85079         Namespace cleanup (use __tcgetattr, __getline).
85080         Use bool for Booleans.
85081         [USE_IN_LIBIO]: Handle wide streams.
85082         [!_LIBC]: Unconditionally do the fseek, since we don't know what
85083         stream might go where.
85084
85085         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
85086         doesn't have to include <stdio.h> before us.
85087         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
85088         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
85089         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
85090         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
85091         if not declared, so that we can use getpass.c code from libc without
85092         rewriting it.
85093         (flockfile, ftrylockfile, funlockfile): New macros.
85094
85095 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85096
85097         * modules/getpass: Depend on stdbool.
85098
85099 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85100
85101         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
85102
85103 2003-10-07  Karl Berry  <karl@gnu.org>
85104
85105         * config/config.{guess,sub}: update from config.
85106
85107 2003-10-06  Jim Meyering  <jim@meyering.net>
85108             Bruno Haible  <bruno@clisp.org>
85109
85110         This lets translators provide better translations for the
85111         "Written by ..." part of --version output.
85112         * lib/version-etc.h: Include stdarg.h.
85113         (version_etc_copyright): Declare as readonly.
85114         (version_etc): Make this function variadic with a NULL-terminated list
85115         of author name strings.
85116         (version_etc_va): New declaration.
85117         * lib/version-etc.c: Include stdarg.h, stdlib.h.
85118         (version_etc_copyright): Declare as readonly.
85119         (version_etc_va): New function. Provide a different translatable string
85120         for each possible number of authors < 10. Abbreviate when there are 10
85121         authors or more.
85122         (version_etc): Make this function variadic. Call version_etc_va.
85123         Suggestion from Gary V. Vaughan.
85124
85125         * lib/long-options.h (parse_long_options): Change prototype: the
85126         authors string is moved to the end and becomes variadic.
85127         * lib/long-options.c: Include stdarg.h.
85128         (parse_long_options): Make this function variadic, too.
85129         Call version_etc_va, not version_etc.
85130
85131 2003-10-06  Bruno Haible  <bruno@clisp.org>
85132
85133         * modules/version-etc-2: Remove file.
85134         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
85135
85136 2003-10-06  Bruno Haible  <bruno@clisp.org>
85137
85138         * modules/fatal-signal: New file.
85139         * MODULES.html.sh (func_all_modules): Add fatal-signal.
85140
85141 2003-10-06  Bruno Haible  <bruno@clisp.org>
85142
85143         * m4/fatal-signal.m4: New file.
85144         * m4/signalblocking.m4: New file, from GNU gettext.
85145
85146 2003-10-06  Bruno Haible  <bruno@clisp.org>
85147
85148         * lib/version-etc-2.h: Remove file.
85149         * lib/version-etc-2.c: Remove file.
85150
85151 2003-10-06  Bruno Haible  <bruno@clisp.org>
85152
85153         * lib/fatal-signal.h: New file, from GNU gettext.
85154         * lib/fatal-signal.c: New file, from GNU gettext.
85155
85156 2003-10-05  Paul Eggert  <eggert@twinsun.com>
85157
85158         * README: Rework advice for preventing empty .o files.
85159         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
85160         not <sys/types.h>.
85161
85162 2003-10-04  Karl Berry  <karl@gnu.org>
85163
85164         * lib/argp*: update from libc.
85165
85166 2003-10-04  Karl Berry  <karl@gnu.org>
85167
85168         * config/config.{guess,sub}: update from config.
85169
85170 2003-10-02  Bruno Haible  <bruno@clisp.org>
85171
85172         * modules/lchown (Include): Add lchown.h.
85173         * modules/time_r (Include): Use "..." syntax.
85174         * modules/xgetdomainname (Include): Add xgetdomainname.h.
85175
85176 2003-10-01  Simon Josefsson  <jas@extundo.com>
85177
85178         * MODULES.html.sh (func_all_modules): Move gethostname from section
85179         'based on' to section 'lacking' POSIX:2001.
85180
85181 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
85182
85183         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
85184         to output mode on the same stream.
85185
85186 2003-09-29  Paul Eggert  <eggert@twinsun.com>
85187
85188         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
85189         Fix arg typo in previous patch.
85190
85191 2003-09-28  Jim Meyering  <jim@meyering.net>
85192
85193         * lib/error.c: Correct cpp indentation.
85194
85195 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85196
85197         * modules/free: New file.
85198
85199 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85200
85201         * m4/free.m4: New file.
85202
85203 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85204
85205         * lib/minmax.h (MIN, MAX)
85206         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
85207         Omit the special code that used __typeof__, since we worry that
85208         it could be more trouble than it's worth.  See:
85209         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
85210         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
85211
85212         * lib/free.c: New file.
85213
85214 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
85215
85216         Trivial fixes to Makefile.am parts of module listings.
85217         * modules/strstr: Append strstr.h to lib_SOURCES.
85218         * modules/strcase: Likewise, for strcase.h.
85219
85220 2003-09-27  Karl Berry  <karl@gnu.org>
85221
85222         * config/mkinstalldirs: update from automake.
85223
85224 2003-09-26  Paul Eggert  <eggert@twinsun.com>
85225
85226         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
85227         (error_tail): Do not loop, reallocating temporary buffer, since
85228         the output cannot contain more wide characters than the input
85229         contains bytes, the size must be big enough already.  This avoids
85230         one potential size overflow calculation.  Check for size overflow
85231         when calculating temporary buffer size.  Free temporary buffer
85232         when done, if it was allocated with malloc; this plugs a memory
85233         leak.  Remove casts from void * to pointers, that are no longer
85234         needed now that we're assuming C89 or better.
85235
85236         Merge error changes from glibc.
85237
85238         * lib/error.c, error.h: Update copyright notice header to match glibc.
85239         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
85240         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
85241         Disable cancellation while printing error.
85242         * lib/error.h: Prepend __ to parameter names.
85243
85244 2003-09-26  Jim Meyering  <jim@meyering.net>
85245
85246         * lib/error.c (error_tail): Move some declarations
85247         into inner scope where the local variables are used.
85248
85249 2003-09-26  Bruno Haible  <bruno@clisp.org>
85250
85251         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
85252         stpncpy().
85253         Don't define stpncpy through config.h; it's now done through stpncpy.h.
85254
85255 2003-09-26  Bruno Haible  <bruno@clisp.org>
85256
85257         * lib/stpncpy.h (gnu_stpncpy): New declaration.
85258         (stpncpy): Define as alias for gnu_stpncpy.
85259         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
85260
85261 2003-09-25  Simon Josefsson  <jas@extundo.com>
85262
85263         * lib/xgetdomainname.h: New file.
85264         * lib/xgetdomainname.c: New file.
85265
85266 2003-09-25  Simon Josefsson  <jas@extundo.com>
85267             Bruno Haible  <bruno@clisp.org>
85268
85269         * modules/getdomainname: New file.
85270         * modules/xgetdomainname: New file.
85271         * MODULES.html.sh (func_all_modules): Add getdomainname,
85272         xgetdomainname.
85273
85274 2003-09-25  Simon Josefsson  <jas@extundo.com>
85275             Bruno Haible  <bruno@clisp.org>
85276
85277         * m4/getdomainname.m4: New file.
85278
85279 2003-09-25  Simon Josefsson  <jas@extundo.com>
85280             Bruno Haible  <bruno@clisp.org>
85281
85282         * lib/getdomainname.h: New file.
85283         * lib/getdomainname.c: New file.
85284
85285 2003-09-25  Karl Berry  <karl@gnu.org>
85286
85287         * lib/argp-fmtstream.c, argp-help.c: update from libc.
85288
85289 2003-09-25  Karl Berry  <karl@gnu.org>
85290
85291         * config/install-sh: update from automake.
85292
85293 2003-09-25  Bruno Haible  <bruno@clisp.org>
85294
85295         * modules/version-etc-2: New file, from modules/version-etc with
85296         modifications.
85297         * MODULES.html.sh (func_all_modules): Add version-etc-2.
85298
85299 2003-09-25  Bruno Haible  <bruno@clisp.org>
85300
85301         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
85302         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
85303
85304 2003-09-24  Simon Josefsson  <jas@extundo.com>
85305
85306         * modules/xgethostname: Add xgethostname.h.
85307
85308 2003-09-24  Paul Eggert  <eggert@twinsun.com>
85309
85310         * lib/linebuffer.c (freebuffer): Don't free the argument, just
85311         the buffer associated with the argument.  Bug reported by
85312         Simon Josefsson.
85313
85314 2003-09-24  Paul Eggert  <eggert@twinsun.com>
85315
85316         * README: Document assumptions that 'int' is at least 32 bits
85317         wide, that integer arithmetic is 2's complement without overflow,
85318         that there are no holes in integer values, that adding sizes of
85319         two nonoverlapping objects can't overflow, and that all-bits-zero
85320         yields scalar zero.  Fix spelling and capitalization typos.
85321
85322 2003-09-19  Karl Berry  <karl@gnu.org>
85323
85324         * lib/argp.h: update from libc.
85325
85326 2003-09-17  Paul Eggert  <eggert@twinsun.com>
85327
85328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
85329         to avoid spurious warnings like "AC_RUN_IFELSE was called before
85330         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
85331
85332 2003-09-17  Paul Eggert  <eggert@twinsun.com>
85333
85334         * gnulib-tool: Use "test -h", not "test -L", for portability
85335         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
85336         (tags_regexp): Remove, since \| doesn't conform to POSIX.
85337         (sed_extract_prog): Issue s commands one-by-one, rather than
85338         using \| in one s command.
85339
85340 2003-09-16  Paul Eggert  <eggert@twinsun.com>
85341
85342         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
85343         input error, instead of returning NULL the next time we are called
85344         (and therefore losing track of errno).
85345
85346 2003-09-16  Bruno Haible  <bruno@clisp.org>
85347
85348         * gnulib-tool (func_create_testdir): Warn about duplicated
85349         dependencies.
85350
85351 2003-09-15  Paul Eggert  <eggert@twinsun.com>
85352
85353         * modules/argmatch, modules/fatal, modules/obstack,
85354         modules/xalloc, modules/xgethostname: Sort dependencies by
85355         importance, not alphabetically.
85356
85357 2003-09-15  Paul Eggert  <eggert@twinsun.com>
85358
85359         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
85360         fails, so that the caller gets the proper errno.
85361
85362         * lib/readutmp.c (read_utmp): Likewise.
85363         Check for fstat error.  Close stream and free storage
85364         when failing.
85365
85366 2003-09-14  Karl Berry  <karl@gnu.org>
85367
85368         * config/srclist.txt (strdup.c): disable for c89 changes.
85369
85370 2003-09-14  Jim Meyering  <jim@meyering.net>
85371
85372         * lib/getloadavg.c: Correct cpp indentation.
85373         * lib/strdup.c: Likewise.
85374         * lib/vasnprintf.c: Likewise.
85375
85376 2003-09-14  Bruno Haible  <bruno@clisp.org>
85377
85378         * modules/fwriteerror: New file.
85379         * MODULES.html.sh (func_all_modules): Add fwriteerror.
85380
85381 2003-09-14  Bruno Haible  <bruno@clisp.org>
85382
85383         * lib/fwriteerror.h: New file.
85384         * lib/fwriteerror.c: New file.
85385
85386 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85387
85388         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
85389         modules/xgethostname, modules/xalloc: Depend on exit.
85390
85391 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85392
85393         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
85394
85395         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
85396         and AC_MINIX, too, so that their extensions are available.
85397
85398         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
85399         This macro has been superseded by gl_BACKUPFILE.
85400
85401         More patches to assume C89 or better.
85402
85403         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
85404
85405         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
85406         unconditionally.
85407         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
85408         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
85409         Include <string.h>, <stdlib.h> unconditionally.
85410         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
85411         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
85412         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
85413         headers or for string.h.
85414         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
85415         or strtoul.
85416
85417         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
85418         headers.
85419         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
85420         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85421         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
85422         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
85423         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85424         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
85425         memcpy, memset.
85426         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
85427         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
85428         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
85429         strtol.
85430         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
85431         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
85432         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
85433         strtoul.
85434
85435 2003-09-12  Paul Eggert  <eggert@twinsun.com>
85436
85437         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
85438         * lib/obstack.c [!defined _LIBC]: Likewise.
85439         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
85440         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
85441         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
85442
85443         More changes to assume C89 or better.
85444
85445         * lib/error.c (error_tail): Assume vprintf.
85446
85447         * lib/argmatch.c (getenv): Remove decl.
85448         * lib/progreloc.c (get_full_program_name): Define via prototype.
85449         * lib/setenv.c (clearenv): Likewise.
85450         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
85451         needed.
85452         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
85453         (malloc, memcpy): Remove decls.
85454         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
85455         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
85456         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
85457         (memcpy): Remove macro.
85458         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
85459         (__P): Remove.  All uses removed.
85460         (PTR): Remove.  All uses changed to void *.
85461         (CHAR_BIT, NULL): Remove.
85462         (spaces, zeros, memset_space, memset_zero)
85463         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
85464         Remove.
85465         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
85466         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
85467         Define with prototype.
85468         Remove now-unnecessary prototype decl.
85469         (extra_args_spec): Assume ANSI C.  All uses changed.
85470         (extra_args_spec_iso): Remove.
85471         (my_strftime, emacs_strftimeu): Define via prototype.
85472         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
85473         unconditionally.
85474         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
85475         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
85476         (strtoul, strtol): Remove decls.
85477         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
85478         LONG_MAX): Remove.
85479         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
85480         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
85481         (LOCALE_PARAM_PROTO): New macro.
85482         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
85483         (INTERNAL (strtol), strtol): Define with a prototype.
85484         (PARAMS): Remove.  All uses removed.
85485         * lib/tempname.c: Include <string.h> unconditionally.
85486         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
85487         * lib/xgethostname.c (main): Define with a prototype.
85488         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
85489         Include <stdlib.h> unconditionally.
85490         (calloc, malloc, realloc, free): Remove decls.
85491         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
85492         Include <stdlib.h> unconditionally.  Sort include file names.
85493         (strtod): Remove.
85494         (xstrtod): Define with a prototype.
85495         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
85496         (strtol, strtoul): Remove decls.
85497
85498 2003-09-11  Paul Eggert  <eggert@twinsun.com>
85499
85500         More patches to assume C89 or better.
85501         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
85502         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
85503         string.h, memchr, STDC_HEADERS.
85504
85505 2003-09-11  Paul Eggert  <eggert@twinsun.com>
85506
85507         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
85508         Include <stdlib.h>, <string.h> unconditionally.
85509         Remove now-unnecessary cast to char *.
85510         * lib/strnlen.c: Include <string.h> unconditionally.
85511         * lib/yesno.c (yesno): Define with a prototype.
85512
85513 2003-09-11  Bruno Haible  <bruno@clisp.org>
85514
85515         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
85516
85517 2003-09-10  Jim Meyering  <jim@meyering.net>
85518
85519         * lib/error.c: Correct indentation of cpp directives.
85520
85521 2003-09-10  Bruno Haible  <bruno@clisp.org>
85522
85523         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
85524         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
85525         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
85526         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
85527         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
85528         <stdlib.h> and <string.h> checks.
85529         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
85530         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
85531
85532 2003-09-10  Bruno Haible  <bruno@clisp.org>
85533
85534         * lib/strcspn.c: Include <string.h> unconditionally.
85535         * lib/strpbrk.c: Include <string.h> unconditionally.
85536         * lib/strstr.c: Include <string.h> unconditionally.
85537         * lib/unicodeio.c: Include <string.h> unconditionally.
85538         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
85539         * lib/unsetenv.c: Likewise.
85540         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
85541         * lib/yesno.c: Include <stdlib.h> unconditionally.
85542         (rpmatch): Add prototype.
85543
85544 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85545
85546         More patches to assume C89 or better.
85547         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
85548         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
85549         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
85550         or for string.h.
85551         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
85552         stdlib.h.
85553         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
85554         C headers.
85555         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
85556         string.h.
85557         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
85558         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
85559         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
85560         or for string.h.
85561         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
85562         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
85563         C headers.
85564         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
85565         memcpy.
85566         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
85567         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
85568         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
85569         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
85570         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
85571         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
85572         string.h, free.
85573         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
85574         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
85575         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
85576         C headers, or for string.h.
85577         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
85578         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
85579         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
85580         headers, memory.h, stdlib.h, string.h, strings.h.
85581         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
85582         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
85583         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
85584         strchr.
85585         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
85586         headers, memory.h, string.h.
85587         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
85588         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
85589         free.
85590         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
85591         headers.
85592         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
85593         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
85594         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
85595         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
85596         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
85597
85598 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85599
85600         More K&R removal.
85601
85602         * lib/acosl.c (main): Use a prototype.
85603         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
85604         tanl.c: Likewise.
85605
85606         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
85607
85608         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
85609         (getopt, etopt_long, getopt_long_only, _getopt_internal)
85610         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
85611         with a prototype.
85612         * lib/getopt.c (const): Remove macro.
85613         Include <string.h> unconditionally.
85614         (my_index): Remove; all uses changed to strchr.
85615         (strlen): Remove decl.
85616         (exchange): Remove forward decl; no longer needed.
85617         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
85618         Define with prototype.
85619         * lib/getopt1.c (const): Remove macro.
85620         (getopt_long, getopt_long_only, main): Define with prototype.
85621
85622         * lib/getugroups.c: Include <string.h> unconditionally.
85623
85624         * lib/getusershell.c: Include <stdlib.h> unconditionally.
85625         (getusershell, setusershell, endusershell, readname, main):
85626         Define with prototypes.
85627
85628         * lib/group-member.c: Include group-member.h first.
85629         Include <stdlib.h> unconditionally.
85630
85631         * lib/hard-locale.c: Include hard-locale.h first.
85632         Include <stdlib.h>, <string.h> unconditionally.
85633
85634         * lib/hash.c (free, malloc): Remove decls.
85635         Include <stdlib.h> unconditionally.
85636
85637         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
85638         (getenv): Do not declare.
85639
85640         * lib/idcache.c: Include <string.h> unconditionally.
85641
85642         * lib/long-options.c: Include long-options.h first, to test interface.
85643         Include <stdlib.h> unconditionally.
85644
85645         * lib/makepath.c: Include makepath.h first, to test interface.
85646         Include <stdlib.h> and <string.h> unconditionally.
85647
85648         * lib/linebuffer.c: Include <stdlib.h>.
85649         (free): Remove decl.
85650
85651         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
85652         stddef.h. rpl_malloc returns void *, not char *.
85653         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
85654         prototype.
85655
85656         * lib/md5.h: Include <limits.h> unconditionally.
85657         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
85658         (__P): Remove; all uses removed.
85659         * lib/md5.c: Include "md5.h" first.
85660         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
85661         md5_buffer, md5_process_bytes, md5_process_block):
85662         Define with prototypes.
85663         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
85664         * lib/sha.c: Include "sha.h" first.
85665         Include <stdlib.h>, <string.h> unconditionally.
85666
85667         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
85668         * lib/memcmp.c (__ptr_t): Likewise.
85669         * lib/memrchr.c (__ptr_t): Likewise.
85670         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
85671         Include <string.h> unconditionally.
85672         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
85673         * lib/memchr.c: Include <stdlib.h> unconditionally.
85674         * lib/memchr.c (LONG_MAX): Remove.
85675         * lib/memrchr.c (LONG_MAX): Likewise.
85676         * lib/memchr.c (__memchr): Define via a prototype.
85677         * lib/memrchr.c (__memrchr): Likewise.
85678         * lib/memcmp.c (__P): Remove, and remove all uses.
85679         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
85680         Remove forward decls; no longer needed.
85681         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
85682         Use types required by C89 in prototype.
85683
85684         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
85685         * lib/savedir.c: Likewise.
85686         * lib/mkdir.c (free): Remove decl.
85687         * lib/rmdir.c (rmdir): Define with a prototype.
85688         * lib/savedir.c: Include savedir.h first, to test interface.
85689
85690         * lib/mktime.c (STDC_HEADERS): Remove.
85691         Include <stdlib.h>, <string.h> unconditionally.
85692
85693         * lib/modechange.c: Include <stdlib.h> unconditionally.
85694         (malloc): Remove decl.
85695
85696         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
85697         (free): Remove decl.
85698
85699         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
85700         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
85701         (This type really should be intptr_t, but that's a C99ism.)
85702         (_obstack_memcpy): Remove: all uses changed to memcpy.
85703         Include <string.h> unconditionally.
85704         (struct obstack): Assume __STDC__ for types of members
85705         chunkfun, freefun, extra_arg.
85706         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
85707         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
85708         obstack_begin, obstack_specify_allocation,
85709         obstack_specify_allocation_with_arg, obstack_chunkfun,
85710         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
85711         Remove unprototyped decls and the macros that use them.
85712         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
85713         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
85714         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
85715         (defined __STDC__ && __STDC__)]:
85716         Remove nonprototyped code.
85717         Include <stdlib.h> unconditionally.
85718         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
85719         _obstack_allocated_p, _obstack_free, obstack_free,
85720         _obstack_memory_used, print_and_abort):
85721         Define using prototypes.
85722         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
85723         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
85724         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
85725         obstack_next_free, obstack_object_size, obstack_room) [0]:
85726         Remove unused, unprototyped code.
85727
85728         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
85729
85730         * lib/physmem.c (physmem_total, physmem_available, main): Define
85731         with prototypes.
85732
85733         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
85734         (main): Define with a prototype.
85735
85736         * lib/posixver.c (getenv): Remove decl.
85737
85738         * lib/putenv.c (malloc): Returns void *, not char *.
85739         Include <string.h> unconditionally.
85740         (strchr, memcpy, NULL): Do not define.
85741
85742         * lib/readtokens.c: Include readtokens.h first, to test interface.
85743         Include <stdlib.h>, <string.h> unconditionally.
85744         (init_tokenbuffer): Define with a prototype.
85745
85746         * lib/regex.c (PARAMS): Remove.  All uses removed.
85747         All uses of _RE_ARGS removed, too.
85748         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85749         unconditionally.
85750         (bzero): Assume memset exists.
85751         (memcmp, memcpy, NULL): Remove.
85752         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
85753         char, or assignments to local vars of type signed char.
85754         (init_syntax_once, PREFIX(extract_number_and_incr),
85755         PREFIX(print_partial_compiled_pattern),
85756         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
85757         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
85758         PREFIX(regex_grow_registers), PREFIX(regex_compile),
85759         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
85760         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
85761         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
85762         wcs_compile_range, byte_compile_range, truncate_wchar,
85763         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
85764         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
85765         count_mbs_length, wcs_re_match_2_internal,
85766         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
85767         PREFIX(alt_match_null_string_p),
85768         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
85769         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
85770         regfree, PREFIX(extract_number)): Define with prototype.  Remove
85771         now-unnecessary declaration, if any.
85772         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
85773         regcomp, regexec):
85774         Remove now-unnecessary casts among pointer types.
85775         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
85776
85777         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
85778         (free): Remove decl.
85779
85780         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
85781
85782         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
85783         (free): Remove decl.
85784
85785         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
85786         * lib/xgetcwd.c: Likewise.
85787
85788         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
85789         (free): Remove decl.
85790
85791         * lib/strchrnul.c (strchrnul): Define with a prototype.
85792         Fix bug: c_in was not converted to char before searching.
85793
85794         The following changes are not K&R related:
85795
85796         * lib/group-member.h: Include <sys/types.h>, so that this file is
85797         self-contained.
85798         * lib/makepath.h: Likewise.
85799
85800         * lib/getusershell.c (readname, default_index, line_size, readname):
85801         Use size_t, not int, for sizes.
85802         (readname): If the size overflows, report an error instead of
85803         looping forever.
85804
85805 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85806
85807         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
85808         libc.
85809
85810 2003-09-09  Paul Eggert  <eggert@twinsun.com>
85811
85812         * README: New section: portability guidelines.
85813
85814 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85815
85816         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
85817         C89 spec.
85818
85819 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
85820
85821         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
85822
85823 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85824
85825         Assume C89 or better; remove K&R cruft.
85826         A few of these changes were first proposed by Derek Robert Price
85827         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
85828
85829         * lib/addext.c: Include <string.h> unconditionally.
85830         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
85831         Don't declare getenv or malloc.
85832
85833         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
85834         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
85835         (NULL): Remove.
85836         (find_stack_direction, alloca): Use prototypes.
85837
85838         * lib/atexit.c (atexit): Define using a prototype.
85839
85840         * lib/basename.c, dirname.c, stripslash.c:
85841         Include <string.h> unconditionally.
85842
85843         * lib/bcopy.c: Include <stddef.h>.
85844         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
85845
85846         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
85847
85848         * lib/error.h (error, error_at_line, error_print_progname)
85849         [! (defined (__STDC__) && __STDC__)]: Remove decls.
85850         * lib/error.c: Include error.h first, to check interface.
85851         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85852         (VA_START): Remove; all uses changeed to va_start.
85853         (exit, strerror): Remove decls.
85854         (error_print_progname): Prototype uncondionally.
85855         Don't include <errno.h>; no longer needed.
85856         (private_strerror): Remove.
85857         (error_tail): Always define.
85858         (error, error_at_line): Assume C89 or better; always use prototypes.
85859         * lib/fatal.c: Include "fatal.h" first, to test interface.
85860         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
85861         (VA_START): Remove; all uses changed to va_start.
85862         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
85863         this case.
85864         (exit): Remove decl.
85865         (fatal): Prototype unconditionally.  Assume va_start works.
85866         Abort at end, to pacify gcc.
85867
85868         * lib/euidaccess.c (main): Define with a prototype.
85869
85870         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
85871
85872         * lib/exitfail.c: Include <stdlib.h> unconditionally.
85873
85874         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
85875         prototypes.
85876         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
85877         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
85878         (getenv): Remove decl.
85879         (fnmatch): Define using a prototype.
85880         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
85881         (FCT): Define using a prototype.
85882
85883         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
85884
85885         * lib/gethostname.c: Include <stddef.h>.
85886         (gethostname): Define with prototype.  Length is size_t, not int.
85887
85888 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85889
85890         Assume C89 or better; remove K&R cruft.
85891         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
85892         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
85893         string.h, getenv, malloc.
85894         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
85895         headers.
85896         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
85897         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
85898         do not check for strerror.
85899         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
85900         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
85901         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
85902         do not check for doprnt or vprintf.
85903         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
85904         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
85905
85906 2003-09-08  Paul Eggert  <eggert@twinsun.com>
85907
85908         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
85909         getversion.c should have been removed then, but was accidentally
85910         preserved.
85911
85912         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
85913         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
85914
85915 2003-09-08  Karl Berry  <karl@gnu.org>
85916
85917         * config/config.sub, config.guess, srclistvars.sh: update from savannah
85918                 config, forget about prep.
85919
85920         * config/depcomp, missing: update from automake.
85921
85922 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85923
85924         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
85925         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85926
85927 2003-09-07  Paul Eggert  <eggert@twinsun.com>
85928
85929         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
85930         copy_tm_result.  Bug reported by Simon Josefsson in
85931         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
85932
85933 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85934
85935         * m4/time_r.m4: New file.
85936         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
85937         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
85938         is. Check for timegm declaration.
85939         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
85940         Do not check for gmtime_r.
85941         Replace mktime if __mktime_internal does not exist and if mktime
85942         hasn't been replaced already.
85943
85944 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85945
85946         * lib/time_r.c, lib/time_r.h: New files.
85947
85948         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
85949         __localtime_r.
85950         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
85951         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
85952
85953         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
85954         __gmtime_r.
85955         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
85956         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
85957         Include <time_r.h>.
85958
85959         * lib/timegm.c: Switch to glibc implementation, with the following
85960         changes:
85961         [defined HAVE_CONFIG_H]: Include <config.h>.
85962         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
85963         (__mktime_internal) [!defined _LIBC]: New decl.
85964         (__gmtime_r) [!defined _LIBC]: New macro and function.
85965         (timegm): Use a prototype, since gnulib assumes C89.
85966         Do not bother declaring tmp to be const, as it's not really usefu.
85967         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
85968         (timegm): Declare only if HAVE_DECL_TIMEGM.
85969
85970 2003-09-06  Paul Eggert  <eggert@twinsun.com>
85971
85972         * MODULES.html.sh (func_all_modules): Add time_r.
85973         * modules/time_r: New file.
85974         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
85975         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
85976
85977 2003-09-03  Paul Eggert  <eggert@twinsun.com>
85978
85979         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
85980         Bug reported by Lute Kamstra in
85981         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
85982
85983         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
85984         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
85985         course with correspondingly smaller numbers for tomorrow and
85986         yesterday.  From Tadayoshi Funaba.  Originally installed into
85987         sh-utils on 1999-08-07, but the patch got lost (I guess during the
85988         coreutils merge?).
85989
85990 2003-08-31  Simon Josefsson  <jas@extundo.com>
85991
85992         * modules/timegm: New file.
85993         * MODULES.html.sh (func_all_modules): Add timegm.
85994
85995 2003-08-31  Simon Josefsson  <jas@extundo.com>
85996
85997         * m4/timegm.m4: New file.
85998
85999 2003-08-31  Simon Josefsson  <jas@extundo.com>
86000
86001         * lib/timegm.h: New file.
86002         * lib/timegm.c: New file.  Based on
86003         wget-1.8.2/src/http.c:mktime_from_utc.
86004
86005 2003-08-31  Karl Berry  <karl@gnu.org>
86006
86007         * lib/argp.h: update from libc.
86008
86009 2003-08-28  Bruno Haible  <bruno@clisp.org>
86010
86011         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
86012         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
86013         followed by '#define fnmatch fnmatch_posix' gives an error.
86014
86015 2003-08-28  Bruno Haible  <bruno@clisp.org>
86016
86017         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
86018         warning on QNX, which defines O_BINARY to 000000.
86019
86020 2003-08-27  Jim Meyering  <jim@meyering.net>
86021
86022         * m4/mkstemp.m4: Require that the system mkstemp be able to create
86023         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
86024         would fail after 32.  Reported by Danny Levinson.  Details here:
86025         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
86026
86027 2003-08-24  Bruno Haible  <bruno@clisp.org>
86028
86029         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
86030         MSVC7 <stdio.h> is included later.
86031
86032 2003-08-22  Simon Josefsson  <jas@extundo.com>
86033
86034         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
86035
86036 2003-08-20  Karl Berry  <karl@gnu.org>
86037
86038         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
86039
86040 2003-08-20  Bruno Haible  <bruno@clisp.org>
86041
86042         * modules/progname: New file.
86043         * MODULES.html.sh (func_all_modules): Add progname.
86044
86045 2003-08-20  Bruno Haible  <bruno@clisp.org>
86046
86047         * lib/progname.h: New file, from GNU gettext.
86048         * lib/progname.c: New file, from GNU gettext.
86049         * lib/progreloc.c: New file, from GNU gettext.
86050
86051 2003-08-19  Jim Meyering  <jim@meyering.net>
86052
86053         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
86054         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
86055
86056 2003-08-19  Bruno Haible  <bruno@clisp.org>
86057
86058         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
86059         more.
86060
86061 2003-08-19  Bruno Haible  <bruno@clisp.org>
86062
86063         * lib/xstrdup.c: Assume <string.h> exists.
86064
86065 2003-08-18  Paul Eggert  <eggert@twinsun.com>
86066
86067         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
86068         in makefile rules.
86069
86070 2003-08-18  Jim Meyering  <jim@meyering.net>
86071
86072         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
86073         * m4/lib-ld.m4: Likewise.
86074
86075 2003-08-18  Jim Meyering  <jim@meyering.net>
86076
86077         * lib/setenv.h: Indent nested cpp directive.
86078         * lib/vasnprintf.c: Remove trailing blanks.
86079
86080 2003-08-17  Simon Josefsson  <jas@extundo.com>
86081
86082         * modules/xstrndup: New file.
86083         * MODULES.html.sh (func_all_modules): Add xstrndup.
86084
86085 2003-08-17  Simon Josefsson  <jas@extundo.com>
86086
86087         * modules/argp: Fix autoconf macro name. Add more dependencies.
86088
86089 2003-08-17  Simon Josefsson  <jas@extundo.com>
86090
86091         * m4/xstrndup.m4: New file.
86092
86093 2003-08-17  Simon Josefsson  <jas@extundo.com>
86094
86095         * m4/argp.m4: New file.
86096
86097 2003-08-17  Simon Josefsson  <jas@extundo.com>
86098             Bruno Haible  <bruno@clisp.org>
86099
86100         * lib/xstrndup.h: New file.
86101         * lib/xstrndup.c: New file.
86102
86103 2003-08-17  Bruno Haible  <bruno@clisp.org>
86104
86105         * modules/strndup (Files, Include): Add lib/strndup.h.
86106
86107 2003-08-17  Bruno Haible  <bruno@clisp.org>
86108
86109         * modules/euidaccess (Files): Add lib/euidaccess.h.
86110
86111 2003-08-17  Bruno Haible  <bruno@clisp.org>
86112
86113         * lib/strndup.h: New file.
86114
86115 2003-08-17  Bruno Haible  <bruno@clisp.org>
86116
86117         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
86118         like AC_GNU_SOURCE.
86119         * modules/extensions (configure.ac): Comment out the invocation of
86120         gl_USE_SYSTEM_EXTENSIONS.
86121
86122 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86123
86124         Merges from coreutils, etc.
86125         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
86126         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
86127         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
86128         fixing a typo.
86129         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
86130         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
86131
86132 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86133
86134         Document merge from coreutils.
86135         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
86136         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
86137         * modules/utime: Add m4/utimes-null.m4.
86138
86139 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86140
86141         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
86142         space, undoing this 2003-08-12 change:
86143         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86144
86145 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86146
86147         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
86148         strtoul.c from libc, undoing this 2003-08-12 change:
86149         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86150
86151 2003-08-16  Jim Meyering  <jim@meyering.net>
86152
86153         Merges from coreutils.
86154         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
86155         prefix.  Adjust cache variables similarly.  Create 500 rather than
86156         just 300 files, to exercise bug on Darwin6.5, too.
86157         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
86158         $missing_dir.
86159         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
86160         AM_SYS_POSIX_TERMIOS.
86161         Reported by mkc@mathdogs.com.
86162         Also change use of $am_cv_sys_posix_termios
86163         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
86164         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
86165         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
86166         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
86167         in /proc/mounts until it finds one with matching device number.  This
86168         is unnecessary when the FILE argument *is* a mount point.  No stat call
86169         is necessary in that case.  So, disable the statvfs-testing code on
86170         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
86171         as RedHat bug# 84846.
86172         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86173         to 1MB, so as not to render systems with no stack size limit (e.g.,
86174         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86175         Include <unistd.h>.  On some systems,
86176         it is required for the definition of _SC_PAGESIZE.
86177
86178 2003-08-16  Jim Meyering  <jim@meyering.net>
86179
86180         Merge from coreutils.
86181         * lib/xstrtoimax.c: #else #if -> #elif.
86182         * lib/xstrtoumax.c: Likewise.
86183
86184 2003-08-16  Jim Meyering  <jim@meyering.net>
86185
86186         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
86187         * m4/utimes.m4: Removed.
86188         * m4/utimes-null.m4: Renamed from utimes.m4.
86189
86190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86191         to 1MB, so as not to render systems with no stack size limit (e.g.,
86192         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86193         Include <unistd.h>.  On some systems,
86194         it is required for the definition of _SC_PAGESIZE.
86195
86196 2003-08-16  Jim Meyering  <jim@meyering.net>
86197         and Paul Eggert  <eggert@cs.ucla.edu>
86198
86199         Merges from coreutils, etc.
86200
86201         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
86202         using the latest version from cvs.  This avoids problems with #line
86203         directives using a vendor (Sun) compiler.
86204         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
86205         Don't set GETGROUPS_LIB here; now it's
86206         done via getgroups.m4's wrapper function.
86207         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
86208         rather than just in sh-util/configure.in, so that the
86209         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
86210         same.
86211         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
86212         AC_FUNC_GETLOADAVG where to find getloadavg.c.
86213         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
86214         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
86215         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
86216         Remove code that is now done by the newly-required macros.
86217         Append $(EXEEXT) to DF_PROG.
86218         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
86219         Do not invoke or require the following here,
86220         since prereq.m4 or some gnulib .m4 now does this for us:
86221         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
86222         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
86223         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
86224         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
86225         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
86226         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
86227         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
86228         AC_FUNC_OBSTACK.
86229         Do not replace the following functions, as this is now the job
86230         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
86231         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
86232         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
86233         atexit getpass, strdup, getpagesize.
86234         Replace 'raise'.
86235         Do not check for the following functions, as this is now the job
86236         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
86237         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
86238         setregid.
86239         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
86240         Check for sys/sysctl.h.
86241         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
86242         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
86243         of checking for ssize_t ourselves.
86244
86245         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
86246         Require every macro that gnulib/modules/* suggests for us.
86247         (jm_PREREQ_ADDEXT): New macro.
86248         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
86249         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
86250
86251         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
86252         (gl_PHYSMEM): Use it.
86253         Also check for `table' function.
86254         Check for new headers and functions.
86255         Add check for sys/sysmp.h.
86256         With suggestions from Kaveh Ghazi.
86257         Ignore headers that are present but cannot be compiled.  This
86258         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
86259         C 5.4.
86260
86261 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86262
86263         Document merge from coreutils.
86264         * modules/userspec: Depend on posixver.
86265         * modules/strftime: Depend on tzset.
86266
86267 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86268
86269         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
86270         rather than tab, after '#' in shell-script copyright notices.
86271         Suggested by Bruno Haible.
86272
86273 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86274
86275         * config/srclist-update: Use three spaces, rather than tab, after '#'
86276         in shell-script copyright notices.  Suggested by Bruno Haible.
86277         Remove unnecessary parenthesization in regular expression.
86278
86279 2003-08-15  Jim Meyering  <jim@meyering.net>
86280
86281         Merge from coreutils.
86282         * lib/xgethostname.c: Include <stdlib.h>.
86283         (xghostname): Don't exit for anything other than memory-related
86284         failure; just return NULL.
86285         * lib/userspec.c: Include "posixver.h".
86286         (parse_user_spec): Accept `.' as a separator only
86287         in pre-POSIX-200112 mode.
86288         * lib/strtoimax.c: Use #elif rather than #else #if.
86289         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
86290         Remove function, now that we can rely on a working tzset function.
86291         [!_LIBC]: Ensure that the required autoconf test has been run.
86292         [!defined _NL_CURRENT && HAVE_STRFTIME]:
86293         Use underlying_strftime for %r.
86294         * lib/sha.c: Merge in some clean-up and optimization changes from
86295         glibc.
86296         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
86297         Ensure that it is a multiple of 64.
86298         Rearrange loop exit tests so as to avoid performing an
86299         additional fread after encountering an error or EOF.
86300         * lib/realloc.c: Update copyright date.
86301
86302 2003-08-15  Jim Meyering  <jim@meyering.net>
86303         and Paul Eggert  <eggert@twinsun.com>
86304
86305         Merge from coreutils.
86306         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
86307         member but strut utmpx does not.  Needed for AIX 4.3.3.
86308         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
86309
86310 2003-08-15  Jim Meyering  <jim@meyering.net>
86311         and Paul Eggert  <eggert@cs.ucla.edu>
86312
86313         Merges from coreutils, etc.
86314         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
86315         Require gl_FUNC_TZSET_CLOBBER.
86316         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
86317         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
86318         members.
86319
86320 2003-08-14  Paul Eggert  <eggert@twinsun.com>
86321
86322         Help the merge from coreutils.
86323         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
86324         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
86325         * m4/tzset.m4: Use it too.
86326
86327 2003-08-14  Paul Eggert  <eggert@twinsun.com>
86328
86329         * modules/tzset: New file.
86330
86331 2003-08-14  Jim Meyering  <jim@meyering.net>
86332
86333         Merges from coreutils.
86334         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
86335         variable names, rather than @FNMATCH_H@.
86336         * modules/alloca: Likewise for $(ALLOCA_H).
86337
86338         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
86339         the three copies of the literal target, `fnmatch.h'.
86340         * modules/alloca (alloca.h): Likewise.
86341
86342 2003-08-14  Jim Meyering  <jim@meyering.net>
86343
86344         Merge from coreutils.
86345         * m4/tzset.m4: New file.
86346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
86347         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
86348         otherwise, AIX 5.1 systems would end up using the latter.
86349         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
86350         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
86351         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
86352         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
86353
86354 2003-08-14  Jim Meyering  <jim@meyering.net>
86355
86356         Merge from coreutils.
86357         * lib/obstack.h: Whitespace changes.
86358         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
86359         and xcalloc return values.
86360         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
86361         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
86362         hang on OSF/1 5.1 for DIR on both local and remote file systems.
86363         Reported by (and fix confirmed by) Nelson H. F. Beebe.
86364         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86365         error from mntctl.
86366         Use mntctl's return value to drive the entry-processing loop, since
86367         we can't rely on the value of the vmt_length member in the last
86368         entry.  On some systems doing so could result in exhausting
86369         virtual memory.  Based in part on a patch from Mike Jetzer.
86370
86371 2003-08-14  Jim Meyering  <jim@meyering.net>
86372         and Paul Eggert  <eggert@twinsun.com>
86373
86374         Merges from coreutils, plus other fixes.
86375         * lib/physmem.c: Merge in portability changes from gcc/libiberty
86376         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
86377         for credits and details.  Thanks to Kaveh Ghazi for helping
86378         to keep these files in sync.
86379         (ARRAY_SIZE): Define it.
86380         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
86381         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
86382         (memcasecmp): Don't assume size_t fits in unsigned int.
86383         Remove casts and duplicate code.
86384         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
86385         (memcpy): Remove definition.
86386         Merge in some clean-up and optimization changes from glibc.
86387         [BLOCKSIZE]: Move definition to top of file.
86388         Ensure that it is a multiple of 64.
86389         Rearrange loop exit tests so as to avoid performing an
86390         additional fread after encountering an error or EOF.
86391         * lib/md5.h (md5_uintptr): Define.
86392         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
86393         return to the initial working directory.  Preserve errno
86394         for caller.
86395         * lib/idcache.c: Include "xalloc.h".
86396         (xmalloc, xrealloc): Remove decls.
86397         (getuser): Remove casts no longer required in C89.
86398         * lib/human.c: Include stdio.h, for sprintf.
86399         * lib/group-member.c: Include "xalloc.h".
86400         (xmalloc, xrealloc): Remove decls.
86401         (get_group_info): Remove casts no longer required in C89.
86402         * lib/getusershell.c (readname): Remove casts no longer required in
86403         C89.
86404         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
86405         * lib/getline.c: Whitespace fix, from coreutils.
86406
86407 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86408
86409         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
86410         Check for isascii.
86411
86412         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
86413         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
86414         Undo previous (whitespace-only) change.
86415
86416 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86417
86418         * lib/exclude.c: Include <ctype.h>
86419         (IN_CTYPE_DOMAIN): New macro.
86420         (is_space): New fn.
86421         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
86422         and empty lines.
86423
86424         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
86425         Undo previous (whitespace-only) change.
86426
86427 2003-08-13  Paul Eggert  <eggert@twinsun.com>
86428
86429         * config/srclist-update: Change update back to the old behavior,
86430         leaving whitespace alone.  Use one 'sed' command rather than a
86431         pipeline.
86432         (fixlicense): Now a variable, not a function.
86433         (remove_trailing_blanks): Remove.
86434         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
86435         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
86436         Undo previous (whitespace-only) change.
86437
86438 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86439
86440         Merge from coreutils.
86441         * modules/euidaccess: Add lib_SOURCES, include for new
86442         file euidaccess.h
86443
86444 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86445
86446         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
86447         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
86448         Normalize leading white space and remove trailing white space.
86449
86450         Merge from coreutils
86451         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
86452
86453         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
86454         0.12.1.  These files are now being upgraded automatically by
86455         ../config/srclist-update.
86456
86457 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86458
86459         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
86460         Normalize leading white space and remove trailing white space.
86461         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
86462         notice, as per ../config/srclist-update.
86463
86464         Merge from coreutils.
86465         * lib/euidaccess.h: New file.
86466         * lib/euidaccess.c: Include it.
86467         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
86468         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
86469         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
86470
86471 2003-08-12  Paul Eggert  <eggert@twinsun.com>
86472
86473         * config/srclist-update: Add copyright notice.
86474         (remove_id_lines, remove_trailing_blanks): New constants.
86475         (fixfile): Use them to normalize spacing a bit in copied files.
86476         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
86477         Normalize leading white space and remove trailing white space.
86478
86479         * config/texinfo.tex: Sync with texinfo.
86480
86481         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
86482         strtoul.c from libc, to merge coreutils whitespace changes.
86483
86484         * config/srclist.txt: Get the following m4 files from gettext:
86485         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
86486         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
86487         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
86488         wint_t.m4.
86489
86490 2003-08-12  Karl Berry  <karl@gnu.org>
86491
86492         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
86493         been made.
86494
86495 2003-08-11  Paul Eggert  <eggert@twinsun.com>
86496
86497         * modules/gnu-source, m4/gnu-source.m4:
86498         Remove; we're assuming Autoconf 2.54 or later now.
86499         Suggested by Bruno Haible.
86500         * MODULES.html.sh (func_all_modules): Remove gnu-source.
86501
86502 2003-08-11  Bruno Haible  <bruno@clisp.org>
86503
86504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
86505
86506 2003-08-11  Bruno Haible  <bruno@clisp.org>
86507
86508         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
86509         (vasnprintf): Use it instead of wcslen.
86510
86511 2003-08-11  Bruno Haible  <bruno@clisp.org>
86512
86513         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
86514         value to ensure that _Bool promotes to int. Use #define for _Bool when
86515         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
86516
86517 2003-08-10  Karl Berry  <karl@gnu.org>
86518
86519         * lib/regex.h: update from libc (whitespace fix).
86520
86521 2003-08-09  Paul Eggert  <eggert@twinsun.com>
86522
86523         Merge some files from coreutils.  These changes were
86524         originally made by Jim Meyering.
86525         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
86526         many older Unixes require this.
86527         * lib/alloca.c (alloca): Remove cast to argument of free;
86528         no longer needed in C89.
86529         * lib/alloca_.h, regex.h: Fix white space to match
86530         what GNU indent does.
86531
86532 2003-08-09  Paul Eggert  <eggert@twinsun.com>
86533
86534         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
86535         apparently Emacs's Unicode mode got confused before my 2003-08-05
86536         checkin.
86537
86538 2003-08-08  Paul Eggert  <eggert@twinsun.com>
86539
86540         * m4/extensions.m4: New file.
86541         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
86542         Require gl_USE_SYSTEM_EXTENSIONS.
86543         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
86544         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
86545
86546 2003-08-08  Paul Eggert  <eggert@twinsun.com>
86547
86548         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
86549         * modules/extensions, modules/gnu-source: New files.
86550         * modules/timespec, modules/unlocked-io: Depend on extensions.
86551
86552 2003-08-07  Paul Eggert  <eggert@twinsun.com>
86553
86554         * modules/restrict: New file.
86555         * MODULES.html.sh (func_all_modules): Add restrict.
86556         * modules/regex: Depend on restrict.
86557
86558 2003-08-07  Paul Eggert  <eggert@twinsun.com>
86559
86560         * m4/restrict.m4: New file.
86561         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
86562
86563 2003-08-07  Bruno Haible  <bruno@clisp.org>
86564
86565         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
86566         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
86567
86568 2003-08-07  Bruno Haible  <bruno@clisp.org>
86569
86570         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
86571         makes the module 'getndelim2' compatible with the module 'getline'.
86572
86573 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86574
86575         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
86576         byte with "\201" to avoid glitches when editing that source file
86577         with multi-gnome-terminal.
86578
86579 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86580
86581         * lib/bumpalloc.h: Remove.
86582
86583 2003-08-05  Paul Eggert  <eggert@twinsun.com>
86584
86585         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
86586         * modules/bumpalloc: Remove.
86587
86588 2003-08-04  Paul Eggert  <eggert@twinsun.com>
86589
86590         * lib/getloadavg.c: Change copyright notice and spacing to conform to
86591         GNU coding style.
86592
86593         Merge from coreutils.
86594         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
86595         1. From glibc.
86596         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
86597         from Karl Berry, implemented by Jim Meyering.
86598         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
86599         from Dmitry V. Levin.
86600         Remove anachronistic cast of xrealloc.
86601         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
86602         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
86603         type. Otherwise, it wouldn't compile with at least /bin/cc on
86604         ymp-cray-unicos9.0.2.X.
86605         Combine two mostly-identical uses of alloca into one.
86606         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
86607
86608 2003-08-04  Dave Love  <d.love@dl.ac.uk>
86609
86610         [From Emacs.]
86611
86612         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
86613         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
86614         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
86615         obsolete NLIST_NAME_UNION.
86616         [__GNU__]: Undef BSD and FSCALE.
86617         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
86618
86619 2003-08-03  Paul Eggert  <eggert@twinsun.com>
86620
86621         * lib/stdbool_.h (_Bool): Make it signed char, instead of
86622         an enum type, so that it's guaranteed to promote to int.  See:
86623         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
86624
86625 2003-08-03  Karl Berry  <karl@gnu.org>
86626
86627         * config/depcomp: update from automake.
86628
86629 2003-07-31  Paul Eggert  <eggert@twinsun.com>
86630
86631         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
86632         (strerror): Don't assume that a printable int fits in 14 bytes.
86633
86634 2003-07-31  Bruno Haible  <bruno@clisp.org>
86635
86636         * modules/getpass-gnu: New file.
86637         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
86638
86639 2003-07-31  Bruno Haible  <bruno@clisp.org>
86640
86641         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
86642
86643 2003-07-24  Karl Berry  <karl@gnu.org>
86644
86645         * config/missing: update from automake.
86646
86647 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
86648             Bruno Haible  <bruno@clisp.org>
86649
86650         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
86651         * lib/getline.c (getline, getdelim): Likewise.
86652         Remove _GNU_SOURCE define; now it's defined in config.h through
86653         m4/getline.m4.
86654
86655 2003-07-23  Karl Berry  <karl@gnu.org>
86656
86657         * config/config.sub: update from prep.
86658
86659 2003-07-22  Paul Eggert  <eggert@twinsun.com>
86660
86661         * modules/xalloc (Depends-on): Add exitfail.
86662         * modules/xmemcoll: Likewise.
86663
86664 2003-07-22  Paul Eggert  <eggert@twinsun.com>
86665
86666         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
86667         over-parenthesization in macros.
86668
86669         Sync with coreutils.
86670
86671         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
86672         required by C99.
86673
86674         Use `exit_failure' for xalloc and xmemcoll instead of their own
86675         private exit-failure variables.
86676         * lib/xalloc.h (xalloc_exit_failure): Remove.
86677         * lib/xmalloc.c: Likewise.  Include exitfail.h.
86678         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
86679         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
86680         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
86681         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
86682
86683 2003-07-20  Jim Meyering  <jim@meyering.net>
86684
86685         * modules/closeout (Depends-on): Add exitfail.
86686         Suggestion from Bruno Haible.
86687
86688 2003-07-19  Karl Berry  <karl@gnu.org>
86689
86690         * config/config.sub: update from prep.
86691
86692 2003-07-18  Paul Eggert  <eggert@twinsun.com>
86693
86694         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
86695         Remove.
86696         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
86697         to test that it can stand by itself.  Include "exitfail.h".
86698         Clients should set exit_failure instead.
86699         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
86700
86701 2003-07-18  Bruno Haible  <bruno@clisp.org>
86702
86703         * modules/getndelim2: New file.
86704         * modules/getline: Share files with module getndelim2.
86705         * modules/getnline: Depend on getndelim2 instead of sharing files with
86706         it. Add getnline.c to lib_SOURCES.
86707         * MODULES.html.sh (func_all_modules): Add getndelim2.
86708
86709 2003-07-18  Bruno Haible  <bruno@clisp.org>
86710
86711         * m4/getndelim2.m4: New file.
86712         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
86713         invoke gl_PREREQ_GETNDELIM2.
86714         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
86715         gl_PREREQ_GETNDELIM2.
86716         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
86717         gl_GETNDELIM2.
86718
86719 2003-07-18  Bruno Haible  <bruno@clisp.org>
86720
86721         * lib/getndelim2.h: New file.
86722         * lib/getndelim2.c: Make into a module of its own. Include config.h,
86723         getndelim2.h.
86724         (getndelim2): Make non-static. Change return type to ssize_t.
86725         * lib/getline.h: Change argument names.
86726         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
86727         * lib/getnline.c: Include getndelim2.h.
86728
86729 2003-07-18  Andreas Schwab  <schwab@suse.de>
86730
86731         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
86732
86733 2003-07-17  Karl Berry  <karl@gnu.org>
86734
86735         * config/config.sub: update from prep.
86736
86737 2003-07-17  Bruno Haible  <bruno@clisp.org>
86738
86739         * modules/getnline: New file.
86740         * modules/getline: Add lib/getndelim2.c to source file list.
86741         * MODULES.html.sh (func_all_modules): Add getnline.
86742
86743 2003-07-17  Bruno Haible  <bruno@clisp.org>
86744
86745         * m4/getnline.m4: New file.
86746
86747 2003-07-17  Bruno Haible  <bruno@clisp.org>
86748
86749         * m4/Makefile.am.in: Remove file.
86750         * m4/Makefile.am: Remove file.
86751         * m4/Makefile.in: Remove file.
86752
86753 2003-07-17  Bruno Haible  <bruno@clisp.org>
86754
86755         * lib/getnline.h: New file.
86756         * lib/getnline.c: New file.
86757         * lib/getndelim2.c: New file, extracted from getline.c.
86758         (getndelim2): Renamed from getdelim2, with added nmax argument.
86759         * lib/getline.c: Include getndelim2.c.
86760         (getdelim2): Moved out to getndelim2.c.
86761         (getline, getdelim): Update.
86762
86763 2003-07-17  Bruno Haible  <bruno@clisp.org>
86764
86765         * lib/Makefile.am: Remove file.
86766         * lib/Makefile.in: Remove file.
86767
86768 2003-07-17  Bruno Haible  <bruno@clisp.org>
86769
86770         * configure.in: Remove file.
86771         * Makefile.in: Remove file.
86772
86773 2003-07-17  Bruno Haible  <bruno@clisp.org>
86774
86775         * MODULES.html.sh: Put the </BODY> right before </HTML>.
86776
86777 2003-07-16  Karl Berry  <karl@gnu.org>
86778
86779         * config/srclist-update: was running fixlicense twice, which caused
86780                 texinfo.tex to be nullified for some reason.  Simplify,
86781                 $gplsrc is no longer needed as far as I can see?
86782
86783 2003-07-16  Jim Meyering  <jim@meyering.net>
86784
86785         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
86786
86787 2003-07-15  Paul Eggert  <eggert@twinsun.com>
86788
86789         * config/srclist.txt: Get the following files from gettext-runtime/intl
86790         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
86791         ref-del.sin.  From Bruno Haible.
86792         * config/srclist-update (fixfile): Change grep pattern again, since the
86793         previous fix didn't work (there was another trailing $).  Use
86794         '[$]' to escape the $s.
86795
86796 2003-07-15  Karl Berry  <karl@gnu.org>
86797
86798         * lib/vasnprintf.c: update from gettext.
86799
86800 2003-07-15  Karl Berry  <karl@gnu.org>
86801
86802         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
86803         gets expanded when surrounded by '$'.
86804
86805 2003-07-15  Jim Meyering  <jim@meyering.net>
86806
86807         * modules/save-cwd: Don't depend on error.  From Derek Price.
86808
86809 2003-07-15  Jim Meyering  <jim@meyering.net>
86810
86811         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
86812
86813 2003-07-14  Simon Josefsson  <jas@extundo.com>
86814
86815         * modules/mempcpy: New file.
86816         * MODULES.html.sh (func_all_modules): Add mempcpy.
86817
86818 2003-07-14  Simon Josefsson  <jas@extundo.com>
86819
86820         * m4/mempcpy.m4: New file.
86821
86822 2003-07-14  Simon Josefsson  <jas@extundo.com>
86823
86824         * lib/mempcpy.h: New file.
86825         * lib/mempcpy.c: New file.
86826
86827 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86828
86829         * modules/getdate, modules/posixtm: Depend on mktime.
86830
86831 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86832
86833         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
86834         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
86835         unicodeio.c, unicodeio.h, unlocked-io.h:
86836         Switch from LGPL to GPL.
86837
86838 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86839
86840         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
86841         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
86842         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
86843         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
86844         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
86845         updated automatically by ../config/srclist-update.  This changes
86846         their license from LPGL to GPL.
86847
86848 2003-07-14  Paul Eggert  <eggert@twinsun.com>
86849
86850         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
86851         assumed to refer to the root of the most recent stable gettext version.
86852         * config/srclistvars.sh: Add defaults for eggert.
86853         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
86854         Match "This program" as well as "The program".  This is needed
86855         for gettext.
86856
86857 2003-07-14  Jim Meyering  <jim@meyering.net>
86858
86859         Don't emit diagnostics.  Let callers do that.
86860         * lib/save-cwd.c: Don't include "error.h".
86861         (save_cwd): Don't call error.  Ensure that errno is valid
86862         when returning nonzero.
86863
86864         * lib/save-cwd.h (restore_cwd): Update prototype.
86865         * lib/save-cwd.c (restore_cwd): Remove two parameters.
86866         Simplify.  Don't call error upon failure.  Let callers do that.
86867         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
86868         when auditing is enabled.  But don't bother updating the #if.
86869
86870 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
86871
86872         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
86873         it breaks C++ compilation.
86874         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
86875
86876 2003-07-10  Simon Josefsson  <jas@extundo.com>
86877
86878         * modules/strchrnul (Makefile.am): Add strchrnul.h.
86879
86880 2003-07-10  Jim Meyering  <jim@meyering.net>
86881
86882         * m4/clock_time.m4: Remove trailing blank.
86883         * m4/intmax_t.m4: Likewise.
86884
86885 2003-07-10  Jim Meyering  <jim@meyering.net>
86886
86887         * lib/vasnprintf.c: Remove trailing blanks.
86888         Make cpp indentation consistent.
86889
86890 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86891
86892         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
86893         posixver.c, strftime.c, strnlen.c, strverscmp.c:
86894         Switch from LGPL to GPL.
86895
86896 2003-07-09  Paul Eggert  <eggert@twinsun.com>
86897
86898         * config/srclist.txt: Sort sublists.  Add
86899         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
86900         that differ from gnulib for one reason or another; we'd like this list
86901         to be smaller but for now let's document what we have.
86902
86903 2003-07-08  Paul Eggert  <eggert@twinsun.com>
86904
86905         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
86906         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
86907         and sweeter "eval x=$x".
86908         * config/srclist.txt: Get lib/argp* from glibc.
86909
86910 2003-07-07  Paul Eggert  <eggert@twinsun.com>
86911
86912         * lib/mktime.c: Fix some boundary cases and remove need for floating
86913         point.
86914
86915         Issue a compile-time diagnostic if time_t is floating point, or if
86916         two's complement arithmetic is not in effect, or if arithmetic
86917         right shift does not propagate the sign.  These assumptions were
86918         all in the original code but they weren't checked.
86919
86920         (TIME_T_MIDPOINT, verify): New macros.
86921         (__isleap): Remove; it has integer overflow problems.
86922         (leapyear): New function, without those problems.
86923         (ydhms_tm_diff): Remove; splitting into two parts.
86924         (ydhms_diff): New function, containing the arithmetic part of
86925         the old ydhms_tm_diff function.  Issue a compile-time
86926         diagnostic if we are not using C99 integer division.
86927         Avoid casts when possible.
86928         (guess_time_tm): New function, containing the checking part of
86929         the old ydhms_tm_diff function.  Return the new value, rather than
86930         the difference between it and the old.  Accept a new argument T
86931         so that *T specifies the old value.  Check for overflow in the result.
86932
86933         (__mktime_internal): Use a time_t offset, not a long int offset.
86934         This undoes the 2003-06-04 change, which is no longer needed now
86935         that we have better overflow checking.
86936         (localtime_offset): Likewise.
86937
86938         (__mktime_internal): Avoid harmful overflow on hosts where time_t
86939         and long are 64-bit but int is only 32-bit.
86940         (ydhms_diff): Use long int to store year1 and yday1.
86941         Issue a compile-time diagnostic if long int is not wide enough.
86942
86943         (__mktime_internal): Use long int to store adjusted year and yday.
86944         Use plain C rather than preprocessor commands, if that doesn't
86945         affect efficiency.
86946         Check for overflow (and try to repair) after each probe
86947         rather than checking only at the very end.  This avoids some bugs
86948         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
86949         does not equal GMT offset at maximum time).
86950         Use integer to check for overflow rather than floating point; this
86951         is more portable to non-IEEE hosts, and is a tad faster.
86952         When we detect that we are oscillating between two values,
86953         don't check whether tm_isdst has the requested value, since
86954         we already know the answer.  When tm_isdst has the wrong value,
86955         use a different heuristic to find the right one, based on the
86956         extreme values actually observed in practice in tz2003a,
86957         rather than the (overly optimistic) "previous 3 calendar quarters".
86958
86959         (not_equal_tm, print_tm, check_result): Use "const T" rather than
86960         "T const" to accommodate glibc style.
86961         (check_result): Use less-confusing report format.  "long" -> "long int.
86962         (main): Likewise.
86963         Don't loop if the iteration overflows time_t.
86964         Allow a negative step in the iteration.
86965
86966 2003-07-06  Karl Berry  <karl@gnu.org>
86967
86968         * config/depcomp: update from automake.
86969         * config/config.sub: update from prep.
86970
86971 2003-07-03  Karl Berry  <karl@gnu.org>
86972
86973         * config/config.guess: update from prep.
86974
86975 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86976
86977         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
86978         xreadlink.c now includes it unconditionally.
86979
86980 2003-07-01  Paul Eggert  <eggert@twinsun.com>
86981
86982         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
86983         having it depend on HAVE_SYS_TYPES_H.
86984
86985 2003-07-01  Bruno Haible  <bruno@clisp.org>
86986
86987         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
86988         <sys/types.h> should be sufficient.
86989         Reported by Paul Eggert.
86990
86991 2003-06-26  Karl Berry  <karl@gnu.org>
86992
86993         * config/depcomp: update from automake.
86994
86995 2003-06-26  Bruno Haible  <bruno@clisp.org>
86996
86997         * modules/human: Depend on module stdbool.
86998
86999 2003-06-25  Bruno Haible  <bruno@clisp.org>
87000
87001         * modules/readlink: New file.
87002         * modules/xreadlink: Depend on it.
87003         * MODULES.html.sh (func_all_modules): Add readlink.
87004
87005 2003-06-25  Bruno Haible  <bruno@clisp.org>
87006
87007         * m4/readlink.m4: New file.
87008
87009 2003-06-25  Bruno Haible  <bruno@clisp.org>
87010
87011         * lib/readlink.c: New file.
87012
87013 2003-06-22  Karl Berry  <karl@gnu.org>
87014
87015         * config/srclist.txt: update mkinstalldirs from automake.
87016         * config/mkinstalldirs: update.
87017
87018 2003-06-22  Bruno Haible  <bruno@clisp.org>
87019
87020         Portability to mingw32.
87021         * m4/ssize_t.m4: New file, from GNU gettext.
87022         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
87023         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
87024
87025 2003-06-22  Bruno Haible  <bruno@clisp.org>
87026
87027         * modules/safe-read: Add m4/ssize_t.m4.
87028         * modules/xreadlink: Add m4/ssize_t.m4.
87029
87030 2003-06-20  Bruno Haible  <bruno@clisp.org>
87031
87032         Assume C89, so PARAMS isn't needed.
87033         * lib/unicodeio.h (PARAMS): Remove.
87034         * lib/unicodeio.c: Don't use PARAMS.
87035
87036 2003-06-18  Karl Berry  <karl@gnu.org>
87037
87038         * config/config.{guess,sub}: update from prep.
87039
87040 2003-06-18  Jim Meyering  <jim@meyering.net>
87041
87042         Merge changes from coreutils.
87043         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
87044         Remove explicit declarations of xmalloc and realloc.
87045         Include xalloc.h.
87046         (read_utmp): Remove anachronistic cast of xmalloc.
87047
87048 2003-06-17  Paul Eggert  <eggert@twinsun.com>
87049
87050         Assume C89, so PARAMS isn't needed.
87051         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
87052         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
87053         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
87054         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
87055         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
87056         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
87057         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
87058         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
87059         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
87060         lib/xstrtod.h, lib/xstrtol.h: Likewise.
87061         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
87062         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
87063         no longer needed. Anyway, config.h should always be included before any
87064         other file.
87065
87066 2003-06-11  Simon Josefsson  <jas@extundo.com>
87067
87068         * modules/sysexits: New file.
87069         * MODULES.html.sh (func_all_modules): Add sysexits.
87070
87071 2003-06-11  Simon Josefsson  <jas@extundo.com>
87072
87073         * lib/sysexit_.h: New file.
87074
87075 2003-06-11  Derek Price  <derek@ximbiot.com>
87076
87077         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
87078         necessary.
87079
87080 2003-06-11  Bruno Haible  <bruno@clisp.org>
87081
87082         * m4/sysexits.m4: New file.
87083
87084 2003-06-10  Simon Josefsson  <jas@extundo.com>
87085
87086         * lib/argp.h: New file, from glibc.
87087         * lib/argp-ba.c: New file, from glibc.
87088         * lib/argp-eexst.c: New file, from glibc.
87089         * lib/argp-fmtstream.c: New file, from glibc.
87090         * lib/argp-fmtstream.h: New file, from glibc.
87091         * lib/argp-fs-xinl.c: New file, from glibc.
87092         * lib/argp-help.c: New file, from glibc.
87093         * lib/argp-namefrob.h: New file, from glibc.
87094         * lib/argp-parse.c: New file, from glibc.
87095         * lib/argp-pv.c: New file, from glibc.
87096         * lib/argp-pvh.c: New file, from glibc.
87097         * lib/argp-xinl.c: New file, from glibc.
87098
87099 2003-06-10  Simon Josefsson  <jas@extundo.com>
87100
87101         * modules/strchrnul: New file.
87102
87103 2003-06-10  Simon Josefsson  <jas@extundo.com>
87104
87105         * modules/argp: New file.
87106
87107 2003-06-10  Simon Josefsson  <jas@extundo.com>
87108
87109         * m4/strchrnul.m4: New file.
87110
87111 2003-06-10  Simon Josefsson  <jas@extundo.com>
87112
87113         * lib/strchrnul.h: New file.
87114         * lib/strchrnul.c: New file.
87115
87116 2003-06-10  Bruno Haible  <bruno@clisp.org>
87117
87118         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
87119
87120 2003-06-07  Karl Berry  <karl@gnu.org>
87121
87122         * config/config.{guess,sub}: update from prep.
87123
87124 2003-06-07  Jim Meyering  <jim@meyering.net>
87125
87126         * modules/strtod: Use $(...) notation, not @...@ for
87127         AC_REPLACE'd variables.
87128         * modules/localcharset: Likewise.
87129
87130 2003-06-07  Jim Meyering  <jim@meyering.net>
87131
87132         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
87133         in place of my name in the copyright comment.
87134         Remove definition and uses of __P.
87135
87136         From coreutils.
87137         * lib/stat.c: Don't declare xmalloc explicitly.
87138         Instead, include "xalloc.h".
87139         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
87140         xrealloc, and xcalloc return values.
87141         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
87142         Improve comment.
87143         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
87144
87145 2003-06-07  Bruno Haible  <bruno@clisp.org>
87146
87147         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
87148         avoid AC_CONFIG_LINKS.
87149         * modules/fnmatch (Makefile.am): Use explicit creation rule for
87150         fnmatch.h, to avoid AC_CONFIG_LINKS.
87151         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
87152
87153 2003-06-07  Bruno Haible  <bruno@clisp.org>
87154
87155         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
87156         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
87157         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87158         directory.
87159         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
87160         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87161         directory.
87162
87163 2003-06-06  Jim Meyering  <jim@meyering.net>
87164
87165         Merge from coreutils.
87166         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
87167         Consolidate declarations and initializations of *_base* locals.
87168
87169         Merge from coreutils.
87170         This avoids a core dump on systems without GNU putenv,
87171         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
87172         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
87173         (unsetenv): New static function, from GNU libc.
87174         (rpl_putenv): Use it.
87175
87176         * lib/modechange.c: Remove trailing blanks.
87177
87178         Merge from coreutils.
87179         * lib/fsusage.c: Remove declaration of statfs.
87180         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
87181
87182         * lib/posixtm.c: Include <stdbool.h> unconditionally.
87183
87184 2003-06-06  Jim Meyering  <jim@meyering.net>
87185
87186         * lib/stdbool_.h: Renamed from stdbool.h.in.
87187
87188 2003-06-06  Jim Meyering  <jim@meyering.net>
87189             Bruno Haible  <bruno@clisp.org>
87190
87191         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
87192         Adjust Makefile.am snippet not to redirect directly to target.
87193         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
87194
87195 2003-06-05  Paul Eggert  <eggert@twinsun.com>
87196
87197         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
87198         mismatch, look in future quarters as well as past.  This fixes a
87199         bug when processing fall-backwards gaps immediately after a long
87200         period of daylight-saving time.
87201
87202         * lib/mktime.c: Assume freestanding C89 or better.
87203         (HAVE_LIMITS_H): Remove.  Assume it's 1.
87204         (__P): Remove; not used.
87205         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
87206         (mktime, not_equal_tm, print_tm, check_result,
87207         main): Use prototypes.  Use const * where appropriate.
87208         (main): Fix typo in testing code that uncovered by above changes.
87209         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
87210
87211 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87212
87213         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
87214         locale.h, localeconv.  This merges changes from coreutils.
87215
87216         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
87217         It can be removed after the next Autoconf is released.
87218         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
87219         needed.
87220
87221 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87222
87223         * lib/mktime.c: Fix Debian bug 177940
87224         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
87225         (localtime_offset): Now long int, not time_t, because we want it
87226         to be guaranteed to be signed.  All uses changed.
87227         (__mktime_internal): If overflow would occur when adding offset,
87228         don't add it.
87229
87230         Merge 'human' changes from coreutils.  Rewrite to support
87231         locale-specific notations like thousands separators.
87232         * lib/human.c: Simplify authorship notice.
87233         Include human.h immediately after config.h.
87234         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
87235         <limits.h>: Do not include, since human.h does.
87236         (SIZE_MAX, UINTMAX_MAX): New macros.
87237         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
87238         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
87239         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
87240         (power_letter): Renamed from suffixes.
87241         (generate_suffix_backwards): Remove.
87242         (adjust_value): Now takes int style (because of human.h changes)
87243         and long double value (for greater precision on some platforms).
87244         (group_number): New function.
87245         (human_readable): Use it.  Use integer options, not enum.
87246         Put the options before the sizes in the arg list.
87247         Support all the new options.
87248         The old human_readable function has been removed;
87249         use inttostr.h instead.
87250         (human_readable, default_block_size, humblock):
87251         Use uintmax_t, not int, for block sizes.
87252         (human_readable_inexact, block_size_types): Remove.
87253         (block_size_opts): New constant.
87254         (human_options): Renamed from human_block_size, with new signature
87255         that allows block sizes up to UINTMAX_MAX.  All callers changed.
87256         * lib/human.h: Add copyright and authorship notice.
87257         Include <limits.h> and <stdbool.h> unconditionally.
87258         (PARAMS): Remove.  All uses removed.
87259         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
87260         (enum human_inexact_style): Remove tag; now a nameless enum.
87261         (human_floor, human_ceiling, human_round_to_even): Now have
87262         values 2, 0, 1 rather than -1, 1, 0.
87263         (human_group_digits, human_suppress_point_zero, human_autoscale,
87264         human_base_1024, human_SI, human_B): New constants.
87265         (human_readable_inexact, human_block_size): Remove.
87266         (human_readable): Size args are now uintmax_t, not int.
87267         (human_options): New decl.
87268
87269         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
87270         unnecessary now that we assume C89 or better.  This change
87271         imported from coreutils.
87272
87273         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87274         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
87275         in the 2003-05-30 sync from glibc.
87276
87277         .h files should stand alone, but we shouldn't include <sys/types.h>
87278         if we can get away with just <stddef.h>.
87279
87280         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
87281         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
87282         rather than <sys/types.h>, as we merely need size_t.
87283         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
87284         to get size_t.
87285         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
87286         Include <stdio.h>, to get FILE.
87287         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
87288         memcasecmp.h has included <stddef.h> and all we need is size_t.
87289         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
87290         our interface, instead of including <sys/types.h>
87291
87292 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87293
87294         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
87295         now, as glibc mktime is buggy on non-glibc systems.
87296
87297 2003-06-03  Karl Berry  <karl@gnu.org>
87298
87299         * config/config.sub: update from prep.
87300
87301 2003-06-02  Paul Eggert  <eggert@twinsun.com>
87302
87303         [from coreutils]
87304         Fix some minor time-related bugs with POSIX time arguments.
87305         Some valid time stamps were being rejected (notably -1, and
87306         time stamps before 1900 on 64-bit hosts).  And some invalid
87307         time stamps were being accepted, e.g. September 31.
87308
87309         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
87310         that we can return (time_t) -1 successfully.
87311         * lib/posixtm.c: Likewise.
87312         [HAVE_STDBOOL_H]: Include <stdbool.h>.
87313         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
87314         (t): Remove static var.
87315         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
87316         of static var.  All uses changed.
87317         (year): Do not reject years before 1900; they can occur with
87318         64-bit time_t.
87319         (posix_time_parse): Do not check for out-of-range components;
87320         that is now the caller's responsibility, since our checks were
87321         only approximations.
87322         (posixtime): Use mktime to check for out-of-range components,
87323         since it knows them exactly.
87324         If mktime returns (time_t) -1, check whether an error actually occurred
87325         by invoking localtime on -1.
87326         (main) [TEST_POSIXTIME]: Check for input data errors, and report
87327         posixtime failures better.
87328         Improve the test data (in comments only).
87329
87330 2003-06-02  Karl Berry  <karl@gnu.org>
87331
87332         * config/mkinstalldirs (version): new variable.
87333         (--version): new option.
87334         (usage): improve message.
87335
87336 2003-05-30  Karl Berry  <karl@gnu.org>
87337
87338         * lib/mktime.c: update from libc.
87339
87340 2003-05-30  Bruno Haible  <bruno@clisp.org>
87341
87342         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
87343         * config/config.rpath: Upgrade to gettext-0.12.1.
87344
87345 2003-05-30  Bruno Haible  <bruno@clisp.org>
87346
87347         * m4/gettext.m4: Upgrade to gettext-0.12.1.
87348         * m4/nls.m4: New file, from gettext-0.12.1.
87349         * m4/po.m4: New file, from gettext-0.12.1.
87350         * m4/progtest.m4: Upgrade to gettext-0.12.1.
87351
87352 2003-05-30  Bruno Haible  <bruno@clisp.org>
87353
87354         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
87355         * lib/localcharset.h: Likewise.
87356         * lib/localcharset.c: Likewise.
87357
87358 2003-05-29  Karl Berry  <karl@gnu.org>
87359
87360         * config/config.rpath: update from gettext.
87361
87362 2003-05-28  Paul Eggert  <eggert@twinsun.com>
87363
87364         Assume the headers required for C89 freestanding compilers.
87365         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
87366         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
87367         * m4/human.m4 (gl_HUMAN): Likewise.
87368         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
87369         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
87370         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87371         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
87372         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87373         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
87374
87375 2003-05-28  Paul Eggert  <eggert@twinsun.com>
87376
87377         Assume the headers required for C89 freestanding compilers.
87378         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
87379         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
87380         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
87381         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
87382         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
87383         define, since <limits.h> is guaranteed to do that.
87384         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
87385         * lib/exclude.c: Include <stdbool.h> unconditionally.
87386         * lib/tempname.c: Include <stddef.h> unconditionally.
87387         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
87388         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
87389         <stddef.h> does that.
87390         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
87391         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
87392         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
87393         needed.
87394         * lib/xstrtol.c: Likewise.
87395         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
87396         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
87397
87398         * lib/addext.c (addext): Use assignment rather than cast, to avoid
87399         warnings on some platforms.
87400
87401         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87402         arbitrarily.
87403
87404 2003-05-26  Jim Meyering  <jim@meyering.net>
87405
87406         Merge in a change from coreutils:
87407         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
87408         that is guaranteed to be `no'.  Use `no_such_member' to indicate
87409         that condition, rather than `-1' which is slightly misleading.
87410         Change the name of the cache variable to have the gl_ prefix.
87411         Prompted by a patch from Richard Dawe for DJGPP.
87412
87413 2003-05-24  Karl Berry  <karl@gnu.org>
87414
87415         * config/config.guess: update from prep.
87416
87417 2003-05-22  Karl Berry  <karl@gnu.org>
87418
87419         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
87420
87421 2003-05-20  Karl Berry  <karl@gnu.org>
87422
87423         * config/config.guess: update from prep.
87424
87425 2003-05-18  Karl Berry  <karl@gnu.org>
87426
87427         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
87428         might actually be set by the user.
87429
87430         * config/depcomp, install-sh, mdate-sh: update from automake.
87431
87432 2003-05-17  Bruno Haible  <bruno@clisp.org>
87433
87434         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
87435         invalid expansion for AC_EGREP_CPP.
87436         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
87437         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
87438         Suggested by Akim Demaille <akim@epita.fr> in
87439         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
87440
87441 2003-05-12  Jim Meyering  <jim@meyering.net>
87442
87443         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
87444         the space-padded-by-default conversion specifiers, %e, %k, %l.
87445
87446 2003-05-12  Bruno Haible  <bruno@clisp.org>
87447
87448         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
87449         the string is longer than 4 KB.
87450
87451 2003-05-11  Karl Berry  <karl@gnu.org>
87452
87453         * config/config.{guess,sub}: update from prep.
87454
87455 2003-05-09  Bruno Haible  <bruno@clisp.org>
87456
87457         * modules/error: Add m4/strerror_r.m4 to file list.
87458
87459 2003-05-03  Bruno Haible  <bruno@clisp.org>
87460
87461         Upgrade to Unicode-4.0.
87462         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
87463         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
87464         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
87465         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
87466         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
87467         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
87468         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
87469         Change width of U+E0100..U+E01EF from 1 to 0.
87470
87471 2003-04-25  Jim Meyering  <jim@meyering.net>
87472
87473         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
87474         of type size_t, not int.
87475
87476 2003-04-25  Bruno Haible  <bruno@clisp.org>
87477
87478         * lib/copy-file.c: Include <stddef.h>, for size_t.
87479
87480 2003-04-21  Paul Eggert  <eggert@twinsun.com>
87481
87482         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
87483         code which expansion is under static control.  Patch imported from
87484         Akim Demaille's patch to Bison; see
87485         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
87486
87487 2003-04-14  Bruno Haible  <bruno@clisp.org>
87488
87489         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
87490
87491 2003-04-11  Jim Meyering  <jim@meyering.net>
87492
87493         Merge changes from Coreutils.
87494
87495         2003-03-22  Jim Meyering  <jim@meyering.net>
87496
87497         * lib/strftime.c (widen): Cast alloca return value to proper type.
87498
87499         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
87500
87501         From GNU libc.
87502         * lib/strftime.c (my_strftime): Handle very large width
87503         specifications for numeric values correctly.  Improve checks for
87504         overflow.
87505
87506         2003-01-19  Jim Meyering  <jim@meyering.net>
87507
87508         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
87509         definitions.
87510         (nl_get_alt_digit) [! defined my_strftime]: Define.
87511         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
87512         _nl_get_alt_digit and _nl_get_walt_digit.
87513
87514         * lib/strftime.c (my_strftime): Merge in locale-related changes from
87515         libc. These changes have no effect outside of _LIBC.
87516
87517 2003-04-10  Bruno Haible  <bruno@clisp.org>
87518
87519         * modules/findprog: New file.
87520         * MODULES.html.sh (func_all_modules): Add it.
87521
87522 2003-04-10  Bruno Haible  <bruno@clisp.org>
87523
87524         * m4/findprog.m4: New file.
87525         * m4/eaccess.m4: New file.
87526
87527 2003-04-10  Bruno Haible  <bruno@clisp.org>
87528
87529         * lib/findprog.h: New file, from GNU gettext.
87530         * lib/findprog.c: New file, from GNU gettext.
87531
87532 2003-04-05  Jim Meyering  <jim@meyering.net>
87533
87534         Merge changes from Coreutils.
87535
87536         * lib/exclude.h (PARAMS): Remove definition and uses.
87537         * lib/exclude.c: Remove uses of `PARAMS'.
87538
87539         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
87540         Add test-cases for DOS filenames. Declare program_name.
87541         (main): Set up program_name.  Patch by Rich Dawe.
87542
87543         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87544         error from mntctl.
87545         Use mntctl's return value to drive the entry-processing loop, since
87546         we can't rely on the value of the vmt_length member in the last
87547         entry.  On some systems doing so could result in exhausting
87548         virtual memory.  Based in part on a patch from Mike Jetzer.
87549
87550 2003-04-04  Bruno Haible  <bruno@clisp.org>
87551
87552         * modules/linebreak: New file.
87553         * MODULES.html.sh (func_all_modules): Add it.
87554
87555 2003-04-04  Bruno Haible  <bruno@clisp.org>
87556
87557         * m4/linebreak.m4: New file.
87558
87559 2003-04-04  Bruno Haible  <bruno@clisp.org>
87560
87561         * lib/linebreak.h: New file, from GNU gettext.
87562         * lib/linebreak.c: New file, from GNU gettext with slight
87563         modifications.
87564         * lib/lbrkprop.h: New file, from GNU gettext.
87565
87566 2003-04-03  Bruno Haible  <bruno@clisp.org>
87567
87568         * modules/utf8-ucs4: New file.
87569         * modules/utf16-ucs4: New file.
87570         * modules/ucs4-utf8: New file.
87571         * modules/ucs4-utf16: New file.
87572         * MODULES.html.sh (func_all_modules): Add them.
87573
87574 2003-04-03  Bruno Haible  <bruno@clisp.org>
87575
87576         * m4/utf-ucs4.m4: New file.
87577         * m4/ucs4-utf.m4: New file.
87578
87579 2003-04-03  Bruno Haible  <bruno@clisp.org>
87580
87581         * lib/utf8-ucs4.h: New file, from GNU gettext.
87582         * lib/utf16-ucs4.h: New file, from GNU gettext.
87583         * lib/ucs4-utf8.h: New file, from GNU gettext.
87584         * lib/ucs4-utf16.h: New file, from GNU gettext.
87585
87586 2003-04-02  Bruno Haible  <bruno@clisp.org>
87587
87588         * modules/binary-io: New file.
87589         * MODULES.html.sh (func_all_modules): Add it.
87590
87591 2003-04-02  Bruno Haible  <bruno@clisp.org>
87592
87593         * lib/binary-io.h: New file, from GNU gettext.
87594
87595 2003-04-01  Bruno Haible  <bruno@clisp.org>
87596
87597         * modules/pathname: New file.
87598         * MODULES.html.sh (func_all_modules): Add it.
87599
87600 2003-04-01  Bruno Haible  <bruno@clisp.org>
87601
87602         * lib/pathname.h: New file, from GNU gettext.
87603         * lib/concatpath.c: New file, from GNU gettext.
87604
87605 2003-03-30  Bruno Haible  <bruno@clisp.org>
87606
87607         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
87608
87609 2003-03-30  Bruno Haible  <bruno@clisp.org>
87610
87611         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
87612         function chown() doesn't exist.
87613
87614 2003-03-28  Bruno Haible  <bruno@clisp.org>
87615
87616         * modules/copy-file: New file.
87617         * MODULES.html.sh (func_all_modules): Add it.
87618
87619 2003-03-28  Bruno Haible  <bruno@clisp.org>
87620
87621         * m4/copy-file.m4: New file.
87622
87623 2003-03-28  Bruno Haible  <bruno@clisp.org>
87624
87625         * lib/copy-file.h: New file, from GNU gettext.
87626         * lib/copy-file.c: New file, from GNU gettext.
87627
87628 2003-03-18  Jim Meyering  <jim@meyering.net>
87629
87630         * lib/quote.c (quote_n): Fix typo in comment.
87631
87632 2003-03-18  Bruno Haible  <bruno@clisp.org>
87633
87634         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
87635         checking.
87636         * m4/onceonly_2_57.m4: Likewise.
87637
87638 2003-03-17  Bruno Haible  <bruno@clisp.org>
87639
87640         * m4/onceonly.m4: Require autoconf 2.54 or newer.
87641         (m4_quote): Remove macro.
87642         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
87643
87644 2003-03-14  Jim Meyering  <jim@meyering.net>
87645
87646         Merge changes from Coreutils.
87647         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
87648         to be const, in order to avoid warnings.
87649         (obstack_room): Likewise.
87650         (obstack_empty_p): Likewise.
87651
87652 2003-03-14  Bruno Haible  <bruno@clisp.org>
87653
87654         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
87655         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
87656
87657 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87658
87659         Merge changes from Bison.
87660         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
87661         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
87662         when compiling Bison 1.875's `bitset bset = obstack_alloc
87663         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
87664         * lib/hash.c: Include <stdbool.h> unconditionally.
87665
87666 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87667
87668         * m4/onceonly.m4 (m4_quote): New macro.
87669         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
87670         Quote AC_FOREACH variable-expansions properly.
87671
87672 2003-03-13  Paul Eggert  <eggert@twinsun.com>
87673
87674         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
87675
87676 2003-03-09  Paul Eggert  <eggert@twinsun.com>
87677
87678         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
87679         Reported by Bruce Becker; see:
87680         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
87681
87682 2003-03-03  Paul Eggert  <eggert@twinsun.com>
87683             Bruno Haible  <bruno@clisp.org>
87684
87685         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
87686         Reported by John Hughes, see
87687         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
87688
87689 2003-02-20  Bruno Haible  <bruno@clisp.org>
87690
87691         * MODULES.html.sh (func_all_modules): Add poll.
87692
87693 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87694
87695         * modules/poll: New file.
87696
87697 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87698
87699         * lib/poll_.h: New file.
87700         * lib/poll.c: New file.
87701
87702 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
87703
87704         * m4/poll.m4: New file.
87705
87706 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87707
87708         * modules/mathl: New file.
87709
87710 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87711
87712         * lib/mathl.h: New file.
87713         * lib/acosl.c: New file.
87714         * lib/asinl.c: New file.
87715         * lib/atanl.c: New file.
87716         * lib/ceill.c: New file.
87717         * lib/cosl.c: New file.
87718         * lib/expl.c: New file.
87719         * lib/floorl.c: New file.
87720         * lib/frexpl.c: New file.
87721         * lib/ldexpl.c: New file.
87722         * lib/logl.c: New file.
87723         * lib/sincosl.c: New file.
87724         * lib/sinl.c: New file.
87725         * lib/sqrtl.c: New file.
87726         * lib/tanl.c: New file.
87727         * lib/trigl.c: New file.
87728         * lib/trigl.h: New file.
87729
87730 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
87731
87732         * m4/mathl.m4: New file.
87733
87734 2003-02-18  Bruno Haible  <bruno@clisp.org>
87735
87736         * MODULES.html.sh (func_all_modules): Add mathl.
87737
87738 2003-02-17  Bruno Haible  <bruno@clisp.org>
87739
87740         * modules/mkdtemp: New module.
87741         * MODULES.html.sh (func_all_modules): Add it.
87742
87743 2003-02-17  Bruno Haible  <bruno@clisp.org>
87744
87745         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
87746
87747 2003-02-17  Bruno Haible  <bruno@clisp.org>
87748
87749         * lib/mkdtemp.h: New file, from GNU gettext.
87750         * lib/mkdtemp.c: New file, from GNU gettext.
87751
87752 2003-02-02  Jim Meyering  <jim@meyering.net>
87753
87754         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
87755         e.g. glibc-2.2.93.
87756
87757 2003-01-31  Bruno Haible  <bruno@clisp.org>
87758
87759         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
87760         'rpl_rename'.
87761         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
87762         'rpl_strnlen'.
87763         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
87764         'rpl_strtod'.
87765         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
87766         'rpl_utime'.
87767
87768 2003-01-31  Bruno Haible  <bruno@clisp.org>
87769
87770         * lib/rename.c: #undef rename before defining rpl_rename.
87771         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
87772
87773 2003-01-30  Bruno Haible  <bruno@clisp.org>
87774
87775         * modules/vasnprintf, modules/vasprintf: New modules.
87776         * MODULES.html.sh (func_all_modules): Add them.
87777
87778 2003-01-30  Bruno Haible  <bruno@clisp.org>
87779
87780         * m4/signed.m4: New file, from GNU gettext.
87781         * m4/longdouble.m4: New file, from GNU gettext.
87782         * m4/wchar_t.m4: New file, from GNU gettext.
87783         * m4/wint_t.m4: New file, from GNU gettext.
87784         * m4/vasnprintf.m4: New file.
87785         * m4/vasprintf.m4: New file.
87786
87787 2003-01-30  Bruno Haible  <bruno@clisp.org>
87788
87789         * lib/printf-args.h: New file, from GNU gettext.
87790         * lib/printf-args.c: New file, from GNU gettext.
87791         * lib/printf-parse.h: New file, from GNU gettext.
87792         * lib/printf-parse.c: New file, from GNU gettext.
87793         * lib/vasnprintf.h: New file, from GNU gettext.
87794         * lib/vasnprintf.c: New file, from GNU gettext.
87795         * lib/asnprintf.c: New file, from GNU gettext.
87796         * lib/vasprintf.h: New file, from GNU gettext with modifications.
87797         * lib/vasprintf.c: New file, from GNU gettext.
87798         * lib/asprintf.c: New file, from GNU gettext.
87799
87800 2003-01-29  Bruno Haible  <bruno@clisp.org>
87801
87802         * modules/stpncpy: New module.
87803         * MODULES.html.sh (func_all_modules): Add it.
87804
87805 2003-01-29  Bruno Haible  <bruno@clisp.org>
87806
87807         * m4/stpncpy.m4: New file.
87808
87809 2003-01-29  Bruno Haible  <bruno@clisp.org>
87810
87811         * lib/stpncpy.h: New file, from GNU gettext with modifications.
87812         * lib/stpncpy.c: New file, from GNU gettext with modifications.
87813
87814 2003-01-28  Bruno Haible  <bruno@clisp.org>
87815
87816         * modules/c-ctype: New module.
87817         * MODULES.html.sh (func_all_modules): Add it.
87818
87819 2003-01-28  Bruno Haible  <bruno@clisp.org>
87820
87821         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
87822         Paul Eggert.
87823         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
87824         Paul Eggert.
87825
87826 2003-01-27  Bruno Haible  <bruno@clisp.org>
87827
87828         * modules/xsetenv: New module.
87829         * MODULES.html.sh (func_all_modules): Add it.
87830
87831 2003-01-27  Bruno Haible  <bruno@clisp.org>
87832
87833         * lib/xsetenv.h: New file, from GNU gettext.
87834         * lib/xsetenv.c: New file, from GNU gettext.
87835
87836 2003-01-23  Jim Meyering  <jim@meyering.net>
87837
87838         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
87839         from working on systems without dirfd (at least Irix and OSF1/Tru64).
87840
87841 2003-01-23  Bruno Haible  <bruno@clisp.org>
87842
87843         * modules/minmax: New module.
87844         * MODULES.html.sh (func_all_modules): Add it.
87845
87846 2003-01-23  Bruno Haible  <bruno@clisp.org>
87847
87848         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
87849         Eggert.
87850
87851 2003-01-22  Bruno Haible  <bruno@clisp.org>
87852
87853         * modules/exit: New module.
87854         * MODULES.html.sh (func_all_modules): Add it.
87855
87856 2003-01-22  Bruno Haible  <bruno@clisp.org>
87857
87858         * lib/exit.h: New file, from GNU gettext.
87859
87860 2003-01-19  Bruno Haible  <bruno@clisp.org>
87861
87862         * gnulib-tool: Recognize option --extract-maintainer.
87863         (func_get_maintainer): New function.
87864         * modules/*: Add Maintainer entry.
87865
87866 2003-01-16  Jim Meyering  <jim@meyering.net>
87867
87868         * m4/regex.m4: The `regex' struct is both input and output.
87869         Initialize it before each use.  Patch by Tim Waugh.
87870
87871 2003-01-16  Bruno Haible  <bruno@clisp.org>
87872
87873         * MODULES.html.sh: Add a table of contents. Add the module name as
87874         leftmost column. Add hyperlinks.
87875
87876 2003-01-15  Bruno Haible  <bruno@clisp.org>
87877
87878         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
87879
87880 2003-01-15  Bruno Haible  <bruno@clisp.org>
87881
87882         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
87883         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
87884         suffix.
87885
87886 2003-01-15  Bruno Haible  <bruno@clisp.org>
87887
87888         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
87889
87890 2003-01-15  Bruno Haible  <bruno@clisp.org>
87891
87892         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
87893         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
87894
87895 2003-01-14  Jim Meyering  <jim@meyering.net>
87896
87897         * lib/same.c (same_name): Tweak a comment.
87898
87899 2003-01-14  Bruno Haible  <bruno@clisp.org>
87900
87901         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
87902         when a string comparison is sufficient.
87903
87904 2003-01-14  Bruno Haible  <bruno@clisp.org>
87905
87906         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
87907         'unsigned int'.
87908
87909 2003-01-14  Bruno Haible  <bruno@clisp.org>
87910
87911         * lib/hash-pjw.c: Add comment about low quality of this function.
87912
87913 2003-01-13  Bruno Haible  <bruno@clisp.org>
87914
87915         * modules/stpcpy: Distribute lib/stpcpy.h.
87916         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
87917
87918 2003-01-13  Bruno Haible  <bruno@clisp.org>
87919
87920         * modules/*: Add a description.
87921         * modules/strpbrk: Fix Makefile.am snippet.
87922         * modules/strtoimax: Fix dependencies.
87923         * modules/strtoumax: Likewise.
87924
87925 2003-01-13  Bruno Haible  <bruno@clisp.org>
87926
87927         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
87928         * modules/alloca (Makefile.am): All object files depend on alloca.h.
87929         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
87930
87931 2003-01-13  Bruno Haible  <bruno@clisp.org>
87932
87933         * gnulib-tool (func_create_testdir): Store config/* files in the main
87934         directory.
87935         * config.rpath: Move to ...
87936         * config/config.rpath: ... here.
87937         * modules/gettext: Contains config/config.rpath, not config.rpath.
87938         * modules/iconv: Likewise.
87939
87940 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87941
87942         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87943         to avoid collisions with libcurses and libreadline.
87944
87945         * m4/getstr.m4: Remove.
87946         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
87947
87948 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87949
87950         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87951         to avoid collisions with libcurses and libreadline.
87952
87953         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
87954         * lib/getstr.h, getstr.c: Remove.
87955         * lib/getline.c: Include "getline.h", to check interface.
87956         Move body of old getstr.c here: this defines MIN_CHUNK and
87957         declares getdelim2, which is renamed from getstr.
87958         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
87959
87960         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
87961         All uses changed.
87962         * lib/linebuffer.h: Likewise.
87963         (readline): Remove backward-compatibility macro.
87964
87965 2003-01-12  Paul Eggert  <eggert@twinsun.com>
87966
87967         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
87968         to avoid collisions with libcurses and libreadline.
87969         * getstr: Remove.
87970         * MODULES.html.sh: Remove getstr.
87971         * modules/getline: Depend on unlocked-io, not getstr.
87972
87973 2003-01-12  Jim Meyering  <jim@meyering.net>
87974
87975         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
87976
87977 2003-01-10  Bruno Haible  <bruno@clisp.org>
87978
87979         * modules/alloca: Change Makefile.am requirements. Simplify Include
87980         requirements. Add lib/alloca_.h to file list.
87981
87982 2003-01-10  Bruno Haible  <bruno@clisp.org>
87983
87984         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
87985
87986 2003-01-10  Bruno Haible  <bruno@clisp.org>
87987
87988         * lib/alloca_.h: New file.
87989         * lib/getdate.y: Unconditionally include alloca.h.
87990         * lib/makepath.c: Likewise.
87991         * lib/setenv.c: Likewise.
87992         * lib/userspec.c: Likewise.
87993
87994 2003-01-09  Karl Berry  <karl@gnu.org>
87995
87996         * MODULES.html.sh: include `dirname $0` in PATH, to find
87997         gnulib-tool.
87998
87999 2003-01-09  Bruno Haible  <bruno@clisp.org>
88000
88001         * modules/stdbool: Change configure.ac, Makefile.am requirements.
88002         Simplify Include requirements. Add lib/stdbool.h.in to file list.
88003
88004 2003-01-09  Bruno Haible  <bruno@clisp.org>
88005
88006         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
88007
88008 2003-01-09  Bruno Haible  <bruno@clisp.org>
88009
88010         * lib/stdbool.h.in: New file.
88011
88012 2003-01-09  Bruno Haible  <bruno@clisp.org>
88013
88014         * gnulib-tool (func_all_modules): Ignore files ending in ~.
88015         * MODULES.html.sh: Likewise.
88016
88017 2003-01-08  Jim Meyering  <jim@meyering.net>
88018
88019         * lib/full-write.c: Undefine and define-away `const' after inclusion
88020         of errno.h, not before.  Suggestion from Bruno Haible.
88021
88022 2003-01-08  Bruno Haible  <bruno@clisp.org>
88023
88024         * modules/full-read: Depend on full-write.
88025
88026 2003-01-08  Bruno Haible  <bruno@clisp.org>
88027
88028         * lib/safe-read.c: Include specification header first, to ensure its
88029         selfcontainedness.
88030         * lib/full-write.c: Likewise.
88031
88032 2003-01-07  Jim Meyering  <jim@meyering.net>
88033
88034         * lib/full-write.c: Rework so that it may serve to define full_read,
88035         too.
88036         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
88037
88038 2003-01-07  Bruno Haible  <bruno@clisp.org>
88039
88040         * lib/strtoimax.c: Include <stdint.h> as an alternative to
88041         <inttypes.h>.
88042         * lib/xstrtol.h: Likewise.
88043         * lib/xstrtoimax.c: Likewise.
88044         * lib/xstrtoumax.c: Likewise.
88045         * lib/human.h: Likewise.
88046
88047         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
88048         on systems that have <inttypes.h> but not <stdint.h>.
88049
88050 2003-01-07  Bruno Haible  <bruno@clisp.org>
88051
88052         * MODULES.html.sh: Add copyright notice.
88053         (missed_files): Omit CVS directory entries.
88054         (func_module): Make it work with sed-3.02.
88055         * MODULES.txt: Remove file.
88056
88057 2003-01-06  Jim Meyering  <jim@meyering.net>
88058
88059         * lib/version-etc.c: Update year in translatable copyright string.
88060
88061 2003-01-03  Karl Berry  <karl@gnu.org>
88062
88063         * config/config.{guess,sub}: update from prep.
88064
88065 2003-01-02  Karl Berry  <karl@gnu.org>
88066
88067         * doc/COPYING.DOC: belatedly updated to 1.2.
88068
88069 2003-01-01  Karl Berry  <karl@gnu.org>
88070
88071         * gnulib-tool (func_verify_module): report module name $module in
88072         error message, not $1.
88073         * gnulib-tool (create-testdir): don't complain if destdir couldn't
88074         be created, only if it doesn't exist.
88075         * gnulib-tool (last_checkin_date): don't expand the $Date here.
88076
88077 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88078
88079         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
88080
88081 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88082
88083         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
88084         memcmp if strcoll doesn't work.
88085
88086 2002-12-31  Bruno Haible  <bruno@clisp.org>
88087
88088         * lib/utime.c (utime_null): No need to call ftruncate if the file was
88089         nonempty.
88090
88091 2002-12-31  Bruno Haible  <bruno@clisp.org>
88092
88093         * lib/memcoll.c (STRCOLL): New macro.
88094         (memcoll): Use it.
88095
88096 2002-12-31  Bruno Haible  <bruno@clisp.org>
88097
88098         * lib/localcharset.h: New file.
88099         * lib/localcharset.c: Include it.
88100         * lib/unicodeio.c: Likewise.
88101
88102 2002-12-31  Bruno Haible  <bruno@clisp.org>
88103
88104         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
88105         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
88106
88107 2002-12-31  Bruno Haible  <bruno@clisp.org>
88108
88109         * lib/getline.h: Include <stddef.h>, for size_t.
88110
88111         * lib/unicodeio.h: Include <stddef.h>, for size_t.
88112         * lib/unicodeio.c: Don't include <stddef.h>.
88113
88114 2002-12-31  Bruno Haible  <bruno@clisp.org>
88115
88116         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
88117         HAVE_TM_ZONE.
88118
88119 2002-12-24  Karl Berry  <karl@gnu.org>
88120
88121         * config/config.guess: update from prep.
88122
88123 2002-12-24  Bruno Haible  <bruno@clisp.org>
88124
88125         General infrasructure.
88126         * m4/README: Rewritten.
88127         * m4/onceonly.m4: New file.
88128         * m4/onceonly_2_57.m4: New file.
88129
88130         Module atexit.
88131         * m4/atexit.m4: New file.
88132
88133         Module strtod.
88134         * m4/strtod.m4: New file.
88135
88136         Module strtol.
88137         * m4/strtol.m4: New file.
88138
88139         Module strtoul.
88140         * m4/strtoul.m4: New file.
88141
88142         Module memchr.
88143         * m4/memchr.m4: New file.
88144
88145         Module memcmp.
88146         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
88147         (jm_FUNC_MEMCMP): Invoke it.
88148
88149         Module memcpy.
88150         * m4/memcpy.m4: New file.
88151
88152         Module memmove.
88153         * m4/memmove.m4: New file.
88154
88155         Module memset.
88156         * m4/memset.m4: New file.
88157
88158         Module strcspn.
88159         * m4/strcspn.m4: New file.
88160
88161         Module strpbrk.
88162         * m4/strpbrk.m4: New file.
88163
88164         Module strstr.
88165         * m4/strstr.m4: New file.
88166
88167         Module strerror.
88168         * m4/strerror.m4: New file.
88169
88170         Module mktime.
88171         * m4/mktime.m4: Renamed from jm-mktime.m4.
88172         (gl_PREREQ_MKTIME): New macro.
88173         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
88174
88175         Module malloc.
88176         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
88177         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
88178         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
88179
88180         Module realloc.
88181         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
88182         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
88183         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
88184
88185         Module strftime.
88186         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
88187         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
88188         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
88189         gl_TM_GMTOFF.
88190         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
88191
88192         Module xalloc.
88193         * m4/xalloc.m4: New file.
88194
88195         Module alloca.
88196         * m4/alloca.m4: New file.
88197
88198         Module putenv.
88199         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
88200         (jm_FUNC_PUTENV): Invoke it.
88201
88202         Module setenv.
88203         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
88204         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
88205         when invoked twice.
88206         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
88207         gt_FUNC_SETENV.
88208
88209         Module memrchr.
88210         * m4/memrchr.m4: New file.
88211
88212         Module stpcpy.
88213         * m4/stpcpy.m4: New file.
88214
88215         Module strcase.
88216         * m4/strcase.m4: New file.
88217
88218         Module strdup.
88219         * m4/strdup.m4: New file.
88220
88221         Module strnlen.
88222         * m4/strnlen.m4: New file.
88223
88224         Module strndup.
88225         * m4/strndup.m4: New file.
88226
88227         Module xstrtod.
88228         * m4/xstrtod.m4: New file.
88229
88230         Module xstrtol.
88231         * m4/xstrtol.m4: New file.
88232
88233         Module getdate.
88234         * m4/getdate.m4: New file.
88235
88236         Module unlocked-io.
88237         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
88238         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
88239         * m4/jm-glibc-io.m4n: Remove file.
88240
88241         Module long-options.
88242         * m4/long-options.m4: New file.
88243
88244         Module md5.
88245         * m4/md5.m4: New file.
88246
88247         Module sha.
88248         * m4/sha.m4: New file.
88249
88250         Module getstr.
88251         * m4/getstr.m4: New file.
88252
88253         Module getline.
88254         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
88255         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
88256         <sys/types.h>, for size_t. Use the function name gnu_getline, not
88257         simply getline. Infoke gl_PREREQ_GETLINE.
88258
88259         Module obstack.
88260         * m4/obstack.m4: New file.
88261
88262         Module hash.
88263         * m4/hash.m4: New file.
88264
88265         Module readtokens.
88266         * m4/readtokens.m4: New file.
88267
88268         Module strverscmp.
88269         * m4/strverscmp.m4: New file.
88270
88271         Module stdbool.
88272         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
88273         OSF/1.
88274
88275         Module strtoll.
88276         * m4/strtoll.m4: New file.
88277
88278         Module strtoull.
88279         * m4/strtoull.m4: New file.
88280
88281         Module strtoimax.
88282         * m4/strtoimax.m4: New file.
88283
88284         Module strtoumax.
88285         * m4/strtoumax.m4: New file.
88286
88287         Module xstrtoimax.
88288         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
88289         jm_AC_PREREQ_XSTRTOIMAX.
88290         Moved the strtol prerequisites to strtol.m4.
88291         Moved the strtoll prerequisites to strtoll.m4.
88292         Moved the strtoimax prerequisites to strtoimax.m4.
88293
88294         Module xstrtoumax.
88295         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
88296         jm_AC_PREREQ_XSTRTOUMAX.
88297         Moved the strtoul prerequisites to strtoul.m4.
88298         Moved the strtoull prerequisites to strtoull.m4.
88299         Moved the strtoumax prerequisites to strtoumax.m4.
88300
88301         Module chown.
88302         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
88303         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
88304
88305         Module dup2.
88306         * m4/dup2.m4: New file.
88307
88308         Module ftruncate.
88309         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
88310         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
88311
88312         Module getgroups.
88313         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
88314         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
88315
88316         Module gettimeofday.
88317         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
88318         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
88319         gl_PREREQ_GETTIMEOFDAY.
88320
88321         Module mkdir.
88322         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
88323         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
88324
88325         Module mkstemp.
88326         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
88327         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
88328         jm_AC_TYPE_UINTMAX_T.
88329         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
88330
88331         Module stat.
88332         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
88333         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
88334
88335         Module lstat.
88336         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
88337         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
88338
88339         Module timespec.
88340         * m4/timespec.m4 (gl_TIMESPEC): New macro.
88341         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
88342         * m4/st_mtim.m4: Indentation.
88343
88344         Module nanosleep.
88345         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
88346         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
88347         gl_PREREQ_NANOSLEEP.
88348
88349         Module regex.
88350         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
88351         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
88352         (gl_REGEX): New macro.
88353
88354         Module rename.
88355         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
88356         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
88357
88358         Module rmdir.
88359         * m4/rmdir.m4: New file.
88360
88361         Module utime.
88362         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
88363         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
88364         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
88365
88366         Module dirname.
88367         * m4/dirname.m4: New file.
88368
88369         Module getopt.
88370         * m4/getopt.m4: New file.
88371
88372         Module unistd-safer.
88373         * m4/unistd-safer.m4: New file.
88374
88375         Module fnmatch.
88376         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
88377         declaration.
88378         (gl_PREREQ_FNMATCH_EXTRA): New macro.
88379         (gl_FUNC_FNMATCH_POSIX): New macro.
88380         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
88381         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
88382         simply fnmatch.
88383
88384         Module exclude.
88385         * m4/exclude.m4: New file.
88386
88387         Module human.
88388         * m4/human.m4: New file.
88389
88390         Module acl.
88391         * m4/acl.m4: Nop.
88392
88393         Module backupfile.
88394         * m4/backupfile.m4: New file.
88395         * m4/d-ino.m4: Indentation.
88396
88397         Module fsusage.
88398         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
88399         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
88400         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
88401
88402         Module dirfd.
88403         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
88404         requirements.
88405
88406         Module euidaccess.
88407         * m4/euidaccess.m4: New file.
88408
88409         Module file-type.
88410         * m4/file-type.m4: New file.
88411
88412         Module fileblocks.
88413         * m4/fileblocks.m4: New file.
88414
88415         Module filemode.
88416         * m4/filemode.m4: New file.
88417
88418         Module isdir.
88419         * m4/isdir.m4: New file.
88420
88421         Module lchown.
88422         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
88423         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
88424
88425         Module makepath.
88426         * m4/makepath.m4: New file.
88427
88428         Module modechange.
88429         * m4/modechange.m4: New file.
88430
88431         Module mountlist.
88432         * m4/mountlist.m4: New file.
88433         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
88434         Indentation.
88435
88436         Module path-concat.
88437         * m4/path-concat.m4: New file.
88438
88439         Module pathmax.
88440         * m4/pathmax.m4: New file.
88441
88442         Module same.
88443         * m4/same.m4: New file.
88444
88445         Module save-cwd.
88446         * m4/save-cwd.m4: New file.
88447
88448         Module savedir.
88449         * m4/savedir.m4: New file.
88450
88451         Module xgetcwd.
88452         * m4/xgetcwd.m4: New file.
88453         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
88454
88455         Module xreadlink.
88456         * m4/xreadlink.m4: New file.
88457
88458         Module safe-read.
88459         * m4/safe-read.m4: New file.
88460
88461         Module safe-write.
88462         * m4/safe-write.m4: New file.
88463
88464         Module closeout.
88465         * m4/closeout.m4: New file.
88466
88467         Module stdio-safer.
88468         * m4/stdio-safer.m4: New file.
88469
88470         Module getpass.
88471         * m4/getpass.m4: New file.
88472
88473         Module getugroups.
88474         * m4/getugroups.m4: New file.
88475
88476         Module group-member.
88477         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
88478         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
88479
88480         Module idcache.
88481         * m4/idcache.m4: New file.
88482
88483         Module userspec.
88484         * m4/userspec.m4: New file.
88485
88486         Module gettime.
88487         * m4/clock_time.m4: New file.
88488         * m4/gettime.m4: New file.
88489
88490         Module settime.
88491         * m4/settime.m4: New file.
88492
88493         Module posixtm.
88494         * m4/posixtm.m4: New file.
88495
88496         Module gethostname.
88497         * m4/gethostname.m4: New file.
88498
88499         Module canon-host.
88500         * m4/canon-host.m4: New file.
88501
88502         Module gettext.
88503         * m4/codeset.m4: New file, from gettext-0.11.5.
88504         * m4/gettext.m4: New file, from gettext-0.11.5.
88505         * m4/glibc21.m4: New file, from gettext-0.11.5.
88506         * m4/iconv.m4: New file, from gettext-0.11.5.
88507         * m4/intdiv0.m4: New file, from gettext-0.11.5.
88508         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
88509         * m4/inttypes.m4: New file, from gettext-0.11.5.
88510         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
88511         * m4/isc-posix.m4: New file, from gettext-0.11.5.
88512         * m4/lcmessage.m4: New file, from gettext-0.11.5.
88513         * m4/lib-ld.m4: New file, from gettext-0.11.5.
88514         * m4/lib-link.m4: New file, from gettext-0.11.5.
88515         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
88516         * m4/progtest.m4: New file, from gettext-0.11.5.
88517         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
88518         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
88519         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
88520
88521         Module localcharset.
88522         * m4/localcharset.m4: New file.
88523
88524         Module hard-locale.
88525         * m4/hard-locale.m4: New file.
88526
88527         Module mbswidth.
88528         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
88529         onceonly macros.
88530         * m4/mbrtowc.m4: Add comment.
88531
88532         Module memcasecmp.
88533         * m4/memcasecmp.m4: New file.
88534
88535         Module memcoll.
88536         * m4/memcoll.m4: New file.
88537
88538         Module unicodeio.
88539         * m4/unicodeio.m4: New file.
88540
88541         Module rpmatch.
88542         * m4/rpmatch.m4: New file.
88543
88544         Module yesno.
88545         * m4/yesno.m4: New file.
88546
88547         Module exitfail.
88548         * m4/exitfail.m4: New file.
88549
88550         Module c-stack.
88551         * m4/c-stack.m4 (gl_C_STACK): New macro.
88552         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
88553
88554         Module error.
88555         * m4/error.m4 (gl_ERROR): New macro.
88556         (jm_PREREQ_ERROR): Use onceonly macros.
88557
88558         Module fatal.
88559         * m4/fatal.m4: New file.
88560
88561         Module getloadavg.
88562         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
88563         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
88564
88565         Module getpagesize.
88566         * m4/getpagesize.m4: New file.
88567
88568         Module getusershell.
88569         * m4/getusershell.m4: New file.
88570
88571         Module physmem.
88572         * m4/physmem.m4: New file.
88573
88574         Module posixver.
88575         * m4/posixver.m4: New file.
88576
88577         Module quotearg.
88578         * m4/quotearg.m4: New file.
88579
88580         Module quote.
88581         * m4/quote.m4: New file.
88582
88583         Module readutmp.
88584         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
88585
88586         Module sig2str.
88587         * m4/sig2str.m4: New file.
88588
88589         Other.
88590         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
88591         ulonglong.m4.
88592         * m4/intmax_t.m4: New file.
88593         * m4/d-type.m4: Indentation.
88594         * m4/jm-macros.m4: Update.
88595         * m4/prereq.m4 (jm_PREREQ): Update.
88596         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
88597         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
88598         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
88599         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
88600         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
88601         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
88602         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
88603         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
88604         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
88605         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
88606         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
88607         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
88608         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
88609         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
88610         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
88611         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
88612         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
88613         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
88614         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
88615
88616 2002-12-24  Bruno Haible  <bruno@clisp.org>
88617
88618         * MODULES.txt: Update according to m4/ changes.
88619
88620         Module gettext.
88621         * config.rpath: New file, from gettext-0.11.5.
88622
88623         * modules/*: New module descriptions.
88624         * gnulib-tool: New file.
88625         * MODULES.html.sh: New file.
88626
88627 2002-12-21  Karl Berry  <karl@gnu.org>
88628
88629         * doc/fdl.texi: update to version 1.2.
88630
88631 2002-12-19  Karl Berry  <karl@gnu.org>
88632
88633         * config/config.guess: update from prep.
88634
88635 2002-12-18  Bruno Haible  <bruno@clisp.org>
88636
88637         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
88638         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
88639
88640 2002-12-17  Bruno Haible  <bruno@clisp.org>
88641
88642         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
88643         stdlib.h, string.h.
88644
88645 2002-12-17  Bruno Haible  <bruno@clisp.org>
88646
88647         * lib/canon-host.c (strdup): Remove unused declaration.
88648
88649         * lib/fsusage.c: Include full_read.h.
88650         (get_fs_usage): Use full_read instead of safe_read.
88651
88652         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
88653
88654 2002-12-12  Karl Berry  <karl@gnu.org>
88655
88656         * config/config.guess: update from prep.
88657
88658 2002-12-11  Bruno Haible  <bruno@clisp.org>
88659
88660         * m4/setenv.m4: New file, from gettext-0.11.5.
88661
88662 2002-12-11  Bruno Haible  <bruno@clisp.org>
88663
88664         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
88665         not unsetenv().
88666         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
88667         modifications:
88668
88669         2002-12-11  Bruno Haible  <bruno@clisp.org>
88670
88671                 * setenv.c (alloca): Fall back to malloc.
88672                 (freea): New macro.
88673                 (setenv): Use freea() to free memory allocated with alloca().
88674
88675         2002-11-13  Bruno Haible  <bruno@clisp.org>
88676
88677                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
88678                 function declarations.
88679                 * unsetenv.c (unsetenv): Likewise.
88680
88681         2002-03-04  Bruno Haible  <bruno@clisp.org>
88682
88683                 Portability to AIX 4.3.3.
88684                 * unsetenv.c: New file, extracted from setenv.c.
88685                 * setenv.c: Move the unsetenv() function to unsetenv.c.
88686
88687         2001-12-20  Bruno Haible  <bruno@clisp.org>
88688
88689                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
88690                 use malloc instead. For SunOS 4.
88691
88692         2001-12-11  Bruno Haible  <bruno@clisp.org>
88693
88694                 * setenv.c: Declare alloca.
88695                 (compar_fn_t): New typedef.
88696                 (KNOWN_VALUE, STORE_VALUE): Use it.
88697
88698         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
88699         setenv.h.
88700
88701 2002-12-10  Paul Eggert  <eggert@twinsun.com>
88702
88703         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
88704         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
88705         Choose values that are less likely to collide with system fnmatch
88706         options.
88707         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
88708         defined (e.g., a pure POSIX system).
88709         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
88710         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
88711
88712 2002-12-06  Paul Eggert  <eggert@twinsun.com>
88713
88714         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
88715         a pain in practice to deal with generated m4 files.  This change
88716         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
88717
88718         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
88719         and jm-glibc-io.m4, as they are no longer a special case.
88720         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
88721         kludge and the auto-generation stuff.  Check only whether the
88722         functions are declared, not whether they exist, since older hosts
88723         that don't declare the functions can't use the optimization anyway.
88724
88725 2002-12-06  Jim Meyering  <jim@meyering.net>
88726
88727         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
88728
88729         Merge in changes from libc's misc/error.c, in preparation
88730         for the merge of gnulib's changes back into libc.
88731
88732         * lib/error.c (_): Define only if not already defined.
88733         Move definition to follow all #include directives.
88734         Include unlocked-io.h only if !_LIBC.
88735         [_LIBC]: Include <libio/libioP.h>.
88736         [USE_IN_LIBIO]: Include <libio/iolibio.h>
88737         (fflush): Tweak definition to use INTUSE.
88738         (putc): Define.
88739
88740 2002-12-05  Paul Eggert  <eggert@twinsun.com>
88741
88742         * lib/alloca.c [defined emacs]: Include "lisp.h".
88743         (xalloc_die) [defined emacs]: New macro.
88744         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
88745         [! defined emacs]: Include <xalloc.h>.
88746         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
88747         (pointer): Typedef to POINTER_TYPE *.
88748         (malloc): Remove decl; we now always use xmalloc.
88749         (alloca): Use old-style definition, since Emacs needs this.
88750         Check for arithmetic overflow when computing combined size.
88751
88752 2002-12-04  Paul Eggert  <eggert@twinsun.com>
88753
88754         Do not generate unlocked-io.h automatically, since it's easier to
88755         maintain it by hand.
88756
88757         * lib/unlocked-io.h: New file, from GNU diffutils,
88758         but with proper copyright notice and attribution.
88759         * lib/gen-uio: Remove.
88760         * lib/Makefile.am: Add copyright notice.
88761         (libfetish_a_SOURCES): Add unlocked-io.h.
88762         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
88763         (DISTCLEANFILES, io_functions): Remove macros.
88764         (EXTRA_DIST): Remove gen_uio.
88765         (unlocked-io.h): Remove rule.
88766
88767 2002-12-04  Jim Meyering  <jim@meyering.net>
88768
88769         Reflect the fact that stat.c and lstat.c are no longer generated.
88770         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
88771         (DISTCLEANFILES): Likewise.
88772         (EXTRA_DIST): Likewise.
88773         (all_local): Don't depend on stat.c or lstat.c.
88774         (stat.c, lstat.c): Remove rules.
88775         (EXTRA_DIST): Remove xstat.in.
88776
88777         * lib/xstat.in: Remove file.  Contents moved into stat.c.
88778         * lib/stat.c: New file.  Contents mostly from xstat.in.
88779         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
88780         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
88781
88782         * lib/safe-read.c: Rework so that it may serve to define safe_write,
88783         too.
88784         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
88785
88786 2002-12-03  Jim Meyering  <jim@meyering.net>
88787
88788         * lib/safe-read.c, safe-write.c: Change variable names and comments,
88789         but not semantics, to minimize the differences between these two files.
88790         (safe_read): Change comment to mention SAFE_READ_ERROR.
88791
88792         * lib/safe-read.c (IS_EINTR): Define.
88793         (safe_read): Use IS_EINTR in place of in-function cpp directives.
88794
88795 2002-12-02  Jim Meyering  <jim@meyering.net>
88796
88797         * lib/safe-read.c (EINTR): Define.
88798         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88799         (INT_MAX): Provide fallback.
88800         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
88801
88802         * lib/safe-read.h (SAFE_READ_ERROR): Define.
88803
88804 2002-12-02  Bruno Haible  <bruno@clisp.org>
88805
88806         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
88807         Define, taken from safe-read.c.
88808         (INT_MAX): Provide fallback.
88809         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
88810         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
88811
88812         * lib/safe-read.c (EINTR): Remove definition.
88813         (safe_read): Don't use EINTR if it is absent.
88814
88815 2002-12-01  Jim Meyering  <jim@meyering.net>
88816
88817         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
88818         zero.
88819         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
88820
88821 2002-11-27  Paul Eggert  <eggert@twinsun.com>
88822
88823         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
88824         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
88825         with `if (! (value < limit)) abort ();', for readability.
88826
88827 2002-11-26  Karl Berry  <karl@gnu.org>
88828
88829         * lib/strdup.c: copy from libc again, with jim's ok.
88830         * lib/.cppi-disable: re-add strdup.c
88831
88832 2002-11-25  Karl Berry  <karl@gnu.org>
88833
88834         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
88835         instead of "strtol.c".
88836
88837 2002-11-25  Karl Berry  <karl@gnu.org>
88838
88839         * config/install-sh: update from automake for variable quoting, $0 in
88840         error msgs, etc.
88841
88842         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
88843         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
88844         entry.
88845
88846 2002-11-25  Jim Meyering  <jim@meyering.net>
88847
88848         * lib/mktime.c: Sync from libc, now that it has the latest fix.
88849
88850 2002-11-24  Karl Berry  <karl@gnu.org>
88851
88852         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
88853         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
88854
88855 2002-11-24  Jim Meyering  <jim@meyering.net>
88856
88857         Update from coreutils:
88858
88859         * lib/mktime.c: Merge in changes from libc.
88860
88861         Avoid a link-time failure on some Linux systems.
88862         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
88863         (otherwise).
88864         (__mon_yday): Declare with the STATIC attribute.
88865         (__mktime_internal): Likewise.
88866         Based on a report from Greg Schafer.
88867
88868 2002-11-23  Jim Meyering  <jim@meyering.net>
88869
88870         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
88871         Use `unsigned', not `int', as type of index.
88872
88873         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
88874
88875         * lib/fsusage.c: Remove unneeded parentheses around operands of
88876         `defined'.
88877
88878 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88879
88880         * lib/quotearg.h: Allow multiple inclusion by surrounding with
88881         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
88882         so that we can be included first.
88883         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
88884         * lib/quotearg.c: Include quotearg.h immediately after config.h.
88885         No need to include stddef.h or sys/types.h any more.
88886         Surround local include files with "", not "<>".
88887         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
88888         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
88889         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
88890         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
88891         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
88892         (ISPRINT): Remove; no longer needed now that we assume C89.
88893
88894         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
88895         Preserve errno.
88896
88897         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
88898         quotearg_char): Use SIZE_MAX rather than
88899         (size_t) -1 when we are talking about "infinity".
88900
88901         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
88902
88903 2002-11-22  Paul Eggert  <eggert@twinsun.com>
88904
88905         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
88906         hint that one should use `if (! x) abort ();' rather than `assert
88907         (x);', and anyway it's one less thing to worry about configuring.
88908         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
88909         hash_rehash, hash_insert): Use abort rather than assert.
88910
88911 2002-11-22  Bruno Haible  <bruno@clisp.org>
88912
88913         * lib/safe-read.h: Assume C89. Add comments.
88914         (safe_read): Change return type to size_t.
88915         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
88916         byte counts > SSIZE_MAX correctly.
88917         * lib/safe-write.h: New file.
88918         * lib/safe-write.c: New file.
88919         * lib/full-read.h: New file.
88920         * lib/full-read.c: New file.
88921         * lib/full-write.h: Assume C89. Add comments.
88922         * lib/full-write.c: Include safe-write.h.
88923         (full_write): Rewritten to use safe_write.
88924         Suggested by Jim Meyering and Paul Eggert.
88925
88926 2002-11-21  Jim Meyering  <jim@meyering.net>
88927
88928         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
88929
88930         Merge in changes from the coreutils.
88931
88932         2002-09-25  Paul Eggert  <eggert@twinsun.com>
88933         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
88934         <stdint.h>.
88935         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
88936         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
88937         int.  Work more efficiently if X is the same width as uintmax_t.
88938         Do not compare X to -1, to avoid bogus compiler warning.
88939         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
88940         Don't assume that f_frsize and f_bsize are the same type.
88941
88942         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
88943         warning on FreeBSD.
88944
88945         * lib/makepath.c (make_path): Restore umask *before* creating the final
88946         component.
88947         (make_path): Minor reformatting.
88948
88949         * lib/xmalloc.c: Adjust to work with new autoconf macros,
88950         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
88951         HAVE_MALLOC/HAVE_REALLOC.
88952
88953         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
88954         dummy ones.  At least on GNU/Linux systems, `auto' means something
88955         else.
88956         From Michael Stone.
88957
88958 2002-11-21  Bruno Haible  <bruno@clisp.org>
88959
88960         Remove case insensitive option matching.
88961         * lib/argmatch.h (argcasematch): Remove declaration.
88962         (ARGCASEMATCH): Remove macro.
88963         (__xargmatch_internal): Remove case_sensitive argument.
88964         (XARGMATCH): Update.
88965         (XARGCASEMATCH): Remove macro.
88966         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
88967         case_sensitive argument.
88968         (argcasematch): Remove function.
88969         (__xargmatch_internal): Remove case_sensitive argument.
88970         (main): Use XARGMATCH instead of XARGCASEMATCH.
88971
88972         * lib/xmalloc.c: Change compile-time error message. Add comment about
88973         required autoconf version.
88974
88975 2002-11-20  Paul Eggert  <eggert@twinsun.com>
88976
88977         Merge argmatch cleanups from Bison.  Assume C89.
88978
88979         * lib/argmatch.c: Include config.h here, not in argmatch.h.
88980         Include stdlib.h, for EXIT_FAILURE.
88981         Always include <string.h>, since we assume C89.
88982         (EXIT_FAILURE): Remove pre-C89 bug workaround.
88983         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
88984         Include <stddef.h> instead, since it's all we need for size_t.
88985         (PARAMS): Remove.  All uses removed.
88986         (ARRAY_CARDINALITY): Do not bother to #undef.
88987         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
88988         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88989         Remove unnecessary parentheses.
88990         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
88991         Insert necessary parentheses.
88992         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
88993         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
88994
88995 2002-11-19  Bruno Haible  <bruno@clisp.org>
88996
88997         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
88998         * lib/mbswidth.h: Include <stddef.h>, for size_t.
88999
89000         * lib/mbswidth.h (PARAMS): Remove macro.
89001         (mbswidth, mbsnwidth): Use ANSI C function declarations.
89002         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
89003
89004         * lib/gcd.h (PARAMS): Remove macro.
89005         (gcd): Use ANSI C function declarations.
89006         * lib/gcd.c (gcd): Likewise.
89007
89008 2002-11-15  Bruno Haible  <bruno@clisp.org>
89009
89010         * lib/strcspn.c: Include <stddef.h>.
89011         (strcspn): Use ANSI C function declaration. Change return type to
89012         size_t. Use NULL.
89013         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
89014         (strpbrk): Use NULL.
89015         * lib/strpbrk.h (PARAMS): Remove macro.
89016         (strpbrk): Use ANSI C function declaration.
89017         * lib/strstr.c: Don't include <sys/types.h>.
89018         * lib/strstr.h (PARAMS): Remove macro.
89019         (strstr): Use ANSI C function declarations.
89020
89021 2002-11-14  Karl Berry  <karl@gnu.org>
89022
89023         * config/mkinstalldirs: `do' on separate line, instead of
89024         `for var; do'.
89025
89026 2002-11-06  Bruno Haible  <bruno@clisp.org>
89027
89028         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
89029         * lib/gcd.c (gcd): Likewise.
89030
89031 2002-11-05  Bruno Haible  <bruno@clisp.org>
89032
89033         * lib/gcd.h: New file, from gettext-0.11.5.
89034         * lib/gcd.c: New file, from gettext-0.11.5.
89035
89036 2002-11-05  Bruno Haible  <bruno@clisp.org>
89037
89038         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89039         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89040         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89041         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89042
89043         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
89044         <libintl.h>.
89045         * lib/makepath.c: Include gettext.h instead of <locale.h> and
89046         <libintl.h>.
89047
89048         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
89049         * lib/human.c: Include gettext.h instead of <libintl.h>.
89050         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
89051         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
89052         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
89053         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
89054         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
89055         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
89056         (textdomain): Remove definition.
89057         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
89058
89059         * lib/long-options.c: Remove include of <libintl.h> and definition of
89060         _.
89061         * lib/same.c: Remove include of <libintl.h> and definition of _.
89062
89063 2002-11-04  Owen Taylor  <otaylor@redhat.com>
89064
89065         * lib/config.charset: A few additions for Solaris.
89066
89067 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89068
89069         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
89070         * lib/localcharset.c (locale_charset): Declare as extern "C".
89071
89072 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89073
89074         * lib/config.charset: msdos in uk_UA uses CP1125.
89075
89076 2002-11-04  Bruno Haible  <bruno@clisp.org>
89077
89078         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
89079         * lib/strcase.h: New file, from GNU gettext-0.11.5.
89080         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
89081         * lib/strstr.h: New file, from GNU gettext-0.11.5.
89082         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
89083
89084 2002-11-04  Bruno Haible  <bruno@clisp.org>
89085
89086         * lib/localcharset.c (locale_charset): Don't return an empty string.
89087
89088 2002-11-04  Bruno Haible  <bruno@clisp.org>
89089
89090         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
89091         aliases.
89092
89093 2002-11-04  Bruno Haible  <bruno@clisp.org>
89094
89095         * lib/config.charset: Update for newest glibc. Add canonical names
89096         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
89097
89098 2002-11-04  Bruno Haible  <bruno@clisp.org>
89099
89100         * lib/config.charset: Add support for NetBSD.
89101
89102 2002-11-04  Bruno Haible  <bruno@clisp.org>
89103
89104         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
89105
89106 2002-11-01  Bruno Haible  <bruno@clisp.org>
89107
89108         * configure.in: Add AC_CONFIG_AUX_DIR call.
89109         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
89110         test/Makefile.
89111         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
89112
89113 2002-09-28  Karl Berry  <karl@gnu.org>
89114
89115         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
89116         installed automake until the next release, since changes have been
89117         made.
89118
89119 2002-09-25  Karl Berry  <karl@gnu.org>
89120
89121         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
89122         * lib/getopt*: copy from libc/posix.
89123         * lib/gettext.h: copy from gettext.
89124         * lib/.cppi-disable: add strdup.c, gettext.h.
89125
89126 2002-09-25  Karl Berry  <karl@gnu.org>
89127
89128         * config/srclist.txt: enable gettext.h check.
89129         * config/config.{guess,sub}: update from prep.
89130         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
89131                 from automake 1.6.3.
89132         See srclist*.
89133
89134 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
89135
89136         * regex.c (PATFETCH): Remove the translating fetch.
89137         (PATFETCH_RAW): Rename to PATFETCH.
89138         (set_image_of_range): New fun.
89139         (SET_RANGE_TABLE_WORK_AREA): Use it.
89140         (regex_compile): Don't translate the pattern chars so eagerly.
89141         Only do it when inserting an `exactn' bytecode or when handling
89142         a char-range.
89143         (mutually_exclusive_p): Avoid empty statement.
89144
89145 2002-07-06  Jim Meyering  <meyering@lucent.com>
89146
89147         * m4/README: Don't mention Makefile.am.in.
89148         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
89149
89150 2002-07-01  Jim Meyering  <meyering@lucent.com>
89151
89152         * lib/c-stack.c: Include sys/time.h.
89153         From Volker Borchert.
89154
89155 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89156
89157         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
89158
89159 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89160
89161         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
89162         New macro.  Use it uniformly instead of
89163         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
89164         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
89165         reported by Vin Shelton.
89166
89167 2002-06-22  Paul Eggert  <eggert@twinsun.com>
89168
89169         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
89170         Do not assume SA_SIGINFO behavior.
89171         Bug reported by Jim Meyering on NetBSD 1.5.2.
89172
89173 2002-06-22  Jim Meyering  <meyering@lucent.com>
89174
89175         * m4/c-stack.m4: New file, from diffutils-2.8.2.
89176         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
89177
89178         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
89179         now that configure.ac uses AC_GNU_SOURCE.
89180         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
89181         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
89182
89183         Update to latest tools.  Suggestions from Paul Eggert.
89184         * m4/stdbool.m4: New file, from diffutils-2.8.2.
89185         * m4/gnu-source.m4: Update from diffutils-2.8.2.
89186         * m4/fnmatch.m4: Likewise.
89187         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
89188         to AC_HEADER_STDBOOL
89189
89190 2002-06-22  Jim Meyering  <meyering@lucent.com>
89191
89192         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
89193         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
89194
89195 2002-06-22  Jim Meyering  <meyering@lucent.com>
89196
89197         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
89198
89199         * lib/exitfail.c, exitfail.h: Likewise.
89200         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
89201
89202         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
89203         of fnmatch.h.
89204         (EXTRA_DIST): Add fnmatch_loop.c.
89205         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
89206
89207         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
89208         * lib/fnmatch.c: Update from diffutils-2.8.2.
89209         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
89210         * lib/fnmatch.h: Remove file.
89211
89212 2002-06-21  Jim Meyering  <meyering@lucent.com>
89213
89214         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
89215         * m4/mbrtowc.m4: Likewise.
89216
89217         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
89218         * m4/mbswidth.m4: Reflect name change:
89219         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
89220         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89221
89222         * m4/lib-link.m4: Update from gettext-0.11.2.
89223         * m4/gettext.m4: Likewise.
89224
89225         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
89226         From Alfred M. Szmidt.
89227
89228 2002-06-18  Paul Eggert  <eggert@twinsun.com>
89229
89230         * lib/file-type.h: Report an error if neither S_ISREG nor
89231         S_IFREG is defined, instead of using a test specific to glibc
89232         2.2.  This should be safe, since POSIX requires S_ISREG and
89233         Unix Version 7 had S_IFREG.  We don't need to check for
89234         <sys/types.h> since we don't use any symbols that it defines.
89235
89236 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
89237
89238         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
89239         $@-t, so that each temporary file name is unique and valid in the first
89240         8 characters, for operation under DOS.
89241
89242 2002-06-15  Paul Eggert  <eggert@twinsun.com>
89243
89244         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
89245
89246 2002-06-15  Jim Meyering  <meyering@lucent.com>
89247
89248         Work even with DJGPP 2.03, which lacks support for symlinks.
89249         From Richard Dawe.
89250         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
89251         is defined.
89252         * lib/lchown.c (S_ISLNK): Likewise.
89253
89254 2002-06-15  Jim Meyering  <meyering@lucent.com>
89255
89256         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
89257         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
89258         have been included before this file.
89259
89260 2002-06-14  Jim Meyering  <meyering@lucent.com>
89261
89262         * lib/file-type.h: Use the version from diffutils-2.8.2.
89263         * lib/file-type.c: Likewise.
89264
89265 2002-06-07  Jim Meyering  <meyering@lucent.com>
89266
89267         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
89268         They're needed at least for NetBSD 1.5.2.
89269         ($statxfs_includes): Include those same headers.
89270         ($statxfs_includes): Include sys/vfs.h if available.
89271         ($statxfs_includes): Likewise for sys/statvfs.h.
89272         Check for the following members in both structs statfs and statvfs:
89273         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
89274
89275 2002-06-01  Jim Meyering  <meyering@lucent.com>
89276
89277         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
89278         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
89279
89280 2002-05-28  Jim Meyering  <meyering@lucent.com>
89281
89282         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
89283         Reported by Volker Borchert.
89284
89285 2002-05-27  Jim Meyering  <meyering@lucent.com>
89286
89287         Fix a problem seen only on nonconforming systems whereby ls.c's
89288         use of localtime, and then of gettimeofday would cause trouble:
89289         the localtime call used to initialize rpl_gettimeofday's save
89290         mechanism would clobber ls's current local time information so
89291         that in any long listing the first file would always be listed
89292         with date 1970-01-01.  Analysis by Volker Borchert.
89293
89294         * lib/gettimeofday.c (localtime): Undefine.
89295         (rpl_localtime): New function.
89296
89297 2002-05-27  Jim Meyering  <meyering@lucent.com>
89298
89299         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
89300         localtime.
89301
89302         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
89303         use the replacement function; it wouldn't resolve at link time.
89304         Reported by Volker Borchert.
89305
89306 2002-05-22  Jim Meyering  <meyering@lucent.com>
89307
89308         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
89309         file-type.h.
89310         * lib/file-type.h: New file.
89311         * lib/file-type.c (file_type): New file/function.  Extracted from
89312         diffutils.
89313
89314 2002-04-30  Jim Meyering  <meyering@lucent.com>
89315
89316         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
89317
89318 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89319
89320         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
89321
89322 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89323
89324         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
89325         Do not check for alloca.h (no longer used) or stdbool.h (was never
89326         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
89327
89328 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89329
89330         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
89331
89332 2002-04-29  Jim Meyering  <meyering@lucent.com>
89333
89334         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
89335         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
89336         Use AC_FUNC_STRNLEN here instead.
89337
89338         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
89339         With autoconf-2.53a, it's part of AC_PROG_CC.
89340
89341 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89342
89343         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
89344         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
89345
89346 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89347
89348         * lib/sig2str.h, lib/sig2str.c: New files.
89349         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
89350
89351 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89352
89353         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
89354         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
89355         of 127, since 64 is the largest conceivable number for ancient
89356         nonstandard hosts.
89357         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
89358
89359 2002-04-28  Jim Meyering  <meyering@lucent.com>
89360
89361         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
89362
89363 2002-04-24  Jim Meyering  <meyering@lucent.com>
89364
89365         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
89366         (jm_PREREQ): Use it.
89367
89368         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
89369         mach/mach.h fcntl.h.
89370         Check for this function: setlocale.
89371
89372 2002-04-24  Jim Meyering  <meyering@lucent.com>
89373
89374         * lib/gettext.h: New file, from Gettext.
89375         * lib/Makefile.am (INCLUDES): Remove -I../intl.
89376         (libfetish_a_SOURCES): Add gettext.h.
89377
89378 2002-04-16  Jim Meyering  <meyering@lucent.com>
89379
89380         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
89381         ut_pid, ut_id, ut_exit.
89382
89383 2002-04-16  Jim Meyering  <meyering@lucent.com>
89384
89385         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
89386         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
89387         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
89388
89389 2002-04-12  Jim Meyering  <meyering@lucent.com>
89390
89391         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
89392         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
89393         existence of the getmntinfo function.  Needed for Darwin 5.3.
89394
89395         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
89396         This is necessary at least on Darwin 5.3.
89397
89398         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
89399         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
89400         strnlen.o in the library, and that makes some versions of ranlib
89401         object.
89402
89403 2002-04-12  Jim Meyering  <meyering@lucent.com>
89404
89405         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
89406
89407 2002-04-09  Jim Meyering  <meyering@lucent.com>
89408
89409         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
89410         to be more precise.  Rather than saying we're checking whether the
89411         function `works', say what we're testing.
89412         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
89413         Reported by Bruno Haible.
89414
89415 2002-03-10  Jim Meyering  <meyering@lucent.com>
89416
89417         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
89418         Suggestion from Santiago Vila.
89419
89420 2002-03-08  Jim Meyering  <meyering@lucent.com>
89421
89422         * lib/rename.c: Mention that this wrapper is needed also on
89423         mips-dec-ultrix4.4 systems.
89424
89425 2002-03-02  Jim Meyering  <meyering@lucent.com>
89426
89427         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
89428         not HAVE_CLOCK_SETTIME.
89429
89430 2002-02-27  Paul Eggert  <eggert@twinsun.com>
89431
89432         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
89433         Check for clock_settime.
89434
89435 2002-02-27  Paul Eggert  <eggert@twinsun.com>
89436
89437         * lib/nanosleep.h: Rename to....
89438         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
89439
89440         * lib/gettime.c: New file.
89441         * lib/settime.c: New file.
89442         * lib/stime.c: Remove.
89443
89444         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
89445         timespec.h.  Remove nanosleep.h.
89446
89447 2002-02-25  Paul Eggert  <eggert@twinsun.com>
89448
89449         * m4/acl.m4: New file.
89450         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
89451         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
89452
89453 2002-02-25  Paul Eggert  <eggert@twinsun.com>
89454
89455         * lib/acl.c, lib/acl.h: New files.
89456         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
89457
89458 2002-02-24  Jim Meyering  <meyering@lucent.com>
89459
89460         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
89461         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
89462         cause trouble.  Reported by Nelson Beebe.
89463
89464 2002-02-23  Paul Eggert  <eggert@twinsun.com>
89465
89466         * lib/path-concat.c (xpath_concat): Reorder code to pacify
89467         compilers that don't know that xalloc_die never returns.
89468
89469 2002-02-20  Jim Meyering  <meyering@lucent.com>
89470
89471         * lib/getdate.c: Regenerate using bison-1.33.
89472
89473 2002-02-17  Jim Meyering  <meyering@lucent.com>
89474
89475         * config/config.guess (main): Don't use `head -1'; it's no longer
89476         portable. Use `sed 1q' instead.
89477
89478 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
89479
89480         * m4/codeset.m4: Upgrade to gettext-0.11.
89481         * m4/gettext.m4: Upgrade to gettext-0.11.
89482         * m4/glibc21.m4: Upgrade to gettext-0.11.
89483         * m4/iconv.m4: Upgrade to gettext-0.11.
89484         * m4/isc-posix.m4: Upgrade to gettext-0.11.
89485         * m4/lcmessage.m4: Upgrade to gettext-0.11.
89486         * m4/lib-ld.m4: New file, from gettext-0.11.
89487         * m4/lib-link.m4: New file, from gettext-0.11.
89488         * m4/lib-prefix.m4: New file, from gettext-0.11.
89489         * m4/progtest.m4: Upgrade to gettext-0.11.
89490
89491 2002-02-15  Paul Eggert  <eggert@twinsun.com>
89492
89493         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
89494         (jm_PREREQ): Use it.
89495
89496 2002-02-15  Paul Eggert  <eggert@twinsun.com>
89497
89498         * lib/posixver.c, lib/posixver.h: New files.
89499         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
89500
89501 2002-02-02  Paul Eggert  <eggert@twinsun.com>
89502             Bruno Haible  <bruno@clisp.org>
89503
89504         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
89505         (fwrite_success_callback): New declaration.
89506         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
89507         print_unicode_char. Call failure callback instead of error.
89508         (fwrite_success_callback): New function.
89509         (exit_failure_callback): New function.
89510         (fallback_failure_callback): New function.
89511         (print_unicode_char): Call unicode_to_mb.
89512
89513 2002-01-26  Jim Meyering  <meyering@lucent.com>
89514
89515         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
89516         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
89517
89518 2002-01-26  Jim Meyering  <meyering@lucent.com>
89519
89520         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
89521
89522 2002-01-22  Paul Eggert  <eggert@twinsun.com>
89523
89524         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
89525
89526 2002-01-22  Jim Meyering  <meyering@lucent.com>
89527
89528         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
89529         Otherwise, some versions of automake would omit the rule that makes
89530         Makefile from Makefile.in.
89531
89532 2002-01-21  Paul Eggert  <eggert@twinsun.com>
89533
89534         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
89535         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
89536         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
89537         (memcoll): Set errno to zero if there is no error.
89538
89539         * lib/quotearg.c (quotearg_buffer_restyled):
89540         Fix bug with quoting buffers containing NUL when backslashing escapes.
89541         This bug was exposed by the other changes in this patch.
89542         (quotearg_n_options): New arg ARGSIZE.
89543         All callers changed.
89544         (quoting_options_from_style): New function.
89545         (quotearg_n_style): Use it.
89546         (quotearg_n_style_mem): New function.
89547
89548         * lib/quotearg.h (quotearg_n_style_mem): New function.
89549
89550 2002-01-19  Jim Meyering  <meyering@lucent.com>
89551
89552         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
89553         Remove useless quotes: DF_PROG="df".
89554         * m4/strnlen.m4: New file.
89555
89556 2002-01-16  Paul Eggert  <eggert@twinsun.com>
89557
89558         * lib/backupfile.c (ISDIGIT): Comment fix.
89559         * lib/getdate.y (ISDIGIT): Likewise.
89560         * lib/posixtm.c (ISDIGIT, year): Likewise.
89561         * lib/strverscmp.c (ISDIGIT): Likewise.
89562         * lib/userspec.c (ISDIGIT): Likewise.
89563
89564 2002-01-16  Jim Meyering  <meyering@lucent.com>
89565
89566         * lib/getdate.y: Add three semicolons, each just before a closing
89567         brace. Bison (as of version 1.31) no longer papers over that mistake.
89568
89569 2002-01-05  Jim Meyering  <meyering@lucent.com>
89570
89571         * lib/version-etc.c (version_etc_copyright): Update copyright year.
89572
89573 2001-12-19  Paul Eggert  <eggert@twinsun.com>
89574
89575         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
89576         not silently exit merely because the output buffer happens to
89577         have nothing pending.
89578
89579 2001-12-18  Paul Eggert  <eggert@twinsun.com>
89580
89581         See the big note in ../ChangeLog.
89582         * lib/human.c (suffixes): Prefer K to k for 1024.
89583         (generate_suffix_backwards): New function.
89584         (human_readable_inexact): Use it.
89585         * lib/xstrtol.c (__xstrtol): If there is no number but there
89586         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
89587         Accept 'K' as well as 'k'.
89588
89589 2001-12-15  Jim Meyering  <meyering@lucent.com>
89590
89591         * lib/regex.h (__restrict_arr): Update from libc.
89592
89593         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
89594         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
89595         (STREQ): Define.
89596
89597 2001-12-14  Jim Meyering  <meyering@lucent.com>
89598
89599         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
89600         Suggestion from Bruno Haible.
89601
89602 2001-12-10  Jim Meyering  <meyering@lucent.com>
89603
89604         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
89605         xrealloc, Instead, include "xalloc.h".
89606         (initbuffer): Don't cast xmalloc return value to char*.
89607         (readline): Reword comment.
89608         Don't cast xrealloc return value to char*
89609         Return NULL, not 0.
89610
89611 2001-12-09  Jim Meyering  <meyering@lucent.com>
89612
89613         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
89614         about `signed and unsigned type in conditional expression'.
89615         * lib/posixtm.c (posix_time_parse): Likewise.
89616
89617         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
89618
89619         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
89620         to avoid a pedantic warning.
89621
89622         * lib/getstr.c: Don't include assert.h.
89623         (getstr): Remove warning-evoking assertions.
89624         Return -1 if offset parameter is out of bounds.
89625         Change the type of a local from int to size_t.
89626
89627         * lib/strftime.c (my_strftime_localtime_r): Include this function
89628         definition in the `#if ! HAVE_TM_GMTOFF' block.
89629
89630         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
89631         Include xalloc.h instead.
89632
89633 2001-12-02  Jim Meyering  <meyering@lucent.com>
89634
89635         * lib/tempname.c: Don't declare getenv, thus reverting the change of
89636         2001-11-18.  It's no longer necessary, now that stdlib.h is always
89637         included.
89638
89639         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
89640         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
89641
89642 2001-11-30  Akim Demaille  <akim@epita.fr>
89643
89644         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
89645         before being defined.
89646
89647 2001-11-27  Paul Eggert  <eggert@twinsun.com>
89648
89649         * lib/quotearg.h (quotearg_n, quotearg_n_style):
89650         First arg is int, not unsigned.
89651         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
89652         (SIZE_MAX, UINT_MAX): New macros.
89653         (quotearg_n_options): Abort if N is negative.
89654         Avoid overflow check on hosts where size_t is 64 bits and int
89655         is 32 bits, as overflow is impossible there.
89656         Fix off-by-one typo that caused unnecessary reallocation.
89657
89658 2001-11-27  Jim Meyering  <meyering@lucent.com>
89659
89660         * lib/tempname.c: Merge with version from libc.
89661         * lib/regex.c: Likewise.
89662
89663         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
89664         systems for which STDC_HEADERS is 0, it was not included, resulting in
89665         a warning about an integer-to-pointer conversion problem with getenv.
89666         Reported by Volker Borchert.
89667
89668 2001-11-26  Jim Meyering  <meyering@lucent.com>
89669
89670         * lib/gtod.h: Remove file.
89671         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
89672         * lib/gettimeofday.c: Don't include gtod.h.
89673         (GTOD_init): Remove function.
89674         (rpl_gettimeofday): Do its job here instead, rather than aborting.
89675         Suggestion from Volker Borchert.
89676
89677 2001-11-23  Jim Meyering  <meyering@lucent.com>
89678
89679         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
89680         it.
89681         * lib/hash.c (struct hash_table): Define it here instead.
89682
89683 2001-11-22  Jim Meyering  <meyering@lucent.com>
89684
89685         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
89686
89687 2001-11-20  Jim Meyering  <meyering@lucent.com>
89688
89689         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
89690         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
89691
89692 2001-11-19  Jim Meyering  <meyering@lucent.com>
89693
89694         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
89695         directory.  Use "conftestXXXXXX" as the template.
89696         Suggestion from Paul Eggert.
89697
89698         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
89699         immediately, so the test doesn't mistakenly hit the max-open-files
89700         limit.
89701
89702 2001-11-18  Paul Eggert  <eggert@twinsun.com>
89703
89704         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
89705         (TEMPORARIES): New macro.
89706         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
89707         removes an artificial limitation (e.g. HP-UX 10.20, where
89708         TMP_MAX is 17576).
89709
89710 2001-11-18  Jim Meyering  <meyering@lucent.com>
89711
89712         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
89713
89714 2001-11-18  Jim Meyering  <meyering@lucent.com>
89715
89716         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
89717         on SunOS 4.
89718
89719         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
89720         files will be created before anything else.
89721
89722 2001-11-17  Paul Eggert  <eggert@twinsun.com>
89723
89724         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
89725         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
89726
89727 2001-11-17  Jim Meyering  <meyering@lucent.com>
89728
89729         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
89730         Prompted by a report from Bob Proulx.
89731
89732         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
89733         Instead, require UTILS_FUNC_MKSTEMP.
89734
89735 2001-11-17  Jim Meyering  <meyering@lucent.com>
89736
89737         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
89738         Now, that's done as part of AC_FUNC_STRTOD.
89739
89740 2001-11-17  Jim Meyering  <meyering@lucent.com>
89741
89742         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
89743         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
89744         rather than group writable.  Patch by Juan F. Codagnone.
89745
89746         * lib/readtokens.c: Remove explicit declarations of xmalloc and
89747         xrealloc, Instead, include "xalloc.h".
89748
89749         * lib/mountlist.c: Include unlocked-io.h after all system headers.
89750         Remove explicit declarations of xmalloc, xrealloc,
89751         and xstrdup.  Instead, include "xalloc.h".
89752
89753         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
89754         unlocked-io.h.
89755         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
89756         Likewise.
89757         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
89758
89759         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
89760         Reported by Padraig Brady.
89761
89762         * lib/mkstemp.c: #undef mkstemp.
89763         Include config.h.
89764         (rpl_mkstemp): Rename from mkstemp.
89765         Protoize.
89766
89767 2001-11-16  Jim Meyering  <meyering@lucent.com>
89768
89769         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
89770         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
89771         determine the amount of total physical memory, use pstat_getstatic.
89772         HPUX-11 doesn't define _SC_PHYS_PAGES.
89773         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
89774         If sysconf couldn't be used to determine the amount of available
89775         physical memory, use both pstat_getstatic and pstat_getdynamic.
89776         Based on a patch from Bob Proulx.
89777
89778 2001-11-10  Jim Meyering  <meyering@lucent.com>
89779
89780         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
89781         (jm_PREREQ): Use it.
89782
89783 2001-11-09  Jim Meyering  <meyering@lucent.com>
89784
89785         * m4/jm-macros.m4: Require autoconf-2.52f.
89786         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
89787         Use these AC_-prefixed names, not the AM_-prefixed ones.
89788
89789         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
89790
89791 2001-11-05  Jim Meyering  <meyering@lucent.com>
89792
89793         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
89794
89795 2001-11-04  Jim Meyering  <meyering@lucent.com>
89796
89797         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
89798         $DEFS.
89799
89800 2001-11-03  Jim Meyering  <meyering@lucent.com>
89801
89802         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
89803         of AC_DEFUN.
89804
89805         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
89806         know the name of the variable in the macro definition.
89807
89808 2001-11-03  Jim Meyering  <meyering@lucent.com>
89809
89810         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
89811         in argmatch_to_argument call.
89812
89813         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
89814         argument.
89815
89816         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
89817         e.g., a fault due to an attempt to free a NULL pointer.
89818
89819 2001-11-01  Jim Meyering  <meyering@lucent.com>
89820
89821         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
89822         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
89823
89824 2001-11-01  Jim Meyering  <meyering@lucent.com>
89825
89826         * lib/dirfd.c, lib/dirfd.h: New files.
89827         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
89828
89829         * lib/hash.c (hash_print) [TESTING]: Clean up.
89830
89831 2001-10-22  Paul Eggert  <eggert@twinsun.com>
89832
89833         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
89834         to avoid a warning if -Wall.
89835
89836 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
89837
89838         * README: New file
89839         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
89840         (per RMS's instructions, this is now the canonical source)
89841         * lgpl/, gpl/: New directories.
89842
89843 2001-10-21  Paul Eggert  <eggert@twinsun.com>
89844
89845         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
89846
89847 2001-10-21  Jim Meyering  <meyering@lucent.com>
89848
89849         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
89850         this code would end up calling gettext even in packages built
89851         with --disable-nls.
89852         * lib/getopt.c (_): Likewise.
89853         * lib/regex.c (_): Likewise.
89854
89855 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89856
89857         * m4/error.m4 (jm_PREREQ_ERROR):
89858         Do not invoke AC_CHECK_FUNCS with strerror_r, as
89859         AC_FUNC_STRERROR_R does that.
89860         Check for strerror declaration.
89861
89862         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
89863         are supposed to have them these days.
89864         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
89865         Merge changes from latest Autoconf CVS.
89866         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
89867         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
89868         POSIX decided to standardize on the int flavor of strerror_r.
89869
89870 2001-10-20  Paul Eggert  <eggert@twinsun.com>
89871
89872         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
89873         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
89874         Use strerror_r that is only a macro, even if it is not a function.
89875         (strerror): Check for HAVE_DECL_STRERROR before declaring.
89876         (private_strerror): Use prototypes, not old-style function definition.
89877         (print_errno_message): New function.
89878         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
89879         char*-flavored one.
89880         (error_tail, error, error_at_line): Use it.
89881
89882 2001-10-11  Jim Meyering  <meyering@lucent.com>
89883
89884         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
89885         and quote_n (1, ... to avoid clobbering a buffer.
89886
89887 2001-10-05  Jim Meyering  <meyering@lucent.com>
89888
89889         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
89890         hash-pjw.h.
89891         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
89892         * lib/hash-pjw.h: New file.
89893
89894 2001-09-30  Jim Meyering  <meyering@lucent.com>
89895
89896         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
89897         `struct fsstat' has the `f_fstypename' member.
89898         Use that to define FS_TYPE, which is now used to make
89899         the getfsstat link test tighter.
89900
89901 2001-09-30  Jim Meyering  <meyering@lucent.com>
89902
89903         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
89904         Include <sys/ucred.h>, for Apple Darwin.
89905         Include sys/mount.h and sys/fs_types.h only if available.
89906         (FS_TYPE): Define.
89907         (read_filesystem_list): Use FS_TYPE.
89908
89909 2001-09-29  Paul Eggert  <eggert@twinsun.com>
89910
89911         * lib/exclude.c (excluded_filename): 0 -> false, since it's
89912         a boolean context.
89913
89914 2001-09-29  Jim Meyering  <meyering@lucent.com>
89915
89916         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89917         [one-argument getmntent function]): Include stdio.h before mntent.h.
89918         SunOS 4.1.x needs it for the declaration of `FILE'.
89919         Patch by Volker Borchert.
89920
89921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
89922         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
89923         sys/fs_types.h, and make the link-test for getfsstat guard #include
89924         directives with appropriate #if HAVE_*_H tests so that we can
89925         detect getfsstat on Apple Darwin1.3.7 systems.
89926         Reported by Nelson Beebe.
89927         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
89928
89929 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89930
89931         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89932         #defines strtoimax.  Also treat the other strto* functions
89933         like strtoimax.
89934
89935         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89936         Check for strtoul and strtoumax,
89937         as those declarations are made even in the signed case.
89938         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
89939         Likewise, for strtol and strtoimax.
89940
89941 2001-09-28  Paul Eggert  <eggert@twinsun.com>
89942
89943         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
89944         #defines strtoimax.  Also treat the other strto* functions
89945         like strtoimax.
89946
89947         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
89948         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
89949         (strtoimax, strtoumax): Do not declare if already defined as a macro.
89950
89951 2001-09-26  Jim Meyering  <meyering@lucent.com>
89952
89953         Most macros in unlocked-io.h had the wrong number of arguments.
89954         * lib/gen-uio: New script.
89955         (USE_UNLOCKED_IO): Define to 1 if not already defined.
89956         * lib/unlocked-io.hin: Remove file.
89957         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
89958         rather than trying to embed it here.
89959         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
89960         Reported by Padraig Brady.
89961
89962 2001-09-25  Volker Borchert  <bt@teknon.de>
89963
89964         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
89965         `result'.
89966
89967 2001-09-24  Jim Meyering  <meyering@lucent.com>
89968
89969         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
89970
89971 2001-09-23  Jim Meyering  <meyering@lucent.com>
89972
89973         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
89974         instead of the mere test for existence of mntent.h.  The latter
89975         would get a false-positive on AIX 3.4 systems.
89976         In the outer getmntent if-block, don't die if neither of the getmntent
89977         tests succeeds.  Instead, just fall through and continue with the
89978         remaining tests.
89979
89980 2001-09-23  Jim Meyering  <meyering@lucent.com>
89981
89982         * lib/mountlist.c: Remove useless parentheses in #if directives.
89983         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
89984         the deprecated MOUNTED symbol is no longer defined in mntent.h.
89985
89986 2001-09-22  Jim Meyering  <meyering@lucent.com>
89987
89988         * m4/gettext.m4: New file.  From gettext.
89989         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
89990         * m4/progtest.m4: Likewise
89991         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
89992         * m4/glibc21.m4: Likewise.
89993
89994         * m4/libintl.m4: Remove.  No longer used.
89995
89996 2001-09-22  Jim Meyering  <meyering@lucent.com>
89997
89998         * lib/localcharset.c: Update from latest gettext.
89999         * lib/config.charset: Likewise.
90000
90001 2001-09-20  Jim Meyering  <meyering@lucent.com>
90002
90003         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
90004         strtoimax.
90005         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
90006         strtoumax.
90007
90008 2001-09-20  Jim Meyering  <meyering@lucent.com>
90009
90010         * lib/xstrtol.c (strtoimax): Guard declaration with
90011         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
90012         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
90013         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
90014         (strtoumax): Likewise, for completeness (it wasn't necessary).
90015
90016 2001-09-17  Paul Eggert  <eggert@twinsun.com>
90017
90018         * lib/strtoimax.c (HAVE_LONG_LONG):
90019         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
90020         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
90021         to work around bug in IBM C compiler.
90022
90023 2001-09-17  Jim Meyering  <meyering@lucent.com>
90024
90025         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
90026         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
90027         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
90028         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
90029         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
90030         whenever the right hand side need not be expanded by the shell.
90031
90032 2001-09-16  Paul Eggert  <eggert@twinsun.com>
90033
90034         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
90035         library.  It's not correct, as some older glibcs are buggy.
90036         fnmatch wasn't fixed until glibc 2.2.
90037
90038         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
90039         special shell magic here.
90040
90041 2001-09-16  Jim Meyering  <meyering@lucent.com>
90042
90043         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
90044         * m4/jm-macros.m4: Require it.
90045
90046 2001-09-16  Jim Meyering  <meyering@lucent.com>
90047
90048         * lib/mkdir.c: New file.
90049
90050 2001-09-15  Jim Meyering  <meyering@lucent.com>
90051
90052         * m4/jm-macros.m4: Check for help2man.
90053
90054 2001-09-11  Jim Meyering  <meyering@lucent.com>
90055
90056         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
90057         The body, by Paul Eggert, was moved here from configure.in.
90058         * m4/jm-macros.m4: Require UTILS_HOST_OS.
90059
90060 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90061
90062         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
90063         (jm_PREREQ): Use it.
90064
90065 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90066
90067         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
90068         Use ssize_t, not int, to store result of readlink.
90069         Check for ssize_t overflow as well as size_t overflow,
90070         as POSIX says the result of readlink is implementation-defined
90071         when ssize_t overflows.
90072         Remove unnecessary cast to char*.
90073         Use free+malloc instead of realloc, as the storage doesn't need
90074         to be preserved and it's clearer and can be more efficient that way.
90075         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
90076         * lib/xreadlink.h (xreadlink): Update prototype.
90077
90078 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90079
90080         * lib/xgetcwd.c: Revert some of the previous change; intead,
90081         fix the HAVE_GETCWD_NULL code to behave more like the
90082         !HAVE_GETCWD_NULL code used to.
90083
90084         Include "xalloc.h".
90085         (xgetcwd): Do not return NULL when memory is exhausted; instead,
90086         invoke xalloc_die.
90087
90088 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90089
90090         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
90091         sys/param.h, as pathmax.h includes them.
90092
90093 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90094
90095         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
90096         (jm_PREREQ_XGETCWD): New macro.
90097
90098         * m4/getcwd.m4: New file.
90099
90100 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90101
90102         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
90103         like the HAVE_GETCWD_NULL code.
90104         Include pathmax.h if not HAVE_GETCWD.
90105         Do not include xalloc.h.
90106         (INITIAL_BUFFER_SIZE): New symbol.
90107         Do not use xmalloc / xrealloc, since the caller is responsible for
90108         handling errors.  Preserve errno around `free' during failure.
90109         Do not overrun buffer when using getwd.
90110
90111 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90112
90113         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
90114         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
90115         getcwd (NULL, 0).
90116
90117 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90118
90119         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
90120         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
90121         spotted by Jim Meyering.
90122
90123 2001-09-03  Jim Meyering  <meyering@lucent.com>
90124
90125         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
90126         failure.
90127
90128 2001-09-02  Jim Meyering  <meyering@lucent.com>
90129
90130         * lib/error.c: Update from GNU libc.
90131
90132 2001-09-01  Jim Meyering  <meyering@lucent.com>
90133
90134         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
90135         Used by df.
90136
90137 2001-09-01  Jim Meyering  <meyering@lucent.com>
90138
90139         * lib/xreadlink.c: New file.
90140         * lib/xreadlink.h: New file.
90141         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
90142         xreadlink.h.
90143
90144         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
90145         doesn't conflict with sparc Solaris 7's definition in
90146         /usr/include/sys/int_types.h.
90147
90148         * lib/exclude.c: Use `""', not `<>' to #include non-system header
90149         files.
90150         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
90151         and strncasecmp as r-values.  Unixware didn't have declarations.
90152
90153 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90154
90155         * lib/xstrtol.h: Add copyright notice.
90156         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
90157         LONGINT_INVALID_SUFFIX_CHAR.
90158
90159 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90160
90161         * lib/xstrtol.c (strtoimax): New decl.
90162
90163 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90164
90165         * lib/xgetcwd.c: Don't include pathmax.h.
90166         Include stdlib.h and unistd.h if available.
90167         Include xalloc.h.
90168         (xmalloc, xstrdup, free): Remove decls.
90169         (xgetcwd): Don't assume sizes fit in unsigned.
90170         Check for overflow when computing sizes.
90171         Simplify reallocation code.
90172
90173 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90174
90175         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
90176         a directory's st_size can have an arbitrary value, so the old
90177         usage could waste an arbitrary amount of memory.  All uses
90178         changed.
90179         * lib/savedir.h: Update prototype.
90180
90181 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90182
90183         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
90184
90185         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
90186         old strtoimax.c.
90187
90188         Also, make the following further changes to make this file's
90189         configuration more similar to that of strtol.c:
90190         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
90191         (strtoumax, uintmax_t, strtoull, strtol): Remove.
90192         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
90193         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
90194         changed to signed values.
90195
90196         And make the following changes as well:
90197         Fix copyright notice, as 1999 was missing.
90198         (verify): New macro.
90199         (strtoimax): Check sizes at compile-time, not run-time.
90200         Prefer strtol to strtoll if both work.
90201         (main): Remove; it was not that useful and was a pain to maintain.
90202
90203         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
90204
90205 2001-08-31  Jim Meyering  <meyering@lucent.com>
90206
90207         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
90208         Use an initial, malloc'd, buffer of length 128 rather than
90209         a statically allocated one of length 1024.
90210
90211 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90212
90213         Simplify code, partly by assuming autoconf 2.52 semantics.
90214
90215         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
90216
90217         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
90218         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
90219         All uses removed.
90220         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
90221         Move AC_REQUIRE to next-to-top level, to avoid confusion.
90222         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
90223         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
90224         jm_AC_HEADER_INTTYPES_H.
90225         * m4/jm-macros.m4 (jm_MACROS): Likewise.
90226
90227         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
90228
90229         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90230         Quote first arg of AC_DEFUN.
90231         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
90232         since they are needed to parse the include file even if we need
90233         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
90234         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
90235         but with opposite signedness.
90236
90237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90238
90239         Merge 'exclude' changes from tar 1.13.22.
90240         This fixes one or two unlikely storage allocation overflow bugs,
90241         but doesn't change user-visible behavior otherwise.
90242
90243 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90244
90245         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
90246         (jm_PREREQ_EXCLUDE): New macro.
90247
90248 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90249
90250         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
90251         tm to be declared.
90252
90253 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90254
90255         * lib/hash.c: Remove '2001' from copyright notice.
90256
90257 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90258
90259         * lib/full-write.h: New file.
90260         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
90261         * lib/full-write.c: Correct credits, as cccp.c no longer
90262         exists and anyway it was so heavily changed from the old cccp
90263         code as to be unrecognizable.  Include full-write.h.
90264         (full_write): Return size_t, with short writes meaning failure.
90265         All callers changed.  This fixes a bug with large buffers
90266         on 64-bit hosts.
90267         * lib/utime.c: Include full-write.h.
90268
90269 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90270
90271         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
90272         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
90273         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
90274         Include if available.
90275         (<xalloc.h>): Include
90276         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
90277         (verify): New macro.  Use it to verify that EXCLUDE macros do not
90278         collide with FNM macros.
90279         (struct patopts): New struct.
90280         (struct exclude): Use it, as exclude patterns now come with options.
90281         (new_exclude): Support above changes.
90282         (new_exclude, add_exclude_file):
90283         Initial size must now be a power of two to simplify overflow checking.
90284         (free_exclude, fnmatch_no_wildcards): New function.
90285         (excluded_filename): No longer requires options arg, as the options
90286         are determined by add_exclude.  Now returns bool, not int.
90287         (excluded_filename, add_exclude):
90288         Add support for the fancy new exclusion options.
90289         (add_exclude, add_exclude_file): Now takes int options arg.
90290         Check for arithmetic overflow when computing sizes.
90291         (add_exclude_file): xrealloc might modify errno, so don't
90292         realloc until after errno might be used.
90293
90294         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
90295         New macros.
90296         (free_exclude): New decl.
90297         (add_exclude, add_exclude_file): Now takes int options arg.
90298         (excluded_filename): No longer requires options arg, as the options
90299         are determined by add_exclude.  Now returns bool, not int.
90300
90301 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90302
90303         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
90304
90305 2001-08-27  Jim Meyering  <meyering@lucent.com>
90306
90307         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
90308
90309         * lib/version-etc.c (N_): Remove definition.
90310         Revert most of last change.
90311         Instead, simply don't mark the `Copyright...' string for translation.
90312         Based on advice from Paul Eggert.
90313
90314         * lib/strtoxmax.c: Tweak comment.
90315
90316 2001-08-26  Jim Meyering  <meyering@lucent.com>
90317
90318         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
90319
90320         * m4/xstrtoimax.m4: New file.
90321         * m4/xstrtoumax.m4: Add comments explaining why we
90322         AC_REPLACE_FUNCS(strtol).
90323
90324 2001-08-26  Jim Meyering  <meyering@lucent.com>
90325
90326         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
90327         of copyright with `%s' so translators don't get an untranslated
90328         message in 2002.
90329         (COPYRIGHT_YEAR): Define.
90330         (version_etc): Use fprintf rather than fputs.
90331         Suggestion from Ulrich Drepper.
90332
90333         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
90334
90335         * lib/strtoll.c: New file, from GNU libc.
90336         * lib/xstrtoimax.c: New file.
90337
90338         * lib/xstrtol.h: Add xstrtoimax.
90339         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
90340         * lib/strtoimax.c: New file.  Likewise, but first define
90341         STRTOUXMAX_SIGNED.
90342
90343         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
90344         ...
90345         * lib/strtoxmax.c: ... then renamed to this.
90346
90347 2001-08-18  Paul Eggert  <eggert@twinsun.com>
90348
90349         * m4/inttypes.m4: Add AC_PREREQ(2.13).
90350         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
90351         (jm_AC_TYPE_INTMAX_T): New macro.
90352         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
90353
90354         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
90355
90356         * m4/longlong.m4: Renamed from ulonglong.m4.
90357         * m4/inttypes.m4: Renamed from inttypes_h.m4.
90358         * m4/uintmax_t.m4: Removed.
90359
90360 2001-08-13  Paul Eggert  <eggert@twinsun.com>
90361
90362         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
90363         Port to Solaris 8, where 'sed' requires a space after the 'r'
90364         command, and where sh dislikes "$/".  Clean up the spacing a bit.
90365         Redirect output to $tmp just once.
90366
90367 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
90368
90369         * lib/addext.c (<errno.h>): Include.
90370         (errno): Declare if not defined.
90371         (addext): Work correctly when pathconf returns -1 and leaves
90372         errno alone because there is no limit.  Also, work even if
90373         pathconf returns a value greater than SIZE_MAX.
90374
90375 2001-08-12  Jim Meyering  <meyering@lucent.com>
90376
90377         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
90378         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
90379         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
90380         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
90381         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
90382         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
90383         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
90384         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
90385         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
90386         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
90387         utime.m4, utimes.m4, xstrtoumax.m4:
90388         Quote the first argument in each use of AC_DEFUN.
90389
90390 2001-08-12  Jim Meyering  <meyering@lucent.com>
90391
90392         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
90393         Simply `return getcwd (NULL, 0);'.
90394         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
90395         Use 1300 as initial value for length, not PATH_MAX.
90396
90397         * lib/pathmax.h: Clean up cpp syntax.
90398
90399 2001-08-12  Jim Meyering  <meyering@lucent.com>
90400
90401         * lib/gettimeofday.c: New file.
90402         * lib/gtod.h: New file.
90403         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
90404
90405 2001-08-05  Jim Meyering  <meyering@lucent.com>
90406
90407         * m4/jm-macros.m4: Require autoconf-2.52.
90408
90409 2001-08-04  Jim Meyering  <meyering@lucent.com>
90410
90411         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
90412         stmt, to get in sync with glibc.
90413
90414 2001-08-03  Paul Eggert  <eggert@twinsun.com>
90415
90416         The following changes are from gettext 0.10.39 as maintained by
90417         Bruno Haible.
90418
90419         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
90420         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
90421         with inverted sense.  All uses changed.
90422
90423         * lib/mbswidth.c: Don't include <limits.h>.
90424         Include <stdlib.h> and <string.h> unconditionally.
90425         (iswcntrl, mbsinit, ISCNTRL): New macros.
90426         (mbsnwidth): Use K&R style function declarations.
90427         Don't bother checking for MB_LEN_MAX == 1, since the compiler
90428         can optimize it when MB_CUR_MAX == 1.
90429         The width of control characters is zero, not 1.
90430
90431 2001-08-03  Paul Eggert  <eggert@twinsun.com>
90432
90433         The following changes are from gettext 0.10.39 as maintained by
90434         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
90435
90436         * m4/codeset.m4: Upgrade to serial AM1.
90437         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
90438         all uses changed.  Quote first arg of AC_DEFUN.
90439         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
90440
90441         * m4/iconv.m4: Upgrade to serial AM2.
90442         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
90443         Add --with-libconv-prefix.
90444         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
90445         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
90446         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
90447         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
90448         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
90449
90450         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
90451         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
90452         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
90453         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
90454         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
90455         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
90456         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
90457         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
90458         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
90459
90460         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
90461         string.h any more.
90462
90463         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
90464         not the default value.
90465
90466         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
90467         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
90468         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
90469         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
90470         Also check for iswcntrl, used for wcwidth fallback.
90471         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
90472         to Autoconf 2.13.
90473
90474 2001-08-03  Jim Meyering  <meyering@lucent.com>
90475
90476         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
90477         as it was in the original.  Reported by Paul Eggert.
90478
90479 2001-07-16  Jim Meyering  <meyering@lucent.com>
90480
90481         * m4/gettimeofday.m4: New file.
90482         Prompted by a report from Bernhard Baehr.
90483
90484 2001-07-15  Jim Meyering  <meyering@lucent.com>
90485
90486         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
90487         stuff. Now it's in ../Makefile.cfg.
90488
90489 2001-07-15  Jim Meyering  <meyering@lucent.com>
90490
90491         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
90492         (BUILT_SOURCES): Add unlocked-io.h.
90493         (io_functions): Define.
90494         (unlocked-io.h): New rule.
90495         (DISTCLEANFILES): Add unlocked-io.h.
90496         (all-local): Depend on unlocked-io.h, to ensure it is created.
90497
90498         * lib/unlocked-io.hin: New file
90499
90500         * lib/regex.c: Update from glibc.
90501
90502 2001-07-05  Jim Meyering  <meyering@lucent.com>
90503
90504         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
90505         recommendation.
90506         (libfetish_a_SOURCES): Put all .h files here instead.
90507         Remove a thus-exposed (better checks in automake) duplicate and
90508         two unnecessary .h files.
90509
90510 2001-07-04  Jim Meyering  <meyering@lucent.com>
90511
90512         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
90513         that generates jm-glibc-io.m4 so that it doesn't trigger any make
90514         distcheck failure.
90515
90516 2001-07-02  Jim Meyering  <meyering@lucent.com>
90517
90518         The following changes were prompted by suggestions from Bruno Haible.
90519
90520         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
90521         is now generated.
90522         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
90523         definition of EXTRA_DIST.
90524         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
90525         ensure that the generated file is created/updated whenever the list
90526         of $(unlocked_functions) is changed.
90527         (jm-glibc-io.m4): New rule.
90528         (unlocked-io.h): New rule -- currently unused.
90529
90530 2001-06-24  Jim Meyering  <meyering@lucent.com>
90531
90532         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
90533         unmatched right bracket, rather than kludging it with an extra,
90534         falsely-matching quote in a comment.  Patch by Akim Demaille.
90535
90536 2001-06-11  Jim Meyering  <meyering@lucent.com>
90537
90538         * lib/regex.c: Update from GNU libc.
90539
90540 2001-05-27  Jim Meyering  <meyering@lucent.com>
90541
90542         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
90543         Check for ut_type in struct utmp.
90544
90545 2001-05-27  Jim Meyering  <meyering@lucent.com>
90546
90547         * lib/readutmp.h (UT_TYPE): Define.
90548
90549 2001-05-24  Jim Meyering  <meyering@lucent.com>
90550
90551         * lib/argmatch.c: Include "quote.h".
90552         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
90553         quote function.  Reported by Göran Uddeborg.
90554
90555 2001-05-22  Jim Meyering  <meyering@lucent.com>
90556
90557         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
90558         now that we use the package-supplied version unconditionally.
90559         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
90560
90561 2001-05-21  Jim Meyering  <meyering@lucent.com>
90562
90563         * m4/regex.m4: Change a couple backticks to single quotes to avoid
90564         shell syntax errors.
90565
90566 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
90567
90568         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
90569
90570 2001-05-20  Paul Eggert  <eggert@twinsun.com>
90571
90572         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
90573         Don't bother to check library strftime, since
90574         we'll be using our own my_strftime function anyway.
90575         Define my_strftime instead of strftime.
90576
90577 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
90578
90579         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
90580         which is not yet declared.
90581
90582 2001-05-15  Jim Meyering  <meyering@lucent.com>
90583
90584         * m4/regex.m4: Use proper quoting so brackets appear in the test
90585         program.
90586         Reported by, and with help from, Bruno Haible.
90587
90588 2001-05-13  Jim Meyering  <meyering@lucent.com>
90589
90590         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
90591         undefined.
90592
90593 2001-05-11  Paul Eggert  <eggert@twinsun.com>
90594
90595         dirname code cleanup.  base_name now behaves more compatibly
90596         with POSIX basename when given file names that have trailing
90597         slashes, and similarly for dir_name.  Add new primitives
90598         base_len and dir_len.  Put the directory-name-related decls
90599         into dirname.h.
90600
90601         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
90602         * lib/backupfile.c (base_name): Likewise.
90603         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
90604         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
90605         * lib/makepath.c (strip_trailing_slashes): Likewise.
90606         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
90607         ISSLASH): Likewise.
90608         * lib/rename.c (strip_trailing_slashes): Likewise.
90609         * lib/same.c (base_name): Likewise.
90610         * lib/stripslash.c (ISSLASH): Likewise.
90611
90612         * lib/addext.c: Include <dirname.h> after size_t is defined.
90613         * lib/backupfile.c: Likewise.
90614
90615         * lib/addext.c (addext): Use base_len to trim redundant
90616         trailing slashes instead of doing it ourselves.
90617         But do not trim the last slash if it is not redundant.
90618
90619         * lib/backupfile.c (find_backup_file_name,
90620         max_backup_version): Use base_len instead of rolling it ourselves.
90621         Handle the case of "" and (on DOS) "C:" correctly.
90622
90623         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
90624         needed. Include <string.h>, <dirname.h>.
90625         (base_name): Allow file names ending in slashes, other than names
90626         that are all slashes.  In this case, return the basename followed
90627         by the slashes.  This is more general, and can be used in places
90628         where the original base_name purposely had an assertion failure.
90629         (base_len): New function.
90630
90631         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
90632         Do not include <assert.h>; no longer needed.
90633         Include xalloc.h.
90634         (memrchr): Remove decl.
90635         (dir_name_r): Remove.
90636         (dir_len): Renamed from dirlen.  All callers changed.
90637         Rewrite in terms of base_name, for simplicity and consistency.
90638         (dir_name): Never return NULL.  All callers changed.
90639         Do not include <stdlib.h> in test program; no longer needed.
90640         return 0; is fine for test program.
90641
90642         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
90643         New macros.
90644         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
90645
90646         * lib/path-concat.c (path_concat): Use base_len to compute
90647         base length, not strlen; this means we cannot rely on memcpy
90648         to null-terminate.
90649
90650         * lib/same.c (STREQ): Remove.
90651         (same_name): Handle the case where the basename ends in trailing '/'.
90652
90653         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
90654         a slash was stripped.  Do not strip the last slash after a
90655         file system prefix.
90656
90657 2001-05-11  Paul Eggert  <eggert@twinsun.com>
90658
90659         * lib/Makefile.am (libfetish_a_SOURCES):
90660         Add strftime.c, since we now compile it on all hosts.
90661
90662         * lib/strftime.c (my_strftime):
90663         Define to nstrftime if emacs, but only if my_strftime is not defined.
90664         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
90665         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
90666         Add one more extra argument: a nanoseconds value.
90667         All uses changed.
90668         (ns): New macro.
90669         (my_strftime function): Add %N format.
90670         (emacs_strftimeu): Renamed from emacs_strftime,
90671         with extra ut argument.
90672
90673 2001-05-09  Paul Eggert  <eggert@twinsun.com>
90674
90675         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
90676
90677 2001-04-21  Jim Meyering  <meyering@lucent.com>
90678
90679         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
90680         doesn't interfere.
90681
90682 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
90683
90684         * m4/ftruncate.m4: Check for chsize.
90685         Link with ftruncate.o unconditionally if ftruncate is missing.
90686         This was required when cross-compiling to i586-mingw32msvc.
90687
90688 2001-04-08  Jim Meyering  <meyering@lucent.com>
90689
90690         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
90691         recomputed; that's necessary when the offset spans a DST transition.
90692         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
90693
90694 2001-04-02  Jim Meyering  <meyering@lucent.com>
90695
90696         * lib/regex.h, regex.c: Update from GNU libc.
90697
90698 2001-03-24  Jim Meyering  <meyering@lucent.com>
90699
90700         * m4/jm-macros.m4: Require autoconf-2.49d.
90701
90702 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
90703
90704         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
90705
90706 2001-03-19  Paul Eggert  <eggert@twinsun.com>
90707
90708         * lib/version-etc.c (version_etc_copyright): Update to 2001.
90709
90710 2001-03-17  Jim Meyering  <meyering@lucent.com>
90711
90712         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
90713         now that the version in autoconf is equivalent.
90714         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
90715
90716         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
90717         Suggestion from Akim Demaille.
90718
90719         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
90720         (jm_PREREQ_TEMPNAME): New function.
90721
90722 2001-03-16  Paul Eggert  <eggert@twinsun.com>
90723
90724         * lib/tempname.c (uint64_t): Define to uintmax_t if
90725         not defined, and if UINT64_MAX is not defined.
90726         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
90727         Reported by John David Anglin.
90728
90729 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
90730
90731         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
90732         resolve alias if codeset is empty.
90733         * lib/config.charset (BeOS): Use wildcard syntax.
90734
90735 2001-03-13  Jim Meyering  <meyering@lucent.com>
90736
90737         * lib/path-concat.c (path_concat)
90738         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
90739         concatenating e.g., `C:' and `foo'.
90740         From Bruno Haible.
90741
90742 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90743
90744         * lib/localcharset.c (locale_charset): Don't use
90745         setlocale(LC_CTYPE,NULL). Don't return NULL.
90746         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
90747
90748 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
90749
90750         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
90751         support for DOS/DJGPP.
90752
90753 2001-03-01  Paul Eggert  <eggert@twinsun.com>
90754
90755         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
90756         lacks mkstemp.  Compile our own tempname.c if we compile our own
90757         mkstemp.c, as mkstemp relies on tempname.
90758
90759 2001-03-01  Jim Meyering  <meyering@lucent.com>
90760
90761         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
90762         AH_VERBATIM really does output its argument verbatim.
90763
90764 2001-02-28  Paul Eggert  <eggert@twinsun.com>
90765
90766         * lib/Makefile.am (libfetish_a_SOURCES):
90767         Add dup-safer.c, fopen-safer.c.
90768         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
90769
90770         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
90771         * lib/unistd-safer.h: New files.
90772
90773 2001-02-25  Paul Eggert  <eggert@twinsun.com>
90774
90775         The mkstemp replacement is taken from glibc 2.2.2, with some
90776         portability fixes for use outside glibc, as follows:
90777
90778         * lib/tempname.c (struct_stat64): New macro.
90779         (direxists, __gen_tempname): Use it.
90780         This avoids a portability problem with Solaris 8.
90781
90782         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
90783         (<stddef.h>, <stdint.h>, <string.h>):
90784         Include only if STDC_HEADERS || _LIBC.
90785         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
90786         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
90787         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
90788         (__set_errno): Define this macro if <errno.h> doesn't.
90789         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
90790         Define these macros if <stdio.h> doesn't.
90791         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
90792         Define these macros if <sys/stat.h>
90793         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
90794         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
90795         __xstat64): Define if not _LIBC.
90796         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
90797         (__gen_tempname): Invoke gettimeofday only if
90798         HAVE_GETTIMEOFDAY || _LIBC;
90799         otherwise, fall back on plain "time".
90800         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
90801
90802         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
90803
90804         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
90805
90806 2001-02-18  Paul Eggert  <eggert@twinsun.com>
90807
90808         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
90809
90810 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90811
90812         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
90813         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
90814         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
90815         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90816
90817 2001-02-17  Paul Eggert  <eggert@twinsun.com>
90818
90819         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
90820         Remove workaround macros for hosts that have mbrtowc but not
90821         mbstate_t, as we now insist on proper declarations for both
90822         before using mbrtowc.
90823
90824 2001-02-17  Jim Meyering  <meyering@lucent.com>
90825
90826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
90827         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
90828         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
90829         UnixWare 7.1.1.
90830
90831         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
90832         rather than AC_CACHE_VAL.
90833
90834 2001-02-17  Jim Meyering  <meyering@lucent.com>
90835
90836         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
90837         around included file name.
90838
90839         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
90840
90841         * lib/strftime.c: Update from GNU libc (the only changes were to
90842         comments).
90843
90844 2001-02-17  Jim Meyering  <meyering@lucent.com>
90845
90846         * lib/regex.c: Update from libc.
90847
90848 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
90849
90850         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
90851         clash.
90852
90853 2001-02-16  Paul Eggert  <eggert@twinsun.com>
90854
90855         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
90856         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
90857         Reported by Mark Hounschell via Paul Eggert.
90858
90859 2001-02-07  Jim Meyering  <meyering@lucent.com>
90860
90861         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
90862
90863 2001-02-05  Jim Meyering  <meyering@lucent.com>
90864
90865         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
90866         it includes the patch required for `large file' support with at least
90867         HP-UX's 10.20 /bin/cc.
90868
90869 2001-02-03  Jim Meyering  <meyering@lucent.com>
90870
90871         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
90872         AS_IF, now that it works once again (mysteriously).
90873         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90874
90875 2001-01-30  Jim Meyering  <meyering@lucent.com>
90876
90877         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
90878         * m4/chown.m4: Rename conftestchown to conftest.chown.
90879         * m4/rename.m4: s/conftestdir/conftest.d1/ and
90880         s/conftestdir2/conftest.d2/.
90881         * m4/utimes.m4: s/conftestdata/conftest.data/
90882         Inspired by Pavel Roskin's change in autoconf.
90883
90884 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
90885
90886         * lib/config.charset: Update for FreeBSD 4.2.
90887
90888 2001-01-27  Jim Meyering  <meyering@lucent.com>
90889
90890         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
90891         a use of AS_IF.
90892         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
90893
90894 2001-01-26  Jim Meyering  <meyering@lucent.com>
90895
90896         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
90897         quotearg.c includes it.
90898
90899 2001-01-26  Jim Meyering  <meyering@lucent.com>
90900
90901         * lib/quotearg.c: Include stddef.h.
90902         * lib/quote.c: Include stddef.h.
90903         Reported by Axel Kittenberger.
90904
90905         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
90906         line in double quotes so that it evokes a better diagnostic.
90907         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
90908         Reported by Axel Kittenberger.
90909
90910 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
90911
90912         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
90913         as if it was a `charset'.
90914
90915 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90916
90917         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
90918         has const.
90919
90920 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
90921
90922         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
90923         to avoid a warning.  Add back 'const' to inptr.
90924
90925 2001-01-20  Jim Meyering  <meyering@lucent.com>
90926
90927         Be sure that headers are checked before used in code compiled
90928         for the type checks.
90929         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
90930         In place of that, invoke jm_CHECK_ALL_TYPES.
90931         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
90932         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
90933         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
90934         The check for ssize_t was mistakenly run before the test for unistd.h.
90935
90936         The configure-time check for stdbool.h was missing.
90937         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
90938         (jm_PREREQ_HASH): New function.
90939
90940 2001-01-17  Jim Meyering  <meyering@lucent.com>
90941
90942         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
90943         for autoconf-2.49c.
90944         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
90945
90946 2001-01-16  Jim Meyering  <meyering@lucent.com>
90947
90948         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
90949         From Bruno Haible.
90950
90951 2001-01-14  Jim Meyering  <meyering@lucent.com>
90952
90953         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
90954         foo and bar.  Create conftestdir/ in the script, not in the C code.
90955         Remove directories in the script, not in the C code.
90956         Remove conftestdir{,2} before trying to create the directory.
90957         Make the entire configure script fail if the mkdir fails.
90958
90959 2001-01-14  Jim Meyering  <meyering@lucent.com>
90960
90961         * lib/rename.c: New file.  From Volker Borchert.
90962         Include stdlib.h, string.h or strings.h, and xalloc.h.
90963         Use strip_trailing_slashes rather than open-coding it.
90964
90965 2001-01-03  Paul Eggert  <eggert@twinsun.com>
90966
90967         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
90968
90969 2001-01-03  Jim Meyering  <meyering@lucent.com>
90970
90971         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
90972         of local `inptr' to avoid warning with some system declarations of
90973         iconv.
90974
90975 2001-01-02  Volker Borchert  <bt@teknon.de>
90976
90977         * m4/rename.m4: New file.
90978         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
90979
90980 2001-01-01  Jim Meyering  <meyering@lucent.com>
90981
90982         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
90983         even on systems with utmpx.h.  It's necessary for the declaration of
90984         utmp's ut_user member.  Reported by Andreas Jaeger.
90985
90986         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
90987         available. They are required for the declarations of getgrgid and
90988         getpwuid resp.
90989         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
90990         Reported by Andreas Jaeger.
90991
90992 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
90993
90994         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
90995         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
90996         so `make install' also works in VPATH builds.
90997
90998 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
90999
91000         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
91001         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
91002         can be used in subdirectories.
91003
91004 2000-12-29  Paul Eggert  <eggert@twinsun.com>
91005
91006         * lib/modechange.c: Do not assume that mode_t uses the
91007         traditional octal encoding.  E.g. "chmod 1 FOO" should set
91008         the other-execute bit of FOO even if S_IXOTH != 1.
91009
91010         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
91011         WOTH, XOTH, ALLM): New macros.
91012         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
91013          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
91014         Use them.
91015         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
91016         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
91017         (mode_compile):
91018         No need to use uintmax_t; unsigned long is long enough.
91019         Don't bother to get suffix since we don't use it.
91020
91021 2000-12-26  Jim Meyering  <meyering@lucent.com>
91022
91023         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
91024         better with autoheader.
91025
91026 2000-12-24  Jim Meyering  <meyering@lucent.com>
91027
91028         * lib/hash.c (is_prime): Return explicit boolean values.
91029         (hash_get_first): Return NULL to appease Irix5.6's 89.
91030         Reported by Nelson Beebe.
91031
91032 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
91033
91034         * lib/localcharset.c (locale_charset): Add support for Win32.
91035
91036 2000-12-18  Paul Eggert  <eggert@twinsun.com>
91037
91038         * lib/physmem.h, lib/physmem.c: New files.
91039
91040         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
91041         (noinst_HEADERS): Add physmem.h.
91042
91043         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
91044         't' for compatibility with Solaris 8 sort.
91045
91046 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
91047
91048         * lib/config.charset: Add support for BeOS.
91049
91050 2000-12-17  Jim Meyering  <meyering@lucent.com>
91051
91052         * m4/dos.m4 (jm_AC_DOS): New file and macro.
91053         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
91054
91055 2000-12-16  Jim Meyering  <meyering@lucent.com>
91056
91057         This bug had a serious impact on chown: `chown N:M FILE' (for integer
91058         N and M) would have treated it like `chown N:N FILE'.
91059
91060         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
91061
91062 2000-12-16  Jim Meyering  <meyering@lucent.com>
91063
91064         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
91065         SHELLS_FILE to a file name that's useful on djgpp systems.
91066         Include stdlib.h.
91067         (ADDITIONAL_DEFAULT_SHELLS): Define.
91068         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
91069         Based mostly on a patch from Prashant TR.
91070
91071 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
91072
91073         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
91074         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
91075         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
91076
91077 2000-12-08  Andreas Schwab  <schwab@suse.de>
91078
91079         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
91080         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
91081
91082 2000-12-07  Jim Meyering  <meyering@lucent.com>
91083
91084         * lib/stripslash.c (ISSLASH): Define.
91085         (strip_trailing_slashes): Use ISSLASH rather than comparing against
91086         `/'.
91087         From Prashant TR.
91088
91089         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
91090         (dir_name_r): Declare this function as static.
91091         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
91092         manifest itself on a name containing a mix of slashes and
91093         backslashes.
91094         Make this function work with names starting with a DOS-style
91095         drive letter and colon prefix.
91096         (dir_name): Append `.' if necessary.
91097         Based mostly on patches from Prashant TR and Eli Zaretskii.
91098
91099         * lib/dirname.h (dir_name_r): Remove prototype.
91100
91101 2000-12-06  Paul Eggert  <eggert@twinsun.com>
91102
91103         * m4/off_t-format.m4: Remove this file.
91104         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
91105
91106 2000-12-06  Jim Meyering  <meyering@lucent.com>
91107
91108         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
91109         replacement strtoull, we may well need the replacement strtoul, too.
91110         Check for declarations of strtoul and strtoull.
91111         Check for strtol.  Mainly as a cue to cause automake to include
91112         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
91113         Check for limits.h -- strtol.c needs it.
91114
91115 2000-12-05  Jim Meyering  <meyering@lucent.com>
91116
91117         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
91118
91119 2000-12-04  Jim Meyering  <meyering@lucent.com>
91120
91121         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
91122         Also include memory.h, stdlib.h, unistd.h if appropriate.
91123         Reported by Andreas Jaeger (conflicting declaration of malloc).
91124
91125 2000-12-02  Jim Meyering  <meyering@lucent.com>
91126
91127         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
91128         * m4/jm-macros.m4 (jm_MACROS): require it.
91129
91130 2000-12-02  Jim Meyering  <meyering@lucent.com>
91131
91132         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
91133
91134 2000-12-01  Paul Eggert  <eggert@twinsun.com>
91135
91136         * lib/memrchr.c: Include <config.h> before any system include file.
91137
91138 2000-11-30  Jim Meyering  <meyering@lucent.com>
91139
91140         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
91141
91142 2000-11-30  Jim Meyering  <meyering@lucent.com>
91143
91144         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
91145
91146 2000-11-29  Paul Eggert  <eggert@twinsun.com>
91147
91148         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
91149
91150 2000-11-26  Jim Meyering  <meyering@lucent.com>
91151
91152         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
91153
91154 2000-11-22  Paul Eggert  <eggert@twinsun.com>
91155
91156         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
91157         size of (size_t) -1; it's not portable.
91158
91159 2000-11-17  Jim Meyering  <meyering@lucent.com>
91160
91161         * lib/strstr.c: Update from GNU libc.
91162
91163 2000-11-17  Akim Demaille  <akim@epita.fr>
91164
91165         * lib/obstack.h: Formatting changes.
91166         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
91167         prevent type checking.
91168         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
91169         cast the value to (void *): assigning a `foo *' to a `void *'
91170         variable is valid.
91171         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
91172
91173 2000-11-16  Jim Meyering  <meyering@lucent.com>
91174
91175         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
91176
91177 2000-11-11  Jim Meyering  <meyering@lucent.com>
91178
91179         * lib/error.c: Add a couple #includes, merging from GNU libc version.
91180
91181 2000-11-10  Jim Meyering  <meyering@lucent.com>
91182
91183         * lib/obstack.h: Update from GNU libc.
91184         * lib/obstack.c: Likewise.
91185
91186 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
91187
91188         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
91189
91190 2000-11-06  Paul Eggert  <eggert@twinsun.com>
91191
91192         * lib/getusershell.c (setusershell): Use rewind rather than
91193         fseek/fseeko, to avoid configuration hassles with fseeko.
91194         Don't bother opening SHELLS_FILE if shellstream is NULL;
91195         it's not necessary.
91196
91197 2000-11-05  Jim Meyering  <meyering@lucent.com>
91198
91199         * lib/makepath.h (make_dir): Declare.
91200         * lib/makepath.c (make_dir): Remove `static' attribute.
91201         Tweak a comment.
91202
91203 2000-11-04  Jim Meyering  <meyering@lucent.com>
91204
91205         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
91206
91207 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
91208
91209         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
91210         last one in a bucket, advance to the next bucket.
91211
91212 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
91213
91214         * lib/fnmatch.c: Do not comment out all the code if we are using
91215         the GNU C library, because in some cases we are replacing buggy
91216         code in the GNU C library itself.
91217
91218 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
91219
91220         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
91221         (regex_compile): Catch bogus \(\1\).
91222
91223 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91224
91225         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
91226         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
91227         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
91228
91229 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91230
91231         * lib/error.h, getline.h, modechange.h:
91232         Remove "2000" from Copyright line, as the file hasn't been
91233         changed this year other than in the copyright notice.
91234
91235         * lib/xalloc.h: Add "2000" to Copyright line, as this file
91236         was changed this year.
91237
91238 2000-10-29  Jim Meyering  <meyering@lucent.com>
91239
91240         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
91241         renaming.
91242         * m4/ls-mntd-fs.m4: Likewise
91243
91244 2000-10-29  Jim Meyering  <meyering@lucent.com>
91245
91246         * lib/xstat.in: Fix grammar in comment.
91247
91248 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
91249
91250         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
91251         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
91252         doesn't define __restrict_arr.
91253
91254 2000-10-28  Jim Meyering  <meyering@lucent.com>
91255
91256         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
91257         (jm_PREREQ_MEMCHR): New function.
91258
91259 2000-10-28  Jim Meyering  <meyering@lucent.com>
91260
91261         * lib/memchr.c: Update from libc.
91262         Adjust for portability:
91263         [HAVE_STDLIB_H]: Include stdlib.h.
91264         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
91265         Undef __memchr, too.
91266         [!weak_alias]: Define __memchr to memchr.
91267
91268         * lib/regex.c: Update from libc.
91269         * lib/regex.h: Likewise.
91270         * lib/getopt1.c: Likewise.
91271         * lib/memcmp.c: Likewise.
91272
91273         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
91274         Avoid using fseek, when possible -- it's broken by design.
91275         Patch by Ulrich Drepper.
91276
91277 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
91278
91279         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
91280         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
91281         Giving in to popular pressure to shut up the compiler with casts.
91282
91283 2000-10-26  Jim Meyering  <meyering@lucent.com>
91284
91285         * lib/strftime.c: Update from libc.
91286
91287 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
91288
91289         * regex.c: More `unsigned char' -> `re_char' changes.
91290         Also change several `int' into `re_wchar_t'.
91291         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
91292         (PUSH_FAILURE_POINTER): Don't cast any more.
91293         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
91294         We want GCC to complain, since this piece of code makes
91295         re_match non-reentrant, which *should* be fixed.
91296         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
91297         (EXTEND_BUFFER): Use RETALLOC.
91298         (SET_LIST_BIT): Don't cast.
91299         (re_wchar_t): New type.
91300         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
91301         that those two functions will always properly return.
91302         (IMMEDIATE_QUIT_CHECK): Cast to void.
91303         (analyse_first): Use recursion rather than an explicit stack.
91304         (re_compile_fastmap): Can't fail anymore.
91305         (re_search_2): Don't check re_compile_fastmap for failure.
91306         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
91307         Now also sets the new value (passed in a new argument).
91308         (re_match_2_internal): Use it.
91309         Also, use a new var `reg' of type size_t when looping through regs
91310         rather than reuse the inappropriate `mcnt'.
91311
91312 2000-10-25  Jim Meyering  <meyering@lucent.com>
91313
91314         * lib/obstack.c: Update from libc.
91315
91316 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
91317
91318         * regex.c (regex_compile): Change the way of handling a range from
91319         a char less than 256 to a char not less than 256.
91320
91321 2000-10-24  Andrew Innes  <andrewi@gnu.org>
91322
91323         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
91324         NT-Emacs only.
91325         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
91326         so that re_search functions only quit when callers expect them to.
91327
91328 2000-10-23  Jim Meyering  <meyering@lucent.com>
91329
91330         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
91331         wrong.  That set_locale call must not have any side effects.
91332         From Paul Eggert.
91333
91334 2000-10-22  Jim Meyering  <meyering@lucent.com>
91335
91336         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
91337         [CYCLIC]: Remove now-unused definition.
91338
91339         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
91340         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
91341         Suggestion from Ulrich Drepper.
91342
91343 2000-10-21  Jim Meyering  <meyering@lucent.com>
91344
91345         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
91346         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
91347         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
91348
91349 2000-10-21  Jim Meyering  <meyering@lucent.com>
91350
91351         * lib/dirname.c (memrchr): Declare if necessary.
91352         (dir_name): Remove the restriction that there be no
91353         trailing slashes.  Now, this code skips past them, effectively
91354         ignoring them.
91355         [TEST_DIRNAME] (main): New unit tests.
91356
91357         * lib/memrchr.c: New file from GNU libc.
91358         Undef __memrchr, too.
91359         [!weak_alias]: Define __memrchr to memrchr.
91360         Guard weak_alias use with `#ifdef weak_alias'.
91361
91362 2000-10-21  Jim Meyering  <meyering@lucent.com>
91363
91364         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
91365         (dir_name): Use dir_name_r.
91366         * lib/dirname.h (dir_name_r): Declare it.
91367
91368 2000-10-17  Jim Meyering  <meyering@lucent.com>
91369
91370         * lib/quote.h (PARAMS): Define and use.
91371         Reported by Akim Demaille.
91372
91373         * lib/getopt.c: Update from libc.
91374
91375 2000-10-16  Jim Meyering  <meyering@lucent.com>
91376
91377         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
91378         setlocale.
91379         From Jan Fedak.
91380
91381 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
91382
91383         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
91384
91385 2000-09-25  Jim Meyering  <meyering@lucent.com>
91386
91387         * lib/md5.h (rol): Define (from GnuPG).
91388
91389         * lib/sha.c: Give credit (GnuPG) where due.
91390         (M): Use rol rather than open-coding it.
91391         Add a FIXME comment.
91392
91393 2000-09-21  Jim Meyering  <meyering@lucent.com>
91394
91395         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
91396         Reported by Michael Stone.
91397
91398 2000-09-20  Jim Meyering  <meyering@lucent.com>
91399
91400         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
91401         (noinst_HEADERS): Add sha.h.
91402         Based on code from Scott G. Miller and from GnuPG.
91403
91404 2000-09-18  Jim Meyering  <meyering@lucent.com>
91405
91406         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
91407         LIBS. Otherwise, everyone ends up linking with -lelf for some
91408         configurations.
91409         Reported by Mike Stone.
91410
91411 2000-09-15  Jim Meyering  <meyering@lucent.com>
91412
91413         * lib/regex.c: Update from libc.
91414
91415 2000-09-10  Jim Meyering  <meyering@lucent.com>
91416
91417         * lib/getopt.c (_getopt_internal): Update from glibc.
91418
91419 2000-09-09  Jim Meyering  <meyering@lucent.com>
91420
91421         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
91422         think it should be used as a general replacement for isascii.
91423         * lib/fnmatch.c: Likewise.
91424         * lib/mbswidth.c: Likewise
91425         * lib/regex.c: Likewise.
91426
91427         Don't use atoi.
91428         * lib/userspec.c: Include sys/param.h and limits.h.
91429         Include xstrtol.h.
91430         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91431         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
91432         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
91433         UID, GID.  Check range.
91434
91435 2000-09-06  Jim Meyering  <meyering@lucent.com>
91436
91437         * lib/getopt.c (_getopt_internal): Update from glibc.
91438
91439 2000-08-30  Jim Meyering  <meyering@lucent.com>
91440
91441         * lib/strftime.c: Merge in changes from GNU libc.
91442
91443 2000-08-26  Jim Meyering  <meyering@lucent.com>
91444
91445         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
91446         * m4/fpending.m4: New file.
91447
91448 2000-08-26  Jim Meyering  <meyering@lucent.com>
91449
91450         * lib/closeout.c: Include "__fpending.h".
91451         (close_stdout_status): Return right away if there's nothing to flush.
91452
91453         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
91454         * lib/__fpending.c: New file.
91455         * lib/__fpending.h: New file.
91456
91457 2000-08-20  Jim Meyering  <meyering@lucent.com>
91458
91459         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
91460         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
91461         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
91462
91463 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
91464
91465         Improve fileutils installation on systems where running
91466         programs (like install) can't be unlinked.
91467         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
91468         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
91469
91470 2000-08-07  Paul Eggert  <eggert@twinsun.com>
91471
91472         Standardize on "memory exhausted" instead of "Memory exhausted"
91473         or "virtual memory exhausted".
91474         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
91475         "virtual memory exhausted".
91476         * lib/same.c (same_name): Invoke xalloc_die instead of printing
91477         our own message.
91478         * lib/userspec.c (parse_user_spec): Likewise.
91479         * lib/bumpalloc.h: comment fix
91480         * lib/same.c, userspec.c: Include xalloc.h.
91481
91482         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
91483         not char *const and pointing to a constant array.
91484         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
91485         (xrealloc): Comment fix.
91486
91487         * lib/userspec.c (parse_user_spec):
91488         Don't translate a message until just before returning,
91489         to avoid unnecessary translation.
91490
91491 2000-08-07  Jim Meyering  <meyering@lucent.com>
91492
91493         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
91494         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
91495         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
91496         getgroups.c, gethostname.c, getopt.h, group-member.c,
91497         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
91498         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
91499         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
91500         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
91501         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
91502         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
91503         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
91504         yesno.c: Back out Copyright date changes for each file with no change
91505         this year.  This eases coordination with other programs using the same
91506         source code modules.  From Paul Eggert.
91507
91508 2000-08-06  Paul Eggert  <eggert@twinsun.com>
91509
91510         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
91511         not char, for compatibility with glibc 2.1.3 strftime.c.
91512
91513 2000-08-03  Greg McGary  <greg@mcgary.org>
91514
91515         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
91516         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
91517         (EXTEND_BUFFER): Use them.
91518
91519 2000-08-01  Jim Meyering  <meyering@lucent.com>
91520
91521         * lib/dirname.c (ISSLASH): Define.
91522         (BACKSLASH_IS_PATH_SEPARATOR): Define.
91523         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
91524         both `\' and `/' may be use as path separators.
91525         Based on a patch from Prashant TR.
91526
91527 2000-07-31  Paul Eggert  <eggert@twinsun.com>
91528
91529         * lib/quotearg.c (quotearg_n_options): Don't make the initial
91530         slot vector a constant, since it might get modified.
91531
91532 2000-07-31  Jim Meyering  <meyering@lucent.com>
91533
91534         * lib/xmalloc.c: Use `virtual memory exhausted', not
91535         `Memory exhausted'.
91536         * lib/obstack.c (print_and_abort): Likewise.
91537
91538 2000-07-30  Paul Eggert  <eggert@twinsun.com>
91539
91540         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
91541         buffer, so that the caller can always quote one small
91542         component of a "memory exhausted" message in slot 0.
91543         From a suggestion by Jim Meyering.
91544
91545 2000-07-30  Jim Meyering  <meyering@lucent.com>
91546
91547         * lib/makepath.c (make_path): Quote the other instance, too.
91548
91549         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
91550         (STATIC_BUF_SIZE): Define.
91551         (quotearg_n_options): Use only statically allocated storage when
91552         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
91553         than STATIC_BUF_SIZE.
91554
91555 2000-07-29  Jim Meyering  <meyering@lucent.com>
91556
91557         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
91558         * lib/dirname.c (dir_name): Likewise.
91559
91560         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
91561         `/'.
91562
91563         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
91564         (dir_name): Assert that there are no trailing slashes.
91565
91566 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
91567
91568         * lib/mbswidth.h (mbswidth): Add a flags argument.
91569         (mbswidth): New declaration.
91570         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
91571         * lib/mbswidth.c (mbswidth): Add a flags argument.
91572         (mbsnwidth): New function.
91573
91574 2000-07-24  Jim Meyering  <meyering@lucent.com>
91575
91576         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
91577
91578 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91579
91580         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
91581
91582 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91583
91584         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
91585         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
91586         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
91587         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
91588         invoke multibyte primitives.
91589
91590 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91591
91592         * lib/quotearg.c:
91593         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
91594         so that mbstate_t is always defined.
91595
91596         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
91597         be 1 in at least one GCC installation, and this configuration
91598         error is likely to be common.  Ignoring MB_LEN_MAX hurts
91599         performance on hosts that have mbrtowc but have only unibyte
91600         locales, but I assume these hosts are rare.
91601
91602 2000-07-23  Paul Eggert  <eggert@twinsun.com>
91603
91604         * lib/mbswidth.c (_XOPEN_SOURCE):
91605         Don't define; this causes problems on Solaris 7.
91606         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
91607
91608 2000-07-23  Jim Meyering  <meyering@lucent.com>
91609
91610         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
91611         too: getgrgid, getpwuid, getuid.
91612
91613 2000-07-23  Jim Meyering  <meyering@lucent.com>
91614
91615         * lib/basename.c (base_name): Add an assertion.
91616
91617 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
91618
91619         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
91620         shadow its mbsinit function.
91621
91622 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
91623
91624         * lib/mbswidth.h: New file.
91625         * lib/mbswidth.c: New file.
91626         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
91627         (noinst_HEADERS): Add mbswidth.h.
91628
91629 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
91630
91631         * lib/config.charset: Add support for FreeBSD. Improve support for
91632         HP-UX and IRIX 6.
91633
91634 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
91635
91636         * m4/mbswidth.m4: New file.
91637         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
91638
91639 2000-07-15  Jim Meyering  <meyering@lucent.com>
91640
91641         * lib/makepath.c: Include quote.h.
91642         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
91643         corresponding argument in a `quote (...)' call.
91644         Give better diagnostics.
91645
91646         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
91647         (noinst_HEADERS): Add quote.h.
91648
91649         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
91650         from tar's src/misc.c.
91651         * lib/quote.h: New file.  Prototypes for same.
91652
91653 2000-07-14  Paul Eggert  <eggert@twinsun.com>
91654
91655         From a suggestion by Bruno Haible.
91656         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
91657         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
91658         to decide whether to define the BeOS workaround macro;
91659         this adjusts to the change to AC_MBSTATE_T.
91660
91661 2000-07-14  Jim Meyering  <meyering@lucent.com>
91662
91663         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
91664         jm_AC_TYPE_UINTMAX_T.
91665
91666 2000-07-13  Paul Eggert  <eggert@twinsun.com>
91667
91668         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
91669
91670         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
91671         quotearg_buffer_restyled): Add support for
91672         clocale_quoting_style.  Undo previous change to
91673         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
91674         and "{RIGHT QUOTATION MARK}" msgids.
91675
91676 2000-07-10  Paul Eggert  <eggert@twinsun.com>
91677
91678         From a suggestion by Bruno Haible.
91679         * m4/mbstate_t.m4 (AC_MBSTATE_T):
91680         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
91681         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
91682         and mbstate_t, to a single-part test that simply defines mbstate_t.
91683         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
91684         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
91685
91686 2000-07-10  Jim Meyering  <meyering@lucent.com>
91687
91688         * m4/strerror_r.m4: Mirror the correction made in autoconf.
91689
91690         * m4/gnu-source.m4: Output to confdefs.h directly.
91691         Suggestion from Akim Demaille.
91692
91693 2000-07-09  Paul Eggert  <eggert@twinsun.com>
91694
91695         The old behavior of quoting `like this' doesn't look good with
91696         newer, ISO-style fonts.  See:
91697         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
91698
91699         Instead, quote "like this" by default.  Let the translator
91700         tailor the locale-specific quoting behavior by providing
91701         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
91702
91703         * lib/quotearg.c (N_): New macro.
91704         (gettext_default): New function.
91705         (quotearg_buffer_restyled): Use
91706         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
91707         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
91708
91709 2000-07-09  Jim Meyering  <meyering@lucent.com>
91710
91711         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
91712         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
91713
91714         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
91715         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
91716
91717 2000-07-09  Jim Meyering  <meyering@lucent.com>
91718
91719         * lib/Most files: Update copyright dates to include 2000.
91720
91721 2000-07-08  Jim Meyering  <meyering@lucent.com>
91722
91723         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
91724         if not defined.
91725         (xgethostname): Remove now-unnecessary #ifdef.
91726         Move declaration of `err' into loop where it's used.
91727
91728 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91729         and Bruno Haible  <haible@clisp.cons.org>
91730
91731         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
91732         only if the test for an object-type mbstate_t fails.  This
91733         prevents us from mistakenly reporting that mbstate_t is a
91734         system object type after we "#define mbstate_t int" to work
91735         around its lack.
91736
91737 2000-07-05  Paul Eggert  <eggert@twinsun.com>
91738         and Bruno Haible  <haible@clisp.cons.org>
91739
91740         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
91741
91742 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91743
91744         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
91745         to strerror_r.
91746         Include <ctype.h> for use of isalpha.
91747
91748 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91749
91750         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
91751         by allocating a larger buffer. Test the gethostname return value for
91752         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
91753         returns an error and ENAMETOOLONG isn't defined.
91754
91755 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
91756
91757         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
91758         dimension.
91759
91760 2000-07-04  Jim Meyering  <meyering@lucent.com>
91761
91762         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
91763         of the deprecated AC_CHECKING.
91764
91765 2000-07-04  Jim Meyering  <meyering@lucent.com>
91766
91767         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
91768         Reported by Bruno Haible.
91769
91770 2000-07-04  Jim Meyering  <meyering@lucent.com>
91771
91772         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
91773         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
91774         lacks mbrtowc.
91775
91776 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91777
91778         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
91779         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
91780
91781 2000-07-03  Paul Eggert  <eggert@twinsun.com>
91782         and Bruno Haible  <haible@clisp.cons.org>
91783
91784         * lib/quotearg.c (mbrtowc):
91785         Assign to *pwc, and return 1 only if result is nonzero.
91786         (iswprint): Use ISPRINT when substituting our own mbrtowc.
91787
91788 2000-07-03  Jim Meyering  <meyering@lucent.com>
91789
91790         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
91791
91792 2000-07-03  Jim Meyering  <meyering@lucent.com>
91793
91794         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
91795         This is necessary to get a definition of e.g., UTMP_FILE on
91796         HP-UX 10.20.
91797         From Bob Proulx.
91798
91799 2000-07-02  Jim Meyering  <meyering@lucent.com>
91800
91801         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
91802
91803         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
91804         AC_LIBOBJ(function_name).
91805         * m4/chown.m4: Likewise.
91806         * m4/fnmatch.m4: Likewise.
91807         * m4/ftruncate.m4: Likewise.
91808         * m4/getgroups.m4: Likewise.
91809         * m4/getline.m4: Likewise.
91810         * m4/group-member.m4: Likewise.
91811         * m4/jm-macros.m4: Likewise.
91812         * m4/lstat.m4: Likewise.
91813         * m4/malloc.m4: Likewise.
91814         * m4/memcmp.m4: Likewise.
91815         * m4/nanosleep.m4: Likewise.
91816         * m4/putenv.m4: Likewise.
91817         * m4/realloc.m4: Likewise.
91818         * m4/regex.m4: Likewise.
91819         * m4/stat.m4: Likewise.
91820         * m4/strftime.m4: Likewise.
91821
91822 2000-07-02  Jim Meyering  <meyering@lucent.com>
91823
91824         * lib/quotearg.c (mbstate_t): Don't define here.
91825
91826 2000-07-02  Jim Meyering  <meyering@lucent.com>
91827
91828         * lib/nanosleep.c (SIGCONT): Define if not already defined.
91829
91830 2000-07-01  Jim Meyering  <meyering@lucent.com>
91831
91832         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
91833
91834 2000-07-01  Jim Meyering  <meyering@lucent.com>
91835
91836         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
91837         problem.
91838
91839 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91840
91841         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
91842         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
91843
91844 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
91845
91846         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
91847         per change in ../m4/ls-mntd-fs.m4.
91848         (read_filesystem_list): Ignore symbolic links.
91849
91850 2000-06-29  Jim Meyering  <meyering@lucent.com>
91851
91852         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
91853         for declaration of strcmp.
91854
91855         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
91856
91857         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
91858         Avoid warning by casting result to `char *' to remove `const'.
91859
91860 2000-06-28  Jim Meyering  <meyering@lucent.com>
91861
91862         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
91863         included by quotearg.c, for which we perform this test.  From
91864         Bruno Haible.
91865
91866 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91867
91868         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
91869         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
91870         <utmpx.h> exists, put readutmp.o into LIBOBJS.
91871
91872 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
91873
91874         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
91875
91876 2000-06-26  Paul Eggert  <eggert@twinsun.com>
91877
91878         savedir now sets errno on failure and invokes xmalloc to get memory.
91879         Fix a couple of other minor bugs while we're at it.
91880
91881         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
91882         (NAMLEN): Remove macro.
91883         (malloc, realloc): Remove decls.
91884         (stpcpy): Likewise.
91885         ("xalloc.h"): Include.
91886         (NAME_SIZE_DEFAULT): New macro.
91887         (savedir): Use xmalloc / xrealloc to allocate memory.
91888         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
91889         Skip "" directory entries.
91890         Use strlen to calculate directory entry length, since the old method
91891         is rarely used these days and isn't worth supporting.
91892         Don't use a pointer after freeing it.
91893         Check for integer overflow when calculating allocation size.
91894         Use memcpy to copy entries, instead of stpcpy.
91895         Set errno properly when returning NULL.
91896         Check for readdir error.
91897
91898 2000-06-26  Jim Meyering  <meyering@lucent.com>
91899
91900         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
91901
91902 2000-06-25  Jim Meyering  <meyering@lucent.com>
91903
91904         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
91905         Linux header bug when _XOPEN_SOURCE is defined to 500.
91906
91907 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91908
91909         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
91910         deficiency.
91911
91912 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
91913
91914         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
91915         Include xalloc.h.
91916         Don't include <stdlib.h>.  Don't declare malloc, realloc.
91917
91918 2000-06-24  Jim Meyering  <meyering@lucent.com>
91919
91920         * m4/strerror_r.m4: Revive this file -- to try out an experimental
91921         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
91922         for which strerror does return char*, but which lacks a conveniently
91923         accessible declaration of the function.  If the compile-test says
91924         strerror_r doesn't work, then resort to a `run'-test that works on
91925         BeOS and segfaults on DEC Unix.
91926
91927 2000-06-24  Jim Meyering  <meyering@lucent.com>
91928
91929         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
91930
91931 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91932
91933         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
91934         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
91935
91936 2000-06-23  Paul Eggert  <eggert@twinsun.com>
91937
91938         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
91939         (mbrtowc, mbstate_t): Define substitutes if
91940         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
91941         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
91942         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
91943
91944 2000-06-23  Jim Meyering  <meyering@lucent.com>
91945
91946         * m4/afs.m4: Add missing AC_MSG_RESULT.
91947         Reported by Bruno Haible.
91948
91949         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
91950         Suggestion from Bruno Haible.
91951
91952 2000-06-23  Jim Meyering  <meyering@lucent.com>
91953
91954         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
91955
91956 2000-06-21  Jim Meyering  <meyering@lucent.com>
91957
91958         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
91959
91960 2000-06-21  Jim Meyering  <meyering@lucent.com>
91961
91962         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
91963         (noinst_HEADERS): Add getstr.h.
91964
91965         * lib/getline.c (getstr): Move into a separate file.
91966         * lib/getstr.c (getstr): New file, extracted from getline.c, with
91967         the following changes: new parameter, delim2; both delim[12]
91968         parameters have type `int', not `char'.  The latter would lose
91969         with 8-bit delimiters.
91970         * lib/getstr.h: New file.
91971
91972 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91973
91974         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
91975         than 1024, return a memory chunk of least possible size, instead
91976         of size PATH_MAX + 2. In the loop, increment the size proportionally.
91977         Use free/xmalloc instead of xrealloc to avoid copying for very long
91978         paths.
91979
91980 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91981
91982         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
91983         the empty string.
91984
91985 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
91986
91987         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
91988         address, not strdup.  Include <stdlib.h> and don't declare free().
91989
91990 2000-06-19  Jim Meyering  <meyering@lucent.com>
91991
91992         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
91993
91994 2000-06-18  Jim Meyering  <meyering@lucent.com>
91995
91996         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
91997
91998         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
91999         `checking whether...' message to be consistent with that of the
92000         lstat test.
92001
92002 2000-06-18  Jim Meyering  <meyering@lucent.com>
92003
92004         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
92005         Besides, these days every porting target provides a mkdir function.
92006
92007         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
92008         needed. (this snippet comes from src/system.h).
92009
92010 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
92011
92012         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
92013
92014 2000-06-15  Paul Eggert  <eggert@twinsun.com>
92015
92016         * lib/human.c (adjust_value): New function.
92017         (human_readable_inexact): Apply rounding style even when
92018         printing approximate values.
92019
92020 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92021
92022         * lib/human.c (human_readable_inexact): Allow an input block
92023         size that is not a multiple of the output block size, and vice versa.
92024         Reported by Piergiorgio Sartor.
92025
92026 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92027
92028         * lib/getdate.y (get_date): Apply relative times after time
92029         zone indicator, not before.  Reported by Todd A. Jacobs.
92030
92031 2000-06-13  Jim Meyering  <meyering@lucent.com>
92032
92033         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
92034
92035         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
92036
92037 2000-06-12  Paul Eggert  <eggert@twinsun.com>
92038
92039         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
92040
92041 2000-06-12  Jim Meyering  <meyering@lucent.com>
92042
92043         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
92044         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
92045         optional argument.
92046         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
92047         the optional argument, `lib'.
92048
92049 2000-06-08  Jim Meyering  <meyering@lucent.com>
92050
92051         * m4/largefile.m4: Remove file (now that it's part of autoconf).
92052
92053 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92054
92055         Rewrite largefile configuration so that we don't need to run
92056         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
92057         AC_CANONICAL_HOST in configure.in -- jmm]
92058
92059         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
92060         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
92061         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
92062         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
92063         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
92064         All uses changed.
92065         Instead of inspecting the output of getconf, try to compile the
92066         test program without and with the macro definition.
92067         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
92068         for getconf.  Instead, check for the needed flags by compiling
92069         test programs.
92070
92071 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92072
92073         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
92074
92075 2000-06-04  Jim Meyering  <meyering@lucent.com>
92076
92077         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
92078         SunOS 4.1.4 for which gid_t is an unsigned type.
92079
92080 2000-06-03  Jim Meyering  <meyering@lucent.com>
92081
92082         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
92083         now that autoconf requires that.
92084
92085         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
92086         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
92087         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
92088
92089 2000-06-03  Jim Meyering  <meyering@lucent.com>
92090
92091         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
92092
92093 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92094
92095         * m4/glibc21.m4: New file.
92096         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
92097
92098 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92099
92100         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
92101         newer, don't install charset.alias.
92102         * lib/config.charset: Change the Linux/glibc rules so they become empty
92103         on glibc-2.1 or newer.
92104
92105 2000-06-02  Jim Meyering  <meyering@lucent.com>
92106
92107         * lib/mountlist.c: Back out last change.  Instead, do this...
92108         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
92109         me_dummy member using the same `ignore'-testing code.
92110         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
92111         fs_type strings.
92112         From Mark D. Roth.
92113
92114 2000-05-29  Jim Meyering  <meyering@lucent.com>
92115
92116         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
92117         mounts with the `ignore' attribute.  Based on a patch from
92118         Mark D. Roth.
92119
92120 2000-05-28  Jim Meyering  <meyering@lucent.com>
92121
92122         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
92123         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92124         * m4/stat.m4: Likewise.
92125         * m4/lstat.m4: Likewise.
92126         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
92127
92128         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
92129         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
92130
92131 2000-05-26  Jim Meyering  <meyering@lucent.com>
92132
92133         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
92134
92135 2000-05-24  Jim Meyering  <meyering@lucent.com>
92136
92137         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
92138         autoconf requires that.
92139         * m4/lib-check.m4: Likewise.
92140         * m4/jm-macros.m4: Likewise.
92141         * m4/strftime.m4: Likewise.
92142
92143         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
92144         AC_CHECK_DECLS, now that autoconf requires that.
92145
92146 2000-05-22  Jim Meyering  <meyering@lucent.com>
92147
92148         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92149         * m4/lstat.m4: Likewise.
92150
92151 2000-05-22  Jim Meyering  <meyering@lucent.com>
92152
92153         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
92154
92155 2000-05-20  Jim Meyering  <meyering@lucent.com>
92156
92157         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
92158         (jm_PREREQ): Use it.
92159
92160 2000-05-18  Jim Meyering  <meyering@lucent.com>
92161
92162         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
92163         back, too, since it may have been modified by allocate_entry.
92164         (hash_delete): Rewrite to use neither the assignment operator
92165         nor the comma operator in an if-expression.
92166
92167 2000-05-15  Paul Eggert  <eggert@twinsun.com>
92168
92169         * lib/closeout.c:
92170         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
92171         Remove; no longer needed.
92172         "quotearg.h": Add include.
92173         (file_name): Do not bother to explicitly initialize to NULL; it's less
92174         efficient on some hosts.
92175         (close_stdout_status): Remove test as to whether stdout was already
92176         closed; it breaks for the case "echo x | sort >&-".
92177         Quote file name colons.
92178         Do not assume that _("write error") lacks format strings.
92179
92180 2000-05-15  Jim Meyering  <meyering@lucent.com>
92181
92182         * lib/version-etc.c (version_etc_copyright): Update the copyright
92183         string used in all --version output.
92184
92185 2000-05-14  Jim Meyering  <meyering@lucent.com>
92186
92187         * lib/closeout.c (close_stdout_set_file_name): New function.
92188         (close_stdout_status): Use new file-scoped global.
92189         Return right away if fstat says the stdout file descriptor is invalid.
92190         * lib/closeout.h (close_stdout_set_file_name): Declare.
92191
92192 2000-05-10  Jim Meyering  <meyering@lucent.com>
92193
92194         * lib/closeout.c [default_exit_status]: New file-scoped variable.
92195         (close_stdout_set_status): New function.
92196         * lib/closeout.h (close_stdout_set_status): Declare.
92197
92198 2000-05-09  Jim Meyering  <meyering@lucent.com>
92199
92200         * m4/gettext.m4: Rename this...
92201         * m4/libintl.m4: ...to this.
92202
92203 2000-05-08  Jim Meyering  <meyering@lucent.com>
92204
92205         * lib/long-options.c: Don't include closeout.h.
92206         (parse_long_options): Don't call close_stdout for --version.
92207
92208 2000-05-06  Paul Eggert  <eggert@twinsun.com>
92209
92210         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
92211         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
92212         2.1.3 bug.  This avoids a clash when files like regex.c define
92213         _GNU_SOURCE.
92214
92215 2000-05-06  Jim Meyering  <meyering@lucent.com>
92216
92217         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
92218         (AC_REPLACE_FUNCS): Add strnlen.
92219
92220         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
92221         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
92222
92223         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
92224         AC_SEARCH_LIBS call for nanosleep.
92225         (LIB_NANOSLEEP): Set and AC_SUBST.
92226
92227 2000-05-06  Jim Meyering  <meyering@lucent.com>
92228
92229         * lib/strnlen.c: Undefine __strnlen and strnlen.
92230         [!weak_alias]: Define __strnlen to strnlen.
92231
92232         * lib/atexit.c: New file, from libiberty.
92233
92234 2000-05-06  Jim Meyering  <meyering@lucent.com>
92235
92236         * lib/closeout.c (close_stdout_status): Also check for errors on the
92237         stderr stream.
92238
92239 2000-05-05  Jim Meyering  <meyering@lucent.com>
92240
92241         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
92242         AC_SEARCH_LIBS call for clock_gettime.
92243         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
92244
92245         * m4/search-libs.m4: Update from autoconf.
92246
92247         su doesn't work on Solaris 2.6.
92248         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
92249         <shadow.h>.  Reported by Dragos Harabor.
92250
92251 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
92252
92253         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
92254         memcpy instead of xmalloc, xrealloc, path_concat.
92255         (locale_charset): Treat empty environment variables as absent.
92256         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
92257
92258 2000-05-04  Jim Meyering  <meyering@lucent.com>
92259
92260         * lib/getopt.c: Update from glibc.
92261         * lib/obstack.c: Likewise.
92262         * lib/obstack.h: Likewise.
92263         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
92264         file
92265
92266         * lib/regex.h: Likewise.
92267         * lib/strndup.c: Likewise.
92268         * lib/strnlen.c: New file, from glibc.
92269
92270 2000-05-03  Jim Meyering  <meyering@lucent.com>
92271
92272         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
92273
92274 2000-05-02  Paul Eggert  <eggert@twinsun.com>
92275
92276         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
92277         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
92278         compile-time test, rather than inspecting host and OS, to
92279         decide whether to define _LARGEFILE_SOURCE.
92280
92281 2000-05-01  Jim Meyering  <meyering@lucent.com>
92282
92283         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
92284
92285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
92286         Based on a patch from Bruno Haible.
92287
92288 2000-05-01  Jim Meyering  <meyering@lucent.com>
92289
92290         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
92291
92292 2000-04-29  Jim Meyering  <meyering@lucent.com>
92293
92294         * lib/path-concat.c: Declare strdup only if it's not defined.
92295         * lib/canon-host.c: Likewise.
92296
92297 2000-04-28  Jim Meyering  <meyering@lucent.com>
92298
92299         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
92300         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
92301         is included first, then limits.h is included by locale.h by libintl.h.
92302         From John David Anglin.
92303
92304 2000-04-25  Jim Meyering  <meyering@lucent.com>
92305
92306         * lib/makepath.c (S_IRWXUGO): Define.
92307         (make_path): Always perform explicit chmod if MODE specifies any
92308         of the `special' permission bits.  Prompted by a bug report against
92309         install from Mate Wierdl and Joost van Baal.
92310
92311 2000-04-18  Jim Meyering  <meyering@lucent.com>
92312
92313         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
92314         (jm_PREREQ): Use it.
92315
92316 2000-04-18  Jim Meyering  <meyering@lucent.com>
92317
92318         * lib/README: New file.
92319
92320         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
92321         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
92322
92323 2000-04-17  Jim Meyering  <meyering@lucent.com>
92324
92325         Get it right :-)
92326         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
92327         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
92328         Suggestion from Akim Demaille.
92329
92330 2000-04-17  Jim Meyering  <meyering@lucent.com>
92331
92332         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
92333         the definition of it to rpl_strftime also defined-away the system's
92334         declaration.
92335
92336 2000-04-15  Jim Meyering  <meyering@lucent.com>
92337
92338         Use `C' to denote so-called `contiguous' files, the same way
92339         that tar does.
92340         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
92341         (ftypelet): Use S_ISCTG.
92342         From Michael Deutschmann.
92343
92344 2000-04-14  Jim Meyering  <meyering@lucent.com>
92345
92346         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
92347         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
92348         clobbered.
92349
92350 2000-04-14  Jim Meyering  <meyering@lucent.com>
92351
92352         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
92353
92354 2000-04-13  Jim Meyering  <meyering@lucent.com>
92355
92356         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
92357         AH_VERBATIM to insert required #ifndef into config.h.in.
92358         Suggestion from Akim Demaille.
92359
92360 2000-04-12  Jim Meyering  <meyering@lucent.com>
92361
92362         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
92363         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
92364         Christian Krackowizer.
92365
92366         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
92367         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
92368         (AC_SYS_LARGEFILE): Require.
92369         (AM_C_PROTOTYPES): Require.
92370
92371 2000-04-08  Jim Meyering  <meyering@lucent.com>
92372
92373         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
92374         names don't conflict.  Reported by Eli Zaretskii.
92375
92376 2000-04-07  Jim Meyering  <meyering@lucent.com>
92377
92378         * lib/putenv.c: Move inclusion of errno.h so it follows that of
92379         sys/types.h, to work around system header problems on AIX 3.2.5.
92380         From Bruno Haible.
92381
92382 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
92383
92384         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
92385         bug.  Deal with the different error behavior of Irix iconv.
92386
92387 2000-04-05  Paul Eggert  <eggert@twinsun.com>
92388
92389         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
92390         IRIX if the installer said otherwise.
92391
92392 2000-04-05  Jim Meyering  <meyering@lucent.com>
92393
92394         Portability tweaks required for ultrix4.3.
92395         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
92396         (jm_CHECK_DECLS): Add getutent to the list of functions.
92397         (_jm_DECL_HEADERS): Add utmpx.h.
92398         From John David Anglin.
92399
92400         * m4/strftime.m4: Back out the 2000-04-02 change.
92401         Instead of that change, simply undefine putenv in the test program.
92402
92403 2000-04-05  Jim Meyering  <meyering@lucent.com>
92404
92405         Portability tweaks required for ultrix4.3.
92406         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
92407         getutent.
92408         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
92409         * lib/canon-host.c: Declare strdup.
92410         * lib/path-concat.c: Likewise.
92411         From John David Anglin.
92412
92413 2000-04-04  Jim Meyering  <meyering@lucent.com>
92414
92415         Be more DOS 8.3-friendly.
92416         * lib/ref-add.sin: Renamed from ref-add.sed.in.
92417         * lib/ref-del.sin: Renamed from ref-del.sed.in.
92418         * lib/Makefile.am: Reflect renaming.
92419         Reported by Eli Zaretskii.
92420
92421         Use a temporary file name that won't clash with `charset.alias'
92422         in the DOS 8.3 name space.
92423         * lib/Makefile.am (charset_tmp): Define.
92424         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
92425         (uninstall-local): Likewise.
92426         Reported by Eli Zaretskii.
92427
92428 2000-04-03  Jim Meyering  <meyering@lucent.com>
92429
92430         * m4/gettext.m4: Fix typo in comment.
92431
92432         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
92433         textutils/configure.in).  Suggestion from Paul Eggert.
92434         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
92435
92436 2000-04-02  Paul Eggert  <eggert@twinsun.com>
92437
92438         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
92439         variable in the shell rather than using putenv, which isn't
92440         portable.  This avoids the configure-time inter-test dependency
92441         on the potentially-renamed putenv function.
92442
92443 2000-03-30  Paul Eggert  <eggert@twinsun.com>
92444
92445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
92446         before checking struct stat.st_blksize, so that
92447         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
92448
92449 2000-03-29  Paul Eggert  <eggert@twinsun.com>
92450
92451         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
92452         since strftime.c uses HAVE_STRFTIME to decide whether to use
92453         the underlying strftime.
92454
92455 2000-03-29  Paul Eggert  <eggert@twinsun.com>
92456
92457         * lib/time/strftime.c (my_strftime): Make sure we call the system
92458         strftime, not ourselves, when invoking the underlying strftime.
92459
92460 2000-03-24  Jim Meyering  <meyering@lucent.com>
92461
92462         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
92463         (charset_alias): Define.
92464         (install-exec-local): Factor out common code.
92465         (uninstall-local): Split lines longer than 80.
92466         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
92467         (SUFFIXES): Define.
92468         (.sed.in.sed): New rule.  Don't redirect directly to $@.
92469         (CLEANFILES): Add ref-add.sed and ref-del.sed.
92470
92471 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
92472
92473         * lib/config.charset: Output a line containing "Packages using this
92474         file".
92475         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
92476         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
92477         ref-del.sed): New rules.
92478
92479 2000-03-17  Jim Meyering  <meyering@lucent.com>
92480
92481         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
92482         Otherwise, include <strings.h>
92483
92484 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
92485
92486         * lib/unicodeio.c (utf8_wctomb): New function.
92487         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
92488         format instead of in UCS-4 with platform dependent endianness.
92489
92490 2000-03-10  Jim Meyering  <meyering@lucent.com>
92491
92492         * m4/lib-check.m4: Look for getspnam in -lgen, too.
92493         From Marco Franzen.
92494
92495 2000-03-07  Paul Eggert  <eggert@twinsun.com>
92496
92497         * lib/savedir.c (savedir): Work even if directory size is
92498         negative; this can happen with some screwy NFS configurations.
92499
92500 2000-03-06  Jim Meyering  <meyering@lucent.com>
92501
92502         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
92503         if it's NULL (because we ran out of memory).  From Bruno Haible.
92504
92505 2000-03-05  Jim Meyering  <meyering@lucent.com>
92506
92507         * lib/localcharset.c ("path-concat.h"): Include.
92508         (get_charset_aliases): Use path_concat instead of ANSI string
92509         concatenation.
92510
92511         * lib/unicodeio.h (PARAMS): Define.
92512         Use it to guard prototype.
92513
92514 2000-03-04  Jim Meyering  <meyering@lucent.com>
92515
92516         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
92517         for lib/localcharset.c.
92518
92519 2000-03-04  Jim Meyering  <meyering@lucent.com>
92520
92521         * lib/Makefile.am (install-exec-local): Create $(libdir) before
92522         installing into it.
92523         (uninstall-local): Uncomment this rule so `make distcheck' works
92524         once again.
92525
92526         * lib/unicodeio.c (<errno.h>): Include it.
92527         (errno): Declare if not defined.
92528
92529         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
92530
92531         * lib/config.charset: New version, incorporating remarks from a linux
92532         i18n mailing list.  From Bruno Haible.
92533
92534 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
92535
92536         * m4/codeset.m4: New file.
92537         * m4/iconv.m4: New file.
92538         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
92539
92540 2000-03-03  Jim Meyering  <meyering@lucent.com>
92541
92542         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
92543
92544 2000-03-02  Jim Meyering  <meyering@lucent.com>
92545
92546         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
92547         the messages come out on separate lines.
92548
92549         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
92550         rather than jm_CHECK_DECLARATIONS.
92551         * m4/decl.m4: Remove now-unused file.
92552
92553         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
92554         geteuid.
92555
92556 2000-03-02  Jim Meyering  <meyering@lucent.com>
92557
92558         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
92559
92560 2000-03-01  Jim Meyering  <meyering@lucent.com>
92561
92562         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
92563         * lib/unicodeio.c: Likewise.
92564
92565 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
92566
92567         * lib/config.charset: New file.
92568         * lib/localcharset.c: New file.
92569         * lib/unicodeio.h, lib/unicodeio.c: New files.
92570         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
92571         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
92572         (noinst_HEADERS): Add unicodeio.h.
92573         (all-local, install-exec-local, charset.alias): New targets.
92574
92575 2000-02-28  Paul Eggert  <eggert@twinsun.com>
92576
92577         * lib/quotearg.c (ALERT_CHAR): New macro.
92578         (quotearg_buffer_restyled): Use it.
92579
92580 2000-02-27  Jim Meyering  <meyering@lucent.com>
92581
92582         * m4/check-decl.m4: Add getenv to the list.
92583
92584 2000-02-27  Jim Meyering  <meyering@lucent.com>
92585
92586         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
92587         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
92588
92589         * lib/backupfile.c: Guard inclusion of stdlib.h with
92590         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
92591         Declare malloc if needed.
92592
92593         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
92594         `#ifndef HAVE_DECL..'
92595         now that autoconf always defines the HAVE_DECL_ symbols.
92596         * lib/human.c: Likewise.
92597         * lib/same.c: Likewise.
92598         * lib/strtoumax.c: Likewise.
92599
92600         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
92601         declaration check was not run.
92602         * lib/hash.c: Likewise.
92603         * lib/human.c: Likewise.
92604         * lib/same.c: Likewise.
92605         * lib/strtoumax.c: Likewise.
92606
92607         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
92608         `.', then first look up the entire `.'-containing string as a login
92609         name.
92610
92611 2000-02-23  Jim Meyering  <meyering@lucent.com>
92612
92613         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
92614         in place of my hack.
92615
92616 2000-02-18  Paul Eggert  <eggert@twinsun.com>
92617
92618         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
92619         (textint): New typedef.
92620         (parser_control): Member year changed from int to textint.
92621         All uses changed.
92622         (YYSTYPE): Removed; replaced by %union with int and textint members.
92623         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
92624         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
92625         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
92626         (tSNUMBER, tUNUMBER): Now of type <textintval>.
92627         (date, number, to_year): Use width of number in digits, not its value,
92628         to determine whether it's a 2-digit year, or a 2-digit time.
92629         (yylex): Store number of digits of numeric tokens.
92630         Reported by John Kendall.
92631
92632         (parser_control): Changed from struct parser_control to typedef (for
92633         consistency).  All uses changed.
92634
92635         (tID): Removed; not used.
92636         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
92637
92638 2000-02-14  Paul Eggert  <eggert@twinsun.com>
92639
92640         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
92641         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
92642
92643 2000-02-12  Jim Meyering  <meyering@lucent.com>
92644
92645         * lib/userspec.c (ISDIGIT): Define it.
92646         (isdigit): Remove definition.
92647         (is_number): Use ISDIGIT, not isdigit.
92648         <libintl.h>: Include.
92649         (_ and N_): Define.
92650         (parse_user_spec): Mark translatable strings.
92651
92652 2000-02-10  Jim Meyering  <meyering@lucent.com>
92653
92654         With these changes, nanosleep.[ch] are finally enough like the other
92655         lib/* replacement files to compile on a few more losing systems.
92656
92657         * lib/nanosleep.h: Don't include config.h.
92658         Remove prototype from declaration of nanosleep.
92659         (PARAMS): Remove now-unneeded definition.
92660         * lib/nanosleep.c: #undef nanosleep.
92661         (rpl_nanosleep): Rename from nanosleep.
92662
92663 2000-02-10  Jim Meyering  <meyering@lucent.com>
92664
92665         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
92666         gnu_nanosleep to rpl_nanosleep.
92667
92668 2000-02-09  Jim Meyering  <meyering@lucent.com>
92669
92670         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
92671         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
92672
92673 2000-02-08  Akim Demaille  <akim@epita.fr>
92674
92675         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
92676         `[' and `]' and remove uses of `changequote'.
92677         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
92678         (AC_SYS_LARGEFILE): Likewise.
92679         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
92680         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
92681         of changequote.
92682         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
92683         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
92684         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
92685         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
92686
92687 2000-02-05  Jim Meyering  <meyering@lucent.com>
92688
92689         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
92690         Remove explicit use of AC_HEADER_TIME.  It is required by
92691         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
92692         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
92693         in autoconf whereby the expansion of the latter ended up preceding
92694         the expansion of its prerequisite, AC_HEADER_TIME.
92695         Reported by Volker Borchert.
92696
92697 2000-02-03  Jim Meyering  <meyering@lucent.com>
92698
92699         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
92700
92701 2000-02-03  Jim Meyering  <meyering@lucent.com>
92702
92703         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
92704         rather than with `#if HAVE_UTMPNAME'.
92705
92706 2000-02-02  Jim Meyering  <meyering@lucent.com>
92707
92708         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
92709         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
92710         Reported by Eli Zaretskii.
92711
92712 2000-02-01  Jim Meyering  <meyering@lucent.com>
92713
92714         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
92715
92716 2000-01-31  Jim Meyering  <meyering@lucent.com>
92717
92718         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
92719         functions.  Add the time.h and sys/time.h headers along with the
92720         AC_REQUIRE'ment of AC_HEADER_TIME.
92721
92722 2000-01-31  Jim Meyering  <meyering@lucent.com>
92723
92724         * lib/nanosleep.h (nanosleep): Guard declaration with
92725         `#if ! HAVE_DECL_NANOSLEEP'.
92726         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
92727         the declaration in that vendor's sys/timers.h.
92728         Reported by Christian Krackowizer.
92729
92730         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
92731         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
92732         (ISPRINT): Likewise.
92733         Reported by Tom Tromey.
92734
92735 2000-01-30  Jim Meyering  <meyering@lucent.com>
92736
92737         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
92738
92739         * m4/prereq.m4 (utmp_includes): Define.
92740         Check for ut_user and ut_name members in both struct utmpx
92741         and struct utmp.
92742
92743 2000-01-30  Jim Meyering  <meyering@lucent.com>
92744
92745         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
92746         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
92747         header files where only utmpx.ut_user is declared.
92748
92749         * lib/readutmp.h (UT_USER): Define.
92750
92751 2000-01-29  Jim Meyering  <meyering@lucent.com>
92752
92753         * m4/lib-check.m4: New file containing library-related checks from
92754         fileutils and sh-utils (textutils had none).
92755
92756 2000-01-28  Jim Meyering  <meyering@lucent.com>
92757
92758         * m4/perl.m4: Change format of warning message to look more like that
92759         from the missing script.  Suggestion from François Pinard.
92760
92761 2000-01-25  Jim Meyering  <meyering@lucent.com>
92762
92763         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
92764         well as time.h in the compile check.
92765         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
92766         Fix typo in cross-compiling case: s/yes/no/.
92767
92768 2000-01-23  Jim Meyering  <meyering@lucent.com>
92769
92770         * m4/jm-macros.m4: Move df-related tests here from
92771         fileutils/configure.in
92772
92773         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
92774         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
92775
92776         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
92777         s/space/ac_fsusage_space/.
92778         (jm_FILE_SYSTEM_USAGE): Take two parameters.
92779
92780         * m4/ftruncate.m4: New file (derived from part of
92781         fileutils/configure.in).
92782         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
92783         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
92784
92785         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
92786         AC_SUBST these here, rather than just in sh-util/configure.in, so
92787         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
92788         all the same.
92789         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
92790         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
92791         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
92792         (AC_SUBST(POW_LIBM)): Likewise.
92793         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
92794
92795 2000-01-23  Jim Meyering  <meyering@lucent.com>
92796
92797         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
92798         obstack.c.
92799
92800 2000-01-22  Jim Meyering  <meyering@lucent.com>
92801
92802         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
92803
92804         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
92805
92806         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
92807         configure.in
92808         (AC_CHECK_HEADERS): Likewise for sh-utils.
92809         (AC_CHECK_HEADERS): Likewise for textutils.
92810         Merge the three lists of headers.
92811
92812         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
92813         from fileutils' configure.in.
92814
92815         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
92816         code. Moved tests into their own function (_jm_DECL_HEADERS) in
92817         check-decl.m4.
92818
92819         * m4/check-decl.m4: Use #if rather than #ifdef.
92820         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
92821         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
92822         (_jm_DECL_HEADERS): Define new function.
92823         (jm_CHECK_DECLARATIONS): Require it.
92824
92825 2000-01-22  Jim Meyering  <meyering@lucent.com>
92826
92827         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
92828         [! HAVE_DECL_STRTOULL]: Declare strtoull.
92829         Required for some AIX systems.  Reported by Christian Krackowizer.
92830         [TESTING] (main): New function.
92831
92832         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
92833         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
92834         letters.
92835
92836         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
92837         iswprint.
92838
92839         * lib/strverscmp.c (ISDIGIT): Define.
92840         (strverscmp): Use ISDIGIT, not isdigit.
92841
92842 2000-01-19  Jim Meyering  <meyering@lucent.com>
92843
92844         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
92845         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
92846         defines `struct timespec' in <sys/time.h>
92847
92848         * m4/c-bs-a.m4: Remove uses of changequote altogether.
92849         Thanks to Akim for explaining.
92850
92851 2000-01-17  Paul Eggert  <eggert@twinsun.com>
92852
92853         * lib/nanosleep.c (nanosleep):
92854         Don't use SA_INTERRUPT to decide whether to call sigaction, as
92855         POSIX.1 doesn't require SA_INTERRUPT and some systems
92856         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
92857         it's been part of POSIX.1 since day 1 (in 1988).
92858
92859 2000-01-17  Jim Meyering  <meyering@lucent.com>
92860
92861         * lib/interlock: Remove unused file.  Reported by François Pinard.
92862
92863 2000-01-16  Paul Eggert  <eggert@twinsun.com>
92864
92865         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
92866         alert, backslash, formfeed, and vertical tab unnecessarily in
92867         shell quoting style.
92868
92869 2000-01-16  Jim Meyering  <meyering@lucent.com>
92870
92871         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
92872         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
92873         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
92874         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
92875
92876 2000-01-16  Jim Meyering  <meyering@lucent.com>
92877
92878         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
92879         because the latter didn't work.
92880
92881 2000-01-15  Jim Meyering  <meyering@lucent.com>
92882
92883         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
92884         (AC_REPLACE_FUNCS): Add memcpy and memset.
92885         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
92886         Add strpbrk.
92887         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
92888
92889 2000-01-12  Jim Meyering  <meyering@lucent.com>
92890
92891         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
92892         (jm_PREREQ): Use it.
92893         (jm_PREREQ_READUTMP): New macro.
92894         (jm_PREREQ): Use it.
92895
92896 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92897
92898         Quote multibyte characters correctly.
92899         * m4/c-bs-a.m4: New file.
92900         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
92901         (jm_PREREQ): Use it.
92902
92903 2000-01-11  Paul Eggert  <eggert@twinsun.com>
92904
92905         * m4/uintmax_t.m4: Port to autoconf 2.13.
92906
92907 2000-01-08  Jim Meyering  <meyering@ascend.com>
92908
92909         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
92910         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
92911
92912 2000-01-04  Jim Meyering  <meyering@ascend.com>
92913
92914         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
92915         jm_STRUCT_DIRENT_D_TYPE.
92916         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
92917         jm_STRUCT_DIRENT_D_INO.
92918         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
92919         jm_STRUCT_UTIMBUF.
92920         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
92921         renamings.
92922         * m4/utime.m4: Likewise.
92923
92924         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
92925         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
92926
92927 2000-01-03  Paul Eggert  <eggert@twinsun.com>
92928
92929         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
92930         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
92931
92932 2000-01-02  Jim Meyering  <meyering@ascend.com>
92933
92934         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
92935         remember if this is necessary.
92936
92937 1999-12-26  Jim Meyering  <meyering@ascend.com>
92938
92939         * m4/jm-macros.m4: Use it here.
92940         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
92941
92942 1999-12-23  Jim Meyering  <meyering@ascend.com>
92943
92944         * m4/jm-macros.m4: Check for clock_gettime (moved from
92945         fileutils/configure.in)
92946         Check for gettimeofday.
92947
92948 1999-12-20  Jim Meyering  <meyering@ascend.com>
92949
92950         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
92951         autoconf-2.14a-1999-12-20.
92952
92953 1999-12-19  Jim Meyering  <meyering@ascend.com>
92954
92955         * m4/lstat-slash.m4: New file.
92956         * m4/jm-macros.m4: Use the new macro:
92957         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92958
92959 1999-12-07  Jim Meyering  <meyering@ascend.com>
92960
92961         * m4/perl.m4: Require that File::Compare be available, too.
92962         Too many systems seem to lack it.
92963
92964         * m4/strftime.m4: Add checks for most of the cpp macros tested in
92965         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
92966
92967 1999-11-18  Paul Eggert  <eggert@twinsun.com>
92968
92969         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
92970         problem with the QNX 4.25 shell, which doesn't propagate exit
92971         status of failed commands inside shell assignments.
92972
92973 1999-11-17  Jim Meyering  <meyering@ascend.com>
92974
92975         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
92976
92977 1999-11-07  Jim Meyering  <meyering@ascend.com>
92978
92979         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
92980
92981 1999-11-06  Jim Meyering  <meyering@ascend.com>
92982
92983         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
92984         * m4/jm-macros.m4 (jm_MACROS): Use it here.
92985
92986 1999-11-05  Jim Meyering  <meyering@ascend.com>
92987
92988         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
92989         configure.in of textutils, fileutils, and sh-utils into this one
92990         (shared between those packages) file.
92991         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
92992         AC_STRUCT_ST_BLKSIZE.
92993
92994 1999-11-03  Jim Meyering  <meyering@ascend.com>
92995
92996         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
92997         of AC_CHECK_TYPE checks includes unistd.h.
92998         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
92999         Suggestion from Akim Demaille.
93000
93001 1999-10-30  Jim Meyering  <meyering@ascend.com>
93002
93003         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
93004         m4-quoted string.
93005         * m4/ls-mntd-fs.m4: Likewise.
93006         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
93007         * m4/jm-winsz1.m4: Likewise.
93008
93009         * m4/const.m4: Remove file, since the fix made it into the experimental
93010         version of autoconf.
93011         * m4/mktime.m4: Likewise.
93012
93013         * m4/check-type.m4: Remove file, now that the latest version of
93014         AC_CHECK_TYPE takes a third arg to specify additional #includes.
93015
93016         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
93017         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
93018         AC_CHECK_TYPE.
93019
93020 1999-10-04  Jim Meyering  <meyering@ascend.com>
93021
93022         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
93023
93024 1999-09-22  Paul Eggert  <eggert@twinsun.com>
93025
93026         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
93027         2.95.1 bug with HP-UX 10.20.
93028
93029 1999-09-17  Jim Meyering  <meyering@ascend.com>
93030
93031         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
93032         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
93033         due to missing strdup (against sh-utils-2.0).
93034
93035 1999-08-29  Jim Meyering  <meyering@ascend.com>
93036
93037         * m4/jm-macros.m4: Require jm_BISON.
93038         * m4/bison.m4: New file.
93039
93040 1999-08-17  Paul Eggert  <eggert@twinsun.com>
93041
93042         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
93043         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
93044
93045 1999-08-05  Jim Meyering  <meyering@ascend.com>
93046
93047         * m4/getline.m4: Rename test file from conftestdata to conftest.data
93048         to avoid conflicts with `conftest' on 8+3 filesystems.
93049         Suggestion from Eli Zaretskii.
93050
93051 1999-08-04  Jim Meyering  <meyering@ascend.com>
93052
93053         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
93054         fileutils and sh-utils (textutils's getline test was inadequate).
93055         (AM_FUNC_GETLINE): Run this test.
93056         (AC_CHECK_FUNCS): Check for getdelim.
93057         Reported by Bob Proulx.
93058
93059 1999-08-02  Jim Meyering  <meyering@ascend.com>
93060
93061         * m4/jm-macros.m4: Add a comment.
93062
93063 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93064
93065         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
93066         <inttypes.h> defines strtoumax as a macro (and not as a
93067         function).
93068
93069 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93070
93071         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
93072         that we can shift, multiply and divide unsigned long long
93073         values; Ultrix cc can't do it.
93074
93075 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93076
93077         * m4/mktime.m4: New file, which is a preview of what should appear
93078         in the next public autoconf release.
93079
93080 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93081
93082         * m4/lfs.m4: Remove this file.
93083         * m4/largefile.m4: New file.  It contains the old contents of
93084         lfs.m4, except that all names with prefix AC_LFS have been
93085         changed to use the prefix AC_SYS_LARGEFILE instead, to be
93086         compatible with future autoconf versions.  Also, some minor m4
93087         quoting problems have been fixed.
93088
93089 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93090
93091         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
93092         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
93093         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
93094         and simplify the shell code.
93095
93096 1999-08-01  Jim Meyering  <meyering@ascend.com>
93097
93098         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
93099         m4.
93100
93101 1999-07-20  Jim Meyering  <meyering@ascend.com>
93102
93103         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
93104
93105 1999-07-15  Jim Meyering  <meyering@ascend.com>
93106
93107         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
93108
93109 1999-05-22  Jim Meyering  <meyering@ascend.com>
93110
93111         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
93112
93113 1999-05-20  Jim Meyering  <meyering@ascend.com>
93114
93115         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
93116         Add a colon after each `then' in case $4 is empty.
93117
93118 1999-05-16  Jim Meyering  <meyering@ascend.com>
93119
93120         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
93121
93122 1999-05-10  Jim Meyering  <meyering@ascend.com>
93123
93124         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
93125
93126         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
93127         AC_FUNC_MKTIME.
93128
93129 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
93130
93131         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
93132
93133 1999-05-04  Paul Eggert  <eggert@twinsun.com>
93134
93135         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
93136         not CPPFLAGS, so that linking works correctly in IRIX.
93137
93138 1999-04-30  Paul Eggert  <eggert@twinsun.com>
93139
93140         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
93141
93142 1999-04-20  Paul Eggert  <eggert@twinsun.com>
93143
93144         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
93145         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
93146         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
93147         jm_AC_TYPE_UNSIGNED_LONG_LONG.
93148         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
93149
93150         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
93151
93152 1999-04-20  Jim Meyering  <meyering@ascend.com>
93153
93154         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
93155         AC_REPLACE xstroull if necessary.  From Paul Eggert.
93156         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
93157
93158 1999-04-18  Jim Meyering  <meyering@ascend.com>
93159
93160         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
93161         * m4/jm-macros.m4: Use it.
93162
93163 1999-04-06  Jim Meyering  <meyering@ascend.com>
93164
93165         * m4/strftime.m4: Remove test for %f.
93166
93167 1999-03-29  Jim Meyering  <meyering@ascend.com>
93168
93169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
93170         superset of the AC_TYPE_* checks in the textutils, fileutils,
93171         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
93172         AC_TYPE_PID_T.
93173
93174 1999-03-28  Jim Meyering  <meyering@ascend.com>
93175
93176         * m4/jm-macros.m4: Define GNU_PACKAGE here.
93177         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
93178         replaced e.g., in the *.sh files of the sh-utils.
93179
93180 1999-03-20  Jim Meyering  <meyering@ascend.com>
93181
93182         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
93183         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
93184         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
93185
93186 1999-03-19  Jim Meyering  <meyering@ascend.com>
93187
93188         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
93189
93190 1999-03-12  Jim Meyering  <meyering@ascend.com>
93191
93192         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
93193
93194 1999-03-07  Jim Meyering  <meyering@ascend.com>
93195
93196         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
93197         declared.
93198
93199 1999-02-17  Jim Meyering  <meyering@ascend.com>
93200
93201         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
93202         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
93203
93204 1999-02-07  Jim Meyering  <meyering@ascend.com>
93205
93206         * m4/group-member.m4: New file -- extracted from sh-utils'
93207         configure.in.
93208
93209         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
93210         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
93211
93212 1999-02-06  Jim Meyering  <meyering@ascend.com>
93213
93214         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
93215         * m4/fnmatch.m4: Likewise.
93216         * m4/getgroups.m4: Likewise.
93217         * m4/lstat.m4: Likewise.
93218         * m4/malloc.m4: Likewise.
93219         * m4/putenv.m4: Likewise.
93220         * m4/realloc.m4: Likewise.
93221         * m4/regex.m4: Likewise.
93222         * m4/stat.m4: Likewise.
93223         * m4/strftime.m4: Likewise.
93224         Suggestion from Alain Magloire.
93225
93226         * m4/chown.m4: Use `.$ac_objext', not `.o'.
93227         * m4/fnmatch.m4: Likewise.
93228         * m4/getgroups.m4: Likewise.
93229         * m4/getline.m4: Likewise.
93230         * m4/lstat.m4: Likewise.
93231         * m4/malloc.m4: Likewise.
93232         * m4/memcmp.m4: Likewise.
93233         * m4/putenv.m4: Likewise.
93234         * m4/realloc.m4: Likewise.
93235         * m4/regex.m4: Likewise.
93236         * m4/stat.m4: Likewise.
93237         * m4/strftime.m4: Likewise.
93238         Suggestion from Alain Magloire.
93239
93240         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
93241         an argument.
93242
93243         * m4/regex.m4: Add a run-time Test for proper operation of
93244         re_compile_pattern.
93245
93246 1999-01-31  Jim Meyering  <meyering@ascend.com>
93247
93248         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
93249
93250 1999-01-30  Jim Meyering  <meyering@ascend.com>
93251
93252         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
93253
93254         * m4/jm-mktime.m4: Make this a wrapper around the official
93255         AM_FUNC_MKTIME rather than my private copy, now that the official one
93256         is up to date.
93257         * m4/mktime.m4: Remove file.
93258
93259         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
93260         * m4/uptime.m4: Likewise.
93261         * m4/uintmax_t.m4: Likewise.
93262
93263 1999-01-28  Jim Meyering  <meyering@ascend.com>
93264
93265         * m4/jm-macros.m4: Use jm_AFS.
93266         * m4/afs.m4: New file (from fileutils' configure.in).
93267
93268         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
93269         * m4/chown.m4: Likewise.
93270         * m4/d-ino.m4: Likewise.
93271         * m4/d-type.m4: Likewise.
93272         * m4/fnmatch.m4: Likewise.
93273         * m4/getgroups.m4: Likewise.
93274         * m4/gettext.m4: Likewise.
93275         * m4/jm-mktime.m4: Likewise.
93276         * m4/jm-winsz2.m4: Likewise.
93277         * m4/lcmessage.m4: Likewise.
93278         * m4/ls-mntd-fs.m4: Likewise.
93279         * m4/malloc.m4: Likewise.
93280         * m4/memcmp.m4: Likewise.
93281         * m4/putenv.m4: Likewise.
93282         * m4/realloc.m4: Likewise.
93283         * m4/st_mtim.m4: Likewise.
93284         * m4/strftime.m4: Likewise.
93285
93286 1999-01-16  Jim Meyering  <meyering@ascend.com>
93287
93288         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
93289         (ARGMATCH_DIE_DECL): Define.
93290
93291 1999-01-12  Jim Meyering  <meyering@ascend.com>
93292
93293         * m4/Makefile.am.in: Rewrite to avoid using fmt.
93294         Reported by Lars Hecking.
93295
93296 1999-01-10  Jim Meyering  <meyering@ascend.com>
93297
93298         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
93299         gross kludge.
93300         * m4/inttypes_h.m4: Likewise.
93301         * m4/lstat.m4: Likewise.
93302         * m4/malloc.m4: Likewise.
93303         * m4/readdir.m4: Likewise.
93304         * m4/realloc.m4: Likewise.
93305         * m4/st_dm_mode.m4: Likewise.
93306         * m4/stat.m4: Likewise.
93307         * m4/utimbuf.m4: Likewise.
93308         * m4/utimes.m4: Likewise.
93309
93310         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
93311         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
93312         comments in config.h.in are meaningful.
93313
93314         * m4/jm-macros.m4: Require autoconf-2.13 here.
93315
93316         * m4/regex.m4: By default, don't use the included regex.c on systems
93317         with glibc 2.  Suggestion from Uli Drepper.
93318
93319 1999-01-02  Jim Meyering  <meyering@ascend.com>
93320
93321         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
93322
93323 1998-12-18  Jim Meyering  <meyering@ascend.com>
93324
93325         * m4/Makefile.am.in (Makefile.am): Simplify rule.
93326         Based on a suggestion from Lars Hecking.
93327
93328 1998-11-16  Paul Eggert  <eggert@twinsun.com>
93329
93330         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
93331
93332 1998-11-16  Jim Meyering  <meyering@ascend.com>
93333
93334         * m4/lfs.m4: Double-quote the `uname...` expression.
93335
93336 1998-11-14  Jim Meyering  <meyering@ascend.com>
93337
93338         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
93339         * m4/stat.m4: Likewise.
93340
93341 1998-11-03  Jim Meyering  <meyering@ascend.com>
93342
93343         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
93344         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
93345
93346 1998-10-18  Jim Meyering  <meyering@ascend.com>
93347
93348         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
93349
93350 1998-10-17  Jim Meyering  <meyering@ascend.com>
93351
93352         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
93353         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
93354         calls for those previously hard-coded headers.  Instead, take a new
93355         parameter.
93356         (jm_CHECK_DECLARATIONS): Reflect interface change.
93357         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
93358         (jm_CHECK_DECL_LOCALTIME_R): New macro.
93359
93360         * m4/mktime.m4: Test for spring-forward gap before long-running test.
93361
93362 1998-10-14  Jim Meyering  <meyering@ascend.com>
93363
93364         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
93365         instead of "TZ=America/Vancouver".  From Paul Eggert.
93366
93367 1998-10-11  Jim Meyering  <meyering@ascend.com>
93368
93369         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
93370         This adds a test for a recently added compatibility fix for mktime.c.
93371         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
93372
93373 1998-09-27  Jim Meyering  <meyering@ascend.com>
93374
93375         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
93376
93377         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
93378         ../configure.in, including a change from Gordon Matzigkeit to allow
93379         cross-compiling for the Hurd.
93380
93381         * m4/glibc.m4: New file/macro to test for the GNU C Library
93382         versions 1 and 2.  From Gordon Matzigkeit.
93383         Indent.
93384
93385 1998-09-21  Jim Meyering  <meyering@ascend.com>
93386
93387         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
93388
93389 1998-08-18  Paul Eggert  <eggert@twinsun.com>
93390
93391         Port nanosecond-resolution times to UnixWare 2.1.2 and
93392         pedantic Solaris 2.6.
93393
93394         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
93395         AC_STRUCT_ST_MTIM.
93396         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
93397         Generate name of ns member, instead of just 1 or undef.
93398         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
93399
93400 1998-08-15  Jim Meyering  <meyering@ascend.com>
93401
93402         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
93403         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
93404         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
93405         instead of jm_TYPE_SSIZE_T.
93406
93407 1998-08-12  Jim Meyering  <meyering@ascend.com>
93408
93409         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
93410
93411 1998-08-02  Jim Meyering  <meyering@ascend.com>
93412
93413         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
93414         in acconfig.h manually.
93415
93416 1998-07-31  Paul Eggert  <eggert@twinsun.com>
93417
93418         * m4/st_mtim.m4: New file.
93419
93420 1998-07-28  Jim Meyering  <meyering@ascend.com>
93421
93422         * m4/utimes.m4: Undef stat.
93423
93424 1998-07-25  Jim Meyering  <meyering@ascend.com>
93425
93426         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
93427         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
93428
93429 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
93430
93431         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
93432         uid and gid actually remain unchanged.
93433
93434 1998-07-07  Jim Meyering  <meyering@ascend.com>
93435
93436         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
93437
93438 1998-07-04  Jim Meyering  <meyering@ascend.com>
93439
93440         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
93441         to prove that this macro can be used in packages without regex.c.
93442
93443 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
93444
93445         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
93446         is to be used.
93447
93448 1998-07-03  Jim Meyering  <meyering@ascend.com>
93449
93450         * m4/gettext.m4: Add -lintl if it's found to be necessary.
93451
93452         * m4/gettext.m4: New file -- from gettext-0.10.35.
93453         * m4/lcmessage.m4: Likewise.
93454         * m4/progtest.m4: Likewise.
93455
93456         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
93457         * m4/jm-macros.m4: Require the new macro.
93458
93459 1998-06-29  Jim Meyering  <meyering@ascend.com>
93460
93461         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
93462         for the definition of NGROUPS (used in a system header included
93463         by sys/mount.h).
93464
93465 1998-06-28  Jim Meyering  <meyering@ascend.com>
93466
93467         * m4/ls-mntd-fs.m4: New file.
93468         * m4/fstypename.m4: New file.
93469
93470         * m4/jm-macros.m4: Require the new macro.
93471         * m4/jm-glibc-io.m4: New file.
93472
93473 1998-05-19  Jim Meyering  <meyering@ascend.com>
93474
93475         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
93476         * m4/lchown.m4: New file.
93477
93478         * m4/Makefile.am.in: New file.
93479         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
93480
93481 1998-05-14  Jim Meyering  <meyering@ascend.com>
93482
93483         * m4/Makefile.am (EXTRA_DIST): Add them.
93484         * m4/jm-macros.m4: New file.
93485         * m4/utimbuf.m4: New file.
93486
93487 1998-05-12  Jim Meyering  <meyering@ascend.com>
93488
93489         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
93490
93491 1998-05-11  Jim Meyering  <meyering@ascend.com>
93492
93493         * m4/isc-posix.m4: New file.
93494
93495 1998-05-10  Jim Meyering  <meyering@ascend.com>
93496
93497         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
93498
93499 1998-05-09  Jim Meyering  <meyering@ascend.com>
93500
93501         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
93502         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
93503         with automake.
93504
93505         * m4/ssize_t.m4: New file.
93506         * m4/mktime.m4: Remove file -- the new automake has this now.
93507
93508 1998-04-26  Jim Meyering  <meyering@ascend.com>
93509
93510         * m4/assert.m4: New file.
93511         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
93512
93513 1998-04-05  Jim Meyering  <meyering@ascend.com>
93514
93515         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
93516         (jm_PREREQ): Use it here.
93517
93518 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
93519
93520         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
93521         in acconfig.h.
93522
93523 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
93524
93525         * m4/prereq.m4: New file.
93526         * m4/error.m4: New file.
93527         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
93528
93529 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
93530
93531         * m4/getline.m4: Don't set am_cv_func_working_getline before the
93532         cache-check for the same variable -- that defeated the purpose of
93533         the test; the test program was never run.  This was a problem only
93534         on systems with losing getline functions -- HP-UX 10.20 is one.
93535         Reported by Bjorn Helgaas.
93536
93537 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
93538
93539         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
93540
93541 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
93542
93543         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
93544
93545         * m4/const.m4: New file.  Use an initializer in this declaration
93546         typedef int charset[2]; const charset x;
93547         Reported by Bob Glickstein.
93548
93549 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
93550
93551         * m4/chown.m4: Fix reversed types on -1 args to chown.
93552         From Kaveh Ghazi.
93553
93554 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
93555
93556         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
93557         Add lseek and memchr.
93558
93559         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
93560         T.E.Dickey <dickey@clark.net> said that some older preprocessors
93561         have a 20-character limit on names.
93562
93563 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
93564
93565         * m4/inttypes_h.m4: New file.
93566         * m4/uintmax_t.m4: New file.
93567         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
93568
93569
93570         -----
93571
93572         Local Variables:
93573         coding: utf-8
93574         End:
93575
93576         Copyright (C) 1997-2012 Free Software Foundation, Inc.
93577
93578         Copying and distribution of this file, with or without
93579         modification, are permitted provided the copyright notice
93580         and this notice are preserved.